On x86 stable I upgraded apache-2.2.8 and etc-update broke my working config: File: /etc/apache2/modules.d/._cfg0000_16_mod_python.conf 1) Replace original with update 2) Delete update, keeping original as is 3) Interactively merge original with update 4) Show differences again Please select from the menu above (-1 to ignore this update): 3 /etc/apache2/modules.d/._cfg0000_16_mod_python.conf /etc/apache2/modules.d/16_mod_python.conf /var/tmp/etc-update-9398//etc/apache2/modules.d/16_mod_python.conf.merged Merging /etc/apache2/modules.d/._cfg0000_16_mod_python.conf and /etc/apache2/modules.d/16_mod_python.conf <IfModule !mod_python.c> | LoadModule python_module modules/mod_python.so LoadModule python_module modules/mod_python.so < </IfModule> < </IfDefine> < %r <IfModule mod_python.c> < # < %r # < %r # <IfModule mod_mime.c> | # AddHandler python-program .spam # AddHandler python-program .spam | # PythonHandler eggs # </IfModule> < # PythonHandler eggs < %r # SetHandler python-program | # SetHandler python-program # PythonPath "sys.path + ['/path/to']" | # PythonPath "sys.path + ['/path/to']" # PythonHandler myhandler | # PythonHandler myhandler %r # SetHandler python-program | # SetHandler python-program # PythonHandler mod_python.publisher | # PythonHandler mod_python.publisher %r > </IfDefine> %r # This works but cannot be moved into .htaccess | # vim: ts=4 filetype=apache <Directory /home/ires/public_html/IRES2> < AddHandler mod_python .php < # SetHandler mod_python < PythonHandler mod_python.publisher < PythonDebug On < </Directory> < < <Directory /home/conference/public_html> < AddHandler mod_python .py < # SetHandler mod_python < PythonHandler mod_python.publisher < PythonDebug On < </Directory> < < </IfModule> < %l 1) Replace /etc/apache2/modules.d/16_mod_python.conf with merged file 2) Show differences between merged file and original 3) Remerge original with update 4) Edit merged file 5) Return to the previous menu Please select from the menu above (-1 to exit, losing this merge): 1 Replacing /etc/apache2/modules.d/16_mod_python.conf with /var/tmp/etc-update-9398//etc/apache2/modules.d/16_mod_python.conf.merged mv: overwrite `/etc/apache2/modules.d/16_mod_python.conf'? y rm: remove regular file `/etc/apache2/modules.d/._cfg0000_16_mod_python.conf'? y # /etc/init.d/apache2 stop * Caching service dependencies ... [ ok ] * Stopping apache2 ... apache2: Syntax error on line 121 of /etc/apache2/httpd.conf: Syntax error on line 48 of /etc/apache2/modules.d/16_mod_python.conf: </IfModule> without matching <IfModule> section # It turned out there should be </IfDefine> at the very end instead of the </IfModule> and that there is one extra </IfDefine> at the middle of the file. Please check your templates.
the file in portage is correct, maybe you did not update the config file correctly ...
Created attachment 154931 [details] 16_mod_python.conf.diff This show it is caused by the etc-update script.