user/3365: gzexe doesn't work >Number: 3365
>Category: user
>Synopsis: gzexe doesn't produce usable executables
>Confidential: yes
net
>Environment:
System : OpenBSD 3.3
Architecture: OpenBSD.i386
Machine : i386
>Description:
Ok, a little late because it goes away anyway, but ...
gzexe produces unusable executables which die with
"gzip: /dev/stdin: Inappropriate file type or format"
>How-To-Repeat:
gzexe , then try to run
Why 17 in the following patch? /usr/bin/tail
gets confused by the line "#!/bin/sh" and doesn't
count it.
>Fix:
Apply the following patch:
- gnu/usr.bin/gzip/gzexe.orig Thu Jul 24 01:08:41 2003
+++ gnu/usr.bin/gzip/gzexe Thu Jul 24 01:20:16 2003
@@ -83,9 +83,9 @@
if test $decomp -eq 0; then
sed 1q "$0" > $tmp
sed "s|^if tail|if $tail|" >> $tmp <<'EOF'
-skip=14
+skip=17
tmpdir=`/usr/bin/mktemp -d /tmp/gzexeXXXXXXXXXX` || {
- rm -f ${tmp}
+ rm -f ${tmpdir}
exit 1
}
prog="${tmpdir}/`echo \"$0\" | sed 's|^.*/||'`"
>Release-Note:
Received on Wed Jul 23 20:19:16 2003
This archive was generated by hypermail 2.1.8
: Wed Aug 23 2006 - 13:30:00 EDT
|