Bug 204822 - apache-2.2.6-r6 use deprecated baselayout vars in init script
Bug#: 204822 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: apache-bugs@gentoo.org Reported By: casta@xwing.info
Component: Ebuilds
URL: 
Summary: apache-2.2.6-r6 use deprecated baselayout vars in init script
Keywords:  
Status Whiteboard: 
Opened: 2008-01-07 21:07 0000
Description:   Opened: 2008-01-07 21:07 0000
Hi,

The Gentoo init script for apache2 (2.2.6-r6 at least, not tested other
version, but I think it should be the same) use the old deprecated "myservice"
var in "reload", "graceful" and "gracefulstop" init script functions.

This "$myservice" var is always defined with baselayout-1.12*, but is marked as
deprecated and does not work anymore with baselayout-2 (var no more defined),
so the init script is simply broken with baselayout-2

Extract from the baselayout changelog that speaks about this deprecation :

02 Mar 2006; Roy Marples <uberlord@gentoo.org>:

    $myservice is now deprecated for init scripts.
    $SVCNAME should be used instead and is read-only so it cannot be
    clobbered.


Please could you update ?
The small patch against 2.2.6-r6 apache patchset follows (simply replacing
myservice with SVCNAME)

Thanks

------- Comment #1 From Guillaume Castagnino 2008-01-07 21:08:29 0000 -------
Created an attachment (id=140409) [details]
apache-init-deprecated.patch

patch that fix the apache init script for baselayout-2 replacing deprecated
vars

------- Comment #2 From Benedikt Böhm 2008-01-07 22:59:18 0000 -------
fixed in -r7, thanks