Your message dated Sun, 30 Jan 2005 09:17:20 -0500
with message-id <[EMAIL PROTECTED]>
and subject line Bug#292835: fixed in lsb 2.0-5
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 30 Jan 2005 12:52:00 +0000
>From [EMAIL PROTECTED] Sun Jan 30 04:52:00 2005
Return-path: <[EMAIL PROTECTED]>
Received: from relay01.mail-hub.dodo.com.au [203.220.32.149] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1CvEYa-0000nk-00; Sun, 30 Jan 2005 04:52:00 -0800
Received: from [203.221.70.124] (helo=[192.168.1.8])
        by relay01.mail-hub.dodo.com.au with esmtp (Exim 3.36 #2)
        id 1CvEYX-0000fA-00
        for [EMAIL PROTECTED]; Sun, 30 Jan 2005 23:51:57 +1100
Message-ID: <[EMAIL PROTECTED]>
Date: Sun, 30 Jan 2005 22:58:53 +1000
From: System Administrator <[EMAIL PROTECTED]>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a5) Gecko/20041015
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: [EMAIL PROTECTED]
Subject: install_initd fails when the Default-Stop header is empty
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Package: lsb
Version: 2.0-1

If an attempt is made to use install_initd to add a startup script which 
has a blank 'Default-Stop' header it will fail.  For example, `make 
install` from the Hewlett-Packard Linux Imaging and Printing Project 
aborts with the following:

# /usr/lib/lsb/install_initd hplip
update-rc.d: error: expected runlevel [0-9S] (did you forget "." ?)
usage: update-rc.d [-n] [-f] <basename> remove
        update-rc.d [-n] <basename> defaults [NN | sNN kNN]
        update-rc.d [-n] <basename> start|stop NN runlvl [runlvl] [...] .
                 -n: not really
                 -f: force


The info section for /etc/init.d/hplip is as follows:
### BEGIN INIT INFO
# Provides: hplip
# Required-Start:
# Required-Stop:
# Default-Start: 3 5
# Default-Stop:
# Description: Start/stop script for HP Linux Imaging and Printing (HPLIP)
### END INIT INFO


This causes the install_initd script to execute the following 
(syntatically invalid) command:
/usr/sbin/update-rc.d hplip start 20 2 3 4 5 . stop 20  .


This problem can be rectified using the following patch:

138c138,141
< os.system("/usr/sbin/update-rc.d %(initfile)s start %(startpri)d 
%(start_runlevels)s . stop %(stoppri)d %(stop_runlevels)s ." % locals())
---
 > cmd = "/usr/sbin/update-rc.d %(initfile)s start %(startpri)d 
%(start_runlevels)s ."
 > if len(defstop) > 0:
 >     cmd += " stop %(stoppri)d %(stop_runlevels)s ."
 > os.system(cmd % locals())


Perhaps a better solution would be to modify the 'get' function in 
/usr/lib/lsb/initdutils.py to not clobber the provided defaults if the 
second argument is blank, i.e.:
defstop = headers.get('Default-Stop', defstop)
returns the initial value of defstop if the Default-Stop header is 
blank.  I don't know whether or not this is the intended behaviour.

Daniel Burr

---------------------------------------
Received: (at 292835-close) by bugs.debian.org; 30 Jan 2005 14:23:03 +0000
>From [EMAIL PROTECTED] Sun Jan 30 06:23:03 2005
Return-path: <[EMAIL PROTECTED]>
Received: from newraff.debian.org [208.185.25.31] (mail)
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1CvFyh-0002pL-00; Sun, 30 Jan 2005 06:23:03 -0800
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
        id 1CvFtA-0005S8-00; Sun, 30 Jan 2005 09:17:20 -0500
From: Chris Lawrence <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
X-Katie: $Revision: 1.55 $
Subject: Bug#292835: fixed in lsb 2.0-5
Message-Id: <[EMAIL PROTECTED]>
Sender: Archive Administrator <[EMAIL PROTECTED]>
Date: Sun, 30 Jan 2005 09:17:20 -0500
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 
X-CrossAssassin-Score: 3

Source: lsb
Source-Version: 2.0-5

We believe that the bug you reported is fixed in the latest version of
lsb, which is due to be installed in the Debian FTP archive:

lsb-core_2.0-5_i386.deb
  to pool/main/l/lsb/lsb-core_2.0-5_i386.deb
lsb-cxx_2.0-5_i386.deb
  to pool/main/l/lsb/lsb-cxx_2.0-5_i386.deb
lsb-graphics_2.0-5_i386.deb
  to pool/main/l/lsb/lsb-graphics_2.0-5_i386.deb
lsb_2.0-5.dsc
  to pool/main/l/lsb/lsb_2.0-5.dsc
lsb_2.0-5.tar.gz
  to pool/main/l/lsb/lsb_2.0-5.tar.gz
lsb_2.0-5_all.deb
  to pool/main/l/lsb/lsb_2.0-5_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Chris Lawrence <[EMAIL PROTECTED]> (supplier of updated lsb package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sun, 30 Jan 2005 08:01:29 -0600
Source: lsb
Binary: lsb lsb-core lsb-graphics lsb-cxx
Architecture: source all i386
Version: 2.0-5
Distribution: unstable
Urgency: low
Maintainer: Chris Lawrence <[EMAIL PROTECTED]>
Changed-By: Chris Lawrence <[EMAIL PROTECTED]>
Description: 
 lsb        - Linux Standard Base 2.0 support package
 lsb-core   - Linux Standard Base 2.0 core support package
 lsb-cxx    - Linux Standard Base 2.0 C++ support package
 lsb-graphics - Linux Standard Base 2.0 graphics support package
Closes: 278093 288015 292835
Changes: 
 lsb (2.0-5) unstable; urgency=low
 .
   * Upload to unstable.  (Closes: #278093)
   * Ignore empty headers in init files.  (Closes: #292835)
   * Add Czech translation of the debconf messages.  (Closes: #288015)
Files: 
 94c735b45b3f5e3a2337b20d01921c37 538 misc extra lsb_2.0-5.dsc
 194befa55bcd76c9a4fdae28d2802da6 27916 misc extra lsb_2.0-5.tar.gz
 235e7bae565c4ba9e8e529bdfaa5ab22 29304 misc extra lsb-core_2.0-5_i386.deb
 0bb10f3c5440da5cb12d8c583328d9e1 6294 misc extra lsb-graphics_2.0-5_i386.deb
 1ee4db46b7b30757538196be7a1e881a 6282 misc extra lsb-cxx_2.0-5_i386.deb
 630a48091028d42018c7952cda49584d 6240 misc extra lsb_2.0-5_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFB/Om42wQKE6PXubwRAu22AKDNzrgriTC3TVRu2Pzx0iNCrggH4ACeIfB9
3bkXO35C948pVC3yNml/Lds=
=gzU+
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to