diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2022-02-16 20:25:28 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-02-17 12:59:53 +0700 |
commit | 2b827b717371f4a8860598cc59704bf648b0b3fb (patch) | |
tree | 5b9c8d416f6df8c6210cfcc91b382a19d1adbc4a /development/mg-openbsd | |
parent | 2a65ba16b341d486208a537a1db79b0f95411790 (diff) |
development/mg-openbsd: Fix for gcc >= 10.x, cleanups.
Change kernel header location
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/mg-openbsd')
-rw-r--r-- | development/mg-openbsd/mg-openbsd.SlackBuild | 12 | ||||
-rw-r--r-- | development/mg-openbsd/mg-openbsd.info | 2 |
2 files changed, 8 insertions, 6 deletions
diff --git a/development/mg-openbsd/mg-openbsd.SlackBuild b/development/mg-openbsd/mg-openbsd.SlackBuild index 4906f8b94faf6..b5c6fbaea8e40 100644 --- a/development/mg-openbsd/mg-openbsd.SlackBuild +++ b/development/mg-openbsd/mg-openbsd.SlackBuild @@ -32,7 +32,7 @@ PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -50,8 +50,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -70,7 +70,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$VERSION.tar.gz || tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -79,7 +79,9 @@ 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" \ +sed -i "s|sys/sysctl|linux/sysctl|" compat/getentropy_linux.c + +CFLAGS="$SLKCFLAGS -w -Wl,--allow-multiple-definition" \ CXXFLAGS="$SLKCFLAGS" \ PREFIX=/usr \ MANDIR=/usr/man \ diff --git a/development/mg-openbsd/mg-openbsd.info b/development/mg-openbsd/mg-openbsd.info index 2bf895eb659b6..5057ade0e42e9 100644 --- a/development/mg-openbsd/mg-openbsd.info +++ b/development/mg-openbsd/mg-openbsd.info @@ -1,7 +1,7 @@ PRGNAM="mg-openbsd" VERSION="5.6.0" HOMEPAGE="https://github.com/scott-parker/mg-openbsd" -DOWNLOAD="https://github.com/scott-parker/mg-openbsd/archive/5.6.0.tar.gz" +DOWNLOAD="https://github.com/scott-parker/mg-openbsd/archive/5.6.0/mg-openbsd-5.6.0.tar.gz" MD5SUM="5bea24090965b3c0659156130b40c16e" DOWNLOAD_x86_64="" MD5SUM_x86_64="" |