Files
macports-ports/python/py-notify-python/files/missing-python27-symbols.patch
asemmar bc9860d942 py-notify-python: fix missing python 2.7 symbols
pkg-config is used to create all the linker flags but misses
'-lpython2.7' which is required to fix the error in the ticket.
It's not possible to change pkg-config output from this port's
context (and dangerous).

It's not possible to patch the generated src/Makefile because
in it are paths relative to a specific MacPorts install.

Appending to the variable in configure is therefore the simplest
solution.

Closes: https://trac.macports.org/ticket/65092
2022-11-12 14:31:25 -05:00

13 lines
417 B
Diff

diff --git a/configure b/configure
index f2385bc..2957dd7 100755
--- configure.orig
+++ configure
@@ -18983,6 +18983,7 @@ if test -n "$PKG_CONFIG"; then
(exit $ac_status); }; then
pkg_cv_NOTIFY_PYTHON_LIBS=`$PKG_CONFIG --libs "pygtk-2.0 >= $PYGTK_REQUIRED
libnotify >= $LIBNOTIFY_REQUIRED" 2>/dev/null`
+ pkg_cv_NOTIFY_PYTHON_LIBS+=" -lpython2.7"
else
pkg_failed=yes
fi