From daeace651417cf5f9918ee634bd721332318b4e5 Mon Sep 17 00:00:00 2001 From: Dave Woodfall Date: Fri, 25 Feb 2022 20:56:12 +0000 Subject: [PATCH] network/pmacct: Add -fcommon to CFLAGS. Removed the VERSION adjustment, which doesn't seem necessary. Signed-off-by: Dave Woodfall Signed-off-by: Willy Sudiarto Raharjo --- network/pmacct/pmacct.SlackBuild | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/network/pmacct/pmacct.SlackBuild b/network/pmacct/pmacct.SlackBuild index 1dd2769e29..1ed93b8cb4 100644 --- a/network/pmacct/pmacct.SlackBuild +++ b/network/pmacct/pmacct.SlackBuild @@ -28,7 +28,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=pmacct VERSION=${VERSION:-1.7.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -44,7 +44,7 @@ fi # the name of the created package would be, and then exit. This information # could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then - echo "$PRGNAM-$(echo $VERSION | tr - _)-$ARCH-$BUILD$TAG.$PKGTYPE" + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 fi @@ -80,7 +80,7 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -CFLAGS="$SLKCFLAGS" \ +CFLAGS="$SLKCFLAGS -fcommon" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ @@ -105,4 +105,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | tr - _)-$ARCH-$BUILD$TAG.$PKGTYPE +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE