<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/fafec0a8447d4e658c0fdf1f7a0883fdb77d8c05">https://github.com/macports/macports-ports/commit/fafec0a8447d4e658c0fdf1f7a0883fdb77d8c05</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 fafec0a8447 chafa: Fix build with latest webp
</span>fafec0a8447 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit fafec0a8447d4e658c0fdf1f7a0883fdb77d8c05
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Fri Aug 18 22:46:11 2023 -0500
<span style='display:block; white-space:pre;color:#404040;'> chafa: Fix build with latest webp
</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/67949
</span>---
graphics/chafa/Portfile | 4 ++++
graphics/chafa/files/webp.patch | 22 ++++++++++++++++++++++
2 files changed, 26 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/chafa/Portfile b/graphics/chafa/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 0c2f58f85ae..85761f7bed2 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/graphics/chafa/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/chafa/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -5,6 +5,7 @@ PortGroup github 1.0
</span> PortGroup compiler_blacklist_versions 1.0
github.setup hpjansson chafa 1.12.5
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# Please switch to the release xz tarball at the next version and stop using autoreconf.
</span> github.tarball_from archive
revision 0
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -40,6 +41,9 @@ depends_build-append \
</span> depends_lib-append path:lib/pkgconfig/glib-2.0.pc:glib2 \
port:ImageMagick
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles webp.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# No configure script in archive and we are patching configure.ac.
</span> use_autoreconf yes
# https://trac.macports.org/ticket/66729
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/chafa/files/webp.patch b/graphics/chafa/files/webp.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..464e4a50be5
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/chafa/files/webp.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,22 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Fix:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Undefined symbols for architecture x86_64:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "_WebPGetFeaturesInternal", referenced from:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _webp_loader_new_from_mapping in chafa-webp-loader.o
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "_WebPGetInfo", referenced from:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _webp_loader_new_from_mapping in chafa-webp-loader.o
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ld: symbol(s) not found for architecture x86_64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://github.com/hpjansson/chafa/issues/152
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://github.com/hpjansson/chafa/commit/1a22c4e2c3acb9d5fea5b6a7a74d0bf3fc9102a7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- configure.ac.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ configure.ac
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -150,7 +150,7 @@ AS_IF([test "$with_tools" != no], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ with_webp=yes)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AS_IF([test "$with_webp" != no], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- PKG_CHECK_MODULES(WEBP, [libwebpdemux],,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ PKG_CHECK_MODULES(WEBP, [libwebp libwebpdemux],,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ missing_rpms="$missing_rpms libwebp-devel"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ missing_debs="$missing_debs libwebp-dev"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ with_webp=no)])
</span></pre><pre style='margin:0'>
</pre>