Debian Bug report logs - #571054
Divert /sbin/initctl to fix start(8) in lucid postinsts.

version graph

Package: pbuilder; Maintainer for pbuilder is Debian pbuilder maintenance team <pbuilder-maint@lists.alioth.debian.org>; Source for pbuilder is src:pbuilder.

Reported by: "Trent W. Buck" <trentbuck@gmail.com>

Date: Tue, 23 Feb 2010 02:42:01 UTC

Severity: normal

Tags: confirmed

Found in version pbuilder/0.196

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian pbuilder maintenance team <pbuilder-maint@lists.alioth.debian.org>:
Bug#571054; Package pbuilder. (Tue, 23 Feb 2010 02:42:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Trent W. Buck" <trentbuck@gmail.com>:
New Bug report received and forwarded. Copy sent to Debian pbuilder maintenance team <pbuilder-maint@lists.alioth.debian.org>. (Tue, 23 Feb 2010 02:42:05 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: "Trent W. Buck" <trentbuck@gmail.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Divert /sbin/initctl to fix start(8) in lucid postinsts.
Date: Tue, 23 Feb 2010 13:33:28 +1100
Package: pbuilder
Version: 0.196
Severity: normal

pbuilder currently creates a policy-rc.d that prevents daemons from
starting when they are installed to satisfy build dependencies.  This
works well for sysvinit packages.

However, when working with Ubuntu Lucid[0] chroots, many daemons use
upstart instead of sysvinit.  Thus, they ignore policy-rc.d, try (and
fail) to start, further causing the postinst, dpkg, satisfybuildepends
and ultimately the entire pdebuild to fail.

According to CJ Watson of #ubuntu-devel, this can be done by diverting
/sbin/initctl and substituting a stub.  An example of this can be seen
in debootstrap's "gutsy" script (excerpt below).  Please add something
similar, I guess to /usr/lib/pbuilder/pbuilder-modules:mountproc.

        mv "$TARGET/sbin/start-stop-daemon" "$TARGET/sbin/start-stop-daemon.REAL"
        echo \
    "#!/bin/sh
    echo
    echo \"Warning: Fake start-stop-daemon called, doing nothing\"" > "$TARGET/sbin/start-stop-daemon"
        chmod 755 "$TARGET/sbin/start-stop-daemon"

        if [ -x "$TARGET/sbin/initctl" ]; then
          mv "$TARGET/sbin/initctl" "$TARGET/sbin/initctl.REAL"
          echo \
    "#!/bin/sh
    echo
    echo \"Warning: Fake initctl called, doing nothing\"" > "$TARGET/sbin/initctl"
          chmod 755 "$TARGET/sbin/initctl"
        fi

[0] In theory this was an issue with earlier Ubuntu releases, but it
    seems to be far more prevalent in Lucid.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.24-23-openvz (SMP w/4 CPU cores)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages pbuilder depends on:
ii  cdebootstrap                  0.5.5      Bootstrap a Debian system
ii  coreutils                     8.4-1      GNU core utilities
ii  debconf [debconf-2.0]         1.5.28     Debian configuration management sy
ii  debianutils                   3.2.2      Miscellaneous utilities specific t
ii  debootstrap                   1.0.20     Bootstrap a basic Debian system
ii  wget                          1.12-1.1   retrieves files from the web

Versions of packages pbuilder recommends:
ii  devscripts                    2.10.61    scripts to make the life of a Debi
ii  fakeroot                      1.14.4-1   Gives a fake root environment
ii  sudo                          1.7.2p1-1  Provide limited super user privile

Versions of packages pbuilder suggests:
pn  cowdancer                     <none>     (no description available)
pn  gdebi-core                    <none>     (no description available)
pn  pbuilder-uml                  <none>     (no description available)

-- debconf information:
  pbuilder/rewrite: false
* pbuilder/mirrorsite: http://mirror.internode.on.net/pub/debian
* pbuilder/nomirror:




Added tag(s) confirmed. Request was from Loïc Minier <lool@dooz.org> to control@bugs.debian.org. (Tue, 23 Feb 2010 11:09:04 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian pbuilder maintenance team <pbuilder-maint@lists.alioth.debian.org>:
Bug#571054; Package pbuilder. (Sat, 06 Mar 2010 16:21:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Junichi Uekawa <dancer@netfort.gr.jp>:
Extra info received and forwarded to list. Copy sent to Debian pbuilder maintenance team <pbuilder-maint@lists.alioth.debian.org>. (Sat, 06 Mar 2010 16:21:03 GMT) Full text and rfc822 format available.

Message #12 received at submit@bugs.debian.org (full text, mbox):

From: Junichi Uekawa <dancer@netfort.gr.jp>
To: "Trent W. Buck" <trentbuck@gmail.com>, 571054@bugs.debian.org
Cc: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Re: Bug#571054: Divert /sbin/initctl to fix start(8) in lucid postinsts.
Date: Sun, 07 Mar 2010 01:18:23 +0900
At Tue, 23 Feb 2010 13:33:28 +1100,
Trent W. Buck wrote:
> 
> Package: pbuilder
> Version: 0.196
> Severity: normal
> 
> pbuilder currently creates a policy-rc.d that prevents daemons from
> starting when they are installed to satisfy build dependencies.  This
> works well for sysvinit packages.
> 
> However, when working with Ubuntu Lucid[0] chroots, many daemons use
> upstart instead of sysvinit.  Thus, they ignore policy-rc.d, try (and
> fail) to start, further causing the postinst, dpkg, satisfybuildepends
> and ultimately the entire pdebuild to fail.

Erm... why not fix upstart to respect policy-rc.d ?


> 
> According to CJ Watson of #ubuntu-devel, this can be done by diverting
> /sbin/initctl and substituting a stub.  An example of this can be seen
> in debootstrap's "gutsy" script (excerpt below).  Please add something
> similar, I guess to /usr/lib/pbuilder/pbuilder-modules:mountproc.
> 
>         mv "$TARGET/sbin/start-stop-daemon" "$TARGET/sbin/start-stop-daemon.REAL"
>         echo \
>     "#!/bin/sh
>     echo
>     echo \"Warning: Fake start-stop-daemon called, doing nothing\"" > "$TARGET/sbin/start-stop-daemon"
>         chmod 755 "$TARGET/sbin/start-stop-daemon"
> 
>         if [ -x "$TARGET/sbin/initctl" ]; then
>           mv "$TARGET/sbin/initctl" "$TARGET/sbin/initctl.REAL"
>           echo \
>     "#!/bin/sh
>     echo
>     echo \"Warning: Fake initctl called, doing nothing\"" > "$TARGET/sbin/initctl"
>           chmod 755 "$TARGET/sbin/initctl"
>         fi
> 
> [0] In theory this was an issue with earlier Ubuntu releases, but it
>     seems to be far more prevalent in Lucid.
> 
> -- System Information:
> Debian Release: squeeze/sid
>   APT prefers testing
>   APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
> Architecture: amd64 (x86_64)
> 
> Kernel: Linux 2.6.24-23-openvz (SMP w/4 CPU cores)
> Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> 
> Versions of packages pbuilder depends on:
> ii  cdebootstrap                  0.5.5      Bootstrap a Debian system
> ii  coreutils                     8.4-1      GNU core utilities
> ii  debconf [debconf-2.0]         1.5.28     Debian configuration management sy
> ii  debianutils                   3.2.2      Miscellaneous utilities specific t
> ii  debootstrap                   1.0.20     Bootstrap a basic Debian system
> ii  wget                          1.12-1.1   retrieves files from the web
> 
> Versions of packages pbuilder recommends:
> ii  devscripts                    2.10.61    scripts to make the life of a Debi
> ii  fakeroot                      1.14.4-1   Gives a fake root environment
> ii  sudo                          1.7.2p1-1  Provide limited super user privile
> 
> Versions of packages pbuilder suggests:
> pn  cowdancer                     <none>     (no description available)
> pn  gdebi-core                    <none>     (no description available)
> pn  pbuilder-uml                  <none>     (no description available)
> 
> -- debconf information:
>   pbuilder/rewrite: false
> * pbuilder/mirrorsite: http://mirror.internode.on.net/pub/debian
> * pbuilder/nomirror:
> 
> 
> 
> _______________________________________________
> Pbuilder-maint mailing list
> Pbuilder-maint@lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pbuilder-maint
> 




Information forwarded to debian-bugs-dist@lists.debian.org, Debian pbuilder maintenance team <pbuilder-maint@lists.alioth.debian.org>:
Bug#571054; Package pbuilder. (Sat, 06 Mar 2010 16:21:11 GMT) Full text and rfc822 format available.

Acknowledgement sent to Junichi Uekawa <dancer@netfort.gr.jp>:
Extra info received and forwarded to list. Copy sent to Debian pbuilder maintenance team <pbuilder-maint@lists.alioth.debian.org>. (Sat, 06 Mar 2010 16:21:12 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian pbuilder maintenance team <pbuilder-maint@lists.alioth.debian.org>:
Bug#571054; Package pbuilder. (Tue, 09 Mar 2010 00:48:07 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Trent W. Buck" <twb@cybersource.com.au>:
Extra info received and forwarded to list. Copy sent to Debian pbuilder maintenance team <pbuilder-maint@lists.alioth.debian.org>. (Tue, 09 Mar 2010 00:48:07 GMT) Full text and rfc822 format available.

Message #22 received at 571054@bugs.debian.org (full text, mbox):

From: "Trent W. Buck" <twb@cybersource.com.au>
To: Junichi Uekawa <dancer@netfort.gr.jp>
Cc: 571054@bugs.debian.org
Subject: Re: Bug#571054: Divert /sbin/initctl to fix start(8) in lucid postinsts.
Date: Tue, 9 Mar 2010 11:43:18 +1100
Junichi Uekawa wrote:
>> pbuilder currently creates a policy-rc.d that prevents daemons from
>> starting when they are installed to satisfy build dependencies.
>> This works well for sysvinit packages.
>>
>> However, when working with Ubuntu Lucid[0] chroots, many daemons
>> use upstart instead of sysvinit.  Thus, they ignore policy-rc.d,
>> try (and fail) to start, further causing the postinst, dpkg,
>> satisfybuildepends and ultimately the entire pdebuild to fail.
>
> Erm... why not fix upstart to respect policy-rc.d ?

I don't know if it should -- I'm just a lowly sysadmin.  By all means
try to convince the upstart people to support policy-rc.d.  If so,
please retitle and reassign this ticket to upstart.




Information forwarded to debian-bugs-dist@lists.debian.org, Debian pbuilder maintenance team <pbuilder-maint@lists.alioth.debian.org>:
Bug#571054; Package pbuilder. (Wed, 10 Mar 2010 15:09:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Junichi Uekawa <dancer@netfort.gr.jp>:
Extra info received and forwarded to list. Copy sent to Debian pbuilder maintenance team <pbuilder-maint@lists.alioth.debian.org>. (Wed, 10 Mar 2010 15:09:03 GMT) Full text and rfc822 format available.

Message #27 received at 571054@bugs.debian.org (full text, mbox):

From: Junichi Uekawa <dancer@netfort.gr.jp>
To: "Trent W. Buck" <twb@cybersource.com.au>
Cc: Junichi Uekawa <dancer@netfort.gr.jp>, 571054@bugs.debian.org
Subject: Re: Bug#571054: Divert /sbin/initctl to fix start(8) in lucid postinsts.
Date: Thu, 11 Mar 2010 00:08:05 +0900
Hi,

Hmmm..I see a problem. Ubuntu isn't Debian so they can break Debian
policy as much as they wish. Which sucks.

At Tue, 9 Mar 2010 11:43:18 +1100,
Trent W. Buck wrote:
> 
> Junichi Uekawa wrote:
> >> pbuilder currently creates a policy-rc.d that prevents daemons from
> >> starting when they are installed to satisfy build dependencies.
> >> This works well for sysvinit packages.
> >>
> >> However, when working with Ubuntu Lucid[0] chroots, many daemons
> >> use upstart instead of sysvinit.  Thus, they ignore policy-rc.d,
> >> try (and fail) to start, further causing the postinst, dpkg,
> >> satisfybuildepends and ultimately the entire pdebuild to fail.
> >
> > Erm... why not fix upstart to respect policy-rc.d ?
> 
> I don't know if it should -- I'm just a lowly sysadmin.  By all means
> try to convince the upstart people to support policy-rc.d.  If so,
> please retitle and reassign this ticket to upstart.
> 




Information forwarded to debian-bugs-dist@lists.debian.org, Debian pbuilder maintenance team <pbuilder-maint@lists.alioth.debian.org>:
Bug#571054; Package pbuilder. (Wed, 10 Mar 2010 19:21:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Loïc Minier <lool@dooz.org>:
Extra info received and forwarded to list. Copy sent to Debian pbuilder maintenance team <pbuilder-maint@lists.alioth.debian.org>. (Wed, 10 Mar 2010 19:21:05 GMT) Full text and rfc822 format available.

Message #32 received at 571054@bugs.debian.org (full text, mbox):

From: Loïc Minier <lool@dooz.org>
To: Junichi Uekawa <dancer@netfort.gr.jp>, 571054@bugs.debian.org
Cc: "Trent W. Buck" <twb@cybersource.com.au>
Subject: Re: Bug#571054: Divert /sbin/initctl to fix start(8) in lucid postinsts.
Date: Wed, 10 Mar 2010 20:19:00 +0100
On Thu, Mar 11, 2010, Junichi Uekawa wrote:
> Hmmm..I see a problem. Ubuntu isn't Debian so they can break Debian
> policy as much as they wish. Which sucks.

 upstart is in Debian; I'm not sure of why it doesn't honor policy
 checks, I suspect it could be that it would kill boot performance.

-- 
Loïc Minier




Information forwarded to debian-bugs-dist@lists.debian.org, Debian pbuilder maintenance team <pbuilder-maint@lists.alioth.debian.org>:
Bug#571054; Package pbuilder. (Thu, 11 Mar 2010 00:09:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Trent W. Buck" <trentbuck@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian pbuilder maintenance team <pbuilder-maint@lists.alioth.debian.org>. (Thu, 11 Mar 2010 00:09:03 GMT) Full text and rfc822 format available.

Message #37 received at 571054@bugs.debian.org (full text, mbox):

From: "Trent W. Buck" <trentbuck@gmail.com>
To: Junichi Uekawa <dancer@netfort.gr.jp>
Cc: 571054@bugs.debian.org
Subject: Re: Bug#571054: Divert /sbin/initctl to fix start(8) in lucid postinsts.
Date: Thu, 11 Mar 2010 11:07:26 +1100
Junichi Uekawa wrote:
> Hmmm..I see a problem. Ubuntu isn't Debian so they can break Debian
> policy as much as they wish. Which sucks.

FWIW upstart itself is in Debian, but daemons[0] don't support it
out-of-the-box, so this issue doesn't manifest with Debian chroots.
Of course, being able to use Ubuntu chroots on my Debian box is still
desirable -- it avoids needing a separate Ubuntu box :-)

[0] Except fai-nfsroot, apparently.




Information forwarded to debian-bugs-dist@lists.debian.org, Debian pbuilder maintenance team <pbuilder-maint@lists.alioth.debian.org>:
Bug#571054; Package pbuilder. (Thu, 11 Mar 2010 13:21:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Osamu Aoki <osamu@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian pbuilder maintenance team <pbuilder-maint@lists.alioth.debian.org>. (Thu, 11 Mar 2010 13:21:03 GMT) Full text and rfc822 format available.

Message #42 received at 571054@bugs.debian.org (full text, mbox):

From: Osamu Aoki <osamu@debian.org>
To: "Trent W. Buck" <trentbuck@gmail.com>, 571054@bugs.debian.org
Cc: Junichi Uekawa <dancer@netfort.gr.jp>
Subject: Re: Bug#571054: Divert /sbin/initctl to fix start(8) in lucid postinsts.
Date: Thu, 11 Mar 2010 22:16:51 +0900
On Thu, Mar 11, 2010 at 11:07:26AM +1100, Trent W. Buck wrote:
> Junichi Uekawa wrote:
> > Hmmm..I see a problem. Ubuntu isn't Debian so they can break Debian
> > policy as much as they wish. Which sucks.
> 
> FWIW upstart itself is in Debian, but daemons[0] don't support it
> out-of-the-box, so this issue doesn't manifest with Debian chroots.
> Of course, being able to use Ubuntu chroots on my Debian box is still
> desirable -- it avoids needing a separate Ubuntu box :-)
> 
> [0] Except fai-nfsroot, apparently.

upstart seems to be working fine here in sid these days.  It replaced my
init.  (concurrency seems to be supported by rcS even before installing
upstart though...  I did not look into these issues much.)

If it has such shortcoming, asking it to be fixed in Debian is good
idea.  Then Ubuntu may pick it up.  So far there are not many bugs
filed on upstart.

Osamu
 




Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Apr 20 17:00:56 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.