[Libreoffice-commits] .: 2 commits - libxmlsec/prj moz/extractfiles.mk moz/makefile.mk moz/zipped nss/makefile.mk nss/nss-config.patch nss/prj xmlsecurity/prj

Jan Holesovsky kendy at kemper.freedesktop.org
Tue Aug 30 07:10:43 PDT 2011


 libxmlsec/prj/build.lst   |    2 
 moz/extractfiles.mk       |    2 
 moz/makefile.mk           |   12 +++
 moz/zipped/makefile.mk    |    2 
 nss/makefile.mk           |   22 +++++-
 nss/nss-config.patch      |  147 ++++++++++++++++++++++++++++++++++++++++++++++
 nss/prj/d.lst             |    2 
 xmlsecurity/prj/build.lst |    2 
 8 files changed, 181 insertions(+), 10 deletions(-)

New commits:
commit 0200988f12d0c41263e39aaa89db61eb19b96c06
Author: Jan Holesovsky <kendy at suse.cz>
Date:   Tue Aug 30 15:57:12 2011 +0200

    libxmlsec and xmlsecurity do not have to depend on moz, nss is enough.

diff --git a/libxmlsec/prj/build.lst b/libxmlsec/prj/build.lst
index a52eb09..47d3fd9 100644
--- a/libxmlsec/prj/build.lst
+++ b/libxmlsec/prj/build.lst
@@ -1,3 +1,3 @@
-ls  libxmlsec   : soltools LIBXML2:libxml2 MOZ:moz NULL
+ls  libxmlsec   : soltools LIBXML2:libxml2 NSS:nss NULL
 ls	libxmlsec			    usr1	-	all	ls_mkout NULL
 ls	libxmlsec			    nmake	-	all	ls_xmlsec1 NULL
diff --git a/xmlsecurity/prj/build.lst b/xmlsecurity/prj/build.lst
index e2776df..d70a6db 100644
--- a/xmlsecurity/prj/build.lst
+++ b/xmlsecurity/prj/build.lst
@@ -1,2 +1,2 @@
-xs	xmlsecurity	:    TRANSLATIONS:translations xmloff unotools offapi unoil svx MOZ:moz LIBXMLSEC:libxmlsec NSS:nss LIBXSLT:libxslt NEON:neon NULL
+xs	xmlsecurity	:    TRANSLATIONS:translations xmloff unotools offapi unoil svx LIBXMLSEC:libxmlsec NSS:nss LIBXSLT:libxslt NEON:neon NULL
 xs	xmlsecurity\prj				                                       nmake -	all	xs_prj NULL
commit 291b85778669b4e4e276faab22add9d0e80046df
Author: Jan Holesovsky <kendy at suse.cz>
Date:   Tue Aug 30 15:37:03 2011 +0200

    Build our mozilla (module moz) against the nss we have built anyway.
    
    Reduces the build time of the 'moz' module by 30% or so.

diff --git a/moz/extractfiles.mk b/moz/extractfiles.mk
index faba88b..57b53a8 100644
--- a/moz/extractfiles.mk
+++ b/moz/extractfiles.mk
@@ -166,7 +166,7 @@ DEFAULTS_RUNTIMELIST=	\
 
 .IF "$(ENABLE_NSS_MODULE)"=="YES"
 #These headers come from the separate NSS module if enabled
-NSS_INCLUDE_LIST= nspr nss
+NSS_INCLUDE_LIST=
 
 .IF "$(GUI)"=="WNT"
 .IF "$(COM)"=="GCC"
diff --git a/moz/makefile.mk b/moz/makefile.mk
index 0ee92d3..f41743e 100644
--- a/moz/makefile.mk
+++ b/moz/makefile.mk
@@ -128,6 +128,8 @@ MOZILLA_CONFIGURE_FLAGS +=  --disable-tests \
                 --disable-xprint \
                 --disable-postscript \
                 --without-system-zlib \
+                --with-system-nss \
+                --with-system-nspr \
                 --disable-installer \
                 --disable-accessibility \
                 --disable-xpfe-components \
@@ -145,6 +147,14 @@ MOZILLA_CONFIGURE_FLAGS +=  --disable-tests \
                 --disable-pango \
                 --enable-extensions="pref"
 
