diff options
Diffstat (limited to 'source/n/yptools')
-rw-r--r-- | source/n/yptools/ypbind-mt.gettid.diff | 22 | ||||
-rwxr-xr-x | source/n/yptools/yptools.SlackBuild | 11 |
2 files changed, 28 insertions, 5 deletions
diff --git a/source/n/yptools/ypbind-mt.gettid.diff b/source/n/yptools/ypbind-mt.gettid.diff new file mode 100644 index 00000000..37496d85 --- /dev/null +++ b/source/n/yptools/ypbind-mt.gettid.diff @@ -0,0 +1,22 @@ +--- ./src/log_msg.c.orig 2011-08-31 08:13:22.000000000 -0500 ++++ ./src/log_msg.c 2019-08-20 12:44:45.474253136 -0500 +@@ -30,19 +30,6 @@ + #include "log_msg.h" + + #include <sys/syscall.h> +-#ifdef __NR_gettid +-static pid_t +-gettid (void) +-{ +- return syscall (__NR_gettid); +-} +-#else +-pid_t +-gettid (void) +-{ +- return getpid (); +-} +-#endif + + int debug_flag = 0; + int logfile_flag = 0; diff --git a/source/n/yptools/yptools.SlackBuild b/source/n/yptools/yptools.SlackBuild index ad9323a1..37919427 100755 --- a/source/n/yptools/yptools.SlackBuild +++ b/source/n/yptools/yptools.SlackBuild @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) # Package version number: PKGNAM=yptools VERSION=2.14 -BUILD=${BUILD:-11} +BUILD=${BUILD:-12} YPTOOLS=$VERSION YPBINDMT=1.38 @@ -77,7 +77,7 @@ mkdir -p $PKG/etc # Add etc/nsswitch.conf-nis as a full NIS+ example config file: zcat $CWD/nsswitch.conf-nis.gz > $PKG/etc/nsswitch.conf-nis.new rm -rf yp-tools-$YPTOOLS -tar xvf $CWD/yp-tools-$YPTOOLS.tar.bz2 || exit 1 +tar xvf $CWD/yp-tools-$YPTOOLS.tar.?z || exit 1 cd yp-tools-$YPTOOLS || exit 1 zcat $CWD/yp-tools-2.14-glibc217-crypt.diff.gz | patch -p1 --verbose || exit 1 ./configure \ @@ -139,8 +139,9 @@ echo "| ypbind-mt-$YPBINDMT |" echo "+================+" cd $TMP rm -rf ypbind-mt-$YPBINDMT -tar xvf $CWD/ypbind-mt-$YPBINDMT.tar.bz2 || exit 1 +tar xvf $CWD/ypbind-mt-$YPBINDMT.tar.?z || exit 1 cd ypbind-mt-$YPBINDMT || exit 1 +zcat $CWD/ypbind-mt.gettid.diff.gz | patch -p1 --verbose || exit 1 ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ @@ -175,7 +176,7 @@ chmod 644 $PKG/usr/doc/ypbind-mt-$YPBINDMT/* #echo "+=============+" #cd $TMP #rm -rf ypmake-$YPMAKE -#tar xvf $CWD/ypmake-$YPMAKE.tar.bz2 || exit 1 +#tar xvf $CWD/ypmake-$YPMAKE.tar.?z || exit 1 #cd ypmake-$YPMAKE || exit 1 #./configure ## I'm just not taking chances with the cleanliness of these sources anymore... @@ -201,7 +202,7 @@ echo "| ypserv-$YPSERV |" echo "+============+" cd $TMP rm -rf ypserv-$YPSERV -tar xvf $CWD/ypserv-$YPSERV.tar.bz2 || exit 1 +tar xvf $CWD/ypserv-$YPSERV.tar.?z || exit 1 cd ypserv-$YPSERV || exit 1 # --with-ndbm=yes # Support for this was discontinued upstream |