diff options
author | newHeiko <35038740+newHeiko@users.noreply.github.com> | 2022-02-04 22:28:11 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-02-05 08:49:33 +0700 |
commit | 85b464784df0f2b58075f787dbcc817b4c87b8d8 (patch) | |
tree | 4de250debe9000fd0259c76e257c243dfe120741 /libraries | |
parent | 8d1df38af68937a2ebd36943daf3dbc98e55f9b7 (diff) |
libraries/libxdg-basedir: Update for version 1.2.2.
Also switched to a better maitained fork.
This version already includes the patch.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/libxdg-basedir/alloc_buffer.patch | 13 | ||||
-rw-r--r-- | libraries/libxdg-basedir/libxdg-basedir.SlackBuild | 13 | ||||
-rw-r--r-- | libraries/libxdg-basedir/libxdg-basedir.info | 8 |
3 files changed, 9 insertions, 25 deletions
diff --git a/libraries/libxdg-basedir/alloc_buffer.patch b/libraries/libxdg-basedir/alloc_buffer.patch deleted file mode 100644 index 4726e58dbf184..0000000000000 --- a/libraries/libxdg-basedir/alloc_buffer.patch +++ /dev/null @@ -1,13 +0,0 @@ -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/libraries/libxdg-basedir/libxdg-basedir.SlackBuild b/libraries/libxdg-basedir/libxdg-basedir.SlackBuild index 44c6425f062db..8d22bc78ff14c 100644 --- a/libraries/libxdg-basedir/libxdg-basedir.SlackBuild +++ b/libraries/libxdg-basedir/libxdg-basedir.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for libxdg-basedir -# Copyright 2013-2020 Heiko Rosemann Germany +# Copyright 2013-2021 Heiko Rosemann Germany # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -27,8 +27,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=libxdg-basedir -VERSION=${VERSION:-1.2.0} -BUILD=${BUILD:-2} +VERSION=${VERSION:-1.2.2} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -75,10 +75,6 @@ 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 \) \ @@ -88,7 +84,8 @@ find -L . \ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ -./autogen.sh \ +./autogen.sh +./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ diff --git a/libraries/libxdg-basedir/libxdg-basedir.info b/libraries/libxdg-basedir/libxdg-basedir.info index c1c8c17721437..8bde72ae2f096 100644 --- a/libraries/libxdg-basedir/libxdg-basedir.info +++ b/libraries/libxdg-basedir/libxdg-basedir.info @@ -1,8 +1,8 @@ PRGNAM="libxdg-basedir" -VERSION="1.2.0" -HOMEPAGE="https://github.com/devnev/libxdg-basedir" -DOWNLOAD="http://ponce.cc/slackware/sources/repo/libxdg-basedir-1.2.0.tar.xz" -MD5SUM="a787404b113b8bb8cd91403c8bbefcbd" +VERSION="1.2.2" +HOMEPAGE="https://github.com/davmac314/libxdg-basedir" +DOWNLOAD="https://github.com/davmac314/libxdg-basedir/releases/download/v1.2.2/libxdg-basedir-1.2.2.tar.xz" +MD5SUM="a1f310598aede854a74bb79b4a9dee08" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |