Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 342063 - dev-lang/php ebuild changes apache config ( /etc/conf.d/apache2 ) without asking the user
Summary: dev-lang/php ebuild changes apache config ( /etc/conf.d/apache2 ) without ask...
Status: RESOLVED DUPLICATE of bug 300000
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-21 19:45 UTC by Christoph
Modified: 2010-10-26 17:08 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 Christoph 2010-10-21 19:45:21 UTC
since several versions of php updates i discover a problem which really anoys me really. on every update of php portage changes my APACHE2_OPTS directive in /etc/conf.d/apache2. it does not only change it. it breakes the whole config.

before updating php my config looks like

[snip]
APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D PERUSER -D LANGUAGE -D FASTCGI
              -D PHPMYADMIN_VHOST -D FOOBAR_VHOST -D FOOBAR2_VHOST ..."
[/snip]

after the update it looks like

[snip]
APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D PERUSER -D LANGUAGE -D FASTCGI -D PHPMYADMIN_VHOST -D FOOBAR_VHOST -D FOOBAR2_VHOST ..."
              -D PHPMYADMIN_VHOST -D FOOBAR_VHOST -D FOOBAR2_VHOST ..."
[/snip]

therefore apache wont start up
apache2ctl configtest says

# apache2ctl configtest
/etc/conf.d/apache2: line 36: -D: command not found
/etc/conf.d/apache2: line 75: unexpected EOF while looking for matching `"'
/etc/conf.d/apache2: line 76: syntax error: unexpected end of file

so after update i've got to fix my config file every time i update php by hand

Reproducible: Always

Steps to Reproduce:
1.emerge (update) php
2.try to restart apache
3.

Actual Results:  
config file broken

Expected Results:  
etc-update should announce about config file that should be updated

imho the php ebuild should be changed to use the same api as other ebuilds does to update config files so user can update it over etc-update or dispatch-conf.
Comment 1 Ole Markus With (RETIRED) gentoo-dev 2010-10-26 17:08:54 UTC

*** This bug has been marked as a duplicate of bug 300000 ***