mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-22 10:01:45 +00:00
d/rules: vagrant: INSTALL.md: Fix installing dependencies
- Using ./run --develop ensures that the last list of dependencies are picked up from current source directory instead of list of dependencies from system configuration. - Using sudo -u plinth ensures that even if any temporary files are created, they belong to the plinth user instead of root user. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
5d3c010b2e
commit
bf7a9b8c7a
@ -16,7 +16,7 @@ FreedomBox [Manual](https://wiki.debian.org/FreedomBox/Manual/)'s
|
||||
```
|
||||
|
||||
```
|
||||
$ sudo apt install -y $(./run --list-dependencies)
|
||||
$ sudo apt install -y $(./run --develop --list-dependencies)
|
||||
```
|
||||
|
||||
Install additional dependencies by picking the list from debian/control file
|
||||
|
||||
2
Vagrantfile
vendored
2
Vagrantfile
vendored
@ -32,7 +32,7 @@ Vagrant.configure(2) do |config|
|
||||
apt-get update
|
||||
# In case new dependencies conflict with old dependencies
|
||||
apt-mark hold freedombox
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install --no-upgrade -y $(plinth --list-dependencies)
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install --no-upgrade -y $(sudo -u plinth ./run --develop --list-dependencies)
|
||||
apt-mark unhold freedombox
|
||||
# Install ncurses-term
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y ncurses-term
|
||||
|
||||
2
debian/rules
vendored
2
debian/rules
vendored
@ -8,7 +8,7 @@ export PYBUILD_DESTDIR=debian/tmp
|
||||
|
||||
override_dh_auto_install-indep:
|
||||
dh_auto_install
|
||||
./run --list-dependencies 2> /dev/null | sort | tr '\n' ', ' | \
|
||||
./run --develop --list-dependencies | sort | tr '\n' ', ' | \
|
||||
sed -e 's/^/freedombox:Depends=/' >> debian/freedombox.substvars
|
||||
|
||||
override_dh_auto_test:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user