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:
Sunil Mohan Adapa 2020-06-24 14:51:36 -07:00 committed by James Valleroy
parent 5d3c010b2e
commit bf7a9b8c7a
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
3 changed files with 3 additions and 3 deletions

View File

@ -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
View File

@ -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
View File

@ -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: