Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 713326 - app-portage/gentoolkit: euse can't enable use flags when make.conf is a include directory
Summary: app-portage/gentoolkit: euse can't enable use flags when make.conf is a inclu...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal minor (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-18 22:09 UTC by Citizen Kepler
Modified: 2020-03-22 14:35 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 Citizen Kepler 2020-03-18 22:09:18 UTC
When /etc/make.conf is a directory containing include files, the euse tool can not enable use flags.

Version: 0.4.6


Reproducible: Always

Steps to Reproduce:

The issue occures when /etc/portage/make.conf is used as a include directory and not a file.  The euse tool does not expect this and fails poorly. 

Replication

Backup current make.conf 

$> mv /etc/portage/make.conf /etc/portage/make.conf.backup

Create make.conf include directory

$> mkdir /etc/portage/make.conf

Make a copy of the backed up make.conf in the new include directory.
 Note: I used local, but the filename can be anything, or multiple files

$> cp /etc/portage/make.conf /etc/portage/make.conf/local

With the Environment setup, I issue a euse command to enable a use flag (alsa in this case) 

$> euse -E alsa
/usr/bin/euse: line 278: source: /etc/portage/make.conf: is a directory
Adding flag "alsa" to make.conf
cp: -r not specified; omitting directory '/etc/portage/make.conf'
/usr/bin/euse: line 1162: /etc/portage/make.conf.euse_backup: No such file or directory
/usr/bin/euse: line 1267: /etc/portage/make.conf: Is a directory
/etc/portage/make.conf was modified, a backup copy has been placed at /etc/portage/make.conf.euse_backup
$> 


Expected Results:  
I expect the script to fail gracefully citing that a make.conf include directory is not supported, or make changes to support a make.conf include directory.

Relevant other make.conf include directory bug I found with euse:

#556514 - app-portage/gentoolkit: euse can't source files from make.conf directory

This is a similar bug, but relating to sourcing in the files from the include directory.  The case filed above is reporting changes to the make.conf file/directory that are in error.