Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 157419

Summary: x11-libs/gtk+-2.10.6 - broken upgrade instructions
Product: Gentoo Linux Reporter: Jakub Moc (RETIRED) <jakub>
Component: New packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: 2006.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jakub Moc (RETIRED) gentoo-dev 2006-12-07 04:51:45 UTC
<snip>
elog "emerge -va1 \$(qfile -qC" /usr/lib/gtk-2.0/2.[^1]* ")"
</snip>

The above doesn't work at all, only produces an error: 

emerge: error: no such option: -[ 

Here's a working command: emerge -av1 $(qfile -qC /usr/lib/gtk-2.0/2.[^1]*)
Comment 1 Mart Raudsepp gentoo-dev 2006-12-07 05:00:20 UTC
Thanks for noticing this, after 5 months of it being so :)
Quite embarassing in hindsight. Fixed now
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-12-10 12:20:20 UTC
OK, ended up like this:

<snip>
elog "You need to rebuild ebuilds that installed into" /usr/lib/gtk-2.0/2.[^1]*
</snip>

Obviously not what's intended... ;)
Comment 3 Daniel Gryniewicz (RETIRED) gentoo-dev 2006-12-12 06:40:38 UTC
Jakub:  What's wrong with that?  I just tested it on a box with a /usr/lib/gtk-2.0/2.4.0 dir, and it correctly printed that dir.  Obviously on a box with only /usr/lib/gtk-2.0/2.10.x, it will print the glob, but the if protection should work correctly, yes?
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-12-12 07:22:48 UTC
(In reply to comment #3)
> Jakub:  What's wrong with that?  I just tested it on a box with a
> /usr/lib/gtk-2.0/2.4.0 dir, and it correctly printed that dir.  Obviously on a
> box with only /usr/lib/gtk-2.0/2.10.x, it will print the glob, but the if
> protection should work correctly, yes?

Uhm? Like, it's supposed to be quoted within the elog statement (or just drop it from there altogether, it's plain redundant), so that it doesn't try to execute the regex or whatnot instead? What are you trying to do there?
Comment 5 Daniel Gryniewicz (RETIRED) gentoo-dev 2006-12-12 07:36:06 UTC
Well, I didn't write it, but I believe it's trying to print the directory.  If you quote it, it doesn't expand.  It's not running the command, it's on a qlog line, it's just parameter expanding it (file globbing in this case) and passing it to qlog.  The original command was being run, I admit, because of the $(), but this is not being run, as far as I can tell.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-12-12 07:50:59 UTC
Closing.