Bug#546834: debootstrap fails when invoked from lh_build

2009-09-16 Thread Frans Pop
reassign 546834 util-linux 2.16-3
severity 546834 serious
affects 546834 debootstrap
tags 546834 d-i
thanks

On Wednesday 16 September 2009, Tak Auyeung wrote:
 lh_build failed and stopped in debootstrap phase. lh_build is set up to
 use sid for both bootstrap and chroot. Attached please find a log of
 lh_build (build.log) and a log of debootstrap (debootstrap.log) when it
 was invoked from lh_build. Thanks!

Thanks for including the logs. As you can see in the debootstrap log, the
real problem is in either util-linux or insserv.

Setting up util-linux (2.16-3) ...
install-info: warning: maintainer scripts should not call install-info anymore,
install-info: warning: this is handled now by a dpkg trigger provided by the
install-info: warning: install-info package; package util-linux should be 
updated.
update-alternatives: using /bin/more to provide /usr/bin/pager (pager) in auto 
mode.
insserv: Service checkroot has to be enabled to start service hwclock
insserv: exiting now!
dpkg: error processing util-linux (--configure):
 subprocess installed post-installation script returned error exit status 1

The install-info message is just a warning. The real problem looks to be a boot
dependency error. Reassigning to util-linux.

Cheers,
FJP



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#546834: debootstrap fails when invoked from lh_build

2009-09-16 Thread Sven Joachim
On 2009-09-16 09:19 +0200, Frans Pop wrote:

 On Wednesday 16 September 2009, Tak Auyeung wrote:
 lh_build failed and stopped in debootstrap phase. lh_build is set up to
 use sid for both bootstrap and chroot. Attached please find a log of
 lh_build (build.log) and a log of debootstrap (debootstrap.log) when it
 was invoked from lh_build. Thanks!

 Thanks for including the logs. As you can see in the debootstrap log, the
 real problem is in either util-linux or insserv.

 Setting up util-linux (2.16-3) ...
 install-info: warning: maintainer scripts should not call install-info 
 anymore,
 install-info: warning: this is handled now by a dpkg trigger provided by the
 install-info: warning: install-info package; package util-linux should be 
 updated.
 update-alternatives: using /bin/more to provide /usr/bin/pager (pager) in 
 auto mode.
 insserv: Service checkroot has to be enabled to start service hwclock
 insserv: exiting now!
 dpkg: error processing util-linux (--configure):
  subprocess installed post-installation script returned error exit status 1

 The install-info message is just a warning. The real problem looks to be a 
 boot
 dependency error. Reassigning to util-linux.

It seems that util-linux is missing a dependency on initscripts for the
checkroot service.  Similar for procps and the mountkernfs service.

However, by that logic any package providing an initscript would need to
depend on initscripts; is that really desirable?

Sven



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#546834: debootstrap fails when invoked from lh_build

2009-09-16 Thread Petter Reinholdtsen
[Frans Pop]
 insserv: Service checkroot has to be enabled to start service hwclock
 insserv: exiting now!

The checkroot script is part of the initscripts package.  Is it
installed?  It is essential, so I expect so, and thus fail to
understand how it could be missing when util-linux try to register its
init.d script in the postinst script.

 The real problem looks to be a boot dependency error.

Yes.  The message from insserv is the error terminating the postinst.
The message is correct if the initscripts postinst script have not
executed to register the checkroot init.d script.

What is lh_build?  How do one reproduce the problem?

Happy hacking,
-- 
Petter Reinholdtsen



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#546834: debootstrap fails when invoked from lh_build

2009-09-16 Thread Petter Reinholdtsen
[Sven Joachim]
 It seems that util-linux is missing a dependency on initscripts for
 the checkroot service.  Similar for procps and the mountkernfs
 service.

Yes, I believe this is correct, and have split this bug in two and
assigned one to procps.

 However, by that logic any package providing an initscript would need to
 depend on initscripts; is that really desirable?

It does not follow from that logic.  Most scripts do not have direct
and hard dependencies on scripts in initscripts.  Most scripts depend
on the virtual facilities like $remote_fs, and would not have this
problem.  Also, this would only affect scripts installed by
debootstrap before initscripts is installed.

