git: 86b06418fe77 - main - print/ghostscript10: fix build on armv7
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 28 Sep 2025 09:31:13 UTC
The branch main has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=86b06418fe7726e87f14075ab54b4c5d41cc3653
commit 86b06418fe7726e87f14075ab54b4c5d41cc3653
Author: Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2025-09-27 08:48:00 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2025-09-28 09:29:35 +0000
print/ghostscript10: fix build on armv7
Patch out -Werror=declaration-after-statement which is triggered by the
bundled copy of brotli on armv7.
I tried unbundling brotli, but it seems to be really messy to do.
Approved by: portmgr (build fix blanket)
Event: EuroBSDcon 2025
---
print/ghostscript10/files/patch-configure | 22 ++++++++++++++++++++--
1 file changed, 20 insertions(+), 2 deletions(-)
diff --git a/print/ghostscript10/files/patch-configure b/print/ghostscript10/files/patch-configure
index 4ecbe4ff7287..1888293a327b 100644
--- a/print/ghostscript10/files/patch-configure
+++ b/print/ghostscript10/files/patch-configure
@@ -1,6 +1,15 @@
---- configure.orig 2022-04-04 13:48:49 UTC
+--- configure.orig 2025-09-09 09:36:39 UTC
+++ configure
-@@ -13383,7 +13383,12 @@ if test "${enable_dynamic+set}" = set; then :
+@@ -5630,7 +5630,7 @@ -Wmissing-declarations -Wmissing-prototypes -Wwrite-st
+ if test x"$GCC" = x"yes"; then
+ cflags_to_try="-Wall -Wstrict-prototypes -Wundef \
+ -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings \
+--fno-strict-aliasing -Werror=declaration-after-statement \
++-fno-strict-aliasing \
+ -fno-builtin -fno-common -Werror=return-type -Wno-unused-local-typedefs $CFLAGS_LARGEFILE"
+ optflags_to_try="$CC_OPT_FLAGS_TO_TRY"
+ dbgflags_to_try="$CC_DBG_FLAGS_TO_TRY"
+@@ -13615,7 +13615,12 @@ then :
DBG_CFLAGS="$DYNAMIC_CFLAGS $DBG_CFLAGS"
;;
*bsd*)
@@ -14,3 +23,12 @@
DYNAMIC_FLAGS="-DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\\\"\$(gssharedir)\\\""
X11_DEVS=""
OPT_CFLAGS="$DYNAMIC_CFLAGS $OPT_CFLAGS"
+@@ -15791,7 +15796,7 @@ CFLAGSAUX=$(echo $CFLAGSAUX | sed -e 's/-DGS_NO_FILESY
+
+ CFLAGSAUX=$(echo $CFLAGSAUX | sed -e 's/-DGS_NO_FILESYSTEM//g')
+
+-GXXFLAGS=$(echo $GCFLAGS | sed -e 's/-Wstrict-prototypes//g' | sed -e 's/-Wmissing-prototypes//g' | sed -e 's/-Werror=declaration-after-statement//g')
++GXXFLAGS=$(echo $GCFLAGS | sed -e 's/-Wstrict-prototypes//g' | sed -e 's/-Wmissing-prototypes//g')
+
+ SRCDIR="$srcdir"
+