Bug#952416: glom: Use python3-embed pkg-config instead of python3

Steve Langasek steve.langasek at canonical.com
Mon Feb 24 03:46:28 GMT 2020

Package: glom
Version: 1.30.4-5
Severity: serious
Tags: patch experimental
Justification: ftbfs
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu focal ubuntu-patch

As of python3.8, the python3.pc file does not provide the library flags
necessary to link programs against an embedded python interpreter.  Instead,
packages need to use python3-embed, as in the attached patch.

Since python3-defaults is switching to python3.8 imminently (it's already in
experimental), I'm marking this as a serious bug.

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 glom-1.30.4/debian/rules glom-1.30.4/debian/rules
--- glom-1.30.4/debian/rules	2020-02-10 04:11:08.000000000 -0800
+++ glom-1.30.4/debian/rules	2020-02-23 18:12:27.000000000 -0800
@@ -3,8 +3,8 @@
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,--as-needed
-PYTHON_CPPFLAGS_PKGCONFIG := $(shell pkg-config --cflags python3)
-PYTHON_LIB_PKGCONFIG := $(shell pkg-config --libs python3)
+PYTHON_CPPFLAGS_PKGCONFIG := $(shell pkg-config --cflags python3-embed)
+PYTHON_LIB_PKGCONFIG := $(shell pkg-config --libs python3-embed)
 	dh $@ --with gnome,python3

More information about the pkg-gnome-maintainers mailing list