Happy hacking,
-- 
Petter Reinholdtsen



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#546834: debootstrap fails when invoked from lh_build

2009-09-16 Thread Petter Reinholdtsen
retitle 546834 debootstrap because of conflicting package and init.d script 
dependencies
close 546834 -1
reassign -1 procps
thanks

I am able to reproduce it using

  debootstrap sid chroot-sid

so this problem is not related to lh_build and my question about that
can be ignored.

There are two problems blocking debootstrap from working:

  Setting up procps (1:3.2.8-1) ...
  update-alternatives: using /usr/bin/w.procps to provide /usr/bin/w (w) in 
auto mode.
  insserv: Service mountkernfs has to be enabled to start service procps
  insserv: exiting now!
  dpkg: error processing procps (--configure):
   subprocess installed post-installation script returned error exit status 1

and

  Setting up util-linux (2.16-3) ...
  install-info: warning: maintainer scripts should not call install-info 
anymore,
  install-info: warning: this is handled now by a dpkg trigger provided by the
  install-info: warning: install-info package; package util-linux should be 
updated.
  update-alternatives: using /bin/more to provide /usr/bin/pager (pager) in 
auto mode.
  insserv: Service checkroot has to be enabled to start service hwclock
  insserv: exiting now!
  dpkg: error processing util-linux (--configure):
   subprocess installed post-installation script returned error exit status 1

Both are due to the init.d scripts in the packages have hard
dependencies on scripts in the initscripts package, while the package
themselves do not depend on initscripts.

There are two solutions to this, either the hard init.d script
dependency can be made soft (ie move the dependency from
required-start to should-start), or add initscripts as a dependency
for procps and util-linux.

I'm not sure which solution make most sense, but suspect the latter is
the proper solution if the scripts really need each other.  Adding
initscripts as a package dependency will change the order packages are
installed by debootstrap and perhaps expose other bugs in package
dependencies, though.

Happy hacking,
-- 
Petter Reinholdtsen



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#546834: debootstrap fails when invoked from lh_build

2009-09-16 Thread Petter Reinholdtsen
tags 546834 + patch
thanks

Here is a patch to fix util-linux (just to be able to tag it
'patch'. :)

diff -ur util-linux-2.16/debian/control util-linux-2.16-pere/debian/control
--- util-linux-2.16/debian/control  2009-09-16 11:38:33.0 +0200
+++ util-linux-2.16-pere/debian/control 2009-09-16 11:38:25.0 +0200
@@ -13,7 +13,7 @@
 Section: utils
 Priority: required
 Essential: yes
-Depends: lsb-base (= 3.0-6), tzdata (=2006c-2)
+Depends: lsb-base (= 3.0-6), tzdata (=2006c-2), initscripts
 Pre-Depends: ${shlibs:Depends}
 Suggests: util-linux-locales, kbd | console-tools, dosfstools
 Replaces: schedutils, miscutils, setterm, fdisk, linux32, sparc-utils, 
e2fsprogs, ${util-linux:Conflicts}

I am not sure if pre-depends or depends is needed, but given that it
is enough for the initscripts package to be configured before
util-linux, I believe depends would be enough.

Happy hacking,
-- 
Petter Reinholdtsen



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#546834: debootstrap fails when invoked from lh_build

2009-09-15 Thread Tak Auyeung
Package: debootstrap
Version: 1.0.15
Severity: grave
Justification: renders package unusable

