Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 407207 - app-portage/gentoolkit-0.3.0.5 euse doesn't properly detect /etc/portage/make.conf
Summary: app-portage/gentoolkit-0.3.0.5 euse doesn't properly detect /etc/portage/make...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 346443
  Show dependency tree
 
Reported: 2012-03-07 01:38 UTC by Paul Varner (RETIRED)
Modified: 2015-10-16 18:08 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 Paul Varner (RETIRED) gentoo-dev 2012-03-07 01:38:59 UTC
If /etc/portage/make.conf exists and /etc/make.conf does not exist. euse will not detect that /etc/portage/make.conf exists unless the file contains a USE="..." statement. 

If only /etc/portage/make.conf exists, then euse should use that file for making USE flag changes
Comment 1 Duncan 2012-09-23 06:45:07 UTC
Six months without even a comment, /etc/portage/make.conf is now the default, and it's still broken. <sigh>

($>> is the third line of my bash prompt, which also includes a blank first line.  The second line is omitted here as extraneous.)
---

$>>euse -i xattr
ERROR: make.conf does not exist

$>>cat /etc/portage/make.conf
source /etc/portage/make/master

$>>cat /etc/make.conf
cat: /etc/make.conf: No such file or directory

$>>cat /etc/portage/make/master 
source /etc/portage/make/cflags
source /etc/portage/make/collision-ignore
source /etc/portage/make/features
source /etc/portage/make/fs
source /etc/portage/make/ldflags
source /etc/portage/make/log
source /etc/portage/make/makeopts
source /etc/portage/make/mirrors
source /etc/portage/make/net
source /etc/portage/make/use
source /etc/portage/make/use.expand
source /etc/portage/make/other
source /etc/portage/make/layman

$>>
---

The actual USE flags are in /etc/portage/make/use, but that shouldn't matter for a simple euse -i, which doesn't actually write anything to make.conf anyway.

=:^(

I know enough not to try actually SETTING USE flags via euse with that sort of setup, but euse -i should still work to query descriptions!

For just checking a package's USE flag description and status, I use equery u, but here I wanted to see which packages had their own customized description, and how it differed from the global description, if any.  euse -i  USED to give me that sort of info.  I guess not any more. =:^(
Comment 2 Paul Varner (RETIRED) gentoo-dev 2012-09-25 04:44:32 UTC
It's been fixed in gentoolkit-9999, it just needs to be released.

# cat /etc/make.conf
cat: /etc/make.conf: No such file or directory

# euse -i xattr
global use flags (searching: xattr)
************************************************************
[-      ] xattr - Adds support for extended attributes (filesystem-stored metadata)
Comment 3 Paul Varner (RETIRED) gentoo-dev 2012-09-25 08:51:54 UTC
Nevermind the previous comment, this is not fixed.
Comment 4 Paul Varner (RETIRED) gentoo-dev 2012-09-26 06:21:20 UTC
Okay, this is now fixed in git.  euse will now work properly even with your setup, (although you would need to do some manual cleanup when done).  I will try to have a new release out shortly, however, real life work is currently kicking my butt.


# cat /etc/portage/make.conf
source /etc/portage/make/master
source /etc/portage/make/use
# cat /etc/portage/make/use
USE="icu ipv6 mmx semantic-desktop sse sse2 \
     -cups -ldap"
# ./euse -i -g xattr
global use flags (searching: xattr)
************************************************************
[-      ] xattr - Adds support for extended attributes (filesystem-stored metadata)
# ./euse -E ipv6
WARNING: Use flag "ipv6" is already enabled globally
# ./euse -D ipv6
Removing flag "ipv6" from make.conf
Adding flag "-ipv6" to make.conf
/etc/portage/make.conf was modified, a backup copy has been placed at /etc/portage/make.conf.euse_backup
# emerge -pv wireshark

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] net-analyzer/wireshark-1.8.2-r3  USE="caps geoip gtk pcap ssl zlib -adns -doc -doc-pdf -gcrypt -ipv6* -kerberos -libadns -lua -portaudio -profile -python (-selinux) -smi" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB
# cat /etc/portage/make.conf
source /etc/portage/make/master
source /etc/portage/make/use
USE="icu mmx semantic-desktop sse sse2 -cups -ldap -ipv6"
# ./euse -E ipv6
Removing flag "-ipv6" from make.conf
Adding flag "ipv6" to make.conf
/etc/portage/make.conf was modified, a backup copy has been placed at /etc/portage/make.conf.euse_backup
# emerge -pv wireshark

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] net-analyzer/wireshark-1.8.2-r3  USE="caps geoip gtk ipv6 pcap ssl zlib -adns -doc -doc-pdf -gcrypt -kerberos -libadns -lua -portaudio -profile -python (-selinux) -smi" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB
Comment 5 Duncan 2012-09-26 08:16:38 UTC
(In reply to comment #4)
> Okay, this is now fixed in git.  euse will now work properly even with your
> setup, (although you would need to do some manual cleanup when done).

Thanks.

And sorry if my first comment sounded a bit cross.  I just think the announcement of the change to the stages and the news item came with too little time to make a push and get things like this fixed /before/ the change, thus not exposing stable users and newbies to the potential breakage.  While we knew it was /going/ to happen... someday... by the time we knew /now/ was the time to test and to push fixes, it was too late, and stable users and newbies have been needlessly exposed to problems.  But AFAIK you weren't the one that pushed that, so I've no reason to be cross at you, or anyone actually scrambling to get out the fixes now, and I think it came across as if I was.  For that I do apologize.

On the positive side, I believe the -I/--info-installed option is new since the last time I actually looked at the docs, which was probably when I first started using euse -i to lookup USE flag descriptions, many years ago now.  Now I have a new toy to play with... or at least I do when that release comes out. =:^)
Comment 6 Paul Varner (RETIRED) gentoo-dev 2015-10-16 18:08:22 UTC
This was released in gentoolkit-0.3.0.7