Browse Source
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>
pull/168/head
newHeiko
4 years ago
committed by
Willy Sudiarto Raharjo
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
3 changed files with
9 additions and
25 deletions
-
libraries/libxdg-basedir/alloc_buffer.patch
-
libraries/libxdg-basedir/libxdg-basedir.SlackBuild
-
libraries/libxdg-basedir/libxdg-basedir.info
|
|
@ -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); |
|
|
|
} |
|
|
@ -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 \ |
|
|
|
|
|
@ -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="" |
|
|
|