git-ubuntu.experimental-build invokes system commands with snap-specific environment

Bug #2054239 reported by Michael Hudson-Doyle
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
git-ubuntu
New
Undecided
Unassigned

Bug Description

If you run git-ubuntu.experimental-build on mantic you get this:

(ubuntu/devel)mwhudson@orcrist:~/src/pkg/icedtea-web$ git-ubuntu.experimental-build -- -S
Cwd.c: loadable library and perl binaries are mismatched (got first handshake key 0xcd00080, needed 0xeb80080)

I think the issue here is that git-ubuntu's meta/snap.yaml sets PERL5LIB to point inside the snap and when experimental-build runs dpkg-buildpackage from the host (which is a perl script), /usr/bin/perl tries to load compiled extensions from the snap (i.e. focal) and complains.

I think git-ubuntu needs to grow some kind of helper to run system binaries with a clean or at least clean-enough environment (PYTHONPATH could definitely cause similar issues).

(Classic snaps are a hoot)

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Ah yes PYTHONPATH causes similar issues when invoking gbp

description: updated
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.