Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 150178 - emerge --pretend --config does not pretend
Summary: emerge --pretend --config does not pretend
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 147007
  Show dependency tree
 
Reported: 2006-10-05 10:02 UTC by michael@smith-li.com
Modified: 2006-10-06 04:43 UTC (History)
0 users

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 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.