override_dh_auto_install fails when building in a virtualenv
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
New
|
Undecided
|
Unassigned |
Bug Description
I'm trying to build duplicity (version 0.7.19) in a virtualenv. I'm using the following steps:
sudo apt install build-essential debhelper devscripts equivs dh-virtualenv;
mkvirtualenv -ppython2 ANSPB-453;
pip install --upgrade pip;
pip install make-deb;
pip install -r requirements.txt;
sudo apt-get install librsync-dev par2 rdiff;
# dpkg-buildpackage -us -uc;
dpkg-buildpackage -us -uc -f;
The last command fails on:
rm -r debian/
when building in a virtualenv this directory does not exist.
debian/
however does.
changing the rm command to:
find debian/duplicity -path "*share/doc/*" -name "duplicity-*" -print0 | xargs --no-run-if-empty -0 rm -r
fixes the issue.
mtersmitten@ ares:/home/ mtersmitten/ Desktop/ ANSPB-453/ duplicity- 0.7.19 duplicity/ usr/share/ doc/duplicity- * doc/duplicity- *" -print0 | xargs --no-run-if-empty -0 rm -r
# diff debian/rules debian/rules.new
17c17
< rm -r debian/
---
> find debian/duplicity -path "*share/