+.IF "$(ENABLE_NSS_MODULE)"=="YES"
+
+MOZILLA_CONFIGURE_FLAGS += \
+                --with-nss-prefix=$(OUTDIR) \
+                --with-nspr-prefix=$(OUTDIR)
+
+.ENDIF
+
 #disable profilelocking to share profile with mozilla
 #disable activex and activex-scripting to remove the dependence of Microsoft_SDK\src\mfc\atlbase.h
 #disable gnomevfs to remove the needed of gnome develop files
@@ -174,7 +184,7 @@ MOZ_CROSSCOMPILE=CROSS_COMPILE=1 CC="$(CC) -arch $(MOZ_ARCH)" CXX="$(CXX) -arch
 
 CONFIGURE_ACTION=$(null,$(MOZ_ARCH) $(NULL) $(MOZ_CROSSCOMPILE)) ../configure $(MOZILLA_CONFIGURE_FLAGS)
 
-BUILD_ACTION:=$(GNUMAKE) -j$(EXTMAXPROCESS)
+BUILD_ACTION:=cd mozilla/X_objdir/xpcom ; $(GNUMAKE) -j$(EXTMAXPROCESS)
 
 .IF "$(GUI)"=="UNX"
 .IF "$(COMNAME)"=="sunpro5"
diff --git a/moz/zipped/makefile.mk b/moz/zipped/makefile.mk
index 0ea80c0..36469cb 100644
--- a/moz/zipped/makefile.mk
+++ b/moz/zipped/makefile.mk
@@ -154,7 +154,7 @@ LIBLIST= \
 .ENDIF # .IF "$(GUI)"=="WNT"
 
 
-NSS_INCLUDE_LIST= nspr nss
+NSS_INCLUDE_LIST=
 
 
 .IF "$(OS)" == "SOLARIS" 
diff --git a/nss/makefile.mk b/nss/makefile.mk
index 45f1feb..aa242bd 100644
--- a/nss/makefile.mk
+++ b/nss/makefile.mk
@@ -41,10 +41,14 @@ all:
     @echo "NSS will not be built. ENABLE_NSS_MODULE is '$(ENABLE_NSS_MODULE)'"
 .ENDIF	
 
-TARFILE_NAME=nss-3.12.8-with-nspr-4.8.6
+VER_MAJOR=3
+VER_MINOR=12
+VER_PATCH=8
+
+TARFILE_NAME=nss-$(VER_MAJOR).$(VER_MINOR).$(VER_PATCH)-with-nspr-4.8.6
 TARFILE_MD5=71474203939fafbe271e1263e61d083e
-TARFILE_ROOTDIR=nss-3.12.8
-PATCH_FILES=nss.patch nss.aix.patch
+TARFILE_ROOTDIR=nss-$(VER_MAJOR).$(VER_MINOR).$(VER_PATCH)
+PATCH_FILES=nss.patch nss.aix.patch nss-config.patch
 
 .IF "$(OS)"=="MACOSX"
 PATCH_FILES+=nss_macosx.patch
@@ -56,6 +60,10 @@ BUILD_OPT=1
 .EXPORT: BUILD_OPT
 .ENDIF
 
+CONFIGURE_ACTION=mozilla/nsprpub/configure --prefix=$(OUTDIR) --includedir=$(OUTDIR)/inc/mozilla/nspr ; \
+    sed -e 's\#@prefix@\#$(OUTDIR)\#' -e 's\#@includedir@\#$(OUTDIR)/inc/mozilla/nss\#' -e 's\#@MOD_MAJOR_VERSION@\#$(VER_MAJOR)\#' -e 's\#@MOD_MINOR_VERSION@\#$(VER_MINOR)\#' -e 's\#@MOD_PATCH_VERSION@\#$(VER_PATCH)\#' mozilla/security/nss/nss-config.in > mozilla/security/nss/nss-config ; \
+    chmod a+x mozilla/security/nss/nss-config
+
 .IF "$(GUI)"=="UNX"
 .IF "$(OS)$(COM)"=="LINUXGCC"
 .IF "$(BUILD64)"=="1"
