From 82a7595fa5d426617257d79ede7bf0cdcb356fae Mon Sep 17 00:00:00 2001 From: Andy Fiddaman Date: Tue, 3 Dec 2024 20:00:09 +0000 Subject: [PATCH] sccs: fix build with gcc14 --- build/sccs/build.sh | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/build/sccs/build.sh b/build/sccs/build.sh index b574b9c199..dfd7a80488 100755 --- a/build/sccs/build.sh +++ b/build/sccs/build.sh @@ -12,12 +12,13 @@ # http://www.illumos.org/license/CDDL. # }}} -# Copyright 2022 OmniOS Community Edition (OmniOSce) Association. +# Copyright 2024 OmniOS Community Edition (OmniOSce) Association. . ../../lib/build.sh PROG=sccs VER=5.09 +DASHREV=1 PKG=developer/versioning/sccs SUMMARY="Source Code Control System (SCCS)" DESC="The POSIX standard Source Code Control System (SCCS)" @@ -39,16 +40,23 @@ configure_arch() { :; } MAKE="dmake" MAKE_ARGS="CCOM=gcc32" MAKE_ARGS_WS=" - COPTX=\"$CTF_CFLAGS $SSPFLAGS\" - LDOPTX=\"$CTF_CFLAGS $SSPFLAGS\" + COPTX=\"$CTF_CFLAGS $SSPFLAGS -fpermissive\" + LDOPTX=\"$CTF_CFLAGS $SSPFLAGS -fpermissive\" " MAKE_INSTALL_ARGS="$MAKE_ARGS" +run_test() { + egrep -s '#[[:space:]]*define[[:space:]]*SIZEOF_INT[[:space:]]*4$' \ + $TMPDIR/$BUILDDIR/include/schily/xmconfig.h \ + || logerr "Configure failed to detect type sizes" +} + init prep_build download_source $PROG $PROG $VER patch_source build +run_test make_package clean_up