diff options
Diffstat (limited to 'development/tclvfs/patches')
-rw-r--r-- | development/tclvfs/patches/01-configure.patch | 30 | ||||
-rw-r--r-- | development/tclvfs/patches/01-encoding.patch (renamed from development/tclvfs/patches/02-encoding.patch) | 56 | ||||
-rw-r--r-- | development/tclvfs/patches/02-man.patch (renamed from development/tclvfs/patches/04-man.patch) | 0 | ||||
-rw-r--r-- | development/tclvfs/patches/03-m4.patch | 21 | ||||
-rw-r--r-- | development/tclvfs/patches/05-pkgindex.patch | 28 | ||||
-rw-r--r-- | development/tclvfs/patches/06-zipfix.patch | 41 | ||||
-rw-r--r-- | development/tclvfs/patches/07-vfs.patch | 22 |
7 files changed, 28 insertions, 170 deletions
diff --git a/development/tclvfs/patches/01-configure.patch b/development/tclvfs/patches/01-configure.patch deleted file mode 100644 index c9f5b42566..0000000000 --- a/development/tclvfs/patches/01-configure.patch +++ /dev/null @@ -1,30 +0,0 @@ -All the patches are taken from Debian repo - ---- tclvfs-1.3-20080503.orig/configure -+++ tclvfs-1.3-20080503/configure -@@ -7937,12 +7937,15 @@ - SHLIB_LD_LIBS='${LIBS}' - SHLIB_SUFFIX=".so" - -+ # following line added by CW for Debian GNU/Hurd -+ TCL_SHLIB_LD_EXTRAS="-Wl,-soname,\${TCL_LIB_FILE}.0" -+ - SHLIB_LD="${CC} -shared" -- DL_OBJS="" -+ DL_OBJS="tclLoadDl.o" - DL_LIBS="-ldl" - LDFLAGS="$LDFLAGS -Wl,--export-dynamic" - CC_SEARCH_FLAGS="" -- LD_SEARCH_FLAGS="" -+ LD_SEARCH_FLAGS="${CC_SEARCH_FLAGS}" - if test "`uname -m`" = "alpha" ; then - CFLAGS="$CFLAGS -mieee" - fi -@@ -9803,7 +9806,6 @@ - # (actually we leave an empty line to preserve line numbers). - if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=/{ --s/:*\$(srcdir):*/:/; - s/:*\${srcdir}:*/:/; - s/:*@srcdir@:*/:/; - s/^\([^=]*=[ ]*\):*/\1/; diff --git a/development/tclvfs/patches/02-encoding.patch b/development/tclvfs/patches/01-encoding.patch index 997a352fb0..25261055ca 100644 --- a/development/tclvfs/patches/02-encoding.patch +++ b/development/tclvfs/patches/01-encoding.patch @@ -4,8 +4,8 @@ fixes -encoding and -eofchar of files opened on VFS. Probably, the patch is incomplete for mk4fs with ::mk4vfs::zstreamed set to 1. ---- tclvfs-1.3-20080503.orig/library/ftpvfs.tcl -+++ tclvfs-1.3-20080503/library/ftpvfs.tcl +--- a/library/ftpvfs.tcl ++++ b/library/ftpvfs.tcl @@ -133,10 +133,13 @@ ftp::Get $fd $name -variable tmp @@ -21,8 +21,8 @@ Probably, the patch is incomplete for mk4fs with ::mk4vfs::zstreamed set to 1. seek $filed 0 return [list $filed] } ---- tclvfs-1.3-20080503.orig/library/httpvfs.tcl -+++ tclvfs-1.3-20080503/library/httpvfs.tcl +--- a/library/httpvfs.tcl ++++ b/library/httpvfs.tcl @@ -357,11 +357,14 @@ "r" { set token [geturl "$dirurl$urlname" -headers $headers] @@ -39,8 +39,8 @@ Probably, the patch is incomplete for mk4fs with ::mk4vfs::zstreamed set to 1. seek $filed 0 # XXX: the close command should free vfs::memchan somehow?? return [list $filed] ---- tclvfs-1.3-20080503.orig/library/tclprocvfs.tcl -+++ tclvfs-1.3-20080503/library/tclprocvfs.tcl +--- a/library/tclprocvfs.tcl ++++ b/library/tclprocvfs.tcl @@ -84,9 +84,12 @@ "" - "r" { @@ -55,8 +55,8 @@ Probably, the patch is incomplete for mk4fs with ::mk4vfs::zstreamed set to 1. seek $nfd 0 return [list $nfd] } ---- tclvfs-1.3-20080503.orig/library/webdavvfs.tcl -+++ tclvfs-1.3-20080503/library/webdavvfs.tcl +--- a/library/webdavvfs.tcl ++++ b/library/webdavvfs.tcl @@ -153,8 +153,12 @@ upvar #0 $token state @@ -70,8 +70,8 @@ Probably, the patch is incomplete for mk4fs with ::mk4vfs::zstreamed set to 1. seek $filed 0 ::http::cleanup $token return [list $filed] ---- tclvfs-1.3-20080503.orig/library/tkvfs.tcl -+++ tclvfs-1.3-20080503/library/tkvfs.tcl +--- a/library/tkvfs.tcl ++++ b/library/tkvfs.tcl @@ -72,9 +72,12 @@ "" - "r" { @@ -86,40 +86,40 @@ Probably, the patch is incomplete for mk4fs with ::mk4vfs::zstreamed set to 1. seek $nfd 0 return [list $nfd] } ---- tclvfs-1.3-20080503.orig/library/tarvfs.tcl -+++ tclvfs-1.3-20080503/library/tarvfs.tcl -@@ -107,6 +107,9 @@ - ::tar::stat $tarfd $name sb - +--- a/library/tarvfs.tcl ++++ b/library/tarvfs.tcl +@@ -106,6 +106,9 @@ + vfs::tar::_stat $tarfd $name sb + set nfd [vfs::memchan] + set encoding [fconfigure $nfd -encoding] + set eofchar [fconfigure $nfd -eofchar] + set translation [fconfigure $nfd -translation] fconfigure $nfd -translation binary - + # get the starting point from structure -@@ -115,7 +118,7 @@ - +@@ -114,7 +117,7 @@ + puts -nonewline $nfd $data - + - fconfigure $nfd -translation auto + fconfigure $nfd -translation $translation -encoding $encoding -eofchar $eofchar seek $nfd 0 return [list $nfd] } ---- tclvfs-1.3-20080503.orig/library/zipvfs.tcl -+++ tclvfs-1.3-20080503/library/zipvfs.tcl +--- a/library/zipvfs.tcl ++++ b/library/zipvfs.tcl @@ -108,6 +108,9 @@ ::zip::stat $zipfd $name sb set nfd [vfs::memchan] + set encoding [fconfigure $nfd -encoding] -+ set eofchar [fconfigure $nfd -eofchar] ++ set eofchar [fconfigure $nfd -eofchar] + set translation [fconfigure $nfd -translation] fconfigure $nfd -translation binary seek $zipfd $sb(ino) start -@@ -115,7 +118,7 @@ +@@ -118,7 +115,7 @@ puts -nonewline $nfd $data @@ -128,9 +128,9 @@ Probably, the patch is incomplete for mk4fs with ::mk4vfs::zstreamed set to 1. seek $nfd 0 return [list $nfd] } ---- tclvfs-1.3-20080503.orig/library/mk4vfs.tcl -+++ tclvfs-1.3-20080503/library/mk4vfs.tcl -@@ -183,19 +183,25 @@ +--- a/library/mk4vfs.tcl ++++ b/library/mk4vfs.tcl +@@ -171,19 +171,25 @@ set fd [vfs::zstream decompress $fd $sb(csize) $sb(size)] } else { set fd [vfs::memchan] @@ -158,7 +158,7 @@ Probably, the patch is incomplete for mk4fs with ::mk4vfs::zstreamed set to 1. seek $fd 0 } else { set fd [mk::channel $sb(ino) contents r] -@@ -226,6 +232,9 @@ +@@ -214,6 +220,9 @@ } set fd [vfs::memchan] @@ -168,7 +168,7 @@ Probably, the patch is incomplete for mk4fs with ::mk4vfs::zstreamed set to 1. fconfigure $fd -translation binary set s [mk::get $sb(ino) contents] -@@ -237,7 +246,7 @@ +@@ -225,7 +234,7 @@ puts -nonewline $fd $s #set fd [mk::channel $sb(ino) contents a] } diff --git a/development/tclvfs/patches/04-man.patch b/development/tclvfs/patches/02-man.patch index 73392562a6..73392562a6 100644 --- a/development/tclvfs/patches/04-man.patch +++ b/development/tclvfs/patches/02-man.patch diff --git a/development/tclvfs/patches/03-m4.patch b/development/tclvfs/patches/03-m4.patch deleted file mode 100644 index d995d72fd4..0000000000 --- a/development/tclvfs/patches/03-m4.patch +++ /dev/null @@ -1,21 +0,0 @@ - ---- tclvfs-1.3-20080503.orig/tclconfig/tcl.m4 -+++ tclvfs-1.3-20080503/tclconfig/tcl.m4 -@@ -1486,12 +1486,15 @@ - SHLIB_LD_LIBS='${LIBS}' - SHLIB_SUFFIX=".so" - -+ # following line added by CW for Debian GNU/Hurd -+ TCL_SHLIB_LD_EXTRAS="-Wl,-soname,\${TCL_LIB_FILE}.0" -+ - SHLIB_LD="${CC} -shared" -- DL_OBJS="" -+ DL_OBJS="tclLoadDl.o" - DL_LIBS="-ldl" - LDFLAGS="$LDFLAGS -Wl,--export-dynamic" - CC_SEARCH_FLAGS="" -- LD_SEARCH_FLAGS="" -+ LD_SEARCH_FLAGS="${CC_SEARCH_FLAGS}" - if test "`uname -m`" = "alpha" ; then - CFLAGS="$CFLAGS -mieee" - fi diff --git a/development/tclvfs/patches/05-pkgindex.patch b/development/tclvfs/patches/05-pkgindex.patch deleted file mode 100644 index 77bb689caa..0000000000 --- a/development/tclvfs/patches/05-pkgindex.patch +++ /dev/null @@ -1,28 +0,0 @@ -Debian-specific patch by Sergei Golovan which replaces current directory -for tclvfs library by a fixed one. - ---- tclvfs-1.3-20080503.orig/pkgIndex.tcl.in -+++ tclvfs-1.3-20080503/pkgIndex.tcl.in -@@ -12,19 +12,18 @@ - package require Tcl 8.4 - - namespace eval ::vfs {} --variable vfs::dll [file join $dir @PKG_LIB_FILE@] -+variable vfs::dll [file join /usr/lib @PACKAGE_NAME@@PACKAGE_VERSION@ @PKG_LIB_FILE@] - --proc loadvfs {dll} { -+proc loadvfs {dir dll} { - global auto_path - if {![file exists $dll]} { return } -- set dir [file dirname $dll] - if {[lsearch -exact $auto_path $dir] == -1} { - lappend auto_path $dir - } - load $dll - } - --package ifneeded vfs @PACKAGE_VERSION@ [list loadvfs $vfs::dll] -+package ifneeded vfs @PACKAGE_VERSION@ [list loadvfs $dir $vfs::dll] - - # Allow optional redirect of VFS_LIBRARY components. Only necessary - # for testing, but could be used elsewhere. diff --git a/development/tclvfs/patches/06-zipfix.patch b/development/tclvfs/patches/06-zipfix.patch deleted file mode 100644 index 8ca6e1c1ae..0000000000 --- a/development/tclvfs/patches/06-zipfix.patch +++ /dev/null @@ -1,41 +0,0 @@ -Patch by Victor Wagner (modified by Sergei Golovan for archives less -than 512 bytes long) fixes zip vfs to work with prepended executable. - ---- tclvfs-1.3-20080503.orig/library/zipvfs.tcl -+++ tclvfs-1.3-20080503/library/zipvfs.tcl -@@ -113,7 +113,8 @@ - set translation [fconfigure $nfd -translation] - fconfigure $nfd -translation binary - -- seek $zipfd $sb(ino) start -+ upvar #0 zip::$zipfd cb -+ seek $zipfd [expr {$sb(ino)+$cb(base)}] start - zip::Data $zipfd sb data - - puts -nonewline $nfd $data -@@ -370,6 +371,7 @@ - - seek $fd $n end - set hdr [read $fd $len] -+ set read [string length $hdr] - set pos [string first "PK\05\06" $hdr] - if {$pos == -1} { - if {$at >= $sz} { -@@ -384,7 +386,7 @@ - } - - set hdr [string range $hdr [expr $pos + 4] [expr $pos + 21]] -- set pos [expr [tell $fd] + $pos - 512] -+ set pos [expr [tell $fd] + $pos - $read] - - binary scan $hdr ssssiis \ - cb(ndisk) cb(cdisk) \ -@@ -445,7 +447,7 @@ - - zip::EndOfArchive $fd cb - -- seek $fd $cb(coff) start -+ seek $fd [expr {$cb(coff)+$cb(base)}] start - - set toc(_) 0; unset toc(_); #MakeArray - diff --git a/development/tclvfs/patches/07-vfs.patch b/development/tclvfs/patches/07-vfs.patch deleted file mode 100644 index 42b30eb60d..0000000000 --- a/development/tclvfs/patches/07-vfs.patch +++ /dev/null @@ -1,22 +0,0 @@ ---- 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; |