On 03/04/2012 07:06 PM, Ken Moffat wrote:
On Sun, Mar 04, 2012 at 02:23:58PM +0100, Armin K. wrote:
I attached updates for nss and nspr as well as refreshed patches for
them. Also, I attached patch for wireless tools 29 upgrade. Someone
please review them and if possible, apply them.

  I don't have time to look at the detail (I've spent far too much
time on BLFS, need to catch up with other things this week), so just
a couple of things:

1. nss-3.13.3 - for 3.13.1 we were able to symlink to DJ's original
3.12.4-standalone patch.  This keeps the attribution and header
details.  If that doesn't apply, please add updated details to match
the patches-project standards (e.g. keep the authorship and explain
that you rediffed it).


Actually, I only rediffed nspr patch. nss is the same - it still applies but I diffed it to apply cleanly. Here are both patches with details. I always forgot that one.

2. gnome-3.4.  In the past, there was a preference to wait until a
x.y.2 release for gnome, so that most of the breakage from the new
release would get fixed.  That was when editors cared about the gnome
experience.  I've no idea if that is still a good consideration.

ĸen

Submitted By: Armin K. <krejzi at email dot com>
Date: 2012-03-04
Initial Package Version: 4.9
Upstream Status: not applicable
Origin: Rediffed A Benton's patch against nspr-4.9
Description: Adds pkg-config file for nspr.

diff -Naur nspr.orig/mozilla/nsprpub/config/config.mk nspr/mozilla/nsprpub/config/config.mk
--- nspr.orig/mozilla/nsprpub/config/config.mk	2011-10-13 16:00:06.000000000 +0200
+++ nspr/mozilla/nsprpub/config/config.mk	2012-02-26 21:08:22.581099923 +0100
@@ -183,6 +183,7 @@
 RELEASE_INCLUDE_DIR = $(RELEASE_DIR)/$(BUILD_NUMBER)/$(OBJDIR_NAME)/include
 RELEASE_BIN_DIR = $(RELEASE_DIR)/$(BUILD_NUMBER)/$(OBJDIR_NAME)/bin
 RELEASE_LIB_DIR = $(RELEASE_DIR)/$(BUILD_NUMBER)/$(OBJDIR_NAME)/lib
+RELEASE_PC_DIR = $(RELEASE_LIB_DIR)/pkgconfig
 
 # autoconf.mk sets OBJ_SUFFIX to an error to avoid use before including
 # this file
diff -Naur nspr.orig/mozilla/nsprpub/config/Makefile.in nspr/mozilla/nsprpub/config/Makefile.in
--- nspr.orig/mozilla/nsprpub/config/Makefile.in	2009-03-03 23:04:23.000000000 +0100
+++ nspr/mozilla/nsprpub/config/Makefile.in	2012-02-26 21:08:57.596831940 +0100
@@ -52,9 +52,10 @@
 
 # autoconf.mk must be deleted last (from the top-level directory)
 # because it is included by every makefile.
-DIST_GARBAGE	= nsprincl.mk nsprincl.sh nspr-config
+DIST_GARBAGE	= nsprincl.mk nsprincl.sh nspr-config nspr.pc
 
 RELEASE_BINS	= nspr-config
+RELEASE_PC	= nspr.pc
 
 include $(topsrcdir)/config/config.mk
 
diff -Naur nspr.orig/mozilla/nsprpub/config/nspr.pc.in nspr/mozilla/nsprpub/config/nspr.pc.in
--- nspr.orig/mozilla/nsprpub/config/nspr.pc.in	1970-01-01 01:00:00.000000000 +0100
+++ nspr/mozilla/nsprpub/config/nspr.pc.in	2012-02-26 21:09:18.895276581 +0100
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: NSPR
+Description: The Netscape Portable Runtime
+Version: @MOD_MAJOR_VERSION@.@MOD_MINOR_VERSION@.@MOD_PATCH_VERSION@
+Libs: -L${libdir} -lplds@MOD_MAJOR_VERSION@ -lplc@MOD_MAJOR_VERSION@ -lnspr@MOD_MAJOR_VERSION@ -lpthread 
+Cflags: -I${includedir}
+
diff -Naur nspr.orig/mozilla/nsprpub/config/rules.mk nspr/mozilla/nsprpub/config/rules.mk
--- nspr.orig/mozilla/nsprpub/config/rules.mk	2011-08-29 19:02:51.000000000 +0200
+++ nspr/mozilla/nsprpub/config/rules.mk	2012-02-26 21:11:07.934546111 +0100
@@ -207,7 +207,7 @@
 	rm -rf $(wildcard *.OBJ *.OBJD) dist $(ALL_TRASH) $(DIST_GARBAGE)
 	+$(LOOP_OVER_DIRS)
 
