diff options
author | Patrick J Volkerding <volkerdi@slackware.com> | 2024-05-12 19:10:12 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2024-05-12 21:28:58 +0200 |
commit | abc3e67678d77c43fe739af3ed812d558cc83435 (patch) | |
tree | a9e061d3fd40a4bff2bf8e46d18117da5179abbd /source/n | |
parent | afc0f1e9aaa780f00b61d8c42b3a77833fbbaff8 (diff) | |
download | current-abc3e67678d77c43fe739af3ed812d558cc83435.tar.gz current-abc3e67678d77c43fe739af3ed812d558cc83435.tar.xz |
Sun May 12 19:10:12 UTC 202420240512191012
a/less-654-x86_64-1.txz: Upgraded.
d/ninja-1.12.1-x86_64-1.txz: Upgraded.
n/whois-5.5.23-x86_64-1.txz: Upgraded.
Updated the .sc, .********* (.xn--yfro4i67o, Singapore)
and .********************************* (.xn--clchc0ea0b2g2a9gcd, Singapore)
TLD servers.
extra/bittornado/bittornado-0.3.18-noarch-3.txz: Removed.
Obsolete and based on python2.
Diffstat (limited to 'source/n')
42 files changed, 330 insertions, 13 deletions
diff --git a/source/n/alpine/alpine.SlackBuild b/source/n/alpine/alpine.SlackBuild index 152f25c7f..3e3f3d084 100755 --- a/source/n/alpine/alpine.SlackBuild +++ b/source/n/alpine/alpine.SlackBuild @@ -65,6 +65,9 @@ elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" fi +# GCC 14 "fix": +SLKCFLAGS="$SLKCFLAGS -Wno-error=incompatible-pointer-types" + cd $TMP rm -rf alpine-${VERSION} tar xvf $CWD/alpine-$VERSION.tar.?z || exit 1 diff --git a/source/n/cyrus-sasl/cyrus-sasl.SlackBuild b/source/n/cyrus-sasl/cyrus-sasl.SlackBuild index 89bbf6b5e..e2e628721 100755 --- a/source/n/cyrus-sasl/cyrus-sasl.SlackBuild +++ b/source/n/cyrus-sasl/cyrus-sasl.SlackBuild @@ -63,6 +63,9 @@ else LIBDIRSUFFIX="" fi +# GCC 14 "fix": +SLKCFLAGS="$SLKCFLAGS -Wno-error=implicit-function-declaration" + rm -rf $PKG mkdir -p $TMP $PKG cd $TMP diff --git a/source/n/elm/config.sh b/source/n/elm/config.sh index 52bca7a95..1db7ecca3 100644 --- a/source/n/elm/config.sh +++ b/source/n/elm/config.sh @@ -257,7 +257,7 @@ small='' medium='' large='' huge='' -optimize='-O' +optimize='-O -Wno-error=implicit-function-declaration -Wno-error=implicit-int -Wno-error=return-mismatch' ccflags='' cppflags='' ldflags='' diff --git a/source/n/htdig/htdig.SlackBuild b/source/n/htdig/htdig.SlackBuild index 1ca8264ff..5a1bedda8 100755 --- a/source/n/htdig/htdig.SlackBuild +++ b/source/n/htdig/htdig.SlackBuild @@ -64,6 +64,9 @@ else LIBDIRSUFFIX="" fi +# GCC 14 "fix": +SLKCFLAGS="$SLKCFLAGS -Wno-error=implicit-function-declaration" + cd $TMP rm -rf ${PKGNAM}-${VERSION} tar xvf $CWD/${PKGNAM}-$VERSION.tar.bz2 || exit 1 diff --git a/source/n/icmpinfo/icmpinfo.SlackBuild b/source/n/icmpinfo/icmpinfo.SlackBuild index f5233971e..05883aaa8 100755 --- a/source/n/icmpinfo/icmpinfo.SlackBuild +++ b/source/n/icmpinfo/icmpinfo.SlackBuild @@ -69,6 +69,8 @@ zcat $CWD/icmpinfo-1.11.diff.gz | patch -p1 --backup || exit 1 # Patch to prevent segfault: zcat $CWD/icmpinfo-1.11-time.diff.gz | patch -p1 --backup || exit 1 +export CFLAGS="-O2 -Wno-error=implicit-function-declaration" + make $NUMJOBS || make || exit 1 strip --strip-unneeded icmpinfo diff --git a/source/n/inetd/inetd.SlackBuild b/source/n/inetd/inetd.SlackBuild index f61982aee..b0417dd5c 100755 --- a/source/n/inetd/inetd.SlackBuild +++ b/source/n/inetd/inetd.SlackBuild @@ -60,6 +60,7 @@ cd inetd zcat $CWD/inetd-OpenBSD-1.79.diff.gz | patch -p1 --backup --suffix=.orig --verbose -E zcat $CWD/inetd.loopingdos.diff.gz | patch -p1 --backup --suffix=.orig --verbose -E zcat $CWD/inetd.libtirpc.diff.gz | patch -p1 --backup --suffix=.orig --verbose -E +zcat $CWD/inetd.gcc14.diff.gz | patch -p1 --backup --suffix=.orig --verbose -E # GCC 4 fix (thanks Fred Emmott) sed -i 's#(type)\([a-z]\)=(type)\([a-z]\)#\1=(type)\2#g' inetd.c diff --git a/source/n/inetd/inetd.gcc14.diff b/source/n/inetd/inetd.gcc14.diff new file mode 100644 index 000000000..4053cf978 --- /dev/null +++ b/source/n/inetd/inetd.gcc14.diff @@ -0,0 +1,9 @@ +--- ./Makefile.orig 2024-05-11 12:41:56.282823472 -0500 ++++ ./Makefile 2024-05-11 12:43:08.540825089 -0500 +@@ -1,5 +1,5 @@ + CC = gcc +-CFLAGS = -O2 -I/usr/include/tirpc ++CFLAGS = -O2 -I/usr/include/tirpc -Wno-error=implicit-function-declaration + LDFLAGS = -s -ltirpc + + all: diff --git a/source/n/lftp/lftp.SlackBuild b/source/n/lftp/lftp.SlackBuild index 152f7eb51..cbc5c3648 100755 --- a/source/n/lftp/lftp.SlackBuild +++ b/source/n/lftp/lftp.SlackBuild @@ -73,6 +73,9 @@ rm -rf lftp-$VERSION tar xvf $CWD/lftp-$VERSION.tar.xz || exit 1 cd lftp-$VERSION || exit 1 +zcat $CWD/lftp.c99.patch.gz | patch -p1 --verbose || exit 1 +touch -r aclocal.m4 configure m4/needtrio.m4 + chown -R root:root . find . \ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ diff --git a/source/n/lftp/lftp.c99.patch b/source/n/lftp/lftp.c99.patch new file mode 100644 index 000000000..3e3ec17ec --- /dev/null +++ b/source/n/lftp/lftp.c99.patch @@ -0,0 +1,22 @@ +diff -rup a/configure b/configure +--- a/configure 2023-02-08 21:27:48.733647760 -0500 ++++ b/configure 2023-02-08 21:28:31.201222024 -0500 +@@ -57429,6 +57429,7 @@ else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + ++ #include <stdio.h> + int main() + { + unsigned long long x=0,x1; +diff -rup a/m4/needtrio.m4 b/m4/needtrio.m4 +--- a/m4/needtrio.m4 2016-02-20 08:57:52.000000000 -0500 ++++ b/m4/needtrio.m4 2023-02-08 21:28:13.642571126 -0500 +@@ -9,6 +9,7 @@ AC_DEFUN([LFTP_NEED_TRIO],[ + else + + AC_RUN_IFELSE([AC_LANG_SOURCE([[ ++ #include <stdio.h> + int main() + { + unsigned long long x=0,x1; diff --git a/source/n/links/links.SlackBuild b/source/n/links/links.SlackBuild index ce9ac21a6..a1c31724e 100755 --- a/source/n/links/links.SlackBuild +++ b/source/n/links/links.SlackBuild @@ -72,6 +72,9 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \+ +# GCC 14 "fix": +SLKCFLAGS="$SLKCFLAGS -Wno-error=implicit-int" + # We are configuring this without X as there are MANY browser choices for # X already. If you need a browser for X, either use something else or # recompile. :-) diff --git a/source/n/metamail/metamail.SlackBuild b/source/n/metamail/metamail.SlackBuild index b2126c81a..96cac1bc6 100755 --- a/source/n/metamail/metamail.SlackBuild +++ b/source/n/metamail/metamail.SlackBuild @@ -80,6 +80,7 @@ cd metamail-$VERSION || exit 1 xz -dc $CWD/metamail_2.7-54.diff.xz | patch -p1 || exit 1 xz -dc $CWD/metamail.automake.diff.xz | patch -p1 || exit 1 zcat $CWD/metamail.uue.getline.diff.gz | patch -p1 || exit 1 +cat $CWD/metamail.gcc14.diff | patch -p1 || exit 1 chmod 755 configure @@ -93,7 +94,7 @@ find . \ # Fix misnamed man page: mv man/mmencode.1 man/mimencode.1 -CFLAGS="$SLKCFLAGS" \ +CFLAGS="$SLKCFLAGS -Wno-error=implicit-int" \ ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ @@ -113,7 +114,7 @@ CFLAGS="$SLKCFLAGS" \ mv m.c mailto.c ) -make $NUMJOBS || make || exit 1 +CFLAGS="$SLKCFLAGS -Wno-error=implicit-int" make $NUMJOBS || make || exit 1 ( cd bin cat mailto-hebrew | perl -pi -e 's|/usr/lib/X11/fonts/misc|/usr/share/metamail/fonts|' > mh diff --git a/source/n/metamail/metamail.gcc14.diff b/source/n/metamail/metamail.gcc14.diff new file mode 100644 index 000000000..0c539da9d --- /dev/null +++ b/source/n/metamail/metamail.gcc14.diff @@ -0,0 +1,22 @@ +--- ./src/metamail/Makefile.in.orig 2024-05-10 16:12:29.131173303 -0500 ++++ ./src/metamail/Makefile.in 2024-05-10 16:18:58.068182003 -0500 +@@ -82,7 +82,7 @@ + + MAINTAINERCLEANFILES = Makefile.in + +-CFLAGS = -lncurses ++CFLAGS = -lncurses -Wno-error=return-mismatch -Wno-error=implicit-function-declaration -Wno-error=implicit-int + + INCLUDES = -I$(top_builddir) -I$(top_builddir)/metamail -I$(top_srcdir) -I$(top_srcdir)/metamail + +--- ./src/richmail/Makefile.in.orig 2024-05-10 16:12:29.130173303 -0500 ++++ ./src/richmail/Makefile.in 2024-05-10 16:20:28.612184029 -0500 +@@ -82,7 +82,7 @@ + + MAINTAINERCLEANFILES = Makefile.in + +-CFLAGS = -lncurses ++CFLAGS = -lncurses -Wno-error=return-mismatch -Wno-error=implicit-function-declaration -Wno-error=implicit-int + + INCLUDES = -I$(top_builddir) -I$(top_builddir)/metamail -I$(top_srcdir) -I$(top_srcdir)/metamail + diff --git a/source/n/nc/nc.SlackBuild b/source/n/nc/nc.SlackBuild index dbd003dfc..0e3c4da3a 100755 --- a/source/n/nc/nc.SlackBuild +++ b/source/n/nc/nc.SlackBuild @@ -55,6 +55,9 @@ else SLKCFLAGS="-O2" fi +# GCC 14 "fix": +SLKCFLAGS="$SLKCFLAGS -Wno-error=implicit-function-declaration -Wno-error=implicit-int" + TMP=${TMP:-/tmp} PKG=$TMP/package-nc rm -rf $PKG diff --git a/source/n/ncftp/ncftp.SlackBuild b/source/n/ncftp/ncftp.SlackBuild index a749c0eb2..2daf6f2c1 100755 --- a/source/n/ncftp/ncftp.SlackBuild +++ b/source/n/ncftp/ncftp.SlackBuild @@ -47,13 +47,13 @@ fi NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686 -fcommon" + SLKCFLAGS="-O2 -march=i586 -mtune=i686 -fcommon -std=gnu90" elif [ "$ARCH" = "s390" ]; then - SLKCFLAGS="-O2 -fcommon" + SLKCFLAGS="-O2 -fcommon -std=gnu90" elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC -fcommon" + SLKCFLAGS="-O2 -fPIC -fcommon -std=gnu90" else - SLKCFLAGS="-O2 -fcommon" + SLKCFLAGS="-O2 -fcommon -std=gnu90" fi TMP=${TMP:-/tmp} diff --git a/source/n/netdate/netdate.SlackBuild b/source/n/netdate/netdate.SlackBuild index b84d4d69a..16f6a7d93 100755 --- a/source/n/netdate/netdate.SlackBuild +++ b/source/n/netdate/netdate.SlackBuild @@ -56,6 +56,7 @@ cd netdate || exit 1 zcat $CWD/netdate.diff.gz | patch -p1 --backup || exit zcat $CWD/netdate.diff2.gz | patch -p1 --backup || exit +zcat $CWD/netdate.gcc14.diff.gz | patch -p1 --backup || exit chown -R root:root . find . \ diff --git a/source/n/netdate/netdate.gcc14.diff b/source/n/netdate/netdate.gcc14.diff new file mode 100644 index 000000000..7478afb22 --- /dev/null +++ b/source/n/netdate/netdate.gcc14.diff @@ -0,0 +1,11 @@ +--- ./Makefile.orig 2024-05-11 13:17:31.232871231 -0500 ++++ ./Makefile 2024-05-11 13:18:04.399871973 -0500 +@@ -3,7 +3,7 @@ + + WARNINGS=-Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual \ + -Wstrict-prototypes -Wmissing-prototypes \ +- -Wmissing-declarations -Wnested-externs -Winline -Wcast-align ++ -Wmissing-declarations -Wnested-externs -Winline -Wcast-align -Wno-error=implicit-int + + CFLAGS = -g $(WARNINGS) + diff --git a/source/n/netkit-rsh/netkit-rsh.SlackBuild b/source/n/netkit-rsh/netkit-rsh.SlackBuild index 92a1541f0..cf92c6f99 100755 --- a/source/n/netkit-rsh/netkit-rsh.SlackBuild +++ b/source/n/netkit-rsh/netkit-rsh.SlackBuild @@ -60,7 +60,7 @@ zcat $CWD/netkit-rsh.arg_max.diff.gz | patch -p1 -l --verbose || exit 1 zcat $CWD/netkit-rsh.union_wait.diff.gz | patch -p1 -l --verbose || exit 1 zcat $CWD/netkit-rsh.auth.c.stddef.diff.gz | patch -p1 -l --verbose || exit 1 chown -R root:root . -./configure --prefix=/usr || exit 1 +CC="gcc -std=gnu89" ./configure --prefix=/usr || exit 1 make || exit 1 cd rsh strip rsh diff --git a/source/n/netkit-rusers/netkit-rusers.SlackBuild b/source/n/netkit-rusers/netkit-rusers.SlackBuild index e0ca90e6c..96047f507 100755 --- a/source/n/netkit-rusers/netkit-rusers.SlackBuild +++ b/source/n/netkit-rusers/netkit-rusers.SlackBuild @@ -55,7 +55,7 @@ tar xzvf $CWD/netkit-rusers-$VERSION.tar.gz cd netkit-rusers-$VERSION chown -R root:root . zcat $CWD/netkit-rusers-0.17.diff.gz | patch -p1 || exit 1 -./configure --prefix=/usr +CC="gcc -std=gnu89" ./configure --prefix=/usr # Fixes for libtirpc: sed -i -e 's/Winline/Winline -I\/usr\/include\/tirpc/' MCONFIG diff --git a/source/n/netkit-rwho/netkit-rwho.SlackBuild b/source/n/netkit-rwho/netkit-rwho.SlackBuild index 89c4e8b17..277ccaa63 100755 --- a/source/n/netkit-rwho/netkit-rwho.SlackBuild +++ b/source/n/netkit-rwho/netkit-rwho.SlackBuild @@ -44,6 +44,9 @@ if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then exit 0 fi +# GCC 14 "fix": +export CFLAGS="-Wno-error=incompatible-pointer-types" + TMP=${TMP:-/tmp} PKG=$TMP/package-netkit-rwho diff --git a/source/n/netkit-timed/netkit-timed.SlackBuild b/source/n/netkit-timed/netkit-timed.SlackBuild index 569105a38..b34c18315 100755 --- a/source/n/netkit-timed/netkit-timed.SlackBuild +++ b/source/n/netkit-timed/netkit-timed.SlackBuild @@ -55,7 +55,7 @@ tar xzvf $CWD/netkit-timed-$VERSION.tar.gz || exit 1 cd netkit-timed-$VERSION chown -R root:root . zcat $CWD/netkit-timed-0.17.diff.gz | patch -p1 --backup --verbose --suffix=.orig -E || exit -CFLAGS="-DCLK_TCK=CLOCKS_PER_SEC" ./configure --prefix=/usr +CFLAGS="-DCLK_TCK=CLOCKS_PER_SEC -Wno-error=incompatible-pointer-types" ./configure --prefix=/usr make || exit 1 cd timed/timed strip timed diff --git a/source/n/netpipes/netpipes.SlackBuild b/source/n/netpipes/netpipes.SlackBuild index 43d6c7e92..f5e9a5db1 100755 --- a/source/n/netpipes/netpipes.SlackBuild +++ b/source/n/netpipes/netpipes.SlackBuild @@ -57,6 +57,7 @@ echo "+==============+" echo "| netpipes-$VERSION |" echo "+==============+" cd $TMP +rm -rf netpipes-${VERSION}-export tar xvf $CWD/netpipes-${VERSION}-export.tar.gz || exit 1 cd netpipes-${VERSION}-export mkdir -p $PKG/usr/doc/netpipes-${VERSION}-export @@ -64,7 +65,7 @@ cp -a COPYING README *.html $PKG/usr/doc/netpipes-${VERSION}-export chown root:root $PKG/usr/doc/netpipes-${VERSION}-export/* chmod 644 $PKG/usr/doc/netpipes-${VERSION}-export/* -make || exit 1 +CC="gcc -std=gnu89" make || exit 1 strip encapsulate faucet getpeername hose sockdown timelimit for file in encapsulate faucet getpeername hose sockdown timelimit ; do diff --git a/source/n/netwatch/netwatch.SlackBuild b/source/n/netwatch/netwatch.SlackBuild index 620fab9fe..4d32c16ef 100755 --- a/source/n/netwatch/netwatch.SlackBuild +++ b/source/n/netwatch/netwatch.SlackBuild @@ -57,6 +57,9 @@ else SLKCFLAGS="-O2 -fcommon" fi +# GCC 14 "fix": +SLKCFLAGS="$SLKCFLAGS -Wno-error=implicit-int -Wno-error=implicit-function-declaration" + TMP=${TMP:-/tmp} PKG=$TMP/package-netwatch rm -rf $PKG diff --git a/source/n/nn/nn.SlackBuild b/source/n/nn/nn.SlackBuild index 88fd1c6bd..ab9c7a257 100755 --- a/source/n/nn/nn.SlackBuild +++ b/source/n/nn/nn.SlackBuild @@ -58,6 +58,9 @@ else MFILE="m-i80386.h" fi +# GCC 14 "fix": +SLKCFLAGS="$SLKCFLAGS -Wno-error=implicit-function-declaration" + TMP=${TMP:-/tmp} PKG=$TMP/package-nn diff --git a/source/n/ntp/ntp.SlackBuild b/source/n/ntp/ntp.SlackBuild index 1155df285..4433a4b35 100755 --- a/source/n/ntp/ntp.SlackBuild +++ b/source/n/ntp/ntp.SlackBuild @@ -56,6 +56,9 @@ else SLKCFLAGS="-O2" fi +# GCC 14 "fix": +SLKCFLAGS="$SLKCFLAGS -Wno-error=int-conversion" + TMP=${TMP:-/tmp} PKG=$TMP/package-ntp diff --git a/source/n/obexftp/obexftp.SlackBuild b/source/n/obexftp/obexftp.SlackBuild index d63c6dd6f..2e68f31f9 100755 --- a/source/n/obexftp/obexftp.SlackBuild +++ b/source/n/obexftp/obexftp.SlackBuild @@ -62,6 +62,9 @@ else LIBDIRSUFFIX="" fi +# GCC 14 "fix": +export CC="gcc -Wno-error=int-conversion -Wno-error=implicit-function-declaration" + PYTHON3LIB=$( python3 -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())' ) rm -rf $PKG diff --git a/source/n/openldap/openldap.SlackBuild b/source/n/openldap/openldap.SlackBuild index 4eab73442..783526f36 100755 --- a/source/n/openldap/openldap.SlackBuild +++ b/source/n/openldap/openldap.SlackBuild @@ -68,6 +68,9 @@ else LIBDIRSUFFIX="" fi +# GCC 14 "fix": +SLKCFLAGS="$SLKCFLAGS -Wno-error=incompatible-pointer-types" + TMP=${TMP:-/tmp} PKG=$TMP/package-$PKGNAM diff --git a/source/n/php/php.SlackBuild b/source/n/php/php.SlackBuild index a37ab12dd..425dc4ed8 100755 --- a/source/n/php/php.SlackBuild +++ b/source/n/php/php.SlackBuild @@ -75,6 +75,9 @@ else LIBDIRSUFFIX="" fi +# GCC 14 "fix": +SLKCFLAGS="$SLKCFLAGS -Wno-error=incompatible-pointer-types" + # Look for Kerberos on the machine and in any precompiled c-client.a: if /bin/ls /lib${LIBDIRSUFFIX}/libkrb5.so.? 1> /dev/null 2> /dev/null ; then # Remove the c-client library if it doesn't contain Kerberos support: diff --git a/source/n/pidentd/pidentd.SlackBuild b/source/n/pidentd/pidentd.SlackBuild index 56ba4a1a3..c1bae462a 100755 --- a/source/n/pidentd/pidentd.SlackBuild +++ b/source/n/pidentd/pidentd.SlackBuild @@ -66,7 +66,7 @@ find . \ zcat $CWD/pidentd.conf.diff.gz | patch -p1 --backup --verbose || exit 1 zcat $CWD/pidentd.openssl-1.1.diff.gz | patch -p1 --backup --verbose || exit 1 -CFLAGS=-O2 \ +CFLAGS="-O2 -Wno-error=implicit-function-declaration" \ ./configure \ --prefix=/usr \ --sysconfdir=/etc \ diff --git a/source/n/popa3d/popa3d.SlackBuild b/source/n/popa3d/popa3d.SlackBuild index c3cd6543b..43ff60c2d 100755 --- a/source/n/popa3d/popa3d.SlackBuild +++ b/source/n/popa3d/popa3d.SlackBuild @@ -63,6 +63,8 @@ else zcat $CWD/popa3d.shadow.diff.gz | patch -p1 --verbose --backup --suffix=.orig || exit 1 fi +zcat $CWD/popa3d.gcc14.diff.gz | patch -p1 --verbose || exit 1 + chown -R root:root . find . \ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ diff --git a/source/n/popa3d/popa3d.gcc14.diff b/source/n/popa3d/popa3d.gcc14.diff new file mode 100644 index 000000000..932b57741 --- /dev/null +++ b/source/n/popa3d/popa3d.gcc14.diff @@ -0,0 +1,11 @@ +--- ./Makefile.orig 2024-05-11 14:15:26.383948970 -0500 ++++ ./Makefile 2024-05-11 14:16:03.483949800 -0500 +@@ -3,7 +3,7 @@ + RM = rm -f + MKDIR = mkdir -p + INSTALL = install -c +-CFLAGS = -Wall -O2 -fomit-frame-pointer ++CFLAGS = -Wall -O2 -fomit-frame-pointer -Wno-error=implicit-function-declaration -Wno-error=int-conversion + # You may use OpenSSL's MD5 routines instead of the ones supplied here + CFLAGS += -DHAVE_OPENSSL + LDFLAGS = -s diff --git a/source/n/ppp/ppp.SlackBuild b/source/n/ppp/ppp.SlackBuild index 9504fca35..a71345dbd 100755 --- a/source/n/ppp/ppp.SlackBuild +++ b/source/n/ppp/ppp.SlackBuild @@ -82,6 +82,8 @@ rm -f include/linux/if_pppol2tp.h zcat $CWD/ppp.CVE-2015-3310.diff.gz | patch -p1 --verbose || exit 1 +cat $CWD/ppp.gcc14.diff | patch -p1 --verbose || exit 1 + # Choose correct options depending on whether PAM is installed: if [ -L /lib${LIBDIRSUFFIX}/libpam.so.? ]; then PAM_OPTIONS="USE_PAM=y" diff --git a/source/n/ppp/ppp.gcc14.diff b/source/n/ppp/ppp.gcc14.diff new file mode 100644 index 000000000..a8c12efc8 --- /dev/null +++ b/source/n/ppp/ppp.gcc14.diff @@ -0,0 +1,11 @@ +--- ./configure.orig 2021-01-04 17:06:37.000000000 -0600 ++++ ./configure 2024-05-10 20:18:35.477503626 -0500 +@@ -20,7 +20,7 @@ + makext="linux"; + ksrc="linux"; + state="known"; +- CFLAGS="-O2 -g -pipe";; ++ CFLAGS="-O2 -g -pipe -Wno-error=incompatible-pointer-types";; + SunOS) + karch=`/usr/bin/isainfo -k` + case $release in diff --git a/source/n/procmail/procmail.SlackBuild b/source/n/procmail/procmail.SlackBuild index 8e8821ad6..ab6ce8440 100755 --- a/source/n/procmail/procmail.SlackBuild +++ b/source/n/procmail/procmail.SlackBuild @@ -57,7 +57,10 @@ cd $TMP rm -rf procmail-$VERSION tar xvf $CWD/procmail-$VERSION.tar.?z || exit 1 cd procmail-$VERSION || exit 1 + zcat $CWD/procmail.lfs.diff.gz | patch -p1 --verbose || exit 1 +zcat $CWD/procmail.gcc14.diff.gz | patch -p1 --verbose || exit 1 + chown -R root:root . find . \ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ diff --git a/source/n/procmail/procmail.gcc14.diff b/source/n/procmail/procmail.gcc14.diff new file mode 100644 index 000000000..1fcc8fd26 --- /dev/null +++ b/source/n/procmail/procmail.gcc14.diff @@ -0,0 +1,12 @@ +--- ./Makefile.orig 2024-05-11 14:25:05.399961923 -0500 ++++ ./Makefile 2024-05-11 14:25:19.301962234 -0500 +@@ -86,7 +86,8 @@ + #-Wimplicit -Wshadow -Wid-clash-6 #-Wuninitialized + + # The place to put your favourite extra cc flag +-CFLAGS0 = -O -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 #$(GCC_WARNINGS) ++CFLAGS0 = -O -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-error=implicit-int -Wno-error=implicit-function-declaration #$(GCC_WARNINGS) ++ + LDFLAGS0= -s + # Read my libs :-) + LIBS= diff --git a/source/n/rp-pppoe/rp-pppoe.SlackBuild b/source/n/rp-pppoe/rp-pppoe.SlackBuild index d777bfebc..a0e0d04b0 100755 --- a/source/n/rp-pppoe/rp-pppoe.SlackBuild +++ b/source/n/rp-pppoe/rp-pppoe.SlackBuild @@ -56,6 +56,9 @@ else SLKCFLAGS="-O2" fi +# GCC 14 "fix": +SLKCFLAGS="$SLKCFLAGS -Wno-error=implicit-function-declaration" + TMP=${TMP:-/tmp} PKG=$TMP/package-rp-pppoe diff --git a/source/n/slrn/slrn.SlackBuild b/source/n/slrn/slrn.SlackBuild index ff6225c5b..060d751d4 100755 --- a/source/n/slrn/slrn.SlackBuild +++ b/source/n/slrn/slrn.SlackBuild @@ -60,6 +60,9 @@ else LIBDIRSUFFIX="" fi +# GCC 14 "fix": +SLKCFLAGS="$SLKCFLAGS -Wno-error=implicit-function-declaration" + TMP=${TMP:-/tmp} PKG=$TMP/package-slrn rm -rf $PKG diff --git a/source/n/tcp_wrappers/tcp_wrappers.SlackBuild b/source/n/tcp_wrappers/tcp_wrappers.SlackBuild index 8ab33d2d8..17ed0da43 100755 --- a/source/n/tcp_wrappers/tcp_wrappers.SlackBuild +++ b/source/n/tcp_wrappers/tcp_wrappers.SlackBuild @@ -74,7 +74,7 @@ sh extract-and-patch.sh cd tcp_wrappers_$VERSION || exit 1 # Fix for glibc-2.32: sed -i "s/-DHAVE_WEAKSYMS/-DHAVE_WEAKSYMS -DHAVE_STRERROR/g" Makefile -make REAL_DAEMON_DIR=/usr/sbin linux || exit 1 +make CC="gcc -std=gnu90" REAL_DAEMON_DIR=/usr/sbin linux || exit 1 strip tcpd safe_finger tcpdchk tcpdmatch try-from mkdir -p $PKG/usr/lib${LIBDIRSUFFIX} cat libwrap.a > $PKG/usr/lib${LIBDIRSUFFIX}/libwrap.a diff --git a/source/n/telnet/telnet.SlackBuild b/source/n/telnet/telnet.SlackBuild index 2857a17c8..efddb6512 100755 --- a/source/n/telnet/telnet.SlackBuild +++ b/source/n/telnet/telnet.SlackBuild @@ -57,6 +57,7 @@ cd netkit-telnet-$VERSION || exit 1 chown -R root:root . zcat $CWD/netkit-telnet-0.17.diff.gz | patch -p1 --verbose --backup --suffix=.orig || exit 1 zcat $CWD/netkit-telnet-0.17-ayt.patch.gz | patch -p1 --verbose --backup --suffix=.orig || exit 1 +CFLAGS="-Wno-error=implicit-int" \ ./configure --prefix=/usr || exit 1 cd telnetd make || exit 1 diff --git a/source/n/tftp-hpa/tftp-hpa.SlackBuild b/source/n/tftp-hpa/tftp-hpa.SlackBuild index d31ad247d..9d4bc95c8 100755 --- a/source/n/tftp-hpa/tftp-hpa.SlackBuild +++ b/source/n/tftp-hpa/tftp-hpa.SlackBuild @@ -67,6 +67,9 @@ find . \ # Add -fcommon to CFLAGS: zcat $CWD/tftp-hpa.fcommon.diff.gz | patch -p1 --verbose || exit 1 +# Unerror what was a warning prior to GCC 14: +zcat $CWD/tftp-hpa.gcc14.diff.gz | patch -p1 --verbose || exit 1 + ./configure --prefix=/usr make $NUMJOBS || make || exit 1 diff --git a/source/n/tftp-hpa/tftp-hpa.gcc14.diff b/source/n/tftp-hpa/tftp-hpa.gcc14.diff new file mode 100644 index 000000000..2b786cb79 --- /dev/null +++ b/source/n/tftp-hpa/tftp-hpa.gcc14.diff @@ -0,0 +1,11 @@ +--- ./MCONFIG.in.orig 2024-05-12 00:09:10.358745878 -0500 ++++ ./MCONFIG.in 2024-05-12 00:10:29.981747659 -0500 +@@ -51,7 +51,7 @@ + + # Compiler and compiler flags + CC = @CC@ +-CFLAGS = @CFLAGS@ -I$(SRCROOT) -fcommon ++CFLAGS = @CFLAGS@ -I$(SRCROOT) -fcommon -Wno-error=implicit-function-declaration + + # Link flags + LDFLAGS = @LDFLAGS@ diff --git a/source/n/uucp/uucp-configure-c99.patch b/source/n/uucp/uucp-configure-c99.patch new file mode 100644 index 000000000..480d6225a --- /dev/null +++ b/source/n/uucp/uucp-configure-c99.patch @@ -0,0 +1,140 @@ +Fix several C99 compatibility issues in the configure script. Most +of them are specific to the uucp package. + +Submitted upstream: <https://savannah.gnu.org/bugs/index.php?63647> + +diff --git a/configure b/configure +index 4cced27226101612..77336b5f0a1ba20d 100755 +--- a/configure ++++ b/configure +@@ -1280,7 +1280,7 @@ cat > conftest.$ac_ext << EOF + #line 1281 "configure" + #include "confdefs.h" + +-main(){return(0);} ++int main(){return(0);} + EOF + if { (eval echo configure:1286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + ac_cv_prog_cc_works=yes +@@ -3025,6 +3025,7 @@ else + cat > conftest.$ac_ext <<EOF + #line 3027 "configure" + #include "confdefs.h" ++extern void exit (); + + int main() { + extern void foo (); (void) exit (0); +@@ -3153,6 +3154,7 @@ else + cat > conftest.$ac_ext <<EOF + #line 3155 "configure" + #include "confdefs.h" ++#include <string.h> + + int main() { + char *i; int j, k; memset(i, j, k); +@@ -3185,6 +3187,7 @@ else + cat > conftest.$ac_ext <<EOF + #line 3187 "configure" + #include "confdefs.h" ++#include <string.h> + + int main() { + char *i, *j; int k; memcmp(i, j, k); +@@ -3217,6 +3220,7 @@ else + cat > conftest.$ac_ext <<EOF + #line 3219 "configure" + #include "confdefs.h" ++#include <string.h> + + int main() { + char *i, *j; int k; memcpy(i, j, k); +@@ -3894,7 +3898,7 @@ else + + #include <sys/types.h> + #include <sys/timeb.h> +-main () ++int main () + { + struct timeb s, slast; + int c = 0; +@@ -3904,13 +3908,13 @@ main () + ftime (&s); + if (s.time < slast.time + || (s.time == slast.time && s.millitm < slast.millitm)) +- exit (1); ++ return 1; + if (s.time != slast.time) + ++c; + slast.time = s.time; + slast.millitm = s.millitm; + } +- exit (0); ++ return 0; + } + + EOF +diff --git a/configure.in b/configure.in +index 452cf793f9ecc575..a788d07d123c7744 100644 +--- a/configure.in ++++ b/configure.in +@@ -278,7 +278,7 @@ fi + dnl + AC_MSG_CHECKING(for void) + AC_CACHE_VAL(uucp_cv_c_void, +-[AC_TRY_COMPILE([], [extern void foo (); (void) exit (0);], ++[AC_TRY_COMPILE([extern void exit ();], [extern void foo (); (void) exit (0);], + uucp_cv_c_void=yes, uucp_cv_c_void=no)]) + AC_MSG_RESULT($uucp_cv_c_void) + if test $uucp_cv_c_void = yes; then +@@ -318,7 +318,7 @@ dnl On some systems, memset, memcmp, and memcpy must be called with + dnl the right number of arguments. + AC_MSG_CHECKING(for memset) + AC_CACHE_VAL(ac_cv_func_memset, +-[AC_TRY_LINK([], [ char *i; int j, k; memset(i, j, k); ], ++[AC_TRY_LINK([#include <string.h>], [ char *i; int j, k; memset(i, j, k); ], + ac_cv_func_memset=yes, ac_cv_func_memset=no)]) + AC_MSG_RESULT($ac_cv_func_memset) + if test $ac_cv_func_memset = yes; then +@@ -327,7 +327,7 @@ fi + dnl + AC_MSG_CHECKING(for memcmp) + AC_CACHE_VAL(ac_cv_func_memcmp, +-[AC_TRY_LINK([], [ char *i, *j; int k; memcmp(i, j, k); ], ++[AC_TRY_LINK([#include <string.h>], [ char *i, *j; int k; memcmp(i, j, k); ], + ac_cv_func_memcmp=yes, ac_cv_func_memcmp=no)]) + AC_MSG_RESULT($ac_cv_func_memcmp) + if test $ac_cv_func_memcmp = yes; then +@@ -336,7 +336,7 @@ fi + dnl + AC_MSG_CHECKING(for memcpy) + AC_CACHE_VAL(ac_cv_func_memcpy, +-[AC_TRY_LINK([], [ char *i, *j; int k; memcpy(i, j, k); ], ++[AC_TRY_LINK([#include <string.h>], [ char *i, *j; int k; memcpy(i, j, k); ], + ac_cv_func_memcpy=yes, ac_cv_func_memcpy=no)]) + AC_MSG_RESULT($ac_cv_func_memcpy) + if test $ac_cv_func_memcpy = yes; then +@@ -373,7 +373,7 @@ AC_CACHE_VAL(uucp_cv_sys_ftime_ok, + [AC_TRY_RUN([ + #include <sys/types.h> + #include <sys/timeb.h> +-main () ++int main () + { + struct timeb s, slast; + int c = 0; +@@ -383,13 +383,13 @@ main () + ftime (&s); + if (s.time < slast.time + || (s.time == slast.time && s.millitm < slast.millitm)) +- exit (1); ++ return 1; + if (s.time != slast.time) + ++c; + slast.time = s.time; + slast.millitm = s.millitm; + } +- exit (0); ++ return 0; + } + ], + uucp_cv_sys_ftime_ok=yes, diff --git a/source/n/uucp/uucp.SlackBuild b/source/n/uucp/uucp.SlackBuild index f27d57555..1cd43740d 100755 --- a/source/n/uucp/uucp.SlackBuild +++ b/source/n/uucp/uucp.SlackBuild @@ -54,6 +54,9 @@ else SLKCFLAGS="-O2" fi +# GCC 14 "fix": +SLKCFLAGS="$SLKCFLAGS -Wno-error=implicit-int -Wno-error=incompatible-pointer-types" + TMP=${TMP:-/tmp} PKG=$TMP/package-uucp @@ -68,6 +71,9 @@ cd $TMP rm -rf uucp-$VERSION tar xvf $CWD/uucp-$VERSION.tar.gz || exit 1 cd uucp-$VERSION || exit 1 + +cat $CWD/uucp-configure-c99.patch | patch -p1 --verbose || exit 1 + zcat $CWD/policy.h.diff.gz | patch -p1 --verbose || exit 1 CFLAGS="$SLKCFLAGS" \ ./configure \ |