~ubuntu-branches/ubuntu/jaunty/nss/jaunty-proposed

« back to all changes in this revision

Viewing changes to debian/patches/38_kbsd.patch

  • 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
1
---
2
 
 mozilla/security/coreconf/Linux.mk          |   66 ++++++----------------------
 
2
 mozilla/security/coreconf/Linux.mk          |   71 ++++++----------------------
3
3
 mozilla/security/coreconf/Linux2.6.mk       |    3 +
4
4
 mozilla/security/coreconf/arch.mk           |    8 +++
5
5
 mozilla/security/coreconf/config.mk         |    2 
6
 
 mozilla/security/nss/lib/freebl/unix_rand.c |    4 +
 
6
 mozilla/security/nss/lib/freebl/unix_rand.c |    2 
7
7
 mozilla/security/nss/lib/ssl/sslmutex.c     |    2 
8
8
 mozilla/security/nss/lib/ssl/sslmutex.h     |    2 
9
 
 7 files changed, 33 insertions(+), 54 deletions(-)
 
9
 7 files changed, 32 insertions(+), 58 deletions(-)
10
10
 
11
 
Index: nss-trunk-3.12.0~alpha1b/mozilla/security/nss/lib/freebl/unix_rand.c
 
11
Index: nss-3.12.1~rc1/mozilla/security/nss/lib/freebl/unix_rand.c
12
12
===================================================================
13
 
--- nss-trunk-3.12.0~alpha1b.orig/mozilla/security/nss/lib/freebl/unix_rand.c   2007-08-17 16:51:22.000000000 +0000
14
 
+++ nss-trunk-3.12.0~alpha1b/mozilla/security/nss/lib/freebl/unix_rand.c        2007-08-17 16:51:26.000000000 +0000
15
 
@@ -180,17 +180,19 @@
16
 
         rv = SECFailure;
 
13
--- nss-3.12.1~rc1.orig/mozilla/security/nss/lib/freebl/unix_rand.c
 
14
+++ nss-3.12.1~rc1/mozilla/security/nss/lib/freebl/unix_rand.c
 
15
@@ -181,16 +181,18 @@
17
16
     }
18
17
     return rv;
19
18
 }
21
20
 #endif
22
21
 
23
22
 #if defined(SCO) || defined(UNIXWARE) || defined(BSDI) || defined(FREEBSD) \
24
 
-    || defined(NETBSD) || defined(NTO) || defined(DARWIN) || defined(OPENBSD)
25
 
+    || defined(NETBSD) || defined(NTO) || defined(DARWIN) || defined(OPENBSD) \
 
23
     || defined(NETBSD) || defined(DARWIN) || defined(OPENBSD) \
26
24
+    || defined(__FreeBSD_kernel__) || defined(__NetBSD_kernel__) \
27
 
+    || defined(__GNU__)
 
25
+    || defined(__GNU__) \
 
26
     || defined(NTO) || defined(__riscos__)
28
27
 #include <sys/times.h>
29
28
 
30
29
 #define getdtablesize() sysconf(_SC_OPEN_MAX)
32
31
 static size_t
33
32
 GetHighResClock(void *buf, size_t maxbytes)