-install:: $(RELEASE_BINS) $(RELEASE_HEADERS) $(RELEASE_LIBS)
+install:: $(RELEASE_BINS) $(RELEASE_HEADERS) $(RELEASE_LIBS) $(RELEASE_PC)
 ifdef RELEASE_BINS
 	$(NSINSTALL) -t -m 0755 $(RELEASE_BINS) $(DESTDIR)$(bindir)
 endif
@@ -217,6 +217,9 @@
 ifdef RELEASE_LIBS
 	$(NSINSTALL) -t -m 0755 $(RELEASE_LIBS) $(DESTDIR)$(libdir)/$(lib_subdir)
 endif
+ifdef RELEASE_PC
+	$(NSINSTALL) -t -m 0644 $(RELEASE_PC) $(DESTDIR)$(libdir)/pkgconfig/
+endif
 	+$(LOOP_OVER_DIRS)
 
 release:: export
@@ -268,6 +271,23 @@
 	fi
 	cp $(RELEASE_HEADERS) $(RELEASE_HEADERS_DEST)
 endif
+ifdef RELEASE_PC
+	@echo "Copying pkg-config files to release directory"
+	@if test -z "$(BUILD_NUMBER)"; then \
+		echo "BUILD_NUMBER must be defined"; \
+		false; \
+	else \
+		true; \
+	fi
+	@if test ! -d $(RELEASE_PC_DEST); then \
+		rm -rf $(RELEASE_PC_DEST); \
+		$(NSINSTALL) -D $(RELEASE_PC_DEST);\
+	else \
+		true; \
+	fi
+	cp $(RELEASE_PC) $(RELEASE_PC_DEST)
+endif
+
 	+$(LOOP_OVER_DIRS)
 
 alltags:
diff -Naur nspr.orig/mozilla/nsprpub/configure nspr/mozilla/nsprpub/configure
--- nspr.orig/mozilla/nsprpub/configure	2012-02-14 20:06:00.000000000 +0100
+++ nspr/mozilla/nsprpub/configure	2012-02-26 21:11:42.175256548 +0100
@@ -6694,6 +6694,7 @@
     config/nsprincl.mk
     config/nsprincl.sh
     config/nspr-config
+    config/nspr.pc
     lib/Makefile
     lib/ds/Makefile
     lib/libc/Makefile
diff -Naur nspr.orig/mozilla/nsprpub/configure.in nspr/mozilla/nsprpub/configure.in
--- nspr.orig/mozilla/nsprpub/configure.in	2012-02-14 20:06:00.000000000 +0100
+++ nspr/mozilla/nsprpub/configure.in	2012-02-26 21:11:58.948604196 +0100
@@ -3357,6 +3357,7 @@
     config/nsprincl.mk
     config/nsprincl.sh
     config/nspr-config
+    config/nspr.pc
     lib/Makefile
     lib/ds/Makefile
     lib/libc/Makefile
Submitted By: DJ Lucas <dj at linuxfromscratch dot org>
Date: 2009-09-05
Initial Package Version: 3.12.4
Upstream Status: not applicable
Origin: self
Description: Adds auto-generated nss.pc and nss-config script, and allows
             building without nspr in the source tree.

