Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 7465 - emerge e3 results in non-working editor
Summary: emerge e3 results in non-working editor
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Bryon Roche (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-04 10:25 UTC by D.A.M. Revok
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description D.A.M. Revok 2002-09-04 10:25:27 UTC
the compile seems to work, but it can't be run ( at least on my system, but 
then my system isn't yet able to run Gentoo itself, and I'm still in a chroot 
- from within Caldera Open Linux - version )
emerge e3 works, quickly, then

bash-2.05a# e3 this
/usr/bin/e3: /tmp/e3: No such file or directory ( eh? )

bash-2.05a# pwd
/etc

bash-2.05a# cat /usr/bin/e3
#!/bin/sh
skip=22
set -C
umask=`umask`
umask 77
if /usr/bin/tail +$skip $0 | "//bin"/gzip -cd > /tmp/gztmp$$; then
  umask $umask
  /bin/chmod 700 /tmp/gztmp$$
  prog="`echo $0 | /bin/sed 's|^.*/||'`"
  if /bin/ln /tmp/gztmp$$ "/tmp/$prog" 2>/dev/null; then
    trap '/bin/rm -f /tmp/gztmp$$ "/tmp/$prog"; exit $res' 0
    (/usr/bin/sleep 5; /bin/rm -f /tmp/gztmp$$ "/tmp/$prog") 2>/dev/null &
    /tmp/"$prog" ${1+"$@"}; res=$?
  else
    trap '/bin/rm -f /tmp/gztmp$$; exit $res' 0
    (/usr/bin/sleep 5; /bin/rm -f /tmp/gztmp$$) 2>/dev/null &
    /tmp/gztmp$$ ${1+"$@"}; res=$?
  fi
else
  echo Cannot decompress $0; exit 1
fi; exit $res
( then a hell of a lot of binary stuff messing up my screen )
Comment 1 Bryon Roche (RETIRED) gentoo-dev 2002-09-04 13:35:49 UTC
This is a gzexe'd executable.. Do we really need e3 to be doing this?

As a gsexe'd executable, you need write privileges to /tmp, AND there can't be
(in this case) an already existing /tmp/e3.

Also: you are running on x86, right?  e3 is written in x86 ASM.

Comment 2 Bryon Roche (RETIRED) gentoo-dev 2002-12-02 00:34:56 UTC
This appears to have been fixed since e3 1.7