summaryrefslogtreecommitdiff
path: root/development/jasspa
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2022-02-12 09:34:13 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-02-13 09:18:01 +0700
commit6ffac324fc2b4e417beb9156164a5ada8b877ca4 (patch)
treed8aa17a91498ea32bcfc3e6f0cb454f96b912edf /development/jasspa
parentee915c6339ab974e402184107e1e81fc0d0e7cc8 (diff)
downloadslackbuilds-6ffac324fc2b4e417beb9156164a5ada8b877ca4.tar.gz
development/jasspa: Patch for glibc >= 2.32.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/jasspa')
-rw-r--r--development/jasspa/20091011-glibc-2.32.patch57
-rw-r--r--development/jasspa/jasspa.SlackBuild5
2 files changed, 61 insertions, 1 deletions
diff --git a/development/jasspa/20091011-glibc-2.32.patch b/development/jasspa/20091011-glibc-2.32.patch
new file mode 100644
index 0000000000..7e2f57c934
--- /dev/null
+++ b/development/jasspa/20091011-glibc-2.32.patch
@@ -0,0 +1,57 @@
+Fix compilation with glibc-2.32.
+
+--- me091011-orig/src/file.c
++++ me091011/src/file.c
+@@ -1325,7 +1325,7 @@
+ )
+ {
+ /* READ ONLY DIR */
+- mlwrite(MWPAUSE,(meUByte *)"%s: %s", dirbuf, sys_errlist[errno]);
++ mlwrite(MWPAUSE,(meUByte *)"%s: %s", dirbuf, strerror(errno));
+ /* Zap the filename - it is invalid.
+ We only want a buffer */
+ mlwrite (0,(meUByte *)"[New buffer %s]", getFileBaseName(fname));
+@@ -1355,7 +1355,7 @@
+ {
+ /* We are not allowed to read the file */
+ #if ((defined _UNIX) || (defined _DOS))
+- mlwrite(MWABORT,(meUByte *)"[%s: %s]", fn, sys_errlist[errno]) ;
++ mlwrite(MWABORT,(meUByte *)"[%s: %s]", fn, strerror(errno)) ;
+ #else
+ mlwrite(MWABORT,"[cannot read: %s]", fn) ;
+ #endif
+--- me091011-orig/src/fileio.c
++++ me091011/src/fileio.c
+@@ -2331,7 +2331,7 @@
+ if(meRename(filename,filename2) && (ffFileOp(filename,filename2,meRWFLAG_DELETE,-1) <= 0))
+ {
+ mlwrite(MWABORT|MWPAUSE,(meUByte *)"[Unable to backup file to %s (%d - %s)]",
+- filename2,errno,sys_errlist[errno]) ;
++ filename2,errno,strerror(errno)) ;
+ if(meUnlink(filename))
+ {
+ mlwrite(MWABORT|MWPAUSE,(meUByte *)"[Unable to remove backup file %s]", filename) ;
+@@ -2346,7 +2346,7 @@
+ mlwrite(MWABORT|MWPAUSE,(meUByte *)"[Unable to remove backup file %s]", filename) ;
+ else if(meRename(filenameOld,filename) && (ffFileOp(filenameOld,filename,meRWFLAG_DELETE,-1) <= 0))
+ mlwrite(MWABORT|MWPAUSE,(meUByte *)"[Unable to backup file to %s (%d - %s)]",
+- filename,errno,sys_errlist[errno]) ;
++ filename,errno,strerror(errno)) ;
+ else if(bp != NULL)
+ {
+ meUShort ss;
+--- me091011-orig/src/spawn.c
++++ me091011/src/spawn.c
+@@ -219,10 +219,10 @@
+ case 0:
+ /* we want the children to die on interrupt */
+ execlp("xterm", "xterm", "-sl", "200", "-sb", NULL);
+- mlwrite(MWABORT,(meUByte *)"exec failed, %s", sys_errlist[errno]);
++ mlwrite(MWABORT,(meUByte *)"exec failed, %s", strerror(errno));
+ meExit(127);
+ case -1:
+- ss = mlwrite(MWABORT,(meUByte *)"exec failed, %s", sys_errlist[errno]);
++ ss = mlwrite(MWABORT,(meUByte *)"exec failed, %s", strerror(errno));
+ default:
+ ss = meTRUE ;
+ }
diff --git a/development/jasspa/jasspa.SlackBuild b/development/jasspa/jasspa.SlackBuild
index c52bcfd44c..6d9160e028 100644
--- a/development/jasspa/jasspa.SlackBuild
+++ b/development/jasspa/jasspa.SlackBuild
@@ -70,7 +70,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf me$VERSION
-tar xzf $CWD/$PRGNAM-mesrc-20$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-mesrc-20$VERSION.tar.gz
cd me$VERSION
chown -R root:root .
find -L . \
@@ -79,6 +79,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# Thnx Gentoo!
+patch -p1 < $CWD/20091011-glibc-2.32.patch
+
cd src
sed -i -e "s/\\(COPTIMISE\\s*=\\s*\\)-O3\\(.*\\)/\\1$SLKCFLAGS\\2/" linux2.gmk
sed -i -e "s/\\(COPTIMISE\\s*=\\s*\\)-O3\\(.*\\)/\\1$SLKCFLAGS\\2/" linux26.gmk