diff -Naur nss.orig/mozilla/security/nss/config/Makefile nss/mozilla/security/nss/config/Makefile
--- nss.orig/mozilla/security/nss/config/Makefile	1970-01-01 01:00:00.000000000 +0100
+++ nss/mozilla/security/nss/config/Makefile	2012-03-04 13:51:38.444453374 +0100
@@ -0,0 +1,40 @@
+CORE_DEPTH = ../..
+DEPTH      = ../..
+
+include $(CORE_DEPTH)/coreconf/config.mk
+
+NSS_MAJOR_VERSION = `grep "NSS_VMAJOR" ../lib/nss/nss.h | awk '{print $$3}'`
+NSS_MINOR_VERSION = `grep "NSS_VMINOR" ../lib/nss/nss.h | awk '{print $$3}'`
+NSS_PATCH_VERSION = `grep "NSS_VPATCH" ../lib/nss/nss.h | awk '{print $$3}'`
+PREFIX = /usr
+
+all: export libs
+
+export:
+	# Create the nss.pc file
+	mkdir -p $(DIST)/lib/pkgconfig
+	sed -e "s,@prefix@,$(PREFIX)," \
+	    -e "s,@exec_prefix@,\$${prefix}," \
+	    -e "s,@libdir@,\$${prefix}/lib," \
+	    -e "s,@includedir@,\$${prefix}/include/nss," \
+	    -e "s,@NSS_MAJOR_VERSION@,$(NSS_MAJOR_VERSION),g" \
+	    -e "s,@NSS_MINOR_VERSION@,$(NSS_MINOR_VERSION)," \
+	    -e "s,@NSS_PATCH_VERSION@,$(NSS_PATCH_VERSION)," \
+	    nss.pc.in > nss.pc
+	chmod 0644 nss.pc
+	ln -sf ../../../../security/nss/config/nss.pc $(DIST)/lib/pkgconfig
+
+	# Create the nss-config script
+	mkdir -p $(DIST)/bin
+	sed -e "s,@prefix@,$(PREFIX)," \
+	    -e "s,@NSS_MAJOR_VERSION@,$(NSS_MAJOR_VERSION)," \
+	    -e "s,@NSS_MINOR_VERSION@,$(NSS_MINOR_VERSION)," \
+	    -e "s,@NSS_PATCH_VERSION@,$(NSS_PATCH_VERSION)," \
+	    nss-config.in > nss-config
+	chmod 0755 nss-config
+	ln -sf ../../../security/nss/config/nss-config $(DIST)/bin
+
+libs:
+
+dummy: all export libs
+
diff -Naur nss.orig/mozilla/security/nss/config/nss-config.in nss/mozilla/security/nss/config/nss-config.in
--- nss.orig/mozilla/security/nss/config/nss-config.in	1970-01-01 01:00:00.000000000 +0100
+++ nss/mozilla/security/nss/config/nss-config.in	2012-03-04 13:51:38.445453395 +0100
@@ -0,0 +1,153 @@
+#!/bin/sh
+
+prefix=@prefix@
+
+major_version=@NSS_MAJOR_VERSION@
+minor_version=@NSS_MINOR_VERSION@
+patch_version=@NSS_PATCH_VERSION@
+
+usage()
+{
+	cat <<EOF
+Usage: nss-config [OPTIONS] [LIBRARIES]
+Options:
+	[--prefix[=DIR]]
+	[--exec-prefix[=DIR]]
+	[--includedir[=DIR]]
+	[--libdir[=DIR]]
+	[--version]
+	[--libs]
+	[--cflags]
+Dynamic Libraries:
+	nss
+	nssutil
+	smime
+	ssl
+	softokn
+EOF
+	exit $1
+}
+
+if test $# -eq 0; then
+	usage 1 1>&2
+fi
+
+lib_nss=yes
+lib_nssutil=yes
+lib_smime=yes
+lib_ssl=yes
+lib_softokn=yes
+
+while test $# -gt 0; do
+  case "$1" in
+  -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
+  *) optarg= ;;
+  esac
+
+  case $1 in
+    --prefix=*)
+      prefix=$optarg
+      ;;
+    --prefix)
+      echo_prefix=yes
+      ;;
+    --exec-prefix=*)
+      exec_prefix=$optarg
+      ;;
+    --exec-prefix)
+      echo_exec_prefix=yes
+      ;;
+    --includedir=*)
+      includedir=$optarg
+      ;;
+    --includedir)
+      echo_includedir=yes
+      ;;
+    --libdir=*)
+      libdir=$optarg
+      ;;
+    --libdir)
+      echo_libdir=yes
+      ;;
+    --version)
+      echo ${major_version}.${minor_version}.${patch_version}
+      ;;
+    --cflags)
+      echo_cflags=yes
+      ;;
+    --libs)
+      echo_libs=yes
+      ;;
+    nss)
+      lib_nss=yes
+      ;;
+    nssutil)
+      lib_nssutil=yes
+      ;;
+    smime)
+      lib_smime=yes
+      ;;
+    ssl)
+      lib_ssl=yes
+      ;;
+    softokn)
+      lib_softokn=yes
+      ;;
+    *)
+      usage 1 1>&2
+      ;;
+  esac
+  shift
+done
+
+# Set variables that may be dependent upon other variables
+if test -z "$exec_prefix"; then
+    exec_prefix=`pkg-config --variable=exec_prefix nss`
+fi
+if test -z "$includedir"; then
+    includedir=`pkg-config --variable=includedir nss`
+fi
+if test -z "$libdir"; then
+    libdir=`pkg-config --variable=libdir nss`
+fi
+
+if test "$echo_prefix" = "yes"; then
+    echo $prefix
+fi
+
+if test "$echo_exec_prefix" = "yes"; then
+    echo $exec_prefix
+fi
+
+if test "$echo_includedir" = "yes"; then
+    echo $includedir
+fi
+
+if test "$echo_libdir" = "yes"; then
+    echo $libdir
+fi
+
+if test "$echo_cflags" = "yes"; then
+    echo -I$includedir
+fi
+
+if test "$echo_libs" = "yes"; then
+      libdirs="-L$libdir"
+      if test -n "$lib_nss"; then
+	libdirs="$libdirs -lnss${major_version}"
+      fi
+      if test -n "$lib_nssutil"; then
+        libdirs="$libdirs -lnssutil${major_version}"
+      fi
+      if test -n "$lib_smime"; then
+	libdirs="$libdirs -lsmime${major_version}"
+      fi
+      if test -n "$lib_ssl"; then
+	libdirs="$libdirs -lssl${major_version}"
+      fi
+      if test -n "$lib_softokn"; then
+        libdirs="$libdirs -lsoftokn${major_version}"
+      fi
+      echo $libdirs
+fi      
+
diff -Naur nss.orig/mozilla/security/nss/config/nss.pc.in nss/mozilla/security/nss/config/nss.pc.in
--- nss.orig/mozilla/security/nss/config/nss.pc.in	1970-01-01 01:00:00.000000000 +0100
+++ nss/mozilla/security/nss/config/nss.pc.in	2012-03-04 13:51:38.447453438 +0100
@@ -0,0 +1,12 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: NSS
+Description: Network Security Services
+Version: @NSS_MAJOR_VERSION@.@NSS_MINOR_VERSION@.@NSS_PATCH_VERSION@
+Requires: nspr >= 4.8
+Libs: -L@libdir@ -lnss@NSS_MAJOR_VERSION@ -lnssutil@NSS_MAJOR_VERSION@ -lsmime@NSS_MAJOR_VERSION@ -lssl@NSS_MAJOR_VERSION@ -lsoftokn@NSS_MAJOR_VERSION@
+Cflags: -I${includedir}
+
diff -Naur nss.orig/mozilla/security/nss/Makefile nss/mozilla/security/nss/Makefile
--- nss.orig/mozilla/security/nss/Makefile	2011-11-05 23:59:15.000000000 +0100
+++ nss/mozilla/security/nss/Makefile	2012-03-04 13:51:38.447453438 +0100
@@ -78,7 +78,7 @@
 # (7) Execute "local" rules. (OPTIONAL).                              #
 #######################################################################
 
