Bug#950464: pygobject: autopkgtest fails with changes to .pc files in python3.8

Steve Langasek steve.langasek at canonical.com
Sun Feb 2 06:20:58 GMT 2020


Package: pygobject
Version: 3.34.0-5
Severity: important
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu focal ubuntu-patch

Dear maintainers,

In Ubuntu, the 'build3' autopkgtest has started to fail in pygobject because
Ubuntu has moved default python3 to python3.8, and in the python3.8 package,
python3.pc no longer says to link against libpython (now being intended only
for modules rather than for applications embedding python), and applications
which need to embed libpython need to use python3-embed.pc instead.

I've verified that the attached patch fixes the autopkgtest failure in
Ubuntu, and it should work for Debian as well once python3-defaults 3.8
leaves experimental.

Cheers,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                   https://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org
-------------- next part --------------
diff -Nru pygobject-3.34.0/debian/tests/build3 pygobject-3.34.0/debian/tests/build3
--- pygobject-3.34.0/debian/tests/build3	2020-01-29 16:20:26.000000000 -0800
+++ pygobject-3.34.0/debian/tests/build3	2020-02-01 22:15:13.000000000 -0800
@@ -34,7 +34,7 @@
 
 # Deliberately word-splitting, that's how pkg-config works:
 # shellcheck disable=SC2046
-"${CROSS_COMPILE}gcc" -o pytest pytest.c $("${CROSS_COMPILE}pkg-config" --cflags --libs python3 pygobject-3.0)
+"${CROSS_COMPILE}gcc" -o pytest pytest.c $("${CROSS_COMPILE}pkg-config" --cflags --libs python3-embed pygobject-3.0)
 echo "build: OK"
 [ -x pytest ]
 ./pytest


More information about the pkg-gnome-maintainers mailing list