=== modified file 'debian/changelog'
--- a/debian/changelog	2009-01-11 14:06:43 +0000
+++ b/debian/changelog	2009-01-14 11:09:20 +0000
@@ -1,8 +1,14 @@
+nss (3.12.2~rc1-0ubuntu2~asac1) jaunty; urgency=low
+
+  * ldconfig (xmigration) hack in pre/post maintainer scripts
+
+ -- Alexander Sack <asac@ubuntu.com>  Wed, 14 Jan 2009 12:08:58 +0100
+
 nss (3.12.2~rc1-0ubuntu1) jaunty; urgency=low
 
   * New upstream snapshot: 3.12.2 RC1
 
   [ Fabien Tassin <fta@ubuntu.com> ]
   * Remove patch applied upstream:
     - drop debian/patches/80_security_tools.patch
     - update debian/patches/series

=== modified file 'debian/libnss3-1d.postinst'
--- a/debian/libnss3-1d.postinst	2008-11-16 00:31:40 +0000
+++ b/debian/libnss3-1d.postinst	2009-01-14 11:07:54 +0000
@@ -3,26 +3,26 @@
 set -e
 
 migratious_files="libssl3.so libsmime3.so libnssutil3.so libnss3.so"
 
 if [ "$1" = "configure" ]; then
 
 	for f in $migratious_files; do
 		# before new binaries get installed, we move the links
-		rm -f /usr/lib/$f.new-migration
-		rm -f /usr/lib/$f.1d.new-migration
+		rm -f /usr/lib/XMIGRATIONHACK_$f.new-migration
+		rm -f /usr/lib/XMIGRATIONHACK_$f.1d.new-migration
 	done
 fi
 
 if [ "$1" = "abort-upgrade" ]; then
 	for f in $migratious_files; do
-		if [ -e "/usr/lib/$f.old-migration" ]; then
+		if [ -e "/usr/lib/XMIGRATIONHACK_$f.old-migration" ]; then
 			rm -f /usr/lib/$f
-			mv /usr/lib/$f.old-migration /usr/lib/$f
+			mv /usr/lib/XMIGRATIONHACK_$f.old-migration /usr/lib/$f
 		fi
-		if [ -L "/usr/lib/$f.1d.old-migration" ]; then
+		if [ -L "/usr/lib/XMIGRATIONHACK_$f.1d.old-migration" ]; then
 			rm -f /usr/lib/$f.1d
-			mv /usr/lib/$f.1d.old-migration /usr/lib/$f.1d
+			mv /usr/lib/XMIGRATIONHACK_$f.1d.old-migration /usr/lib/$f.1d
 		fi
 	done
 fi
 

=== modified file 'debian/libnss3-1d.postrm'
--- a/debian/libnss3-1d.postrm	2008-11-16 00:31:40 +0000
+++ b/debian/libnss3-1d.postrm	2009-01-14 11:08:01 +0000
@@ -1,13 +1,13 @@
 #!/bin/sh
 
 set -e
 
 migratious_files="libssl3.so libsmime3.so libnssutil3.so libnss3.so"
 
 if [ "$1" = "upgrade" ]; then
 	for f in $migratious_files; do
-		rm -f /usr/lib/$f.old-migration
-		rm -f /usr/lib/$f.1d.old-migration
+		rm -f /usr/lib/XMIGRATIONHACK_$f.old-migration
+		rm -f /usr/lib/XMIGRATIONHACK_$f.1d.old-migration
 	done
 fi
 

=== modified file 'debian/libnss3-1d.preinst'
--- a/debian/libnss3-1d.preinst	2008-11-16 00:31:40 +0000
+++ b/debian/libnss3-1d.preinst	2009-01-14 11:08:21 +0000
@@ -3,18 +3,18 @@
 set -e
 
 migratious_files="libssl3.so libsmime3.so libnssutil3.so libnss3.so"
 
 if [ "$1" = "upgrade" ]; then
 	for f in $migratious_files; do
 		# before new binaries get installed, we move the links
 		if [ -L /usr/lib/$f ]; then
-			rm -f /usr/lib/$f.new-migration
-			mv /usr/lib/$f /usr/lib/$f.new-migration
+			rm -f /usr/lib/XMIGRATIONHACK_$f.new-migration
+			mv /usr/lib/$f /usr/lib/XMIGRATIONHACK_$f.new-migration
 		fi
 		# before the new links get installed, we move the old binaries
 		if [ -r /usr/lib/$f.1d -a ! -L /usr/lib/$f.1d ]; then
-			rm -f /usr/lib/$f.1d.new-migration
-			mv /usr/lib/$f.1d /usr/lib/$f.1d.new-migration
+			rm -f /usr/lib/XMIGRATIONHACK_$f.1d.new-migration
+			mv /usr/lib/$f.1d /usr/lib/XMIGRATIONHACK_$f.1d.new-migration
 		fi
 	done
 fi

=== modified file 'debian/libnss3-1d.prerm'
--- a/debian/libnss3-1d.prerm	2008-11-16 00:31:40 +0000
+++ b/debian/libnss3-1d.prerm	2009-01-14 11:08:54 +0000
@@ -2,37 +2,37 @@
 
 set -e
 
 migratious_files="libssl3.so libsmime3.so libnssutil3.so libnss3.so"
 
 if [ "$1" = "abort-upgrade" -o "$1" = "failed-upgrade" ]; then
 
 	for f in $migratious_files; do
-		if [ -e /usr/lib/$f.new-migration ]; then
+		if [ -e /usr/lib/XMIGRATIONHACK_$f.new-migration ]; then
 			rm -f /usr/lib/$f
-			mv /usr/lib/$f.new-migration /usr/lib/$f
+			mv /usr/lib/XMIGRATIONHACK_$f.new-migration /usr/lib/$f
 		fi
-		if [ -e /usr/lib/$f.1d.new-migration ]; then
+		if [ -e /usr/lib/XMIGRATIONHACK_$f.1d.new-migration ]; then
 			rm -f /usr/lib/$f.1d
-			mv /usr/lib/$f.1d.new-migration /usr/lib/$f.1d
+			mv /usr/lib/XMIGRATIONHACK_$f.1d.new-migration /usr/lib/$f.1d
 		fi
 	done
 
 fi
 
 
 # old-prerm upgrade version
 # this is the dowgrade cas where we need to reshuffle links before the upgrade happens
 if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" "le" "3.12.1~rc1-0ubuntu1~fta1ubuntu1"; then
 
 	for f in $migratious_files; do
 		if [ -L /usr/lib/$f.1d ]; then
-			rm -f /usr/lib/$f.old-migration
-			mv /usr/lib/$f.1d /usr/lib/$f.1d.old-migration
+			rm -f /usr/lib/XMIGRATIONHACK_$f.old-migration
+			mv /usr/lib/$f.1d /usr/lib/XMIGRATIONHACK_$f.1d.old-migration
 		fi
 		if [ -r /usr/lib/$f -a ! -L /usr/lib/$f ]; then
-			rm -f /usr/lib/$f.old-migration
-			mv /usr/lib/$f /usr/lib/$f.old-migration
+			rm -f /usr/lib/XMIGRATIONHACK_$f.old-migration
+			mv /usr/lib/$f /usr/lib/XMIGRATIONHACK_$f.old-migration
 		fi
 	done
 
 fi

