snap contains python 3.8 and 3.9 libs

Bug #1965814 reported by Kenneth Loafman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Duplicity
New
High
Unassigned
Snapcraft
New
Undecided
Unassigned

Bug Description

Using the attached snapcraft.yaml, snap builds with conflicting libs:

$ find /snap/duplicity/current/ -type d -name 'python3*'
<snip>
/snap/duplicity/current/usr/lib/python3
/snap/duplicity/current/usr/lib/python3.8 <-- this should be here ****
/snap/duplicity/current/usr/lib/python3.9 <-- this one causes confusion ****
<snip>

Since duplicity uses _librsync*.so and that's only installed in python3.8, it fails when python 3.9 is used, as is done on Debian 10. It's only one executable and should only have one version of python supplied in the snap.

Revision history for this message
Kenneth Loafman (kenneth-loafman) wrote :
Changed in duplicity:
importance: Undecided → Critical
Revision history for this message
edso (ed.so) wrote :

while the folder is of course not needed i don't feel it is a trouble maker.
as far as i can see some python3-* packages place some python3.9 files there
e.g.
```
user@user-virtual-machine:~/duplicity-git/build/duplicity-0.8.23.dev9$ apt-file find /usr/lib/python3.9/distutils/archive_util.py
python3-distutils: /usr/lib/python3.9/distutils/archive_util.py
```
or
```
user@user-virtual-machine:~/duplicity-git/build/duplicity-0.8.23.dev9$ apt-file find /usr/lib/python3.9/lib2to3/btm_matcher.py
python3-lib2to3: /usr/lib/python3.9/lib2to3/btm_matcher.py
```

but for the peace of your mind we can simply just remove it from the snap package. i'll add a line in the yaml.

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

We had the multi-lib problem that cause the dropbox msgpack problem I reported a while back. I'm going to be adamant and say that a snap with multiple lib versions is a very strong potential problem. It just means that something is coming into the snap at the wrong version and that should not be. It may be that we need to find a way to version apt packages as well as python packages.

Changed in duplicity:
importance: Critical → High
Revision history for this message
edso (ed.so) wrote :
Revision history for this message
Kenneth Loafman (kenneth-loafman) wrote :

Thanks @edso!

To the SnapCraft team: This is still a bug. @edso has implemented a workaround, but we still do not know what the side effects of this will be. It would be best if we had a clean build to begin with, and not have to chase down something that could cause https://bugs.launchpad.net/snapcraft/+bug/1956157 to rear its ugly head again.

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.