development/tclvfs: Add upstream patch to work with tcl 8.6

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2013-11-18 07:56:26 +07:00
parent af0d46f565
commit 67e0d8e392
2 changed files with 33 additions and 10 deletions

View file

@ -0,0 +1,22 @@
--- tclvfs-1.3-20080503.orig/generic/vfs.c 2006/08/30 19:38:03 1.60
+++ tclvfs-1.3-20080503/generic/vfs.c 2008/10/10 21:57:36 1.61
@@ -39,6 +39,10 @@
#define TCL_GLOB_TYPE_MOUNT (1<<7)
#endif
+#ifndef CONST86
+#define CONST86
+#endif
+
/*
* Only the _Init function is exported.
*/
@@ -1656,7 +1660,7 @@
return returnVal;
}
-static CONST char**
+static CONST char * CONST86 *
VfsFileAttrStrings(pathPtr, objPtrRef)
Tcl_Obj* pathPtr;
Tcl_Obj** objPtrRef;

View file

@ -5,8 +5,8 @@
# Written by Zbigniew Baniewski, zb@ispid.com.pl # Written by Zbigniew Baniewski, zb@ispid.com.pl
PRGNAM=tclvfs PRGNAM=tclvfs
VERSION=20080503 VERSION=${VERSION:-0080503}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
@ -45,11 +45,11 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/${PRGNAM}-${VERSION}.tar.gz tar xvf $CWD/${PRGNAM}-${VERSION}.tar.gz
cd $PRGNAM-$VERSION cd $PRGNAM-$VERSION
chown -R root:root . chown -R root:root .
find . \ find -L . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-exec chmod 755 {} \; -o \ -o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-exec chmod 644 {} \; -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
cat $CWD/patches/01-configure.patch | patch -p1 || exit cat $CWD/patches/01-configure.patch | patch -p1 || exit
cat $CWD/patches/02-encoding.patch | patch -p1 || exit cat $CWD/patches/02-encoding.patch | patch -p1 || exit
@ -57,10 +57,10 @@ cat $CWD/patches/03-m4.patch | patch -p1 || exit
cat $CWD/patches/04-man.patch | patch -p1 || exit cat $CWD/patches/04-man.patch | patch -p1 || exit
cat $CWD/patches/05-pkgindex.patch | patch -p1 || exit cat $CWD/patches/05-pkgindex.patch | patch -p1 || exit
cat $CWD/patches/06-zipfix.patch | patch -p1 || exit cat $CWD/patches/06-zipfix.patch | patch -p1 || exit
cat $CWD/patches/07-vfs.patch | patch -p1 || exit
CFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \
CPPFLAGS="-I/usr/include/tcl-private/generic" \
./configure \ ./configure \
--prefix=/usr \ --prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \ --libdir=/usr/lib${LIBDIRSUFFIX} \
@ -68,9 +68,7 @@ CPPFLAGS="-I/usr/include/tcl-private/generic" \
--localstatedir=/var \ --localstatedir=/var \
--mandir=/usr/man \ --mandir=/usr/man \
--with-tcl=/usr/lib${LIBDIRSUFFIX} \ --with-tcl=/usr/lib${LIBDIRSUFFIX} \
--with-tclinclude=/usr/include/tcl-private/generic \
--with-tk=/usr/lib${LIBDIRSUFFIX} \ --with-tk=/usr/lib${LIBDIRSUFFIX} \
--with-tkinclude=/usr/include/tk-private/generic \
--build=$ARCH-slackware-linux --build=$ARCH-slackware-linux
make make
@ -79,6 +77,9 @@ make install DESTDIR=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
# Fix Manual page
mv $PKG/usr/man/mann $PKG/usr/man/man1
find $PKG/usr/man -type f -exec gzip -9 {} \; find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done