From 0fde0c216f445374c292fd9e6d6baa2682ebe709 Mon Sep 17 00:00:00 2001 From: Dave Woodfall Date: Tue, 20 Apr 2021 04:59:31 +0000 Subject: audio/nas: Patch for llvm 11. Signed-off-by: Dave Woodfall --- audio/nas/nas.SlackBuild | 11 ++++++++--- audio/nas/patch-llvm11.patch | 11 +++++++++++ 2 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 audio/nas/patch-llvm11.patch (limited to 'audio/nas') diff --git a/audio/nas/nas.SlackBuild b/audio/nas/nas.SlackBuild index f4f0e1ef4a..cdc965996f 100644 --- a/audio/nas/nas.SlackBuild +++ b/audio/nas/nas.SlackBuild @@ -68,6 +68,10 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# Thanks to Gregory Guy for pointing me at the patch +# https://aur.archlinux.org/cgit/aur.git/tree/patch-llvm11.patch?h=nas +patch -p0 < $CWD/patch-llvm11.patch + xmkmf cd config CFLAGS="$SLKCFLAGS" \ @@ -79,12 +83,13 @@ CXXFLAGS="$SLKCFLAGS" \ --localstatedir=/var \ --mandir=/usr/man \ --infodir=/usr/info \ + --disable-static \ --build=$ARCH-slackware-linux cd .. -# Multiple jobs fails -make -j1 World -make install.man install DESTDIR=$PKG +# Multiple jobs fail +make -j1 AR="ar cq" World +make -j1 install.man install DESTDIR=$PKG find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true diff --git a/audio/nas/patch-llvm11.patch b/audio/nas/patch-llvm11.patch new file mode 100644 index 0000000000..8d9d7dcc09 --- /dev/null +++ b/audio/nas/patch-llvm11.patch @@ -0,0 +1,11 @@ +--- server/dia/main.c.orig 2020-08-22 22:22:28 UTC ++++ server/dia/main.c +@@ -76,7 +76,7 @@ static char *AuServerName(void); + extern char *display; + + static int restart = 0; +-FILE *yyin; /* for the config parser */ ++extern FILE *yyin; /* for the config parser */ + + void + NotImplemented() -- cgit v1.2.3-80-g2a13