packages: mozilla-thunderbird/mozilla-thunderbird.spec, mozilla-thunderbird...

qboosh qboosh at pld-linux.org
Thu Mar 22 21:23:37 CET 2012


Author: qboosh                       Date: Thu Mar 22 20:23:37 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- really try to use system xulrunner, if bcond is enabled; but it doesn't work in 10, so disable bcond by default
  (system-xulrunner patch contains some partial fixes, more needed)

---- Files affected:
packages/mozilla-thunderbird:
   mozilla-thunderbird.spec (1.132 -> 1.133) , mozilla-thunderbird-system-xulrunner.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/mozilla-thunderbird/mozilla-thunderbird.spec
diff -u packages/mozilla-thunderbird/mozilla-thunderbird.spec:1.132 packages/mozilla-thunderbird/mozilla-thunderbird.spec:1.133
--- packages/mozilla-thunderbird/mozilla-thunderbird.spec:1.132	Tue Mar 20 15:09:35 2012
+++ packages/mozilla-thunderbird/mozilla-thunderbird.spec	Thu Mar 22 21:23:31 2012
@@ -12,7 +12,7 @@
 %bcond_without	gnome		# alias for gnomeui
 %bcond_without	ldap		# disable e-mail address lookups in LDAP directories
 %bcond_without	lightning	# disable Sunbird/Lightning calendar
-%bcond_without	xulrunner	# build with xulrunner
+%bcond_with	xulrunner	# system xulrunner
 %bcond_with	crashreporter	# report crashes to crash-stats.mozilla.com
 
 %if %{without gnome}
@@ -46,16 +46,12 @@
 Source2:	%{name}.png
 Source4:	%{name}.desktop
 Source5:	%{name}.sh
-#Source4:	%{name}-enigmail.manifest
-#Patch1:		%{name}-lib_path.patch
 Patch1:		%{name}-enigmail-shared.patch
-#Patch2:		%{name}-gcc.patch
+Patch2:		%{name}-system-xulrunner.patch
 Patch3:		%{name}-fonts.patch
 Patch4:		%{name}-install.patch
-#Patch6:		%{name}-myspell.patch
 Patch5:		%{name}-hunspell.patch
 Patch6:		%{name}-prefs.patch
-#Patch7:		%{name}-regionNames.patch
 Patch7:		%{name}-system-mozldap.patch
 Patch8:		%{name}-makefile.patch
 Patch11:	%{name}-crashreporter.patch
@@ -186,6 +182,7 @@
 cd mozilla
 %{?with_enigmail:%{__gzip} -dc %{SOURCE1} | %{__tar} xf - -C mailnews/extensions}
 %{?with_enigmail:%patch1 -p1}
+%{?with_system_xulrunner:%patch2 -p1}
 %patch3 -p1
 %patch4 -p1
 %patch6 -p1
@@ -194,22 +191,18 @@
 %patch11 -p2
 %patch12 -p1
 
-#:> config/gcc_hidden.h
-
 %build
 cd mozilla
 cp -f %{_datadir}/automake/config.* mozilla/build/autoconf
 cp -f %{_datadir}/automake/config.* mozilla/nsprpub/build/autoconf
 cp -f %{_datadir}/automake/config.* ldap/sdks/c-sdk/config/autoconf
 
-install -d libxul-sdk
-ln -snf %{_libdir}/xulrunner-sdk libxul-sdk/sdk
-
 cat << EOF > .mozconfig
 mk_add_options MOZ_OBJDIR=%{objdir}
 
-export CFLAGS="%{rpmcflags} -fpermissive -I/usr/include/xulrunner"
-export CXXFLAGS="%{rpmcflags} -fpermissive -I/usr/include/xulrunner"
+export CFLAGS="%{rpmcflags}"
+# use c++0x for char16_t (like in xulrunner 10.0.x)
+export CXXFLAGS="%{rpmcflags}%{?with_system_xulrunner: -std=gnu++0x}"
 
 %if %{with crashreporter}
 export MOZ_DEBUG_SYMBOLS=1
@@ -296,10 +289,9 @@
 ac_add_options --enable-xinerama
 ac_add_options --with-distribution-id=org.pld-linux
 %if %{with xulrunner}
-#ac_add_options --with-libxul-sdk=$(pwd)/libxul-sdk/sdk
+ac_add_options --enable-shared-js
+ac_add_options --with-libxul-sdk=$(pkg-config --variable=sdkdir libxul)
 ac_add_options --with-system-libxul
-ac_add_options --enable-shared
-ac_add_options --enable-libxul
 %else
 ac_add_options --disable-xul
 %endif
@@ -549,6 +541,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.133  2012/03/22 20:23:31  qboosh
+- really try to use system xulrunner, if bcond is enabled; but it doesn't work in 10, so disable bcond by default
+  (system-xulrunner patch contains some partial fixes, more needed)
+
 Revision 1.132  2012/03/20 14:09:35  qboosh
 - merged update to 10.0.2 from icedove.spec
 

