nss 3.12.6: the jalimo recipe was trying to be way to clever with shared libs, breaki...
authorKoen Kooi <koen@openembedded.org>
Fri, 16 Apr 2010 19:42:28 +0000 (21:42 +0200)
committerKoen Kooi <koen@openembedded.org>
Sat, 17 Apr 2010 07:46:08 +0000 (09:46 +0200)
recipes/mozilla/nss-3.12.6/81_sonames.patch
recipes/mozilla/nss-3.12.6/nss.pc.in
recipes/mozilla/nss_3.12.6.bb

index 5fceba3..32fdca5 100644 (file)
@@ -309,7 +309,7 @@ index b3bbd97..a87a90c 100644
  
  LIBRARY_NAME = nss
  LIBRARY_VERSION = 3
-+SO_VERSION = 1d
++SO_VERSION = 1oe
  
  # This part of the code, including all sub-dirs, can be optimized for size
  export ALLOW_OPT_CODE_SIZE = 1
@@ -321,7 +321,7 @@ index a72b413..a782e1d 100644
  
  LIBRARY_NAME = smime
  LIBRARY_VERSION = 3
-+SO_VERSION = 1d
++SO_VERSION = 1oe
  
  # This part of the code, including all sub-dirs, can be optimized for size
  export ALLOW_OPT_CODE_SIZE = 1
@@ -333,7 +333,7 @@ index 8451229..ec3495e 100644
  
  LIBRARY_NAME = ssl
  LIBRARY_VERSION = 3
-+SO_VERSION = 1d
++SO_VERSION = 1oe
  
  # This part of the code, including all sub-dirs, can be optimized for size
  export ALLOW_OPT_CODE_SIZE = 1
@@ -345,7 +345,7 @@ index 74ddd92..30f530a 100644
  
  LIBRARY_NAME = nssutil
  LIBRARY_VERSION = 3
-+SO_VERSION = 1d
++SO_VERSION = 1oe
  
  # This part of the code, including all sub-dirs, can be optimized for size
  export ALLOW_OPT_CODE_SIZE = 1
index e72ee5f..84e4ef7 100644 (file)
@@ -7,5 +7,5 @@ Name: NSS
 Description: Mozilla Network Security Services
 Version: @VERSION@
 Requires: nspr
-Libs: -L${libdir}/nss -lnss3 -lnssutil3 -lsmime3 -lssl3 
+Libs: -L${libdir} -lnss3 -lnssutil3 -lsmime3 -lssl3 
 Cflags: -I${includedir}
index 7da316f..76ad318 100644 (file)
@@ -1,7 +1,7 @@
 DESCRIPTION = "Mozilla's SSL and TLS implementation"
 HOMEPAGE = "http://www.mozilla.org/projects/security/pki/nss/"
 
-PR = "r1"
+PR = "r2"
 
 LICENSE = "MPL1.1 GPL LGPL"
 
@@ -79,9 +79,10 @@ do_install() {
 
        install -d ${D}/${libdir}/nss
 
-       for shared_lib in ${TD}/${libdir}/*.so
+       for shared_lib in ${TD}/${libdir}/*.so.*
        do
-               cp $shared_lib ${D}/${libdir}/nss
+               cp $shared_lib ${D}/${libdir}
+               ln -sf $(basename $shared_lib) ${D}/${libdir}/$(basename $shared_lib .1oe)
        done
 
        install -d ${D}/${includedir}/mozilla/nss
@@ -89,7 +90,7 @@ do_install() {
 
        for static_lib in ${TD}/${libdir}/*.a
        do
-               oe_libinstall -C ${TD}/${libdir} `basename $static_lib .a` ${D}/${libdir}/nss
+               oe_libinstall -C ${TD}/${libdir} `basename $static_lib .a` ${D}/${libdir}
        done
 
        install -d ${D}/${bindir}
@@ -103,5 +104,3 @@ do_install() {
 
 }
 
-FILES_${PN} = "${bindir} ${libdir}/nss/*.so"
-FILES_${PN}-static += "${libdir}/nss/*.a"