@@ -85,6 +93,8 @@ MACOS_SDK_DIR*=$(MACDEVSDK)
 
 OUT2LIB=mozilla$/dist$/out$/lib$/*$(DLLPOST)
 
+OUT2BIN=config$/nspr-config mozilla$/security$/nss$/nss-config
+
 BUILD_DIR=mozilla$/security$/nss
 BUILD_ACTION= $(GNUMAKE) nss_build_all
 #See #i105566# && moz#513024#
@@ -116,7 +126,6 @@ nss_LIBS=
 nss_LIBS+=$(MINGW_SHARED_LIBSTDCPP)
 .ENDIF
 
-
 BUILD_DIR=mozilla$/security$/nss
 BUILD_ACTION=NS_USE_GCC=1 CC="$(nss_CC)" CXX="$(nss_CXX)" OS_LIBS="$(nss_LIBS)" OS_TARGET=WIN95 _WIN32_IE=0x500 PATH="$(PATH)" DEFINES=-D_WIN32_IE=0x500 $(GNUMAKE) nss_build_all
 
@@ -164,7 +173,10 @@ OUT2LIB= \
 
 .ENDIF			# "$(COM)"=="GCC"
 
-OUT2BIN=mozilla$/dist$/out$/lib$/*$(DLLPOST)
+OUT2BIN=mozilla$/dist$/out$/lib$/*$(DLLPOST) \
+     config$/nspr-config \
+     mozilla$/security$/nss$/nss-config
+
 .ENDIF			# "$(GUI)"=="WNT"
 
 
diff --git a/nss/nss-config.patch b/nss/nss-config.patch
new file mode 100644
index 0000000..3f67f84
--- /dev/null
+++ b/nss/nss-config.patch
@@ -0,0 +1,147 @@
+--- /dev/null
++++ misc/build/nss-3.12.8/mozilla/security/nss/nss-config.in	2010-06-11 16:35:54.946870871 +0200
+@@ -0,0 +1,144 @@
++#!/bin/sh
++
++prefix=@prefix@
++
++major_version=@MOD_MAJOR_VERSION@
++minor_version=@MOD_MINOR_VERSION@
++patch_version=@MOD_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
++	ssl
++	smime
++EOF
++	exit $1
++}
++
++if test $# -eq 0; then
++	usage 1 1>&2
++fi
++
++lib_ssl=yes
++lib_smime=yes
++lib_nss=yes
++lib_nssutil=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
++      ;;
++    ssl)
++      lib_ssl=yes
++      ;;
++    smime)
++      lib_smime=yes
++      ;;
++    nss)
++      lib_nss=yes
++      ;;
++    nssutil)
++      lib_nssutil=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=${prefix}
++fi
++if test -z "$includedir"; then
++    includedir=@includedir@
++fi
++if test -z "$libdir"; then
++    libdir=${exec_prefix}/lib
++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="-Wl,-rpath-link,$libdir -L$libdir"
++      if test -n "$lib_ssl"; then
++	libdirs="$libdirs -lssl${major_version}"
++      fi
++      if test -n "$lib_smime"; then
++	libdirs="$libdirs -lsmime${major_version}"
++      fi
++      if test -n "$lib_nss"; then
++	libdirs="$libdirs -lnss${major_version}"
++      fi
++      if test -n "$lib_nssutil"; then
++        libdirs="$libdirs -lnssutil${major_version}"
++      fi
++      echo $libdirs
++fi      
++
diff --git a/nss/prj/d.lst b/nss/prj/d.lst
index e5695b9..cc36eb1 100644
--- a/nss/prj/d.lst
+++ b/nss/prj/d.lst
@@ -1,10 +1,12 @@
 mkdir: %_DEST%\inc\mozilla\nspr
 mkdir: %_DEST%\inc\mozilla\nspr\obsolete
+mkdir: %_DEST%\inc\mozilla\nspr\private
 mkdir: %_DEST%\inc\mozilla\nss
 mkdir: %_DEST%\lib\sqlite
 
 ..\%__SRC%\inc\include\* %_DEST%\inc\mozilla\nspr
 ..\%__SRC%\inc\include\obsolete\protypes.h %_DEST%\inc\mozilla\nspr\obsolete\protypes.h
+..\%__SRC%\inc\include\private\*.h %_DEST%\inc\mozilla\nspr\private
 ..\%__SRC%\inc\nss\*.h %_DEST%\inc\mozilla\nss
 
 ..\%__SRC%\lib\libfreebl3.* %_DEST%\lib\libfreebl.*


More information about the Libreoffice-commits mailing list