audio/nas: Patch for llvm 11.

Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
This commit is contained in:
Dave Woodfall 2021-04-20 04:59:31 +00:00 committed by Robby Workman
parent 424ce1dd82
commit 0fde0c216f
2 changed files with 19 additions and 3 deletions

View File

@ -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

View File

@ -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()