Author: sip Date: 2006-08-04 09:37:48 +0200 (Fri, 04 Aug 2006) New Revision: 1684 Added: crux-2.2/ports/opt/acroread/acroread-expr.patch Modified: crux-2.2/ports/opt/acroread/.md5sum crux-2.2/ports/opt/acroread/Pkgfile Log: acroread: added patch for new coreutils, thanks to Simon Glossner Modified: crux-2.2/ports/opt/acroread/.md5sum =================================================================== --- crux-2.2/ports/opt/acroread/.md5sum 2006-08-04 07:16:49 UTC (rev 1683) +++ crux-2.2/ports/opt/acroread/.md5sum 2006-08-04 07:37:48 UTC (rev 1684) @@ -1 +1,2 @@ 4834f13ee45c7b1be263fb89aa49d212 AdobeReader_enu-7.0.8-1.i386.tar.gz +0e1641bd90c5721284c691944c2b7ba0 acroread-expr.patch Modified: crux-2.2/ports/opt/acroread/Pkgfile =================================================================== --- crux-2.2/ports/opt/acroread/Pkgfile 2006-08-04 07:16:49 UTC (rev 1683) +++ crux-2.2/ports/opt/acroread/Pkgfile 2006-08-04 07:37:48 UTC (rev 1684) @@ -6,8 +6,9 @@ name=acroread version=7.0.8 -release=1 -source=(http://ardownload.adobe.com/pub/adobe/reader/unix/7x/7.0.8/enu/AdobeReader_e...) +release=2 +source=(http://ardownload.adobe.com/pub/adobe/reader/unix/7x/7.0.8/enu/AdobeReader_e... \ + $name-expr.patch) PKGMK_NO_STRIP="yes" build() { @@ -22,4 +23,7 @@ sed -i 's|REPLACE_ME|/usr/lib/Acrobat7/Reader|g' bin/acroread ln -sf /usr/lib/Acrobat7/bin/acroread $PKG/usr/bin/acroread find . -type d | xargs chmod 755 + + cd $PKG/usr/lib/Acrobat7/bin + patch < $SRC/$name-expr.patch } Added: crux-2.2/ports/opt/acroread/acroread-expr.patch =================================================================== --- crux-2.2/ports/opt/acroread/acroread-expr.patch (rev 0) +++ crux-2.2/ports/opt/acroread/acroread-expr.patch 2006-08-04 07:37:48 UTC (rev 1684) @@ -0,0 +1,21 @@ +--- acroread.orig 2006-08-04 01:45:40.000000000 +0200 ++++ acroread 2006-08-04 01:47:39.000000000 +0200 +@@ -455,13 +455,13 @@ + continue + fi + +- len_version=`expr length $version` +- base_version=`expr substr "${base_version}0000000000" 1 $len_version` +- len_base_version=`expr length $base_version` ++ len_version=`expr length "$version"` ++ base_version=`expr substr "${base_version}0000000000" 1 "$len_version"` ++ len_base_version=`expr length "$base_version"` + + while [ $len_version -gt $len_base_version ]; do +- base_version=`expr substr "${base_version}0000000000" 1 $len_version` +- len_base_version=`expr length $base_version` ++ base_version=`expr substr "${base_version}0000000000" 1 "$len_version"` ++ len_base_version=`expr length "$base_version"` + done + + if [ $version -ge $base_version ]; then