FS#28413 - [filesystem] bin/grep no such file or directory error
Attached to Project:
Arch Linux
Opened by Techlive Zheng (techlive) - Tuesday, 14 February 2012, 05:51 GMT
Last edited by Tom Gundersen (tomegun) - Saturday, 18 February 2012, 20:02 GMT
Opened by Techlive Zheng (techlive) - Tuesday, 14 February 2012, 05:51 GMT
Last edited by Tom Gundersen (tomegun) - Saturday, 18 February 2012, 20:02 GMT
|
Details
Description:
The filesystem.install use "bin/grep",but seems it should be "usr/bin/grep",or it cause the following errors: /tmp/alpm_o9RV10/.INSTALL: line 16: bin/grep: No such file or directory groupadd: group 'optical' already exists /tmp/alpm_o9RV10/.INSTALL: line 16: bin/grep: No such file or directory groupadd: group 'audio' already exists /tmp/alpm_o9RV10/.INSTALL: line 16: bin/grep: No such file or directory groupadd: group 'video' already exists /tmp/alpm_o9RV10/.INSTALL: line 16: bin/grep: No such file or directory groupadd: group 'floppy' already exists /tmp/alpm_o9RV10/.INSTALL: line 16: bin/grep: No such file or directory groupadd: group 'storage' already exists /tmp/alpm_o9RV10/.INSTALL: line 16: bin/grep: No such file or directory groupadd: group 'log' already exists /tmp/alpm_o9RV10/.INSTALL: line 16: bin/grep: No such file or directory groupadd: group 'utmp' already exists /tmp/alpm_o9RV10/.INSTALL: line 16: bin/grep: No such file or directory groupadd: group 'power' already exists /tmp/alpm_o9RV10/.INSTALL: line 16: bin/grep: No such file or directory groupadd: group 'network' already exists /tmp/alpm_o9RV10/.INSTALL: line 16: bin/grep: No such file or directory groupadd: group 'games' already exists /tmp/alpm_o9RV10/.INSTALL: line 16: bin/grep: No such file or directory groupadd: group 'uucp' already exists /tmp/alpm_o9RV10/.INSTALL: line 16: bin/grep: No such file or directory groupadd: group 'http' already exists /tmp/alpm_o9RV10/.INSTALL: line 23: bin/grep: No such file or directory Usage: useradd [options] LOGIN Options: -b, --base-dir BASE_DIR base directory for the home directory of the new account -c, --comment COMMENT GECOS field of the new account -d, --home-dir HOME_DIR home directory of the new account -D, --defaults print or change default useradd configuration -e, --expiredate EXPIRE_DATE expiration date of the new account -f, --inactive INACTIVE password inactivity period of the new account -g, --gid GROUP name or ID of the primary group of the new account -G, --groups GROUPS list of supplementary groups of the new account -h, --help display this help message and exit -k, --skel SKEL_DIR use this alternative skeleton directory -K, --key KEY=VALUE override /etc/login.defs defaults -l, --no-log-init do not add the user to the lastlog and faillog databases -m, --create-home create the user's home directory -M, --no-create-home do not create the user's home directory -N, --no-user-group do not create a group with the same name as the user -o, --non-unique allow to create users with duplicate (non-unique) UID -p, --password PASSWORD encrypted password of the new account -r, --system create a system account -s, --shell SHELL login shell of the new account -u, --uid UID user ID of the new account -U, --user-group create a group with the same name as the user /tmp/alpm_o9RV10/.INSTALL: line 16: bin/grep: No such file or directory groupadd: group 'scanner' already exists /tmp/alpm_o9RV10/.INSTALL: line 16: bin/grep: No such file or directory groupadd: group 'rfkill' already exists /tmp/alpm_o9RV10/.INSTALL: line 48: bin/grep: No such file or directory /tmp/alpm_o9RV10/.INSTALL: line 52: bin/grep: No such file or directory /tmp/alpm_o9RV10/.INSTALL: line 58: bin/grep: No such file or directory /tmp/alpm_o9RV10/.INSTALL: line 58: bin/grep: No such file or directory /tmp/alpm_o9RV10/.INSTALL: line 58: bin/grep: No such file or directory /tmp/alpm_o9RV10/.INSTALL: line 58: bin/grep: No such file or directory /tmp/alpm_o9RV10/.INSTALL: line 58: bin/grep: No such file or directory /tmp/alpm_o9RV10/.INSTALL: line 58: bin/grep: No such file or directory |
This task depends upon
Closed by Tom Gundersen (tomegun)
Saturday, 18 February 2012, 20:02 GMT
Reason for closing: Fixed
Additional comments about closing: in [testing]
Saturday, 18 February 2012, 20:02 GMT
Reason for closing: Fixed
Additional comments about closing: in [testing]
Comment by Tom Gundersen (tomegun) -
Tuesday, 14 February 2012, 10:05 GMT
Comment by Jan de Groot (JGC) -
Tuesday, 14 February 2012, 11:36 GMT
Comment by Tom Gundersen (tomegun) -
Tuesday, 14 February 2012, 12:07 GMT
Comment by Tom Gundersen (tomegun) -
Tuesday, 14 February 2012, 12:18 GMT
Thanks for reporting! This is embarrassing...
IMHO grep should provide a symlink for the time being. Too many
scripts and packages assume grep is in /bin. Looking at other
distributions that started implementing this (Fedora), they
provide symlinks for nearly every binary that is moved to /usr.
You might be right that grep is one of the things that we should
symlink (though I hope we will be able to keep things quite a bit
simpler than what Fedora did). I'll leave that for Allan to
decide. In the meantime I'll fix the filesystem package to not use
absolute paths (I have to test this a bit though, as I'm not sure
if there is a reason why this was done in the first place).
Just a note: once (if) we manage to pull of the migration to /usr,
then obviously all this becomes moot as there will be symlinks in
place so you can call /bin/grep, /sbin/grep, /usr/sbin/grep or
/usr/bin/grep and they will all work (so third party scripts can
do whatever they want).