pkgsrc-Changes archive

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

CVS commit: pkgsrc/archivers/minizip-ng



Module Name:    pkgsrc
Committed By:   mrg
Date:           Mon Oct 13 00:00:59 UTC 2025

Modified Files:
        pkgsrc/archivers/minizip-ng: Makefile

Log Message:
on netbsd define _NETBSD_SOURCE.

this package sets _POSIX_C_SOURCE=200809L which our unistd.h hides
symlink(2) with.

fixes GCC 14 build, as well as consumer that may have had a pointer
passed to symlink() with more than 32 bits set.

not sure if this is a netbsd bug or a package bug, i can't quite
find what _POSIX_C_SOURCE=200809L should enable, but this would be
fixed with eg, _XOPEN_SOURCE=500 where netbsd does enable it.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 pkgsrc/archivers/minizip-ng/Makefile

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

Modified files:

Index: pkgsrc/archivers/minizip-ng/Makefile
diff -u pkgsrc/archivers/minizip-ng/Makefile:1.8 pkgsrc/archivers/minizip-ng/Makefile:1.9
--- pkgsrc/archivers/minizip-ng/Makefile:1.8    Mon May  5 08:26:10 2025
+++ pkgsrc/archivers/minizip-ng/Makefile        Mon Oct 13 00:00:59 2025
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2025/05/05 08:26:10 adam Exp $
+# $NetBSD: Makefile,v 1.9 2025/10/13 00:00:59 mrg Exp $
 
 DISTNAME=      minizip-ng-4.0.10
 CATEGORIES=    archivers
@@ -21,6 +21,9 @@ CMAKE_CONFIGURE_ARGS+=        -DMZ_COMPAT=NO
 
 PLIST_VARS+=   libcomp zlib
 
+# Uses symlink(2) and _POSIX_C_SOURCE=200809L which NetBSD hides
+CFLAGS.NetBSD+=        -D_NETBSD_SOURCE
+
 .include "../../mk/bsd.prefs.mk"
 # On Darwin, libcompression is preferred over zlib, see CMakeLists.txt
 .if ${OPSYS} == "Darwin"



Home | Main Index | Thread Index | Old Index