-nss_build_all: build_coreconf build_nspr build_dbm all
+nss_build_all: build_coreconf build_dbm all
 
 nss_clean_all: clobber_coreconf clobber_nspr clobber_dbm clobber
 
@@ -140,12 +140,6 @@
 	--with-dist-prefix='$(NSPR_PREFIX)' \
 	--with-dist-includedir='$(NSPR_PREFIX)/include'
 
-build_nspr: $(NSPR_CONFIG_STATUS)
-	cd $(CORE_DEPTH)/../nsprpub/$(OBJDIR_NAME) ; $(MAKE)
-
-clobber_nspr: $(NSPR_CONFIG_STATUS)
-	cd $(CORE_DEPTH)/../nsprpub/$(OBJDIR_NAME) ; $(MAKE) clobber
-
 build_dbm:
 ifdef NSS_DISABLE_DBM
 	@echo "skipping the build of DBM"
diff -Naur nss.orig/mozilla/security/nss/manifest.mn nss/mozilla/security/nss/manifest.mn
--- nss.orig/mozilla/security/nss/manifest.mn	2010-03-26 23:31:18.000000000 +0100
+++ nss/mozilla/security/nss/manifest.mn	2012-03-04 13:51:38.453453568 +0100
@@ -42,6 +42,6 @@
 
 RELEASE = nss
 
-DIRS = lib cmd
+DIRS = lib cmd config
 
 
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to