Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 76460 - Module configuration file upgrade paths
Summary: Module configuration file upgrade paths
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 76457
  Show dependency tree
 
Reported: 2005-01-02 16:35 UTC by Michael Stewart (vericgar) (RETIRED)
Modified: 2005-01-25 02:39 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 Stewart (vericgar) (RETIRED) gentoo-dev 2005-01-02 16:35:39 UTC
<vericgar> I think I just found an issue with clean upgrade paths after we merge on Saturday... module configuration files. For most modules, the config file the ebuild references is the same before and after the merge, but the config file changes after the merge (due to path changes extramodules -> modules). The issue is that if someone installs a module after our merge, but before the merged ebuilds are in stable, they will get the old ebuild with the new config, and the new config won't work (because paths haven't changed)
<vericgar> the hackish solution is to rename the config file for the new ebuild, for example files/11_mod_auth_kerb.conf would become files/12_mod_auth_kerb.conf (or whatever you want), but it can't contain the version/revision of the ebuild because filenames are kept when installing config files in the eclass. (This is an issue because of CONFIG_PROTECT, the installed config files for the same module but different versions would be different)
<vericgar> The optimal solution would be a change to the eclass that allows the ebuild to specify the filename of the config, and what it should be installed as (currently it only accepts the filename of the config in the files/ directory and uses the same filename when placing it in /etc)
<vericgar> both ways will require changing every module. The third solution (not really) is to just leave it, and tell users who file bugs to fix the paths in the config or upgrade to the unstable version
Comment 1 Michael Stewart (vericgar) (RETIRED) gentoo-dev 2005-01-02 16:50:46 UTC
<Stuart> vericgar: just put the config files into a directory under ${FILESDIR}, like we used to do for apache itself
<vericgar> Stuart: hmm. that will work. still need to change all the to-be-merged ebuilds, but that's not a big deal.
Comment 2 Michael Stewart (vericgar) (RETIRED) gentoo-dev 2005-01-05 08:37:19 UTC
I believe I have fixed all cases where the configuration files would overwrite the ones currently in portage. I will double-check every package as I do pre-merge QA.
Comment 3 Michael Stewart (vericgar) (RETIRED) gentoo-dev 2005-01-25 02:39:46 UTC
Verified that all packages were fixed before the merge.