pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/firefox3 SHA1_Update conflicts with openssl which ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9863a737b9d0
branches:  trunk
changeset: 554242:9863a737b9d0
user:      markd <markd%pkgsrc.org@localhost>
date:      Wed Feb 11 10:09:47 2009 +0000

description:
SHA1_Update conflicts with openssl which may be dynamically loaded
at runtime via libcups or libgssapi so causing a crash due to using
the wrong binding.  Rename here to avoid conflict.

Patch from Yorick Hardy.  Fixes the crashes that had been seen when
trying to print that had previously been worked around by stopping
cups calling the routine.  Also fixes PR pkg/39863

diffstat:

 www/firefox3/Makefile         |   3 +-
 www/firefox3/distinfo         |   4 ++-
 www/firefox3/patches/patch-em |  17 +++++++++++++++
 www/firefox3/patches/patch-en |  48 +++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 70 insertions(+), 2 deletions(-)

diffs (103 lines):

diff -r d52d9ab32563 -r 9863a737b9d0 www/firefox3/Makefile
--- a/www/firefox3/Makefile     Wed Feb 11 08:06:17 2009 +0000
+++ b/www/firefox3/Makefile     Wed Feb 11 10:09:47 2009 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.20 2009/02/05 21:22:06 tnn Exp $
+# $NetBSD: Makefile,v 1.21 2009/02/11 10:09:47 markd Exp $
 
 MOZILLA=               firefox3        # allow coexisting with firefox2
+PKGREVISION=           1
 COMMENT=               Lightweight gecko-based web browser
 
 PKG_DESTDIR_SUPPORT=   user-destdir
diff -r d52d9ab32563 -r 9863a737b9d0 www/firefox3/distinfo
--- a/www/firefox3/distinfo     Wed Feb 11 08:06:17 2009 +0000
+++ b/www/firefox3/distinfo     Wed Feb 11 10:09:47 2009 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.15 2009/02/05 21:22:06 tnn Exp $
+$NetBSD: distinfo,v 1.16 2009/02/11 10:09:47 markd Exp $
 
 SHA1 (firefox-3.0.6-source.tar.bz2) = e2845c07b507308664f6f39086a050b2773382fb
 RMD160 (firefox-3.0.6-source.tar.bz2) = 89621d5c2e02f359a2552b714685b78cbdfbbf0e
@@ -41,6 +41,8 @@
 SHA1 (patch-ej) = 9b9c708483399fa89c6bf5bdc15e79b31793c89d
 SHA1 (patch-ek) = b94debcf16ba6f0dccc0a812b5e5fa38a150c413
 SHA1 (patch-el) = 8a1586e4ebb76f584dc7b1cbc19f0c389ea206f7
+SHA1 (patch-em) = 6b8b470fc78a4a56400e77af1057b9266634dcc9
+SHA1 (patch-en) = 39926ce5669119c358e8600e2d70d08236e67443
 SHA1 (patch-wc) = 2de8665ed6c23c26566ca6d50165c0cf413a753d
 SHA1 (patch-wd) = fc5c3103ae6f2a2eccc01911a8207f3ca614008b
 SHA1 (patch-we) = f7fecce05454e9794ff7a4e7789031a5ef49c42d
diff -r d52d9ab32563 -r 9863a737b9d0 www/firefox3/patches/patch-em
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/firefox3/patches/patch-em     Wed Feb 11 10:09:47 2009 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-em,v 1.1 2009/02/11 10:09:47 markd Exp $
+
+SHA1_Update conflicts with openssl which may be dynamically loaded
+at runtime via libcups or libgssapi so causing a crash due to using
+the wrong binding.  So rename here to avoid conflict.
+
+--- security/nss/lib/freebl/blapi.h.orig       2007-11-10 07:49:32.000000000 +1300
++++ security/nss/lib/freebl/blapi.h
+@@ -899,6 +899,8 @@ extern void SHA1_DestroyContext(SHA1Cont
+ */
+ extern void SHA1_Begin(SHA1Context *cx);
+ 
++#define SHA1_Update NSS_SHA1_Update
++
+ /*
+ ** Update the SHA-1 hash function with more data.
+ **    "cx" the context
diff -r d52d9ab32563 -r 9863a737b9d0 www/firefox3/patches/patch-en
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/firefox3/patches/patch-en     Wed Feb 11 10:09:47 2009 +0000
@@ -0,0 +1,48 @@
+$NetBSD: patch-en,v 1.1 2009/02/11 10:09:47 markd Exp $
+
+SHA1_Update conflicts with openssl which may be dynamically loaded
+at runtime via libcups or libgssapi so causing a crash due to using
+the wrong binding.  So rename here to avoid conflict.
+
+--- security/nss/lib/freebl/sha-fast-amd64-sun.s.orig  2007-10-12 14:44:43.000000000 +1300
++++ security/nss/lib/freebl/sha-fast-amd64-sun.s
+@@ -1712,9 +1712,9 @@ shaCompress:
+ .LFE7:
+       .size   shaCompress, .-shaCompress
+       .align 16
+-.globl SHA1_Update
+-      .type   SHA1_Update, @function
+-SHA1_Update:
++.globl NSS_SHA1_Update
++      .type   NSS_SHA1_Update, @function
++NSS_SHA1_Update:
+ .LFB5:
+       pushq   %rbp
+ .LCFI5:
+@@ -1800,7 +1800,7 @@ SHA1_Update:
+       call    shaCompress
+       jmp     .L245
+ .LFE5:
+-      .size   SHA1_Update, .-SHA1_Update
++      .size   NSS_SHA1_Update, .-NSS_SHA1_Update
+       .section        .rodata
+       .align 32
+       .type   bulk_pad.0, @object
+@@ -1902,7 +1902,7 @@ SHA1_End:
+       subl    %r8d, %edx
+       andl    $63, %edx
+       incl    %edx
+-      call    SHA1_Update@PLT
++      call    NSS_SHA1_Update@PLT
+       movq    %rbx, %rdi
+       movq    %r12, %rsi
+       shrq    $32, %rdi
+@@ -2018,7 +2018,7 @@ SHA1_HashBuf:
+       movl    %r12d, %edx
+       movq    %r13, %rsi
+       movq    %rbx, %rdi
+-      call    SHA1_Update@PLT
++      call    NSS_SHA1_Update@PLT
+       leaq    -292(%rbp), %rdx
+       movq    %r14, %rsi
+       movq    %rbx, %rdi



Home | Main Index | Thread Index | Old Index