pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/net/tinyfugue



Module Name:    pkgsrc
Committed By:   mrg
Date:           Fri Oct 17 22:07:49 UTC 2025

Modified Files:
        pkgsrc/net/tinyfugue: Makefile distinfo
Added Files:
        pkgsrc/net/tinyfugue/patches: patch-src_Makefile

Log Message:
fix build with GCC 14.

this one is annoying.  initially, it fails as it force sets "CFLAGS=-O"
i an sub-make that tries to compile invalid in gcc 14 default code.  the
patch to src/Makefile is to pass down CFLAGS as CFLAGS.

the "configure"-alike setup here absolutely requires to turn off the new
errors as it explicitly abuses that old C feature to find what symbols
do or don't exist.

as such, just add -Wno-implicit-int -Wno-implicit-function-declaration
to CFLAGS with GCC 14, and this builds again.


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 pkgsrc/net/tinyfugue/Makefile
cvs rdiff -u -r1.18 -r1.19 pkgsrc/net/tinyfugue/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/net/tinyfugue/patches/patch-src_Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/net/tinyfugue/Makefile
diff -u pkgsrc/net/tinyfugue/Makefile:1.38 pkgsrc/net/tinyfugue/Makefile:1.39
--- pkgsrc/net/tinyfugue/Makefile:1.38  Sun Apr 25 06:39:47 2021
+++ pkgsrc/net/tinyfugue/Makefile       Fri Oct 17 22:07:48 2025
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.38 2021/04/25 06:39:47 wiz Exp $
+# $NetBSD: Makefile,v 1.39 2025/10/17 22:07:48 mrg Exp $
 
 DISTNAME=      tf-40s1
 PKGNAME=       tf-4.0s1
@@ -29,6 +29,11 @@ SUBST_VARS.fix-paths=                DESTDIR
 
 LDFLAGS.SunOS+=        -lz
 
+.include "../../mk/compiler.mk"
+.if !empty(CC_VERSION:Mgcc-14.*) || !empty(CC_VERSION:Mgcc-15.*)
+CFLAGS+=       -Wno-implicit-int -Wno-implicit-function-declaration 
+.endif
+
 .include "../../devel/zlib/buildlink3.mk"
 .include "../../devel/gettext-lib/buildlink3.mk"
 .include "../../mk/termcap.buildlink3.mk"

Index: pkgsrc/net/tinyfugue/distinfo
diff -u pkgsrc/net/tinyfugue/distinfo:1.18 pkgsrc/net/tinyfugue/distinfo:1.19
--- pkgsrc/net/tinyfugue/distinfo:1.18  Tue Oct 26 11:07:03 2021
+++ pkgsrc/net/tinyfugue/distinfo       Fri Oct 17 22:07:48 2025
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.18 2021/10/26 11:07:03 nia Exp $
+$NetBSD: distinfo,v 1.19 2025/10/17 22:07:48 mrg Exp $
 
 BLAKE2s (tf-40s1-mccp-patch.gz) = 6123f9704a4a01dd8d3f697ff06e65ebe1d679789b5d600b5aee688eaf83d01f
 SHA512 (tf-40s1-mccp-patch.gz) = 494c3dfa1075b057fa2992ac4b34957452f159b9cf6bcc6d4437b3b1e3ecdd888578ac255b8f25b5cde45bdb57aa1d6c372c79eb2bc60ba15ca1a1a9eea20247
@@ -11,3 +11,4 @@ SHA1 (patch-ab) = 7716f7cb3bd352824ff77e
 SHA1 (patch-ac) = 01dd3c54d7246b3769ceb1976f0e2272fb15d750
 SHA1 (patch-ad) = 4ff9f85b0b05857560b00e354496a9ed2a01e6e2
 SHA1 (patch-ae) = 4c85ea1953f24548d0dee107b645c32c91e5bc5d
+SHA1 (patch-src_Makefile) = d6f9bb08281540231bade6ec5e0126f293ce9827

Added files:

Index: pkgsrc/net/tinyfugue/patches/patch-src_Makefile
diff -u /dev/null pkgsrc/net/tinyfugue/patches/patch-src_Makefile:1.1
--- /dev/null   Fri Oct 17 22:07:49 2025
+++ pkgsrc/net/tinyfugue/patches/patch-src_Makefile     Fri Oct 17 22:07:48 2025
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_Makefile,v 1.1 2025/10/17 22:07:48 mrg Exp $
+
+--- unix/unix.mak.orig 2025-09-27 22:03:33.206737661 -0700
++++ unix/unix.mak      2025-09-27 22:05:31.100813679 -0700
+@@ -109,7 +109,7 @@
+ 
+ regexp.o: $(BUILDERS) config.h
+       cd ./regexp; \
+-          $(MAKE) CC='$(CC)' CFLAGS='-O' O=o regexp.o >err 2>&1 || \
++          $(MAKE) CC='$(CC)' CFLAGS='$(CFLAGS)' O=o regexp.o >err 2>&1 || \
+           { cat err; rm err; exit 1; }
+       rm regexp/err
+       mv regexp/regexp.o .



Home | Main Index | Thread Index | Old Index