Mantis - apache2
Viewing Issue Advanced Details
4948 packaging tweak always 2012-05-24 01:34 2012-08-02 18:47
briandking  
bwalton  
normal  
closed  
fixed  
none    
none  
0004948: packaging of envvars clobbers local envvars on an upgrade
I would like to suggest that the envvars file be packaged the same way httpd.conf is, so that when apache is upgraded, it doesn't clobber a site specific envvars file.

E.g. httpd.conf is not clobbered because it's packaged as httpd.conf.CSW:

/opt/csw/apache2/etc/httpd.conf.CSW f none 0644 root bin 17158 11884 1326427072 CSWapache2

envvars is clobbered because it's packaged twice:

/opt/csw/apache2/sbin/envvars f none 0644 root bin 976 18721 1326427061 CSWapache2
/opt/csw/apache2/sbin/envvars-std f none 0644 root bin 976 18721 1326427061 CSWapache2

If the /opt/csw/apache2/sbin/envvars was dropped, an example envvars would still be distributed, and the local envvars would not be overwritten.
Issue History
2012-05-24 01:34 briandking New Issue
2012-05-31 01:52 bwalton Status new => assigned
2012-05-31 01:52 bwalton Assigned To => bwalton
2012-05-31 03:13 bwalton Note Added: 0009886
2012-06-02 02:24 bwalton Note Added: 0009891
2012-08-02 18:47 bwalton Note Added: 0010077
2012-08-02 18:47 bwalton Status assigned => closed
2012-08-02 18:47 bwalton Resolution open => fixed

Notes
(0009886)
bwalton   
2012-05-31 03:13   
I agree 100%. I'll get this fixed up asap. The file will move into etc/ and will be treated as a preservable configuration file.

Thanks
-Ben
(0009891)
bwalton   
2012-06-02 02:24   
I've built some updated packages that move envvars{,-std} to etc/. They should be preserved across updates of apache (or a simple remove, re-add). Please test the udpate from here: http://buildfarm.opencsw.org/experimental.html#apache2 [^]

I'll push it to unstable sometime next week unless you note problems with it.

Thanks
-Ben
(0010077)
bwalton   
2012-08-02 18:47   
I've just pushed the package set mentioned in the previous comment that address this issue and allow preserving envvars across updates. The file is moved to /opt/csw/apache2/etc with the rest of the configuration files.