34
33
 {
35
 
     int ticks;
36
 
Index: nss-trunk-3.12.0~alpha1b/mozilla/security/nss/lib/ssl/sslmutex.c
 
34
Index: nss-3.12.1~rc1/mozilla/security/nss/lib/ssl/sslmutex.c
37
35
===================================================================
38
 
--- nss-trunk-3.12.0~alpha1b.orig/mozilla/security/nss/lib/ssl/sslmutex.c       2006-06-07 18:36:26.000000000 +0000
39
 
+++ nss-trunk-3.12.0~alpha1b/mozilla/security/nss/lib/ssl/sslmutex.c    2007-08-17 16:51:26.000000000 +0000
 
36
--- nss-3.12.1~rc1.orig/mozilla/security/nss/lib/ssl/sslmutex.c
 
37
+++ nss-3.12.1~rc1/mozilla/security/nss/lib/ssl/sslmutex.c
40
38
@@ -84,17 +84,17 @@
41
39
     if (!pMutex->u.sslLock) {
42
40
         PORT_SetError(PR_INVALID_ARGUMENT_ERROR);
56
54
 #include "unix_err.h"
57
55
 #include "pratom.h"
58
56
 
59
 
Index: nss-trunk-3.12.0~alpha1b/mozilla/security/nss/lib/ssl/sslmutex.h
 
57
Index: nss-3.12.1~rc1/mozilla/security/nss/lib/ssl/sslmutex.h
60
58
===================================================================
61
 
--- nss-trunk-3.12.0~alpha1b.orig/mozilla/security/nss/lib/ssl/sslmutex.h       2004-04-27 23:04:39.000000000 +0000
62
 
+++ nss-trunk-3.12.0~alpha1b/mozilla/security/nss/lib/ssl/sslmutex.h    2007-08-17 16:51:26.000000000 +0000
 
59
--- nss-3.12.1~rc1.orig/mozilla/security/nss/lib/ssl/sslmutex.h
 
60
+++ nss-3.12.1~rc1/mozilla/security/nss/lib/ssl/sslmutex.h
63
61
@@ -74,17 +74,17 @@
64
62
 #endif
65
63
         PRLock* sslLock;
79
77
     PRBool isMultiProcess;
80
78
     union {
81
79
         PRLock* sslLock;
82
 
Index: nss-trunk-3.12.0~alpha1b/mozilla/security/coreconf/Linux.mk
 
80
Index: nss-3.12.1~rc1/mozilla/security/coreconf/Linux.mk
83
81
===================================================================
84
 
--- nss-trunk-3.12.0~alpha1b.orig/mozilla/security/coreconf/Linux.mk    2007-08-17 16:57:01.000000000 +0000
85
 
+++ nss-trunk-3.12.0~alpha1b/mozilla/security/coreconf/Linux.mk 2007-08-17 18:23:44.000000000 +0000
86
 
@@ -47,102 +47,70 @@
 
82
--- nss-3.12.1~rc1.orig/mozilla/security/coreconf/Linux.mk
 
83
+++ nss-3.12.1~rc1/mozilla/security/coreconf/Linux.mk
 
84
@@ -47,107 +47,70 @@
87
85
 endif
88
86
 
89
87
 CC                     = gcc
123
121
-ifeq ($(OS_TEST),ia64)
124
122
-       OS_REL_CFLAGS   = -DLINUX1_2 -D_XOPEN_SOURCE
125
123
-       CPU_ARCH        = ia64
126
 
+        OS_REL_CFLAGS   += -D_ALPHA_
 
124
+       OS_REL_CFLAGS   += -D_ALPHA_
127
125
 else
128
126
 ifeq ($(OS_TEST),x86_64)
129
127
-ifeq ($(USE_64),1)
169
167
-       OS_REL_CFLAGS   = -DLINUX1_2 -D_XOPEN_SOURCE
170
168
-       CPU_ARCH        = mips
171
169
-else
 
170
-ifeq (,$(filter-out i%86,$(OS_TEST)))
172
171
-       OS_REL_CFLAGS   = -DLINUX1_2 -Di386 -D_XOPEN_SOURCE
173
172
+ifeq (,$(filter-out i686 i586 i486 i386,$(OS_TEST)))
174
173
+       OS_REL_CFLAGS   += -Di386
175
174
        CPU_ARCH        = x86
176
 
 endif
177
 
 endif
178
 
 endif
179
 
 endif
180
 
 endif
181
 
 endif
182
 
 endif
183
 
 endif
184
 
-endif
185
 
-endif
186
 
-endif
187
 
-endif
188
 
-endif
189
 
-endif
 
175
-else
 
176
-       OS_REL_CFLAGS   = -DLINUX1_2 -D_XOPEN_SOURCE
 
177
-       CPU_ARCH        = $(OS_TEST)
 
178
-endif
 
179
-endif
 
180
-endif
 
181
-endif
 
182
-endif
 
183
-endif
 
184
-endif
 
185
 endif
 
186
 endif
 
187
 endif
 
188
 endif
 
189
 endif
 
190
 endif
 
191
 endif
 
192
 endif
190
193
 
191
194
 
192
195
 LIBC_TAG               = _glibc
201
204
        PROCESS_MAP_FILE = grep -v ';-' $< | \
202
205
          sed -e 's,;+,,' -e 's; DATA ;;' -e 's,;;,,' -e 's,;.*,;,' > $@
203
206
 endif
204
 
@@ -157,22 +125,20 @@
 
207
@@ -166,22 +129,20 @@
205
208
 
206
 
 OS_CFLAGS              = $(DSO_CFLAGS) $(OS_REL_CFLAGS) $(ARCHFLAG) -ansi -Wall -Werror-implicit-function-declaration -pipe -DLINUX -Dlinux -D_POSIX_SOURCE -D_BSD_SOURCE -DHAVE_STRERROR
 
209
 OS_CFLAGS              = $(DSO_CFLAGS) $(OS_REL_CFLAGS) $(ARCHFLAG) -ansi -Wall -Werror-implicit-function-declaration -Wno-switch -pipe -DLINUX -Dlinux -D_POSIX_SOURCE -D_BSD_SOURCE -DHAVE_STRERROR
207
210
 OS_LIBS                        = $(OS_PTHREAD) -ldl -lc
208
211
 
209
212
 ifdef USE_PTHREADS
225
228
 # Always set CPU_TAG on Linux, OpenVMS, WINCE.
226
229
 #
227
230
 CPU_TAG = _$(CPU_ARCH)
228
 
Index: nss-trunk-3.12.0~alpha1b/mozilla/security/coreconf/Linux2.6.mk
 
231
Index: nss-3.12.1~rc1/mozilla/security/coreconf/Linux2.6.mk
229
232
===================================================================
230
 
--- nss-trunk-3.12.0~alpha1b.orig/mozilla/security/coreconf/Linux2.6.mk 2007-08-17 18:25:22.000000000 +0000
231
 
+++ nss-trunk-3.12.0~alpha1b/mozilla/security/coreconf/Linux2.6.mk      2007-08-17 18:26:29.000000000 +0000
 
233
--- nss-3.12.1~rc1.orig/mozilla/security/coreconf/Linux2.6.mk
 
234
+++ nss-3.12.1~rc1/mozilla/security/coreconf/Linux2.6.mk
232
235
@@ -32,17 +32,20 @@
233
236
 # and other provisions required by the GPL or the LGPL. If you do not delete
234
237
 # the provisions above, a recipient may use your version of this file under
250
253
 PROCESS_MAP_FILE = grep -v ';-' $< | \
251
254
         sed -e 's,;+,,' -e 's; DATA ;;' -e 's,;;,,' -e 's,;.*,;,' > $@
252
255
 
253
 
Index: nss-trunk-3.12.0~alpha1b/mozilla/security/coreconf/arch.mk
 
256
Index: nss-3.12.1~rc1/mozilla/security/coreconf/arch.mk
254
257
===================================================================
255
 
--- nss-trunk-3.12.0~alpha1b.orig/mozilla/security/coreconf/arch.mk     2007-08-17 18:27:09.000000000 +0000
256
 
+++ nss-trunk-3.12.0~alpha1b/mozilla/security/coreconf/arch.mk  2007-08-17 18:27:27.000000000 +0000
 
258
--- nss-3.12.1~rc1.orig/mozilla/security/coreconf/arch.mk
 
259
+++ nss-3.12.1~rc1/mozilla/security/coreconf/arch.mk
257
260
@@ -150,16 +150,24 @@
258
261
     OS_RELEASE := $(shell echo $(OS_RELEASE) | sed 's/-.*//')
259
262
 endif
279
282
 ifeq ($(OS_ARCH),OS_2)
280
283
     OS_ARCH = OS2
281
284
     OS_RELEASE := $(shell uname -v)
282
 
Index: nss-trunk-3.12.0~alpha1b/mozilla/security/coreconf/config.mk
 
285
Index: nss-3.12.1~rc1/mozilla/security/coreconf/config.mk
283
286
===================================================================
284
 
--- nss-trunk-3.12.0~alpha1b.orig/mozilla/security/coreconf/config.mk   2007-08-17 18:27:55.000000000 +0000
285
 
+++ nss-trunk-3.12.0~alpha1b/mozilla/security/coreconf/config.mk        2007-08-17 18:28:03.000000000 +0000
 
287
--- nss-3.12.1~rc1.orig/mozilla/security/coreconf/config.mk
 
288
+++ nss-3.12.1~rc1/mozilla/security/coreconf/config.mk
286
289
@@ -58,17 +58,17 @@
287
290
 #       (dependent upon <architecture> tags)                          #
288
291
 #                                                                     #
292
295
 #######################################################################
293
296
 
294
297
 TARGET_OSES = FreeBSD BSD_OS NetBSD OpenUNIX OS2 QNX Darwin BeOS OpenBSD \
295
 
-              OpenVMS AIX
296
 
+              OpenVMS AIX GNU GNU_%
 
298
-              OpenVMS AIX RISCOS
 
299
+              OpenVMS AIX RISCOS GNU GNU_%
297
300
 
298
301
 ifeq (,$(filter-out $(TARGET_OSES),$(OS_TARGET)))
299
302
 include $(CORE_DEPTH)/coreconf/$(OS_TARGET).mk