Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/etc/portage/package.keywords and wildcards
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
garyd9
n00b
n00b


Joined: 07 Apr 2004
Posts: 28

PostPosted: Wed Apr 21, 2004 4:39 pm    Post subject: /etc/portage/package.keywords and wildcards Reply with quote

I'm trying to find a simple way to tell emerge to accept the ~x86 keyword for all kde packages.. but without having to spell out each individual package thats in kde-base/

I've tried the following strings in package.keywords, but neither of them work:

kde-base/* ~x86
kde-base/kde ~x86

Is there any way to do this without specifying each individual kde-base/* package?

Thanks
Gary
Back to top
View user's profile Send private message
Carlo
Developer
Developer


Joined: 12 Aug 2002
Posts: 3356

PostPosted: Wed Apr 21, 2004 6:52 pm    Post subject: Reply with quote

Not at the moment.


Carlo
_________________
Please make sure that you have searched for an answer to a question after reading all the relevant docs.
Back to top
View user's profile Send private message
garyd9
n00b
n00b


Joined: 07 Apr 2004
Posts: 28

PostPosted: Wed Apr 21, 2004 8:30 pm    Post subject: Reply with quote

WELL THAT COMPLETELY SUCKS! GENTOO SUCKS! I WANT MY MONEY BACK. ;)

Well, damn.. thats the FIRST thing I've seen that I can't do with gentoo. I'm actually a bit shocked.

Okay, I know there's an answer to this question somewhere, but for some reason I can't find it. Not sure if I can't find the right search keywords, or the daughter screaming in the background is distracting me...

I like doing "emerge kde". However, I neither need, nor want, anything in the "kdeedu" package. I also would prefer not having to re-edit files after every time I do an 'emerge sync'. I seem to remember that there's a way to mask kdeedu out of the 'kde' set of packages, but can't remember.. Any help?

Thanks
Gary
Back to top
View user's profile Send private message
LinuxRocks
Guru
Guru


Joined: 27 Nov 2003
Posts: 397
Location: New Mexico

PostPosted: Wed Apr 21, 2004 9:14 pm    Post subject: Reply with quote

Well, I'm sort of a noob, but when I emrged 3.2.2, I just did an ACCEPT_KEYWORDS="~x86" emerge --pretend kde and it showed me what it was going to install. You can also substiture --pretend for search and it will show you all the versions, regular and masked. Then you can select. If you like the ACCEPT_KEYWORDS thing, then you can add it to the make.conf file and it will do it by default so you dont have to type it out all the time...

Thought I would through that in for ya :)

Joe
Back to top
View user's profile Send private message
tactless
l33t
l33t


Joined: 14 Jul 2002
Posts: 642
Location: Mitzpe Adi, Israel

PostPosted: Wed Apr 21, 2004 9:16 pm    Post subject: Reply with quote

You don't mask it... you inject it (emerge inject category/package).

As for doing a keyword on an entire category... well, thinking about it, it makes perfect sense for kde or gnome, but what about the sys-apps category? That wouldn't work... I think the whole way gnome and kde appear in portage should be redone (subcategories! :)), but such a change would be overkill for this particular problem...
_________________
Tactless

"If it wasn't for fog, the world would run at a really crappy framerate."

Jabber: tactless@amessage.info
Back to top
View user's profile Send private message
LinuxRocks
Guru
Guru


Joined: 27 Nov 2003
Posts: 397
Location: New Mexico

PostPosted: Wed Apr 21, 2004 9:56 pm    Post subject: Reply with quote

What would the inject do?

Thanks!!!

Joe
Back to top
View user's profile Send private message
robmoss
Retired Dev
Retired Dev


Joined: 27 May 2003
Posts: 2634
Location: Jesus College, Oxford

PostPosted: Wed Apr 21, 2004 10:04 pm    Post subject: Reply with quote

Try this:

Code:
cd /usr/portage
for p in kde*/*; do echo ${p} "~x86" >> /etc/portage/package.keywords; done

_________________
Reality is for those who can't face Science Fiction.

emerge -U will kill your Gentoo
ecatmur, Lord of Portage Bash Scripts
Back to top
View user's profile Send private message
Carlo
Developer
Developer


