Debian Bug report logs -
#30891
dpkg: Patch for update-alternatives to fix jdk problems
Reported by: Jim Pick <jim@jimpick.com>
Date: Sat, 19 Dec 1998 21:18:02 UTC
Severity: fixed
Done: Anthony Towns <ajt@master.debian.org>
Bug is archived. No further changes may be made.
Forwarded to ian@davenant.greenend.org.uk
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, Ian Jackson and others <dpkg-maint@chiark.greenend.org.uk>
:
Bug#30891
; Package dpkg
.
(full text, mbox, link).
Acknowledgement sent to Jim Pick <jim@jimpick.com>
:
New bug report received and forwarded. Copy sent to Ian Jackson and others <dpkg-maint@chiark.greenend.org.uk>
.
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: dpkg
Version: 1.4.0.31
Severity: important
The Debian jdk1.1 and jdk1.1-dev packages are one of the heaviest users
of update-alternatives. Over the years, several versions of the jdk packages
have had bugs, resulting in stale entries in /var/lib/dpkg/alternatives.
Some of the stale entries are preventing the new jdk1.1 packages from
being installed on some systems that had the old buggy packages
installed.
Here's a simple patch against update-alternatives which removes stale
entries when update-alternatives is run. I'd really like to see this
fixed for slink, and it would solve some release-critical problems.
Cheers,
- Jim
--- update-alternatives.debian Sat Dec 19 12:04:25 1998
+++ update-alternatives Sat Dec 19 12:58:02 1998
@@ -110,14 +110,23 @@
}
while (($version= &gl("version")) ne '') {
defined($versionnum{$version}) && &badfmt("duplicate path $tver");
- push(@versions,$version);
- $versionnum{$version}= $i= $#versions;
- $priority= &gl("priority");
- $priority =~ m/^[-+]?\d+$/ || &badfmt("priority $version $priority");
- $priorities[$i]= $priority;
- for ($j=0; $j<=$#slavenames; $j++) {
- $slavepath{$i,$j}= &gl("spath");
- }
+ if ( -r $version ) {
+ push(@versions,$version);
+ $versionnum{$version}= $i= $#versions;
+ $priority= &gl("priority");
+ $priority =~ m/^[-+]?\d+$/ || &badfmt("priority $version $priority");
+ $priorities[$i]= $priority;
+ for ($j=0; $j<=$#slavenames; $j++) {
+ $slavepath{$i,$j}= &gl("spath");
+ }
+ } else {
+ # File not found - remove
+ &pr("Alternative for $name points to $version - which wasn't found. Removing from list of alternatives.");
+ &gl("priority");
+ for ($j=0; $j<=$#slavenames; $j++) {
+ &gl("spath");
+ }
+ }
}
close(AF);
$dataread=1;
-- System Information
Debian Release: slink
Kernel Version: Linux fleming 2.1.131 #1 SMP Wed Dec 2 18:48:33 PST 1998 i586 unknown
Versions of the packages dpkg depends on:
ii libc6 2.0.7u-7.1 The GNU C library version 2 (run-time files)
ii libncurses4 4.2-3 Shared libraries for terminal handling
ii libstdc++2.9 2.91.60-1 The GNU stdc++ library (egcs version)
Severity set to `fixed'.
Request was from Wichert Akkerman <wichert@cs.leidenuniv.nl>
to control@bugs.debian.org
.
(full text, mbox, link).
Noted your statement that bug has been forwarded to ian@davenant.greenend.org.uk.
Request was from Ian Jackson <ian@davenant.greenend.org.uk>
to control@bugs.debian.org
.
(full text, mbox, link).
Bug reassigned from package `dpkg' to `dpkg-iwj'.
Request was from Wichert Akkerman <wichert@cs.leidenuniv.nl>
to control@bugs.debian.org
.
(full text, mbox, link).
Bug reassigned from package `dpkg-iwj' to `dpkg'.
Request was from Anthony Towns <ajt@master.debian.org>
to control@bugs.debian.org
.
(full text, mbox, link).
Bug closed, ack sent to submitter - they'd better know why !
Request was from Anthony Towns <ajt@master.debian.org>
to control@bugs.debian.org
.
(full text, mbox, link).
Bug reassigned from package `dpkg' to `dpkg'.
Request was from Anthony Towns <ajt@master.debian.org>
to control@bugs.debian.org
.
(full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Wed Apr 24 01:28:49 2024;
Machine Name:
buxtehude
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.