<pre style='margin:0'>
Renee Otten (reneeotten) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/bc9860d942c80a360fbeba823003fad7ec80c365">https://github.com/macports/macports-ports/commit/bc9860d942c80a360fbeba823003fad7ec80c365</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'>     new bc9860d942c py-notify-python: fix missing python 2.7 symbols
</span>bc9860d942c is described below

<span style='display:block; white-space:pre;color:#808000;'>commit bc9860d942c80a360fbeba823003fad7ec80c365
</span>Author: asemmar <anis.semmar-ext@sagemcom.com>
AuthorDate: Fri Nov 11 01:04:14 2022 +0100

<span style='display:block; white-space:pre;color:#404040;'>    py-notify-python: fix missing python 2.7 symbols
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    pkg-config is used to create all the linker flags but misses
</span><span style='display:block; white-space:pre;color:#404040;'>    '-lpython2.7' which is required to fix the error in the ticket.
</span><span style='display:block; white-space:pre;color:#404040;'>    It's not possible to change pkg-config output from this port's
</span><span style='display:block; white-space:pre;color:#404040;'>    context (and dangerous).
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    It's not possible to patch the generated src/Makefile because
</span><span style='display:block; white-space:pre;color:#404040;'>    in it are paths relative to a specific MacPorts install.
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    Appending to the variable in configure is therefore the simplest
</span><span style='display:block; white-space:pre;color:#404040;'>    solution.
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    Closes: https://trac.macports.org/ticket/65092
</span>---
 python/py-notify-python/Portfile                             |  9 +++++----
 python/py-notify-python/files/missing-python27-symbols.patch | 12 ++++++++++++
 2 files changed, 17 insertions(+), 4 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-notify-python/Portfile b/python/py-notify-python/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 3ac1077af2d..2ed037da91a 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-notify-python/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-notify-python/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -45,8 +45,8 @@ if {${name} ne ${subport}} {
</span> 
     depends_lib-append  port:libnotify \
                         port:py${python.version}-pygtk
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span>     use_configure       yes
 
     build.type          gnu
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -61,8 +61,9 @@ if {${name} ne ${subport}} {
</span> 
     patchfiles          patch-src-pynotifymodule-c.diff \
                         implicit.patch \
<span style='display:block; white-space:pre;background:#ffe0e0;'>-                        libnotify07.patch
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                   
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                        libnotify07.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                        missing-python27-symbols.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span>     configure.python    ${python.bin}
     configure.pkg_config_path   ${python.prefix}/lib/pkgconfig
     configure.pre_args      --prefix=${python.prefix}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-notify-python/files/missing-python27-symbols.patch b/python/py-notify-python/files/missing-python27-symbols.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..c5b57befe6a
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-notify-python/files/missing-python27-symbols.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,12 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/configure b/configure
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index f2385bc..2957dd7 100755
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- configure.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ configure
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -18983,6 +18983,7 @@ if test -n "$PKG_CONFIG"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   (exit $ac_status); }; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   pkg_cv_NOTIFY_PYTHON_LIBS=`$PKG_CONFIG --libs "pygtk-2.0 >= $PYGTK_REQUIRED
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                                   libnotify >= $LIBNOTIFY_REQUIRED" 2>/dev/null`
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++  pkg_cv_NOTIFY_PYTHON_LIBS+=" -lpython2.7"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   pkg_failed=yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span></pre><pre style='margin:0'>

</pre>