summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Woodfall <dave@slackbuilds.org>2021-04-20 04:59:31 +0000
committerRobby Workman <rworkman@slackbuilds.org>2021-04-20 17:53:21 -0500
commit0fde0c216f445374c292fd9e6d6baa2682ebe709 (patch)
tree306f239d6575a8d70a058debfe141c4d74d7ef4f
parent424ce1dd82fe4cd10afa21082bfac4923a33cff9 (diff)
downloadslackbuilds-0fde0c216f445374c292fd9e6d6baa2682ebe709.tar.gz
audio/nas: Patch for llvm 11.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
-rw-r--r--audio/nas/nas.SlackBuild11
-rw-r--r--audio/nas/patch-llvm11.patch11
2 files changed, 19 insertions, 3 deletions
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()