Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37773 - uninstalling coreutils leaves system without /usr/bin/rm == unusable
Summary: uninstalling coreutils leaves system without /usr/bin/rm == unusable
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-10 02:39 UTC by Martin Mokrejš
Modified: 2004-01-16 01:56 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 Martin Mokrejš 2004-01-10 02:39:47 UTC
--- !empty dir /usr/share/locale/cs/LC_MESSAGES
--- !empty dir /usr/share/locale/cs
--- !empty dir /usr/share/locale/ca/LC_MESSAGES
--- !empty dir /usr/share/locale/ca
--- !empty dir /usr/share/locale/be/LC_MESSAGES
--- !empty dir /usr/share/locale/be
--- !empty dir /usr/share/locale
--- !empty dir /usr/share/info
--- !empty dir /usr/share/doc
--- !empty dir /usr/share
--- !empty dir /usr/bin
--- !empty dir /usr
--- !empty dir /bin
/usr/sbin/ebuild.sh: line 8: rm: command not found
/usr/sbin/ebuild.sh: line 1: id: command not found
/usr/sbin/ebuild.sh: line 1182: [: ==: unary operator expected
/usr/sbin/ebuild.sh: line 114: tty: command not found
eutils
>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies...
Bad switch -d
 *  Could not create needed directory '/var/lib/init.d/softscripts'!
Bad switch -d
 *  Could not create needed directory '/var/lib/init.d/snapshot'!
Bad switch -d
 *  Could not create needed directory '/var/lib/init.d/options'!
Bad switch -d
 *  Could not create needed directory '/var/lib/init.d/started'!
/sbin/depscan.sh: line 31: rm: command not found
sh: line 1: ls: command not found
bash: line 1: ommand not found
bash: line 1: 01m*: command not found
sh: line 1: rm: command not found
:0: assertion failed: system(rm -f /var/lib/init.d/deptree)
  [ !! ]d to cache service dependencies


 * Regenerating GNU info directory index...
 * Processed 92 info files: 1 errors; run with emerge --verbose to view errors.

h52 root # emerge sh-utils
Calculating dependencies ...done!
>>> emerge (1 of 2) sys-apps/coreutils-5.0-r5 to /
/usr/sbin/ebuild.sh: line 114: tty: command not found
eutils
/usr/sbin/ebuild.sh: line 512: rm: command not found
/usr/sbin/ebuild.sh: line 513: rm: command not found
/usr/sbin/ebuild.sh: line 516: rm: command not found
/usr/sbin/ebuild.sh: line 522: rm: command not found
/usr/sbin/ebuild.sh: line 523: rm: command not found
/usr/sbin/ebuild.sh: line 524: rm: command not found
>>> md5 src_uri ;-) coreutils-5.0.tar.bz2
>>> md5 src_uri ;-) coreutils-gentoo-1.8.1.tar.bz2
/usr/sbin/ebuild.sh: line 8: rm: command not found
/usr/sbin/ebuild.sh: line 1: id: command not found
/usr/sbin/ebuild.sh: line 1182: [: ==: unary operator expected
/usr/sbin/ebuild.sh: line 1238: /var/db/pkg/sys-apps/coreutils-5.0-r5/coreutils-5.0-r5.ebuild: No such file or directory

!!! ERROR: sys-apps/coreutils-5.0-r5 failed.
!!! Function , Line 1238, Exitcode 1
!!! error sourcing ebuild
h52 root #


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Brad House 2004-01-10 09:47:52 UTC
uhh, what?? did you really just report this ??

you gonna report

rm -rf /usr/bin /bin

leaves your system unusable next ??

why would you unmerge coreutils ?
Comment 2 Martin Mokrejš 2004-01-16 01:18:48 UTC
Look, there is sh-utils and file-utils package available. It seems they are empty packages and when you install them, coreutils get silently installed. I propose deleting those packages from the tree. Then I wouldn't have the feeling that I *can* uninstall coreutils and revert to their predecessors.

There are serious considerations with POSIX settings while you compile coreutils. For example, "tail -1" doesn't work anymore, as Gentoo is set to the latest POSIX standard. But inavailability of "tail -1" and other commands behaviour brakes some tools.

Thereofre, as I as a user cannot affect the POSIX variable settings for this very specific package, I wanted to downgrade to file-utils etc. And hey, I had to scp several files from another machines /usr/bin. ;)

Mask sh-utils and file-utils, find a way to prevent user from unmerging coreutils.
Comment 3 Seemant Kulleen (RETIRED) gentoo-dev 2004-01-16 01:56:59 UTC
they are empty, but they RDEPEND on coreutils -- RDEPEND == runtime dependency.

So, those packages exist, and they will be phased out of the tree in due course -- probably within the next month or so.

Meanwhile, install coreutils-5.0.91-r4 to discover that your expected behaviour for head and tail and sort and a few other things exists :)

-r4 will become stable on at least x86 and hppa by later today anyway.