Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Opinions on package USE flags and KEYWORD unmasking

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
Genone
Retired Dev
Retired Dev
User avatar
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

Opinions on package USE flags and KEYWORD unmasking

  • Quote

Post by Genone » Thu Aug 07, 2003 4:19 pm

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: Select all

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: Select all

sys-apps/portage
in package.use:

Code: Select all

x11-libs/wxGTK -gtk2
in package.keyword:

Code: Select all

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.
Top
Pythonhead
Developer
Developer
User avatar
Posts: 1801
Joined: Mon Dec 16, 2002 6:30 pm
Location: Redondo Beach, Republic of Calif.
Contact:
Contact Pythonhead
Website

  • Quote

Post by Pythonhead » Thu Aug 07, 2003 4:56 pm

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.
Top
dma
Guru
Guru
Posts: 437
Joined: Fri Jan 31, 2003 9:13 pm
Location: Charlotte, NC, USA
Contact:
Contact dma
Website

  • Quote

Post by dma » Thu Aug 07, 2003 5:52 pm

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....
Top
Genone
Retired Dev
Retired Dev
User avatar
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

  • Quote

Post by Genone » Thu Aug 07, 2003 9:42 pm

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: Select all

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.
Top
Genone
Retired Dev
Retired Dev
User avatar
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

  • Quote

Post by Genone » Sat Aug 09, 2003 4:21 am

only two opinions for such a requested feature ? Come on, that can't be all ...
Top
co-D
n00b
n00b
Posts: 16
Joined: Wed Mar 19, 2003 5:18 pm

keywords and package unmasking

  • Quote

Post by co-D » Sun Oct 05, 2003 1:39 am

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: Select all

<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: Select all

STICKY_USE="list of flags" STICKY_ACCEPT_KEYWORDS=~x86 emerge --sticky-inject [package list] 
Top
Post Reply

6 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic