From 3a58ed634c6362216d43a25f36c2994f1b970510d0a8f4533ced7e554c26c311 Mon Sep 17 00:00:00 2001 From: Wolfgang Rosenauer Date: Wed, 16 Sep 2009 13:47:32 +0000 Subject: [PATCH] add another polishing fix OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=116 --- MozillaFirefox.changes | 3 ++- MozillaFirefox.spec | 3 ++- firefox-no-gnomevfs.patch | 25 +++++++++++++++++++++++++ 3 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 firefox-no-gnomevfs.patch diff --git a/MozillaFirefox.changes b/MozillaFirefox.changes index 883ee7f..4dd74ce 100644 --- a/MozillaFirefox.changes +++ b/MozillaFirefox.changes @@ -4,7 +4,8 @@ Mon Sep 14 00:07:55 CEST 2009 - wr@rosenauer.org - added KDE integration patch from llunak@novell.com (firefox-kde.patch) * support for knotify, making -kde4-addon obsolete - * KDE-specific support functional (bnc#170055) - + * KDE-specific support functional (bnc#170055) +- do not build libnkgnomevfs (bmo#512671) (firefox-no-gnomevfs) ------------------------------------------------------------------- Thu Sep 10 09:34:26 CEST 2009 - wr@rosenauer.org diff --git a/MozillaFirefox.spec b/MozillaFirefox.spec index 361f300..bfae635 100644 --- a/MozillaFirefox.spec +++ b/MozillaFirefox.spec @@ -52,6 +52,7 @@ Patch4: mozilla-linkorder.patch Patch5: firefox-bug506901.patch Patch6: firefox-cross-desktop.patch Patch7: firefox-kde.patch +Patch8: firefox-no-gnomevfs.patch Patch14: credits.patch Patch17: firefox-appname.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -150,6 +151,7 @@ cd $RPM_BUILD_DIR/mozilla %patch5 -p1 %patch6 -p1 %patch7 -p1 +%patch8 -p1 %patch14 %patch17 # install kde.js @@ -347,7 +349,6 @@ fi %{progdir}/%{progname} %{progdir}/application.ini %{progdir}/blocklist.xml -%exclude %{progdir}/components/libnkgnomevfs.so %{_datadir}/applications/%{name}.desktop %{_datadir}/mime/packages/%{progname}.xml %{_datadir}/pixmaps/firefox* diff --git a/firefox-no-gnomevfs.patch b/firefox-no-gnomevfs.patch new file mode 100644 index 0000000..902f2fc --- /dev/null +++ b/firefox-no-gnomevfs.patch @@ -0,0 +1,25 @@ +diff --git a/configure.in b/configure.in +--- a/configure.in ++++ b/configure.in +@@ -5632,16 +5632,21 @@ done], + if test -z "$MOZ_ENABLE_GNOMEVFS" && test `echo "$MOZ_EXTENSIONS" | grep -c gnomevfs` -ne 0; then + # Suppress warning on non-X11 platforms + if test -n "$MOZ_X11"; then + AC_MSG_WARN([Cannot build gnomevfs without required libraries. Removing gnomevfs from MOZ_EXTENSIONS.]) + fi + MOZ_EXTENSIONS=`echo $MOZ_EXTENSIONS | sed -e 's|gnomevfs||'` + fi + ++dnl Do not build gnomevfs with libxul based apps ++if test -n "$LIBXUL_SDK_DIR" && test `echo "$MOZ_EXTENSIONS" | grep -c gnomevfs` -ne 0; then ++ MOZ_EXTENSIONS=`echo $MOZ_EXTENSIONS | sed -e 's|gnomevfs||'` ++fi ++ + if test -z "$MOZ_JSDEBUGGER" && test `echo "$MOZ_EXTENSIONS" | grep -c venkman` -ne 0; then + AC_MSG_WARN([Cannot build venkman without JavaScript debug library. Removing venkman from MOZ_EXTENSIONS.]) + MOZ_EXTENSIONS=`echo $MOZ_EXTENSIONS | sed -e 's|venkman||'` + fi + + dnl This might be temporary: build tridentprofile only on Windows + if test `echo "$MOZ_EXTENSIONS" | grep -c tridentprofile` -ne 0 && test "$OS_ARCH" != "WINNT"; then + AC_MSG_WARN([tridentprofile extension works only on Windows at this time. Removing tridentprofile from MOZ_EXTENSIONS.])