Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 11216 - Lack of text editor in / mount point
Summary: Lack of text editor in / mount point
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Matthew Kennedy (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-25 13:46 UTC by Miguel Sousa Filipe
Modified: 2003-02-04 19:42 UTC (History)
2 users (show)

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


Attachments
e3-2.33 ebuild which installs e3 in / mount point (e3-2.33.ebuild,1.10 KB, application/octet-stream)
2002-11-26 19:40 UTC, Miguel Sousa Filipe
Details
e3 ebuild for instalation of binaries in / mount point (e3-2.33.ebuild,1.11 KB, application/octet-stream)
2002-11-26 20:04 UTC, Miguel Sousa Filipe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Miguel Sousa Filipe 2002-11-25 13:46:57 UTC
Well, the subject says it all .. we(gentoo) have no editor in the / mount point
if /usr is not present.. (like my case)

while booting a 2.5.x kernel, i was unable to mount /opt, /usr, /home,
/var/tmp, etc..etc.etc... since they were all in LVM. and this also
happened once when for no apparent reason my boot sequence got messed up
and everything aborted, can also happen to anyone with network file systems and
end up with a network disruption/breakage(in such cases normally / is the only
"local" mount point)...
In such cases the need for a text editor is urged.. normally correcting
the situation might depend on it...
So..i think we(gentoo) should have a minimal editor in / in case that
something goes wrong, some editor like e3, nano, vi(or any clone), joe, I dunno,
something that can edit files and preferably small..

I vote for e3 since is minimal and has several key bindings.

I also would like to point out that building one and copying to / can work, but
this is no REAL SOLUTION to this... i see this has PROBLEM/BUG.. since any
system should have a interactive text editor in /. I think i'm not the only guy
how thinks this.. ;)

Miguel Sousa Filipe
Comment 1 Matthew Kennedy (RETIRED) gentoo-dev 2002-11-26 11:34:34 UTC
Az,

I'm thinking just build nano (our standard editor which our docs currently
describe) into /bin -- possibly even statically. If you agree, re-assign to me
and I'll fix if you like. I've been following the thread on -dev

Matt
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2002-11-26 17:11:37 UTC
nano .. grrr :P  Should be fine, it links only to glibc and ncurses, which is
both in /lib, so
just move it if you ask me.  Just put a pkg_postinst() which rm any file in
/usr/bin, and maybe
add a compat symlink there, else the nano from build image will not be over written.
Comment 3 Miguel Sousa Filipe 2002-11-26 19:40:31 UTC
Created attachment 5982 [details]
e3-2.33 ebuild which installs e3 in / mount point

I believe it's as simples has this..
Comment 4 Miguel Sousa Filipe 2002-11-26 19:46:31 UTC
I was wrong.. sorry.. the ebuild doesn't work.. I gotta see how "dobin" works..
because I'm not being able to put the binary in /bin .. just /usr/bin.. 
so.. my last ebuild is worthless.
sorry! :-\
Miguel
Comment 5 Miguel Sousa Filipe 2002-11-26 20:04:27 UTC
Created attachment 5983 [details]
e3 ebuild for instalation of binaries in / mount point

installs:
-rwxr-xr-x    1 root	 root	     12772 Nov 27 01:53 /bin/e3
lrwxrwxrwx    1 root	 root		 2 Nov 27 01:53 /bin/e3em -> e3 (emacs)

lrwxrwxrwx    1 root	 root		 2 Nov 27 01:53 /bin/e3ne -> e3 (nedit)

lrwxrwxrwx    1 root	 root		 2 Nov 27 01:53 /bin/e3pi -> e3 (pico)
lrwxrwxrwx    1 root	 root		 2 Nov 27 01:53 /bin/e3vi -> e3 (vi)
lrwxrwxrwx    1 root	 root		 2 Nov 27 01:53 /bin/e3ws -> e3
(wordstar)
Comment 6 Matthew Kennedy (RETIRED) gentoo-dev 2002-11-30 04:59:22 UTC
Miguel,

I fixed this by placing nano in /bin. e3 is great, but its x86 only (e3 is
actually written in assembler iirc).

Matt
Comment 7 Matt Keadle 2002-12-01 21:07:15 UTC
The update is now breaking packages. If heard of scant user complaints, but I've
just personally experienced it with fcron:

checking sendmail... /usr/sbin/sendmail
checking for sh... /bin/sh
checking editor... configure: error:
File /usr/bin/nano is not an executable file

!!! ERROR: sys-apps/fcron-2.0.0-r2 failed.
!!! Function src_compile, Line 10, Exitcode 1
!!! bad ./configure

What's odd is that I have my $EDITOR var pointed to /usr/bin/vim, leaving nano
in the dust, bust the fcron config script is still looking for "/usr/bin/nano".
It actually just occured to me to logout/login and force a full env update just
to be sure, but this may pop up other places.

Perhaps symlink /bin/nano -> /usr/bin/nano ?
Comment 8 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-01 22:43:01 UTC
*nano-1.0.9-r2 (01 Dec 2002)

  01 Dec 2002; Mike Frysinger <vapier@gentoo.org> :
  Added a symlink for /usr/bin/nano to /bin/nano #10916

Comment 9 Matt Keadle 2002-12-01 23:39:27 UTC
Just a confirmation. I've completed the `emerge -u world`, gone through a
complete etc-update, rebooted to be sure and I still can't build fcron. I
created the symlink by hand and fcron emerges fine. I'm sure the -r2 build will
take care of any "/usr/bin/nano" issues.