Package: libnss-ldap
Version: 251-5.2
Severity: normal
Tags: patch

Hi,

Attached is the diff for my libnss-ldap 251-5.3 NMU. I've verified that it
upgrades correctly from 251-5.1 (251-5.2 didn't), and with a bit of luck it
should solve both RC bugs currently open against libnss-ldap.

Please let me know ASAP if you have any objections; I'll be asking the RMs
what's a reasonable delay for an NMU fixing problems introduced in my own
NMU, but I guess I'll be able to upload sometime tomorrow.

-- 
Homepage: http://www.sesse.net/
diff -Nru /tmp/n3XSlLna6g/libnss-ldap-251/debian/changelog 
/tmp/HaFWlzDLX9/libnss-ldap-251/debian/changelog
--- /tmp/n3XSlLna6g/libnss-ldap-251/debian/changelog    2006-10-04 
02:31:38.000000000 +0200
+++ /tmp/HaFWlzDLX9/libnss-ldap-251/debian/changelog    2006-10-04 
02:31:39.000000000 +0200
@@ -1,3 +1,14 @@
+libnss-ldap (251-5.3) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Depend on initscripts (>= 2.86.ds1-20), as we need at least that version
+    for /lib/init/rw. (Closes: #390926)
+  * Make sure we explicitly remove the init script symlinks from older
+    versions of the libnss-ldap.init workaround; this should fix issues with
+    upgrades from [251-4 .. 251-5.1]. (Closes: #375215)
+
+ -- Steinar H. Gunderson <[EMAIL PROTECTED]>  Wed,  4 Oct 2006 02:19:41 +0200
+
 libnss-ldap (251-5.2) unstable; urgency=high
 
   * Non-maintainer upload.
diff -Nru /tmp/n3XSlLna6g/libnss-ldap-251/debian/control 
/tmp/HaFWlzDLX9/libnss-ldap-251/debian/control
--- /tmp/n3XSlLna6g/libnss-ldap-251/debian/control      2006-10-04 
02:31:38.000000000 +0200
+++ /tmp/HaFWlzDLX9/libnss-ldap-251/debian/control      2006-10-04 
02:31:39.000000000 +0200
@@ -7,7 +7,7 @@
 
 Package: libnss-ldap
 Architecture: any
-Depends: ${shlibs:Depends}, debconf | debconf-2.0
+Depends: ${shlibs:Depends}, debconf | debconf-2.0, initscripts (>= 2.86.ds1-20)
 Recommends: nscd, libpam-ldap
 Description: NSS module for using LDAP as a naming service
  This package provides a Name Service Switch that allows your LDAP server
diff -Nru /tmp/n3XSlLna6g/libnss-ldap-251/debian/libnss-ldap.postinst 
/tmp/HaFWlzDLX9/libnss-ldap-251/debian/libnss-ldap.postinst
--- /tmp/n3XSlLna6g/libnss-ldap-251/debian/libnss-ldap.postinst 2006-10-04 
02:31:38.000000000 +0200
+++ /tmp/HaFWlzDLX9/libnss-ldap-251/debian/libnss-ldap.postinst 2006-10-04 
02:31:39.000000000 +0200
@@ -182,4 +182,13 @@
        rm -rf /var/lib/libnss-ldap
 fi
 
+#
+# Older versions of the package used to ship with a different scheme
+# for taking care of the bind policy at boot. We need to remove it
+# in order to make the new one get installed.
+#
+if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt "251-5.3"; then
+       update-rc.d -f libnss-ldap remove >/dev/null
+fi
+
 #DEBHELPER#

Reply via email to