<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>204822</bug_id>
          
          <creation_ts>2008-01-07 21:07 0000</creation_ts>
          <short_desc>apache-2.2.6-r6 use deprecated baselayout vars in init script</short_desc>
          <delta_ts>2008-01-07 22:59:18 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>casta@xwing.info</reporter>
          <assigned_to>apache-bugs@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>casta@xwing.info</who>
            <bug_when>2008-01-07 21:07:23 0000</bug_when>
            <thetext>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 &quot;myservice&quot; var in &quot;reload&quot;, &quot;graceful&quot; and &quot;gracefulstop&quot; init script functions.

This &quot;$myservice&quot; 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 &lt;uberlord@gentoo.org&gt;:

    $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</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>casta@xwing.info</who>
            <bug_when>2008-01-07 21:08:29 0000</bug_when>
            <thetext>Created an attachment (id=140409)
apache-init-deprecated.patch

patch that fix the apache init script for baselayout-2 replacing deprecated vars</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>hollow@gentoo.org</who>
            <bug_when>2008-01-07 22:59:18 0000</bug_when>
            <thetext>fixed in -r7, thanks</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>140409</attachid>
            <date>2008-01-07 21:08 0000</date>
            <desc>apache-init-deprecated.patch</desc>
            <filename>apache-init-deprecated.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGdlbnRvby1hcGFjaGUtMi4yLjYtcjYvaW5pdC9hcGFjaGUyLmluaXRkLm9sZAkyMDA4LTAx
LTA3IDIxOjU4OjEzLjAwMDAwMDAwMCArMDEwMAorKysgZ2VudG9vLWFwYWNoZS0yLjIuNi1yNi9p
bml0L2FwYWNoZTIuaW5pdGQJMjAwOC0wMS0wNyAyMTo1ODo0MS4wMDAwMDAwMDAgKzAxMDAKQEAg
LTcwLDcgKzcwLDcgQEAKIAlSRUxPQURfVFlQRT0iJHtSRUxPQURfVFlQRTotZ3JhY2VmdWx9Igog
CiAJY2hlY2tjb25maWcgfHwgcmV0dXJuIDEKLQlzZXJ2aWNlX3N0YXJ0ZWQgIiR7bXlzZXJ2aWNl
fSIgfHwgcmV0dXJuCisJc2VydmljZV9zdGFydGVkICIke1NWQ05BTUV9IiB8fCByZXR1cm4KIAog
CWlmIFsgIiR7UkVMT0FEX1RZUEV9IiA9ICJyZXN0YXJ0IiBdOyB0aGVuCiAJCWViZWdpbiAiUmVz
dGFydGluZyBhcGFjaGUyIgpAQCAtODcsNyArODcsNyBAQAogCiBncmFjZWZ1bCgpIHsKIAljaGVj
a2NvbmZpZyB8fCByZXR1cm4gMQotCXNlcnZpY2Vfc3RhcnRlZCAiJHtteXNlcnZpY2V9IiB8fCBy
ZXR1cm4KKwlz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