Joined: 12 Aug 2002
Posts: 3356

PostPosted: Wed Apr 21, 2004 10:36 pm    Post subject: Reply with quote

garyd9 wrote:
Well, damn.. thats the FIRST thing I've seen that I can't do with gentoo. I'm actually a bit shocked.

This feature is already requested.

edit: To your question: Either you create your own kde meta ebuild in your local portage overlay directory or just don't use it and emerge kdelibs, kdebase, etc. one after another. Just be sure that you emerge kdeaddons at last, if you want to install it.


Carlo
_________________
Please make sure that you have searched for an answer to a question after reading all the relevant docs.
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9535
Location: beyond the rim

PostPosted: Wed Apr 21, 2004 11:58 pm    Post subject: Reply with quote

https://bugs.gentoo.org/show_bug.cgi?id=47192
Back to top
View user's profile Send private message
Gil-galad55
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2004
Posts: 101

PostPosted: Tue May 04, 2004 6:56 pm    Post subject: Reply with quote

Why was it decided that this feature was no good? Unless there's a shortcut around it, it makes mixing stable/unstable a true pain, and that makes testing a pain. Any thoughts on a workaround? I see a package.keywords that's laden with all the dependencies a fairly inelegant solution. The script below is fine for building said file, but it just seems klunky.
_________________
a^2 + b^2 = c^2
"To strive, to seek, to find, and not to yield." Tennyson
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9535
Location: beyond the rim

PostPosted: Tue May 04, 2004 8:16 pm    Post subject: Reply with quote

Main reason is to keep the syntax clean. There is no way that we support general regular expressions in the package.{keywords,use,unmask,mask} files (large performance impact, docs have to be rewritten, support becomes a nightmare, portage would have even more inconsistent syntax). Also for example the * operator has already a meaning for portage, so it would become ambigous with regexp support, same for other characters.
The only thing I would have supported is whole-category matching, but even that was shot down.


Last edited by Genone on Tue May 04, 2004 9:43 pm; edited 1 time in total
Back to top
View user's profile Send private message
tactless
l33t
l33t


Joined: 14 Jul 2002
Posts: 642
Location: Mitzpe Adi, Israel

PostPosted: Tue May 04, 2004 9:28 pm    Post subject: Reply with quote

How about a special option to automatically arch-unmask all ebuilds that a certain ebuild RDEPENDS on? (Why do the kde and gnome ebuilds use RDEPEND anyway?)
_________________
Tactless

"If it wasn't for fog, the world would run at a really crappy framerate."

Jabber: tactless@amessage.info
Back to top
View user's profile Send private message
Gil-galad55
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2004
Posts: 101

PostPosted: Tue May 04, 2004 11:43 pm    Post subject: Reply with quote

Genone wrote:
Main reason is to keep the syntax clean. There is no way that we support general regular expressions in the package.{keywords,use,unmask,mask} files (large performance impact, docs have to be rewritten, support becomes a nightmare, portage would have even more inconsistent syntax). Also for example the * operator has already a meaning for portage, so it would become ambigous with regexp support, same for other characters.
The only thing I would have supported is whole-category matching, but even that was shot down.


Ah, now that makes sense. Thanks for the explanation :) Still, if anyone comes up with a hack, lemme know!
_________________
a^2 + b^2 = c^2
"To strive, to seek, to find, and not to yield." Tennyson
Back to top
View user's profile Send private message
Carlo
Developer
Developer


Joined: 12 Aug 2002
Posts: 3356

PostPosted: Wed May 05, 2004 8:39 am    Post subject: Reply with quote

Gil-galad55 wrote:
Any thoughts on a workaround?

Write a script, that accepts the expressions you want and deals with package.* files for you.
_________________
Please make sure that you have searched for an answer to a question after reading all the relevant docs.
Back to top
View user's profile Send private message
Gil-galad55
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2004
Posts: 101

PostPosted: Wed May 05, 2004 1:36 pm    Post subject: Reply with quote

Ah, true, a middle man script. That would work nicely.
_________________
a^2 + b^2 = c^2
"To strive, to seek, to find, and not to yield." Tennyson
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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