Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 257969 - sys-devel/crossdev-0.9.18-r10 tampers with /etc/portage/package.use
Summary: sys-devel/crossdev-0.9.18-r10 tampers with /etc/portage/package.use
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-07 00:56 UTC by Eric Westbrook
Modified: 2009-02-09 17:02 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Westbrook 2009-02-07 00:56:06 UTC
crossdev adds/changes lines in /etc/portage/package.use.  It is my understanding (and my strong preference) that ebuilds shouldn't mess with /etc/portage/package.* files directly, since the purpose of those files is *human* specification of per-package options.  Surely there is a more proper way to specify the options that crossdev wants when emerging components (such as USE=blah emerge foo).

Reproducible: Always

Steps to Reproduce:
1. crossdev -t avr --without-headers

Actual Results:  
Lines appear in /etc/portage/package.use:

cross-2.18-r3/binutils -selinux
cross-avr/avr-libc -selinux
cross-avr/binutils -selinux
cross-avr/gcc -boundschecking -d -fortran -gtk -gcj -libffi -mudflap -objc -objc++ -objc-gc -openmp -selinux -boundschecking -d -fortran -gtk -gcj -libffi -mudflap -objc -objc++ -objc-gc -openmp nocxx

Expected Results:  
No changes to /etc/portage/package.* files is expected.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2009-02-09 16:15:01 UTC
(In reply to comment #0)
> crossdev adds/changes lines in /etc/portage/package.use.  It is my
> understanding (and my strong preference) that ebuilds shouldn't mess with
> /etc/portage/package.* files directly,

That is not the case. The crossdev ebuild installs a script which you then use as root to alter some configuration files that affect sys-apps/portage.

> Expected Results:  
> No changes to /etc/portage/package.* files is expected.

You're looking for a --pretend option, I guess.
Comment 2 SpanKY gentoo-dev 2009-02-09 17:02:32 UTC
crossdev isnt an ebuild and so gets to tamper all it likes

the changes are a lot more sane if you use a dir and use sep files in /etc/portage/package.use/ ...