tags 553120 + patch pending
tags 553121 + patch pending
tags 553123 + patch pending
thanks

Dear maintainer,

I've prepared an NMU for db4.2 (versioned as 4.2.52+dfsg-5.1) and
uploaded it to DELAYED/7, according to devref §5.11.1. The patch, which
you can find attached, fixes at once the 3 RC bugs mentioned above. In
essence, it both add supports for debian/*.{postinst,preinst,...}
maintainer scripts installation and actually provides the missing
postinst/postrm maintainer scripts to invoke ldconfig as mandated by
policy.

Hope this helps,
Cheers.

-- 
Stefano Zacchiroli -o- PhD in Computer Science \ PostDoc @ Univ. Paris 7
z...@{upsilon.cc,pps.jussieu.fr,debian.org} -<>- http://upsilon.cc/zack/
Dietro un grande uomo c'è ..|  .  |. Et ne m'en veux pas si je te tutoie
sempre uno zaino ...........| ..: |.... Je dis tu à tous ceux que j'aime
diff -u db4.2-4.2.52+dfsg/debian/rules db4.2-4.2.52+dfsg/debian/rules
--- db4.2-4.2.52+dfsg/debian/rules
+++ db4.2-4.2.52+dfsg/debian/rules
@@ -179,6 +179,11 @@
 	   dpkg-gencontrol -isp -p$${i} -Pdebian/$${i} -Tdebian/substvars.$${i} ; \
 	   chown -R root:root debian/$${i} ; \
 	   chmod -R ugo=rX,u+w debian/$${i} ; \
+	   for s in postinst preinst postrm prerm ; do \
+	      if [ -f debian/$${i}.$${s} ] ; then \
+		 $(INSTALL_SCRIPT) debian/$${i}.$${s} debian/$${i}/DEBIAN/$${s} ; \
+	      fi ; \
+	   done ; \
 	   dpkg --build debian/$${i} .. ; \
 	done
 
diff -u db4.2-4.2.52+dfsg/debian/changelog db4.2-4.2.52+dfsg/debian/changelog
--- db4.2-4.2.52+dfsg/debian/changelog
+++ db4.2-4.2.52+dfsg/debian/changelog
@@ -1,3 +1,12 @@
+db4.2 (4.2.52+dfsg-5.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Add postinst and postrm that invoke ldconfig as required by policy for
+    the following packages: libdb4.2, libdb4.2++c2, libdb4.2-tcl
+    (Closes: #553120, #553123, #553121)
+
+ -- Stefano Zacchiroli <[email protected]>  Tue, 17 Nov 2009 10:29:04 +0100
+
 db4.2 (4.2.52+dfsg-5) unstable; urgency=medium
 
   * Fix arm encryption problem, thanks to Ben Hutchings.
only in patch2:
unchanged:
--- db4.2-4.2.52+dfsg.orig/debian/libdb4.2.postinst
+++ db4.2-4.2.52+dfsg/debian/libdb4.2.postinst
@@ -0,0 +1,4 @@
+#!/bin/sh -e
+if [ "$1" = "configure" ]; then
+	ldconfig
+fi
only in patch2:
unchanged:
--- db4.2-4.2.52+dfsg.orig/debian/libdb4.2.postrm
+++ db4.2-4.2.52+dfsg/debian/libdb4.2.postrm
@@ -0,0 +1,4 @@
+#!/bin/sh -e
+if [ "$1" = "remove" ]; then
+	ldconfig
+fi
only in patch2:
unchanged:
--- db4.2-4.2.52+dfsg.orig/debian/libdb4.2++c2.postinst
+++ db4.2-4.2.52+dfsg/debian/libdb4.2++c2.postinst
@@ -0,0 +1,4 @@
+#!/bin/sh -e
+if [ "$1" = "configure" ]; then
+	ldconfig
+fi
only in patch2:
unchanged:
--- db4.2-4.2.52+dfsg.orig/debian/libdb4.2++c2.postrm
+++ db4.2-4.2.52+dfsg/debian/libdb4.2++c2.postrm
@@ -0,0 +1,4 @@
+#!/bin/sh -e
+if [ "$1" = "remove" ]; then
+	ldconfig
+fi
only in patch2:
unchanged:
--- db4.2-4.2.52+dfsg.orig/debian/libdb4.2-tcl.postinst
+++ db4.2-4.2.52+dfsg/debian/libdb4.2-tcl.postinst
@@ -0,0 +1,4 @@
+#!/bin/sh -e
+if [ "$1" = "configure" ]; then
+	ldconfig
+fi
only in patch2:
unchanged:
--- db4.2-4.2.52+dfsg.orig/debian/libdb4.2-tcl.postrm
+++ db4.2-4.2.52+dfsg/debian/libdb4.2-tcl.postrm
@@ -0,0 +1,4 @@
+#!/bin/sh -e
+if [ "$1" = "remove" ]; then
+	ldconfig
+fi

Reply via email to