Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/bin/grep? /usr/bin/grep?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
AlterEgo
Veteran
Veteran


Joined: 25 Apr 2002
Posts: 1619

PostPosted: Fri Feb 28, 2003 12:26 pm    Post subject: /bin/grep? /usr/bin/grep? Reply with quote

MOD EDIT This discussion branched off the Glorious Zetagrid Thread

plate wrote:

The reason being quite simply that on that particular machine, grep doesn't reside in /bin, but in /usr/bin. Does anyone have a clue how that could have happened? 8O

I noticed the same thing on my boxes. And the WHY-question is worrying since you don't have this on all your machines. Has there been a layout-change :?


Last edited by AlterEgo on Fri Feb 28, 2003 1:22 pm; edited 1 time in total
Back to top
View user's profile Send private message
plate
Bodhisattva
Bodhisattva


Joined: 25 Jul 2002
Posts: 1663
Location: Berlin

PostPosted: Fri Feb 28, 2003 12:41 pm    Post subject: Reply with quote

Ok, let's look at this. I have four desktops (including a Mac) where grep is in /bin, and one notebook with grep in /usr/bin. The notebook installation is the only one I drew from a 1.4-rc2 stage3 tarball, everything else was either 1.4-rc1 (PPC: stage3, and Athlon: stage1) or upgraded from 1.2. Frankly, I didn't see any notice about a layout change between those two release candidates. Anybody able to shed some light on this?
Back to top
View user's profile Send private message
AlterEgo
Veteran
Veteran


Joined: 25 Apr 2002
Posts: 1619

PostPosted: Fri Feb 28, 2003 12:57 pm    Post subject: Reply with quote

I have 2 boxes built using 1.4-rc1 and rc2. grep is in /usr/bin/grep
My third box has been built using 1.3-something. There, grep can be found in /bin/grep. All x86. Unfortunately I have no backups of the original source tarballs anymore.
Back to top
View user's profile Send private message
plate
Bodhisattva
Bodhisattva


Joined: 25 Jul 2002
Posts: 1663
Location: Berlin

PostPosted: Fri Feb 28, 2003 1:14 pm    Post subject: Reply with quote

Successfully added to my confusion, thanks. :P You have an rc1 that listens to /usr/bin, my rc1 thinks /bin is where grep should be.

Anybody care to venture an explanation?
Back to top
View user's profile Send private message
AlterEgo
Veteran
Veteran


Joined: 25 Apr 2002
Posts: 1619

PostPosted: Fri Feb 28, 2003 1:26 pm    Post subject: Reply with quote

grep 2.5.1: grep is in /usr/bin/grep
update to grep-2.5.1-r1; grep is in /bin/grep.

I guess it's got nothing to do with gentoo version numbers, but everything with a grep ebuild 8O
Back to top
View user's profile Send private message
plate
Bodhisattva
Bodhisattva


Joined: 25 Jul 2002
Posts: 1663
Location: Berlin

PostPosted: Fri Feb 28, 2003 2:37 pm    Post subject: Reply with quote

This is completely beyond me... 8O All my machines get rsync'ed twice, three times a week. Four of them show:
Code:
$ emerge -s grep

*  sys-apps/grep
      Latest version available: 2.5.1-r1
      Latest version installed: 2.5.1-r1
      Size of downloaded files: 66 kB
      Homepage:    http://www.gnu.org/software/grep/grep.html
      Description: GNU regular expression matcher
while the notebook seriously believes the latest version to be
Code:

*  sys-apps/grep
      Latest version available: 2.5.1
      Latest version installed: 2.5.1
      Size of downloaded files: 667 kB
      Homepage:    http://www.gnu.org/software/grep/grep.html
      Description: GNU regular expression matcher

All five PCs, regardless of architecture, have ACCEPT_KEYWORDS="~arch" in /etc/make.conf... Notice the difference in size? Ten-fold! 8O I'm at a serious loss here.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Fri Feb 28, 2003 2:44 pm    Post subject: Reply with quote

Aren't /bin and /sbin for use when /usr isn't mounted? I'm on a 1.2 with grep only in /bin. Perhaps its an inconsistancy in the grep ebuild.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
plate
Bodhisattva
Bodhisattva


Joined: 25 Jul 2002
Posts: 1663
Location: Berlin

PostPosted: Fri Feb 28, 2003 3:01 pm    Post subject: Reply with quote

The ChangeLog says:
Quote:
*grep-2.5.1-r1 (27 Feb 2003)

27 Feb 2003; Aron Griffis <agriffis@gentoo.org> grep-2.5.1-r1.ebuild:
Close bug #16495 by installing in /bin instead of /usr/bin. I introduced
this error in the 2.5.1 ebuild. Thanks to Tristan Henderson who noticed it.

I must have hit a stale rsync mirror with the notebook, then, right? Oh, never mind, I just sync'ed once more and now it's bumped to 2.5.1-r1... :oops:
Back to top
View user's profile Send private message
MarkG
Tux's lil' helper
Tux's lil' helper


Joined: 28 Apr 2002
Posts: 90
Location: Dorset, UK

PostPosted: Fri Feb 28, 2003 4:58 pm    Post subject: Reply with quote

I started from a gentoo build-ix86-1.0_rc6-r11 and have ended up with two greps. The 21st Apr 2002 is about the date I did a stage 1 build (PII 266 = slow), so the 9th Dec 2001 must be from the stage 1 tarball. I've just found the CD (coffee stains an all) so I could confirm this but I'd have to wash the CD first!

Code:

mrfg $ which grep
/bin/grep
mrfg $ /bin/grep -V
grep (GNU grep) 2.5
....

mrfg $ ls -l /bin/grep
-rwxr-xr-x    1 root     root        79028 Apr 21  2002 /bin/grep

mrfg $ /usr/bin/grep -V
grep (GNU grep) 2.4.2
....

mrfg $ ls -l /usr/bin/grep
-rwxr-xr-x    1 root     root        48348 Dec  9  2001 /usr/bin/grep


My Laptop 1.4-rc2 just has the /bin/grep and this was built from stage 2.

Hope this helps!

MarkG

--
We are the Michael Imhof. Zetagrid - Gentoo Linux Users Everywhere
Back to top
View user's profile Send private message
plate
Bodhisattva
Bodhisattva


Joined: 25 Jul 2002
Posts: 1663
Location: Berlin

PostPosted: Sat Mar 01, 2003 1:35 am    Post subject: Reply with quote

Lovely. You're not the only one with coffee stains any longer, I've sprayed particles of my breakfast on the screen when I read your post. Anybody want to come over and carefully scrape bacon'n'eggs off the TFT screen? What an odd-yssey for a simple grep. Thank $deity it's so robust. Ulysses was thrown back and forth between Scylla and Charybdis, but he wouldn't have managed to survive in either, let alone both. :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum