~ubuntu-branches/ubuntu/karmic/nss/karmic-updates

« back to all changes in this revision

Viewing changes to debian/libnss3-1d.prerm

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack, Fabien Tassin, Alexander Sack
  • Date: 2009-01-11 15:06:17 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20090111150617-iz4lw05qgy2odorl
Tags: 3.12.2~rc1-0ubuntu1
* 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
* Update diverged patches:
  - update debian/patches/38_kbsd.patch
  - update debian/patches/38_mips64_build.patch
* Add new symbols to symbols file
  - update debian/libnss3-1d.symbols

[ Alexander Sack <asac@ubuntu.com> ]
* disable soname patch to become binary compatible with upstream
  - update debian/patches/series
* flip links: libnss3.so <- libnss3.so.1d (before: libnss3.so ->
  libnss3.so.1d); same link flipping was done for all other previously
  soname patched libs: libnssutil3.so, libsmime3.so.1d, libssl3.so.1d
  - update debian/libnss3-1d.links
  - update debian/libnss3-1d.symbols
* properly transition links in preinst and postrm; also cover abort-
  cases in the other maintainer scripts
  - add debian/libnss3-1d.postinst
  - add debian/libnss3-1d.postrm
  - add debian/libnss3-1d.preinst
  - add debian/libnss3-1d.prerm
* remove hack from debian/rules that debian uses to recreate
  libsoftokn3.so with a versioned SONAME
  - update debian/rules
* install the unversioned .so binaries
  - update debian/rules
* only install the 4 main libraries into /usr/lib; all the others
  go to pkglibdir
  - update debian/rules
* higher bar for libnspr4 Build-Depend to >= 4.7.3~, which is
  the version where the soname droppage is going to happen
  - update debian/control
* explitily pass libraries to be used for dpkg-gensymbols run of
  dh_makeshlibs
  - update debian/rules
* fix lintian complain about no-shlibs-control-file
  - update debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
set -e
 
4
 
 
5
migratious_files="libssl3.so libsmime3.so libnssutil3.so libnss3.so"
 
6
 
 
7
if [ "$1" = "abort-upgrade" -o "$1" = "failed-upgrade" ]; then
 
8
 
 
9
        for f in $migratious_files; do
 
10
                if [ -e /usr/lib/$f.new-migration ]; then
 
11
                        rm -f /usr/lib/$f
 
12
                        mv /usr/lib/$f.new-migration /usr/lib/$f
 
13
                fi
 
14
                if [ -e /usr/lib/$f.1d.new-migration ]; then
 
15
                        rm -f /usr/lib/$f.1d
 
16
                        mv /usr/lib/$f.1d.new-migration /usr/lib/$f.1d
 
17
                fi
 
18
        done
 
19
 
 
20
fi
 
21
 
 
22
 
 
23
# old-prerm upgrade version
 
24
# this is the dowgrade cas where we need to reshuffle links before the upgrade happens
 
25
if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" "le" "3.12.1~rc1-0ubuntu1~fta1ubuntu1"; then
 
26
 
 
27
        for f in $migratious_files; do
 
28
                if [ -L /usr/lib/$f.1d ]; then
 
29
                        rm -f /usr/lib/$f.old-migration
 
30
                        mv /usr/lib/$f.1d /usr/lib/$f.1d.old-migration
 
31
                fi
 
32
                if [ -r /usr/lib/$f -a ! -L /usr/lib/$f ]; then
 
33
                        rm -f /usr/lib/$f.old-migration
 
34
                        mv /usr/lib/$f /usr/lib/$f.old-migration
 
35
                fi
 
36
        done
 
37
 
 
38
fi