lh_build failed and stopped in debootstrap phase. lh_build is set up to use 
sid for both bootstrap and chroot. Attached please find a log of lh_build 
(build.log) and a log of debootstrap (debootstrap.log) when it was invoked from 
lh_build. Thanks!


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-1-686-bigmem (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages debootstrap depends on:
ii  binutils  2.19.91.20090910-1 The GNU assembler, linker and bina
ii  wget  1.11.4-4   retrieves files from the web

Versions of packages debootstrap recommends:
ii  gnupg 1.4.10-1   GNU privacy guard - a free PGP rep

debootstrap suggests no packages.

-- no debconf information
D: Reading configuration file config/common
D: Reading configuration file config/bootstrap
D: Reading configuration file config/chroot
D: Reading configuration file config/binary
D: Reading configuration file config/source
D: Reading configuration file config/common
D: Reading configuration file config/bootstrap
D: Reading configuration file config/chroot
D: Reading configuration file config/binary
D: Reading configuration file config/source
P: Setting up cleanup function
D: Reading configuration file config/common
D: Reading configuration file config/bootstrap
D: Reading configuration file config/chroot
D: Reading configuration file config/binary
D: Reading configuration file config/source
P: Begin caching bootstrap stage...
D: Reading configuration file config/common
D: Reading configuration file config/bootstrap
D: Reading configuration file config/chroot
D: Reading configuration file config/binary
D: Reading configuration file config/source
D: Reading configuration file config/common
D: Reading configuration file config/bootstrap
D: Reading configuration file config/chroot
D: Reading configuration file config/binary
D: Reading configuration file config/source
D: Reading configuration file config/common
D: Reading configuration file config/bootstrap
D: Reading configuration file config/chroot
D: Reading configuration file config/binary
D: Reading configuration file config/source
P: Begin bootstrapping system...
P: If the following stage fails, the most likely cause of the problem is with 
your mirror configuration, a caching proxy or the sid distribution.
P: Running debootstrap (download-only)... 
I: Retrieving Release
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Found additional required dependencies: dash insserv libdb4.7 
I: Found additional base dependencies: ca-certificates libcurl3-gnutls 
libgcrypt11 libgnutls26 libgpg-error0 libgssapi-krb5-2 libidn11 libk5crypto3 
libkeyutils1 libkrb5-3 libkrb5support0 libldap-2.4-2 libsasl2-2 openssl 
I: Checking component main on http://ftp.us.debian.org/debian...
I: Retrieving adduser
I: Validating adduser
I: Retrieving apt
I: Validating apt
I: Retrieving apt-utils
I: Validating apt-utils
I: Retrieving aptitude
I: Validating aptitude
I: Retrieving base-files
I: Validating base-files
I: Retrieving base-passwd
I: Validating base-passwd
I: Retrieving bash
I: Validating bash
I: Retrieving bsdmainutils
I: Validating bsdmainutils
I: Retrieving bsdutils
I: Validating bsdutils
I: Retrieving ca-certificates
I: Validating ca-certificates
I: Retrieving coreutils
I: Validating coreutils
I: Retrieving cpio
I: Validating cpio
I: Retrieving cron
I: Validating cron
I: Retrieving dash
I: Validating dash
I: Retrieving debconf
I: Validating debconf
I: Retrieving debconf-i18n
I: Validating debconf-i18n
I: Retrieving debian-archive-keyring
I: Validating debian-archive-keyring
I: Retrieving debianutils
I: Validating debianutils
I: Retrieving dhcp3-client
I: Validating dhcp3-client
I: Retrieving dhcp3-common
I: Validating dhcp3-common
I: Retrieving diffutils
I: Validating diffutils
I: Retrieving dmidecode
I: Validating dmidecode
I: Retrieving dpkg
I: Validating dpkg
I: Retrieving e2fslibs
I: Validating e2fslibs
I: Retrieving e2fsprogs
I: Validating e2fsprogs
I: Retrieving ed
I: Validating ed
I: Retrieving findutils
I: Validating findutils
I: Retrieving gcc-4.2-base
I: Validating gcc-4.2-base
I: Retrieving gcc-4.3-base
I: Validating gcc-4.3-base
I: Retrieving gcc-4.4-base
I: Validating gcc-4.4-base
I: Retrieving gnupg
I: Validating gnupg
I: Retrieving gpgv
I: Validating gpgv
I: Retrieving grep
I: Validating grep
I: Retrieving groff-base
I: Validating groff-base
I: Retrieving gzip
I: Validating gzip
I: Retrieving hostname
I: Validating hostname
I: Retrieving ifupdown
I: Validating ifupdown
I: Retrieving info
I: Validating info
I: Retrieving initscripts
I: Validating initscripts
I: