[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#863867: unblock: ksh/93u+20120801-3.1



Package: release.debian.org
Severity: important
User: release.debian.org@packages.debian.org
Usertags: unblock

Please unblock package ksh

Hi,

ksh/93u+20120801-3.1 fixes release critical bug #810158

ksh tried to unconditionaly make a link from /bin/ksh to /usr/bin/ksh
via update-alternatives even if usrmerge was active.

Thanks

Christoph
-- 
============================================================================
Christoph Martin, Leiter Unix-Systeme
Zentrum für Datenverarbeitung, Uni-Mainz, Germany
 Anselm Franz von Bentzel-Weg 12, 55128 Mainz
 Telefon: +49(6131)3926337
 Instant-Messaging: Jabber: martin@jabber.uni-mainz.de
  (Siehe http://www.zdv.uni-mainz.de/4010.php)


diff -Nru ksh-93u+20120801/debian/changelog ksh-93u+20120801/debian/changelog
--- ksh-93u+20120801/debian/changelog	2015-11-02 16:27:18.000000000 +0100
+++ ksh-93u+20120801/debian/changelog	2017-05-31 11:57:56.000000000 +0200
@@ -1,3 +1,10 @@
+ksh (93u+20120801-3.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * fix postinst with merged /usr using patch from mksh (Closes: #810158)
+
+ -- Christoph Martin <martin@uni-mainz.de>  Wed, 31 May 2017 11:57:56 +0200
+
 ksh (93u+20120801-2) unstable; urgency=medium
 
   * Adopted package (Closes: #691199)
diff -Nru ksh-93u+20120801/debian/postinst ksh-93u+20120801/debian/postinst
--- ksh-93u+20120801/debian/postinst	2015-11-02 16:26:43.000000000 +0100
+++ ksh-93u+20120801/debian/postinst	2017-05-31 11:57:56.000000000 +0200
@@ -22,9 +22,11 @@
 # The alternative is the mksh package.
 # For a discussion on interactions between ksh and mksh, see #764401.
 update-alternatives --install /bin/ksh ksh /bin/ksh93 20 \
-                    --slave /usr/bin/ksh usr.bin.ksh /bin/ksh93 \
                     --slave /usr/share/man/man1/ksh.1.gz ksh.1.gz \
                             /usr/share/man/man1/ksh93.1.gz
+# create compatibility symlink if necessary
+test -e /usr/bin/ksh || test -h /usr/bin/ksh || \
+    ln -s /bin/ksh /usr/bin/ksh
 
 # For a discussion of what we put in /etc/shells see #790118.
 add-shell /bin/ksh93
diff -Nru ksh-93u+20120801/debian/prerm ksh-93u+20120801/debian/prerm
--- ksh-93u+20120801/debian/prerm	2015-10-31 23:06:39.000000000 +0100
+++ ksh-93u+20120801/debian/prerm	2017-05-31 11:57:56.000000000 +0200
@@ -5,6 +5,9 @@
 case "$1" in
     remove|deconfigure)
         update-alternatives --remove ksh /bin/ksh93
+	# remove compatibility symlink if broken
+	test '!' -h /usr/bin/ksh || test -e /usr/bin/ksh || rm -f /usr/bin/ksh
+
 	update-binfmts --package ksh --remove ksh /bin/ksh93
     ;;
 

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: