diff options
author | Heiko Rosemann <heiko.rosemann@web.de> | 2020-06-02 07:48:41 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-06-02 07:48:41 +0700 |
commit | e721f1cd32972cbe8d98b016dc4ede3fe14567c8 (patch) | |
tree | 90c8dc3556a38c9075cdb38590cc5eb031990ee9 | |
parent | 68ec6aa04309872ff01b992e8bf33c40a8fdc176 (diff) | |
download | slackbuilds-e721f1cd32972cbe8d98b016dc4ede3fe14567c8.tar.gz |
libraries/libxdg-basedir: Moved from development and patched.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | libraries/libxdg-basedir/README (renamed from development/libxdg-basedir/README) | 0 | ||||
-rw-r--r-- | libraries/libxdg-basedir/alloc_buffer.patch | 13 | ||||
-rw-r--r-- | libraries/libxdg-basedir/libxdg-basedir.SlackBuild (renamed from development/libxdg-basedir/libxdg-basedir.SlackBuild) | 9 | ||||
-rw-r--r-- | libraries/libxdg-basedir/libxdg-basedir.info (renamed from development/libxdg-basedir/libxdg-basedir.info) | 0 | ||||
-rw-r--r-- | libraries/libxdg-basedir/slack-desc (renamed from development/libxdg-basedir/slack-desc) | 0 |
5 files changed, 20 insertions, 2 deletions
diff --git a/development/libxdg-basedir/README b/libraries/libxdg-basedir/README index 779e88ba69..779e88ba69 100644 --- a/development/libxdg-basedir/README +++ b/libraries/libxdg-basedir/README diff --git a/libraries/libxdg-basedir/alloc_buffer.patch b/libraries/libxdg-basedir/alloc_buffer.patch new file mode 100644 index 0000000000..4726e58dbf --- /dev/null +++ b/libraries/libxdg-basedir/alloc_buffer.patch @@ -0,0 +1,13 @@ +Index: libxdg-basedir-1.2.0/src/basedir.c +=================================================================== +--- libxdg-basedir-1.2.0.orig/src/basedir.c 2014-02-11 19:56:41.702376488 +0100 ++++ libxdg-basedir-1.2.0/src/basedir.c 2014-02-11 19:56:41.698376482 +0100 +@@ -574,7 +574,7 @@ + unsigned int homelen; + if (!(home = xdgGetEnv("HOME"))) + return NULL; +- if (!(relhome = (char*)malloc((homelen = strlen(home))+fallbacklength))) return NULL; ++ if (!(relhome = (char*)malloc((homelen = strlen(home))+fallbacklength+1))) return NULL; + memcpy(relhome, home, homelen); + memcpy(relhome+homelen, relativefallback, fallbacklength+1); + } diff --git a/development/libxdg-basedir/libxdg-basedir.SlackBuild b/libraries/libxdg-basedir/libxdg-basedir.SlackBuild index 191ff86dab..3961105469 100644 --- a/development/libxdg-basedir/libxdg-basedir.SlackBuild +++ b/libraries/libxdg-basedir/libxdg-basedir.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for libxdg-basedir -# Copyright 2013 Heiko Rosemann Germany +# Copyright 2013-2020 Heiko Rosemann Germany # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,7 +26,7 @@ PRGNAM=libxdg-basedir VERSION=${VERSION:-1.2.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -64,6 +64,11 @@ cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.?z* cd $PRGNAM-$VERSION + +# Fix upstream bug in wrong memory allocation: +# https://sources.debian.org/patches/libxdg-basedir/1.2.0-2/alloc_buffer.patch/ +patch -p1 < $CWD/alloc_buffer.patch + chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ diff --git a/development/libxdg-basedir/libxdg-basedir.info b/libraries/libxdg-basedir/libxdg-basedir.info index c1c8c17721..c1c8c17721 100644 --- a/development/libxdg-basedir/libxdg-basedir.info +++ b/libraries/libxdg-basedir/libxdg-basedir.info diff --git a/development/libxdg-basedir/slack-desc b/libraries/libxdg-basedir/slack-desc index 0b859196b0..0b859196b0 100644 --- a/development/libxdg-basedir/slack-desc +++ b/libraries/libxdg-basedir/slack-desc |