Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Opinions on package USE flags and KEYWORD unmasking
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
Genone
Retired Dev
Retired Dev


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

PostPosted: Thu Aug 07, 2003 4:19 pm    Post subject: Opinions on package USE flags and KEYWORD unmasking Reply with quote

Hi,

there is currently some discussion at bug 13616 about the file format for package specific USE flags, KEYWORDS and masking. The main difference is if we should use one file for everything or multiple files for each variable. I'll give you an example for both cases:

one file for everything:
Code:

sys-apps/portage
UNMASK=1

x11-libs/wxGTK
USE="-gtk2"
KEYWORDS="~x86"

net-im/gaim
KEYWORDS="~x86"


if we use multiple files, we have the following:

in package.unmask:
Code:
sys-apps/portage


in package.use:
Code:
x11-libs/wxGTK -gtk2


in package.keyword:
Code:
net-im/gaim
x11-libs/wxGTK


I'd like to get some user opinions on the issue: what format do you like more and why ?


Last edited by Genone on Fri Aug 08, 2003 9:38 am; edited 1 time in total
Back to top
View user's profile Send private message
Pythonhead
Developer
Developer


Joined: 16 Dec 2002
Posts: 1801
Location: Redondo Beach, Republic of Calif.

PostPosted: Thu Aug 07, 2003 4:56 pm    Post subject: Reply with quote

I like the idea of separate files. Easy to understand, less chances of the user screwing up the file.

If you write portage utilities it would be much easier to parse any single file than one file with everything in it.
Back to top
View user's profile Send private message
dma
Guru
Guru


Joined: 31 Jan 2003
Posts: 437
Location: Charlotte, NC, USA

PostPosted: Thu Aug 07, 2003 5:52 pm    Post subject: Reply with quote

You'll need to support the "<net-www/apache-2", etc.

You might have both apache2 and apache1 installed and might want to exclude PHP from the apache2 build for various reasons....
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


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

PostPosted: Thu Aug 07, 2003 9:42 pm    Post subject: Reply with quote

Hmm, there are two different implementations for package.keyword, the one I said and one that support arbitrary keywords, so the example would look like:

Code:
net-im/gaim ~x86
net-irc/xchat ~x86


That solution also supports versions as does the solution for package.use. The package.keyword implementation from my first post does not support versions.
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


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

PostPosted: Sat Aug 09, 2003 4:21 am    Post subject: Reply with quote

only two opinions for such a requested feature ? Come on, that can't be all ...
Back to top
View user's profile Send private message
co-D
n00b
n00b


Joined: 19 Mar 2003
Posts: 16

PostPosted: Sun Oct 05, 2003 1:39 am    Post subject: keywords and package unmasking Reply with quote

I agree that the current state of portage makes it difficult to maintain a mixture of masked and unmasked packages.

Having multiple files such as /etc/portage/package.unmask - /etc/portage/package.mask - as well as the /etc/make.profile/packages, etc. makes it hard to keep track of what is actually taking place. I'd like to see all relevant info in one file, say an entry like
Code:

<media-gfx/sane-backends-1.0.11 --mask
media-sound/alsa-driver --inject
>=media-libs/alsa-lib-0.9.6 --unmask
dev-php/php flash memlimit mysql ldap imap informix curl gd mcal -snmp gd-external innodb


--mask should mask a given build or range thereof;

--unmask should use ACCEPT_KEYWORDS="~x86" (for example)for that particular package-version or greater, allowing one to emerge -UD world and not get errors about masked packages or having to emerge everything else as masked packages. In effect, treating that installed version as a stable build.

--inject should also be allowed to be reproduced in upgrades(new releases inject new package replacing old injected build)

USE flags should also persist across updates for specific packages if explicitly stated in this file.

Finally, apart from having this file to edit, i think it would be good to do this automatically on build time, say with something like:
Code:

STICKY_USE="list of flags" STICKY_ACCEPT_KEYWORDS=~x86 emerge --sticky-inject [package list]
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