From c9f5243bb57f492c364e539c72dfe5b58e89871c6a1bf8fc9639d8330205ca8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Lie?= Date: Thu, 31 Jul 2014 11:26:29 +0000 Subject: [PATCH] Accepting request 243139 from home:dimstar:branches:GNOME:Factory Fix build with TB 31 OBS-URL: https://build.opensuse.org/request/show/243139 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/tracker?expand=0&rev=58 --- tracker-extras.changes | 8 ++++++++ tracker-extras.spec | 3 +++ tracker-thunderbird.patch | 13 +++++++++++++ tracker.changes | 8 ++++++++ tracker.spec | 3 +++ 5 files changed, 35 insertions(+) create mode 100644 tracker-thunderbird.patch diff --git a/tracker-extras.changes b/tracker-extras.changes index 8597d4a..b587d49 100644 --- a/tracker-extras.changes +++ b/tracker-extras.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Jul 31 09:53:00 UTC 2014 - dimstar@opensuse.org + +- Add tracker-thunderbird.patch: Accept that the command + 'thunderbird' might have output to STDERR (glib slice warnings). + To not break detection of TB, we redirect STDERR output to + /dev/null. + ------------------------------------------------------------------- Wed Jul 23 00:07:53 UTC 2014 - dimstar@opensuse.org diff --git a/tracker-extras.spec b/tracker-extras.spec index d8dbe0a..fa9d9ac 100644 --- a/tracker-extras.spec +++ b/tracker-extras.spec @@ -61,6 +61,8 @@ Source2: README.SUSE.rss Patch0: tracker-extract-private.patch # PATCH-FIX-UPSTREAM tracker-missing-include.patch dimstar@opensuse.org -- Add missing includes, taken from git Patch1: tracker-missing-include.patch +# PATCH-FIX-UPSTREAM tracker-thunderbird.patch dimstar@opensuse.org -- Accept that tracker might have some stderr output as well (glib slice) +Patch2: tracker-thunderbird.patch BuildRequires: NetworkManager-devel >= 0.8 BuildRequires: enca-devel BuildRequires: fdupes @@ -481,6 +483,7 @@ This package contains an nautilus plugin to tag files with Tracker. %setup -q -n %{_name}-%{version} %patch0 -p1 %patch1 -p1 +%patch2 -p1 cp %{S:1} . translation-update-upstream cp %{S:2} src/miners/rss/README.SUSE diff --git a/tracker-thunderbird.patch b/tracker-thunderbird.patch new file mode 100644 index 0000000..5039d97 --- /dev/null +++ b/tracker-thunderbird.patch @@ -0,0 +1,13 @@ +Index: tracker-1.0.2/configure.ac +=================================================================== +--- tracker-1.0.2.orig/configure.ac ++++ tracker-1.0.2/configure.ac +@@ -427,7 +427,7 @@ have_tracker_miner_thunderbird="no " + + AC_PATH_PROG(THUNDERBIRD, thunderbird, thunderbird) + if test -n $THUNDERBIRD; then +- thunderbird_version=`$THUNDERBIRD --version | cut -d" " -f3` ++ thunderbird_version=`$THUNDERBIRD --version 2>/dev/null | awk '{print $NF}'` + + AX_COMPARE_VERSION([$thunderbird_version], ge, [$TRACKER_MINER_THUNDERBIRD_REQUIRED], + have_tracker_miner_thunderbird="yes", diff --git a/tracker.changes b/tracker.changes index 8597d4a..b587d49 100644 --- a/tracker.changes +++ b/tracker.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Jul 31 09:53:00 UTC 2014 - dimstar@opensuse.org + +- Add tracker-thunderbird.patch: Accept that the command + 'thunderbird' might have output to STDERR (glib slice warnings). + To not break detection of TB, we redirect STDERR output to + /dev/null. + ------------------------------------------------------------------- Wed Jul 23 00:07:53 UTC 2014 - dimstar@opensuse.org diff --git a/tracker.spec b/tracker.spec index 851cc89..1faefa6 100644 --- a/tracker.spec +++ b/tracker.spec @@ -60,6 +60,8 @@ Source2: README.SUSE.rss Patch0: tracker-extract-private.patch # PATCH-FIX-UPSTREAM tracker-missing-include.patch dimstar@opensuse.org -- Add missing includes, taken from git Patch1: tracker-missing-include.patch +# PATCH-FIX-UPSTREAM tracker-thunderbird.patch dimstar@opensuse.org -- Accept that tracker might have some stderr output as well (glib slice) +Patch2: tracker-thunderbird.patch BuildRequires: NetworkManager-devel >= 0.8 BuildRequires: enca-devel BuildRequires: fdupes @@ -480,6 +482,7 @@ This package contains an nautilus plugin to tag files with Tracker. %setup -q -n %{_name}-%{version} %patch0 -p1 %patch1 -p1 +%patch2 -p1 cp %{S:1} . translation-update-upstream cp %{S:2} src/miners/rss/README.SUSE