================================================================
Index: packages/mozilla-thunderbird/mozilla-thunderbird-system-xulrunner.patch
diff -u /dev/null packages/mozilla-thunderbird/mozilla-thunderbird-system-xulrunner.patch:1.1
--- /dev/null	Thu Mar 22 21:23:37 2012
+++ packages/mozilla-thunderbird/mozilla-thunderbird-system-xulrunner.patch	Thu Mar 22 21:23:31 2012
@@ -0,0 +1,71 @@
+--- mozilla/config/config.mk.orig	2012-03-22 16:58:29.475414529 +0100
++++ mozilla/config/config.mk	2012-03-22 19:11:29.342349305 +0100
+@@ -368,7 +368,7 @@
+ CCC		= $(CXX)
+ PURIFY		= purify $(PURIFYOPTIONS)
+ QUANTIFY	= quantify $(QUANTIFYOPTIONS)
+-XPIDL_LINK = $(PYTHON) $(SDK_BIN_DIR)/xpt.py link
++XPIDL_LINK = $(PYTHON) $(LIBXUL_DIST)/sdk/bin/xpt.py link
+ 
+ INCLUDES = \
+   $(LOCAL_INCLUDES) \
+--- mozilla/mail/build.mk.orig	2012-02-16 11:18:23.000000000 +0100
++++ mozilla/mail/build.mk	2012-03-22 20:58:11.475895080 +0100
+@@ -45,6 +45,9 @@
+ 
+ ifndef LIBXUL_SDK
+ include $(topsrcdir)/toolkit/toolkit-tiers.mk
++else
++tier_app_staticdirs += $(APP_LIBXUL_STATICDIRS)
++tier_app_dirs += $(APP_LIBXUL_DIRS)
+ endif
+ 
+ TIERS += app
+--- mozilla/mail/app/Makefile.in.orig	2012-02-16 11:18:22.000000000 +0100
++++ mozilla/mail/app/Makefile.in	2012-03-22 16:43:33.608721456 +0100
+@@ -44,5 +44,7 @@
+ 
+ AB_CD = $(MOZ_UI_LOCALE) 
+ 
++DIST_FILES = application.ini
++
+ GRE_MILESTONE = $(shell $(PYTHON) $(MOZILLA_SRCDIR)/config/printconfigsetting.py $(LIBXUL_DIST)/bin/platform.ini Build Milestone)
+ GRE_BUILDID = $(shell $(PYTHON) $(MOZILLA_SRCDIR)/config/printconfigsetting.py $(LIBXUL_DIST)/bin/platform.ini Build BuildID)
+@@ -79,6 +81,7 @@
+     $(srcdir)/profile/channel-prefs.js \
+     $(NULL)
+ 
++ifndef LIBXUL_SDK
+ ifneq (,$(filter OS2 Darwin WINCE WINNT,$(OS_ARCH)))
+ PROGRAM = $(MOZ_APP_NAME)$(BIN_SUFFIX)
+ else
+@@ -88,8 +91,6 @@
+ 
+ CPPSRCS = nsMailApp.cpp
+ 
+-DIST_FILES = application.ini
+-
+ LOCAL_INCLUDES += \
+   -I$(MOZILLA_SRCDIR)/toolkit/xre \
+   -I$(MOZILLA_SRCDIR)/xpcom/base \
+@@ -116,6 +117,8 @@
+ LIBS += $(MOZ_DBUS_GLIB_LIBS)
+ endif
+ 
++endif # LIBXUL_SDK
++
+ ifndef MOZ_WINCONSOLE
+ ifdef MOZ_DEBUG
+ MOZ_WINCONSOLE = 1
+@@ -233,6 +236,11 @@
+ 	$(SYSINSTALL) $(IFLAGS1) $(DIST)/branding/default* $(DESTDIR)$(mozappdir)/chrome/icons/default
+ endif
+ 
++ifdef LIBXUL_SDK
++libs::
++	cp $(LIBXUL_DIST)/bin/$(XULRUNNER_STUB_NAME)$(BIN_SUFFIX) $(DIST)/$(MOZ_APP_NAME)-bin$(BIN_SUFFIX)
++endif
++
+ ifneq (,$(filter-out OS2 WINNT,$(OS_ARCH)))
+ ifneq (,$(filter-out Darwin,$(OS_ARCH)))
+ $(MOZ_APP_NAME):: $(MOZILLA_DIR)/build/unix/mozilla.in $(GLOBAL_DEPS) $(DEPTH)/config/autoconf.mk
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/packages/mozilla-thunderbird/mozilla-thunderbird.spec?r1=1.132&r2=1.133



More information about the pld-cvs-commit mailing list