Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 295157 - app-backup/bacula always tries to overwrite config
Summary: app-backup/bacula always tries to overwrite config
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-30 09:41 UTC by Adam Nielsen
Modified: 2009-12-01 14:21 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 Adam Nielsen 2009-11-30 09:41:06 UTC
Is there any way that the Bacula e-builds can *not* install updates to the files in /etc/bacula/?  Every time an upgrade happens I have to keep deleting the "new" configuration files which would otherwise break my networked Bacula config.

It would be fine installing these config files for a new install, but it's not necessary when upgrading as the only change is replacing your valid password with a randomly generated password.
Comment 1 Dawid Węgliński (RETIRED) gentoo-dev 2009-11-30 10:05:48 UTC
No. That's why /etc/ is under CONFIG_PROTECT - to protect configuration files from being overwritten and changing new config files name to ._cfg0000_$progname.conf and let you merge those changes without breaking existing configuration. It would be painful to port your config files if there were any syntax changes between versions.

For more informations about CONFIG_PROTECT see http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=5#doc_chap1

If i misunderstood your report and portage *literally* overwrites your configs, please reopen this bug. Unless you do, this bug is invalid.
Comment 2 Adam Nielsen 2009-11-30 13:09:41 UTC
Sorry, perhaps I didn't explain that properly.  No config files are overwritten, but the .cfg0000_$progname.conf files are not necessary and are annoying to delete after every single upgrade.

Because of the purpose of the config files, structure changes will seldom occur (none yet in the last couple of years) so I feel that it is unnecessary to keep supplying these config files during an upgrade when every user will need to delete the .cfg0000 files every time.

Perhaps they could be supplied as .conf.sample files instead, if they could then be overwritten automatically?
Comment 3 Dawid Węgliński (RETIRED) gentoo-dev 2009-12-01 14:21:59 UTC
No. This is intended behavior and merging configuration files (eg. by etc-update or dispatch-conf) is part of an upgrade process.