Tags 434647 + patch
thanks

Hi,

> The culprit is the line from kaffe.prerm
> update-alternatives --auto $file || true

yep, I agree with this assessment.

> Please remove this line. No maintainer scripts should ever run this
> line as it (by definition) overrides the system administrator's
> preferences about the alternatives link.

Therefore the appropriate action is to remove this line (and similar ones)
from the packages maintainer scripts. Attached patch does that. Its untested
as I was unable to build the package. Need to see whats causing me trouble
first. I think I'm just lacking disk space or so..

Best Regards,
Patrick
diff -u -Nur /tmp/kaffe-1.1.8/debian/changelog /scratch/kaffe-1.1.8/debian/changelog
--- /tmp/kaffe-1.1.8/debian/changelog	2008-10-24 13:34:52.069970241 +0200
+++ /scratch/kaffe-1.1.8/debian/changelog	2008-10-24 14:28:04.000000000 +0200
@@ -1,11 +1,3 @@
-kaffe (2:1.1.8-5.2) unstable; urgency=medium
-
-  * Non-maintainer upload.
-  * Do not call 'update-alternatives --auto' in maintainer scripts because it
-    overrides admin decisions
-
- -- Patrick Schoenfeld <[EMAIL PROTECTED]>  Fri, 24 Oct 2008 13:33:57 +0200
-
 kaffe (2:1.1.8-5.1) unstable; urgency=low
 
   * Non-maintainer upload.
diff -u -Nur /tmp/kaffe-1.1.8/debian/jikes-kaffe.prerm /scratch/kaffe-1.1.8/debian/jikes-kaffe.prerm
--- /tmp/kaffe-1.1.8/debian/jikes-kaffe.prerm	2008-10-24 13:32:38.573969912 +0200
+++ /scratch/kaffe-1.1.8/debian/jikes-kaffe.prerm	2008-10-24 14:28:04.000000000 +0200
@@ -3,6 +3,7 @@
 case "$1" in
   upgrade | remove)
     update-alternatives --remove javac /usr/bin/jikes-kaffe || true
+    update-alternatives --auto javac || true
    ;;
 esac
 
diff -u -Nur /tmp/kaffe-1.1.8/debian/kaffe.prerm /scratch/kaffe-1.1.8/debian/kaffe.prerm
--- /tmp/kaffe-1.1.8/debian/kaffe.prerm	2008-10-24 13:32:57.127483153 +0200
+++ /scratch/kaffe-1.1.8/debian/kaffe.prerm	2008-10-24 14:28:04.000000000 +0200
@@ -6,6 +6,7 @@
 if [ "$1" != "upgrade" ] ; then
 	for file in appletviewer jar java javac javadoc javah javakey javap jdb native2ascii rmic rmiregistry serialver ; do
 		update-alternatives --remove $file /etc/alternatives/kaffe-system/bin/$file || true
+		update-alternatives --auto $file || true
 	done
 fi
 

Attachment: signature.asc
Description: Digital signature

Reply via email to