aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Pronchery <khorben@FreeBSD.org>2026-04-22 23:42:43 +0000
committerPierre Pronchery <khorben@FreeBSD.org>2026-04-25 19:13:57 +0000
commit1342eb5a832fa10e689a29faab3acb6054e4778c (patch)
tree9c741b432981fc654ebf8c25773b090fa9eeb869
parent970cef9f652ec4d902b20cba6d99dce48458d7b6 (diff)
pkgconf: fix the build with GCC 14
Building pkgconf with GCC 14 currently fails with: no option '-Wincompatible-pointer-types-discards-qualifiers' This relaxes warnings for libpkgconf, pkgconf(1), and bomtool(1) until the improvements are published upstream (see PR #444). Co-authored-by: ngie Approved by: ngie Sponsored by: The FreeBSD Foundation Event: Wiesbaden Hackathon 202604 Differential Revision: https://reviews.freebsd.org/D56591
-rw-r--r--lib/libpkgconf/Makefile5
-rw-r--r--usr.bin/bomtool/Makefile5
-rw-r--r--usr.bin/pkgconf/Makefile5
3 files changed, 6 insertions, 9 deletions
diff --git a/lib/libpkgconf/Makefile b/lib/libpkgconf/Makefile
index 8686103aa826..fee7f275d9ff 100644
--- a/lib/libpkgconf/Makefile
+++ b/lib/libpkgconf/Makefile
@@ -12,9 +12,8 @@ SRCS+= argvsplit.c fileio.c tuple.c dependency.c queue.c
SRCS+= path.c personality.c parser.c
INCS= bsdstubs.h iter.h libpkgconf-api.h libpkgconf.h stdinc.h
-CFLAGS+= -Wno-error=cast-align
-CFLAGS+= -Wno-error=cast-qual
-CFLAGS+= -Wno-error=incompatible-pointer-types-discards-qualifiers
+WARNS?= 3
+
CFLAGS+= -DPERSONALITY_PATH=\"/usr/share/pkgconfig/personality.d:/etc/pkgconfig/personality.d:${LOCALBASE:U}/etc/pkgconfig/personality.d\"
CFLAGS+= -DPKG_DEFAULT_PATH=\"${LOCALBASE:U}/libdata/pkgconfig:/usr/libdata/pkgconfig:${LOCALBASE:U}/share/pkgconfig\"
CFLAGS+= -DSYSTEM_INCLUDEDIR=\"/usr/include\"
diff --git a/usr.bin/bomtool/Makefile b/usr.bin/bomtool/Makefile
index f9471f35801b..6074c0817756 100644
--- a/usr.bin/bomtool/Makefile
+++ b/usr.bin/bomtool/Makefile
@@ -8,9 +8,8 @@ LIBADD= pkgconf
PKGCONFDIR= ${SRCTOP}/contrib/pkgconf
-CFLAGS+= -Wno-error=missing-variable-declarations
-CFLAGS+= -Wno-error=incompatible-pointer-types-discards-qualifiers
-CFLAGS+= -Wno-error=cast-qual
+WARNS?= 3
+
CFLAGS+= -I${SRCTOP}/lib/libpkgconf -I${PKGCONFDIR} -I${PKGCONFDIR}/cli
.PATH: ${PKGCONFDIR}/cli/bomtool
diff --git a/usr.bin/pkgconf/Makefile b/usr.bin/pkgconf/Makefile
index 2155201ac883..448e7047e116 100644
--- a/usr.bin/pkgconf/Makefile
+++ b/usr.bin/pkgconf/Makefile
@@ -11,9 +11,8 @@ SYMLINKS= pkgconf ${BINDIR}/pkg-config
PKGCONFDIR= ${SRCTOP}/contrib/pkgconf
-CFLAGS+= -Wno-error=missing-variable-declarations
-CFLAGS+= -Wno-error=incompatible-pointer-types-discards-qualifiers
-CFLAGS+= -Wno-error=cast-qual
+WARNS?= 3
+
CFLAGS+= -DSYSTEM_INCLUDEDIR=\"/usr/include\" -DSYSTEM_LIBDIR=\"/usr/lib\"
CFLAGS+= -I${SRCTOP}/lib/libpkgconf -I${PKGCONFDIR}