override_dh_auto_install fails when building in a virtualenv

Bug #1879720 reported by Mischa ter Smitten
6
This bug affects 1 person
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/duplicity/usr/share/doc/duplicity-*

when building in a virtualenv this directory does not exist.

debian/duplicity/home/mtersmitten/.virtualenvs/ANSPB-453/share/doc/duplicity-0.7.19

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.

Revision history for this message
Mischa ter Smitten (mischa-ter-smitten) wrote :

mtersmitten@ares:/home/mtersmitten/Desktop/ANSPB-453/duplicity-0.7.19
# diff debian/rules debian/rules.new
17c17
< rm -r debian/duplicity/usr/share/doc/duplicity-*
---
> find debian/duplicity -path "*share/doc/duplicity-*" -print0 | xargs --no-run-if-empty -0 rm -r

Revision history for this message
Mischa ter Smitten (mischa-ter-smitten) wrote :

Nevermind, I see that this results in an incorrect deb

Revision history for this message
Kenneth Loafman (kenneth-loafman) wrote :

First, 0.7.19 is EOL, as is Python 2.

Second, there are alternatives to deb tools for installing 0.8-series:

* Source - https://gitlab.com/duplicity/duplicity
* Stable tarball install - https://launchpad.net/duplicity/+download
* Daily duplicity PPA - https://code.launchpad.net/~duplicity-team/+archive/ubuntu/duplicity-develop-git
* Stable duplicity PPA - https://code.launchpad.net/~duplicity-team/+archive/ubuntu/duplicity-release-git
* Stable snap builds - “sudo snap install duplicity —classic"
* Latest snap builds - “sudo snap install duplicity —classic —edge"
* Latest pip3 builds - “sudo pip3 install duplicity"

Revision history for this message
Mischa ter Smitten (mischa-ter-smitten) wrote :

Is the "Stable duplicity" backwards compatible with 0.7.19?

Revision history for this message
Kenneth Loafman (kenneth-loafman) wrote : Re: [Bug 1879720] Re: override_dh_auto_install fails when building in a virtualenv

Yes!

On Wed, May 20, 2020 at 12:28 PM Mischa ter Smitten <
<email address hidden>> wrote:

> Is the "Stable duplicity" backwards compatible with 0.7.19?
>
> --
> You received this bug notification because you are subscribed to
> Duplicity.
> https://bugs.launchpad.net/bugs/1879720
>
> Title:
> override_dh_auto_install fails when building in a virtualenv
>
> Status in Duplicity:
> New
>
> 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/duplicity/usr/share/doc/duplicity-*
>
> when building in a virtualenv this directory does not exist.
>
>
> debian/duplicity/home/mtersmitten/.virtualenvs/ANSPB-453/share/doc/duplicity-0.7.19
>
> 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.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/duplicity/+bug/1879720/+subscriptions
>

Revision history for this message
Mischa ter Smitten (mischa-ter-smitten) wrote :

It's not build for 16.04, right?

Revision history for this message
Mischa ter Smitten (mischa-ter-smitten) wrote :

And there's also not package for Python 3.5

root@anspb-453:~# pip3 install duplicity
ERROR: Could not find a version that satisfies the requirement duplicity (from versions: none)
ERROR: No matching distribution found for duplicity

Revision history for this message
Kenneth Loafman (kenneth-loafman) wrote :

No, duplicity will not run correctly under Python 3.5, however, there is a
solution:

$ sudo snap install duplicity --classic

This will install duplicity in a virtual environment with a modern Python
and all dependencies.

On Tue, May 26, 2020 at 3:55 AM Mischa ter Smitten <
<email address hidden>> wrote:

> And there's also not package for Python 3.5
>
> root@anspb-453:~# pip3 install duplicity
> ERROR: Could not find a version that satisfies the requirement duplicity
> (from versions: none)
> ERROR: No matching distribution found for duplicity
>
> --
> You received this bug notification because you are subscribed to
> Duplicity.
> https://bugs.launchpad.net/bugs/1879720
>
> Title:
> override_dh_auto_install fails when building in a virtualenv
>
> Status in Duplicity:
> New
>
> 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/duplicity/usr/share/doc/duplicity-*
>
> when building in a virtualenv this directory does not exist.
>
>
> debian/duplicity/home/mtersmitten/.virtualenvs/ANSPB-453/share/doc/duplicity-0.7.19
>
> 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.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/duplicity/+bug/1879720/+subscriptions
>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.