Debian Bug report logs -
#554136
u-a: --set fails with undefined value on non-registered paths
Reported by: Raphael Geissert <geissert@debian.org>
Date: Tue, 3 Nov 2009 07:48:58 UTC
Severity: normal
Found in version dpkg/1.15.3.1
Fixed in version dpkg/1.15.5.3
Done: Guillem Jover <guillem@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Dpkg Developers <debian-dpkg@lists.debian.org>:
Bug#554136; Package dpkg.
(Tue, 03 Nov 2009 07:49:03 GMT) (full text, mbox, link).
Message #3 received at submit@bugs.debian.org (full text, mbox, reply):
Package: dpkg
Version: 1.15.3.1
Hi,
On a clean chroot:
# apt-get install mpg123-alsa
...
Setting up libmpg123-0 (1.9.1-2) ...
Setting up mpg123 (1.9.1-2) ...
update-alternatives: using /usr/bin/mpg123.bin to provide /usr/bin/mpg123 (mpg123) in auto mode.
update-alternatives: using /usr/bin/mpg123.bin to provide /usr/bin/mp3-decoder (mp3-decoder) in auto mode.
Setting up mpg123-alsa (1.9.1-2) ...
# update-alternatives --set mpg123 /usr/bin/mpg123-alsa
update-alternatives: using /usr/bin/mpg123-alsa to provide /usr/bin/mpg123 (mpg123) in manual mode.
Can't call method "slave" on an undefined value at /usr/sbin/update-alternatives line 1017.
Cheers,
--
Raphael Geissert - Debian Developer
www.debian.org - get.debian.net
Added tag(s) pending.
Request was from Guillem Jover <guillem@debian.org>
to control@bugs.debian.org.
(Sun, 22 Nov 2009 03:36:02 GMT) (full text, mbox, link).
Changed Bug title to 'u-a: --set fails with undefined value on non-registered paths' from 'update-alternatives fails when setting an alternative in manual mode'
Request was from Guillem Jover <guillem@debian.org>
to control@bugs.debian.org.
(Sun, 22 Nov 2009 03:36:05 GMT) (full text, mbox, link).
Message sent on
to Raphael Geissert <geissert@debian.org>:
Bug#554136.
(Sun, 22 Nov 2009 03:36:07 GMT) (full text, mbox, link).
Message #10 received at 554136-submitter@bugs.debian.org (full text, mbox, reply):
tag 554136 pending
thanks
Hello,
Bug #554136 reported by you has been fixed in the Git repository. You can
see the changelog below, and you can check the diff of the fix at:
http://git.debian.org/?p=dpkg/dpkg.git;a=commitdiff;h=4b0a933
---
commit 4b0a933f75887563d1c1bc278359d091a809e525
Author: Guillem Jover <guillem@debian.org>
Date: Sun Nov 22 04:23:23 2009 +0100
u-a: Verify that the alternative used in --set has been registered
Give a proper error message instead of failing with an undefined
value when calling the slave method. Additionally verify the alternative
before switching to manual mode, avoiding this way unneeded log messages
in case of error.
Closes: #554136
diff --git a/debian/changelog b/debian/changelog
index c3c5040..bb201ce 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,14 @@
dpkg (1.15.5.3) UNRELEASED; urgency=low
+ [ Raphael Hertzog ]
* Avoid usage of IO::String in dpkg-scanpackages, rely on Dpkg::IPC
instead to directly get a pipe file descriptor. Closes: #557013
+ [ Guillem Jover ]
+ * Verify that the alternative used in update-alternatives --set has been
+ registered instead of failing with an undefined value in the slave
+ method. Closes: #554136
+
-- Raphael Hertzog <hertzog@debian.org> Sat, 21 Nov 2009 14:57:50 +0100
dpkg (1.15.5.2) unstable; urgency=low
Information forwarded
to debian-bugs-dist@lists.debian.org, Dpkg Developers <debian-dpkg@lists.debian.org>:
Bug#554136; Package dpkg.
(Sun, 22 Nov 2009 03:42:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Guillem Jover <guillem@debian.org>:
Extra info received and forwarded to list. Copy sent to Dpkg Developers <debian-dpkg@lists.debian.org>.
(Sun, 22 Nov 2009 03:42:04 GMT) (full text, mbox, link).
Message #15 received at 554136@bugs.debian.org (full text, mbox, reply):
retitle 554136 u-a: --set fails with undefined value on non-registered paths
thanks
Hi!
On Tue, 2009-11-03 at 01:32:49 -0600, Raphael Geissert wrote:
> Package: dpkg
> Version: 1.15.3.1
> On a clean chroot:
> # apt-get install mpg123-alsa
> ...
> Setting up libmpg123-0 (1.9.1-2) ...
> Setting up mpg123 (1.9.1-2) ...
> update-alternatives: using /usr/bin/mpg123.bin to provide /usr/bin/mpg123 (mpg123) in auto mode.
> update-alternatives: using /usr/bin/mpg123.bin to provide /usr/bin/mp3-decoder (mp3-decoder) in auto mode.
> Setting up mpg123-alsa (1.9.1-2) ...
> # update-alternatives --set mpg123 /usr/bin/mpg123-alsa
> update-alternatives: using /usr/bin/mpg123-alsa to provide /usr/bin/mpg123 (mpg123) in manual mode.
> Can't call method "slave" on an undefined value at /usr/sbin/update-alternatives line 1017.
The invokation is just wrong, as there's no /usr/bin/mpg123-alsa
alternative. In any case u-a should not fail like this, so I've fixed
this and it will be included in 1.15.5.3, which we'll probably upload
tomorrow.
regards,
guillem
Reply sent
to Guillem Jover <guillem@debian.org>:
You have taken responsibility.
(Fri, 27 Nov 2009 19:06:12 GMT) (full text, mbox, link).
Notification sent
to Raphael Geissert <geissert@debian.org>:
Bug acknowledged by developer.
(Fri, 27 Nov 2009 19:06:12 GMT) (full text, mbox, link).
Message #20 received at 554136-close@bugs.debian.org (full text, mbox, reply):
Source: dpkg
Source-Version: 1.15.5.3
We believe that the bug you reported is fixed in the latest version of
dpkg, which is due to be installed in the Debian FTP archive:
dpkg-dev_1.15.5.3_all.deb
to main/d/dpkg/dpkg-dev_1.15.5.3_all.deb
dpkg_1.15.5.3.dsc
to main/d/dpkg/dpkg_1.15.5.3.dsc
dpkg_1.15.5.3.tar.bz2
to main/d/dpkg/dpkg_1.15.5.3.tar.bz2
dpkg_1.15.5.3_amd64.deb
to main/d/dpkg/dpkg_1.15.5.3_amd64.deb
dselect_1.15.5.3_amd64.deb
to main/d/dpkg/dselect_1.15.5.3_amd64.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 554136@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Guillem Jover <guillem@debian.org> (supplier of updated dpkg 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 ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Fri, 27 Nov 2009 19:23:36 +0100
Source: dpkg
Binary: dpkg dpkg-dev dselect
Architecture: source amd64 all
Version: 1.15.5.3
Distribution: unstable
Urgency: low
Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org>
Changed-By: Guillem Jover <guillem@debian.org>
Description:
dpkg - Debian package management system
dpkg-dev - Debian package development tools
dselect - Debian package management front-end
Closes: 554136 557013 557547 557618 557664 557668 558233
Changes:
dpkg (1.15.5.3) unstable; urgency=low
.
[ Raphael Hertzog ]
* Avoid usage of IO::String in dpkg-scanpackages, rely on Dpkg::IPC
instead to directly get a pipe file descriptor. Closes: #557013
* Put "3.0 (quilt)" in the default list of formats tried by dpkg-source
after "1.0" and before "3.0 (native)".
* Let dpkg-source fail if several upstream orig.tar files are available
(using different compression scheme) since we don't know which one
to use.
* Add missing "use Dpkg::Gettext" in Dpkg::Changelog::Entry::Debian.
Closes: #557668
* When building "3.0 (quilt)" source packages, use QUILT_PATCH_OPTS="-t -F 0
-N -u -V never -g0" so that quilt is as strict as dpkg-source's internal
implementation of quilt. Closes: #557664, #558233
* Before accepting to build a 3.0 (quilt) source packages, ensure that
debian/patches is a directory (or non-existing) and that
debian/patches/series is a file (or non-existing). Closes: #557618
* Dpkg::IPC::fork_and_exec() now includes the changed environment
variables in the default error message displayed when the sub-process
fails.
.
[ Guillem Jover ]
* Verify that the alternative used in update-alternatives --set has been
registered instead of failing with an undefined value in the slave
method. Closes: #554136
* Strip leading spaces in the first line of a field's value in
Dpkg::Control::Hash. Closes: #557547
Checksums-Sha1:
2f688cb5aa87268764015bf4d19509639a888bdc 1193 dpkg_1.15.5.3.dsc
8cd0d8e9457ed60c2b4480b81bf7d9614790682f 4665799 dpkg_1.15.5.3.tar.bz2
ed9e4726d57d7ae72d629bb10cc0d533412f3d65 2223168 dpkg_1.15.5.3_amd64.deb
6222151163d28a780e4a575ed7214154ea43703b 775436 dselect_1.15.5.3_amd64.deb
06ac476f63c044c966887647c4a6ffa018fa454b 757924 dpkg-dev_1.15.5.3_all.deb
Checksums-Sha256:
74ddcb37a3da8ab673b3ac8830d1e94aa80f9668e71b44a11db975effd17eb8a 1193 dpkg_1.15.5.3.dsc
90be82bbe0aaf30cc7d58ddce077b7ad14dd40e2fc7691814aaaee544a42646b 4665799 dpkg_1.15.5.3.tar.bz2
c9cbfaa1ff2bc2b88d8160a9e13422282e7bceab1f8d663ea462022a90565c13 2223168 dpkg_1.15.5.3_amd64.deb
54b737ef42d381d3eae2f1467be82018abe14eab391aa9087b66eda0ead18b54 775436 dselect_1.15.5.3_amd64.deb
4ff434a44457492ef7a1501714f3c5aaf45680b0681a20c1dbacb834156a9f5c 757924 dpkg-dev_1.15.5.3_all.deb
Files:
978686c517f51a8c729920edb850dd08 1193 admin required dpkg_1.15.5.3.dsc
2fd20b06c23e7c3bfc39525f0b278804 4665799 admin required dpkg_1.15.5.3.tar.bz2
f30e1673f66b538e5edf60bbb2093418 2223168 admin required dpkg_1.15.5.3_amd64.deb
1da9494e84fdb8a560fa6ab31d380f7f 775436 admin optional dselect_1.15.5.3_amd64.deb
ffea6535b2b579a39179cff35b0e7f90 757924 utils optional dpkg-dev_1.15.5.3_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAksQHJoACgkQuW9ciZ2SjJvnvQCgg6b+e2OquMucw8+EWGMAIYrs
dDIAn3zVdfpuoYzZ/nXVDLs3AA3Yo7XL
=YO+Z
-----END PGP SIGNATURE-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Sun, 27 Dec 2009 07:33:39 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Tue Jan 9 21:29:23 2018;
Machine Name:
beach
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.