Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 150178

Summary: emerge --pretend --config does not pretend
Product: Portage Development Reporter: michael <michael>
Component: Core - Interface (emerge)Assignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: High    
Version: 2.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 147007    

Description michael@smith-li.com 2006-10-05 10:02:47 UTC
emerge --pretend --config actually goes forward with the --config. There are several side effects:

1) If the user is not root, emerge tries to run the config anyway. This is confusing, (if not particularly dangerous) because the --config for mysql asks, "Insert a password for the mysql 'root' user", which could be misconstrued.
2) If the user is root, emerge runs the config as if the --pretend option were not there.

dell mysql # emerge --pretend --config =dev-db/mysql-4.1.21

Configuring pkg...

 * MySQL DATADIR is /var/lib/mysql
 * Creating the mysql database and setting proper
 * permissions on it ...
 * Insert a password for the mysql 'root' user
 * Avoid ["'\_%] characters in the password
    >
 * Retype the password
    >
. * Loading "zoneinfo", this step may require a few seconds ...
 * Stopping the server ...
 * Done

If there's no better idea, --pretend --config should probably just say 
emerge: "config" actions do not support "--pretend" (same as --sync --pretend).

I didn't think my emerge --info was relevant, and didn't want to take up that much space unnecessarily. Please let me know if you need it.
Comment 1 Zac Medico gentoo-dev 2006-10-05 17:56:28 UTC
Thanks, this is fixed in svn r4600.
Comment 2 Zac Medico gentoo-dev 2006-10-06 04:43:15 UTC
This has been released in 2.1.2_pre2-r5.