diff options
author | Mart Raudsepp <leio@gentoo.org> | 2019-02-16 23:38:58 +0200 |
---|---|---|
committer | Mart Raudsepp <leio@gentoo.org> | 2019-02-16 23:41:35 +0200 |
commit | 9d5552e58ce11aaa09a392b9be5f3c8960110bf4 (patch) | |
tree | acf76a653450e4b6018f535b6a0cce489383c3c2 /app-misc/tracker-miners/files | |
parent | dev-lang/crystal: disable unstable tests (diff) | |
download | gentoo-9d5552e58ce11aaa09a392b9be5f3c8960110bf4.tar.gz gentoo-9d5552e58ce11aaa09a392b9be5f3c8960110bf4.tar.bz2 gentoo-9d5552e58ce11aaa09a392b9be5f3c8960110bf4.zip |
app-misc/tracker-miners: fix broken symlink with USE=-rss
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Mart Raudsepp <leio@gentoo.org>
Diffstat (limited to 'app-misc/tracker-miners/files')
-rw-r--r-- | app-misc/tracker-miners/files/2.1.5-rss-symlink-fix1.patch | 42 | ||||
-rw-r--r-- | app-misc/tracker-miners/files/2.1.5-rss-symlink-fix2.patch | 39 |
2 files changed, 81 insertions, 0 deletions
diff --git a/app-misc/tracker-miners/files/2.1.5-rss-symlink-fix1.patch b/app-misc/tracker-miners/files/2.1.5-rss-symlink-fix1.patch new file mode 100644 index 000000000000..9cccb2e36e9c --- /dev/null +++ b/app-misc/tracker-miners/files/2.1.5-rss-symlink-fix1.patch @@ -0,0 +1,42 @@ +From 0d8b3388c415edebc75268358bab4ec2408d5685 Mon Sep 17 00:00:00 2001 +From: Sam Thursfield <sam@afuera.me.uk> +Date: Sun, 18 Nov 2018 20:33:51 +0100 +Subject: [PATCH 1/2] meson: Fix bad string comparisons in + create-miner-symlinks.sh script + +This script creates symlinks from $prefix/share/tracker/miners to the +real D-Bus .service files, which usually live in /usr/share/dbus-1. + +The script was comparing strings incorrectly, leading to misbehaviour. + +See https://gitlab.gnome.org/GNOME/tracker-miners/issues/38 + +(cherry picked from commit 949e7003c7027a9946b751c73e1e030d35c78bd7) +--- + src/create-miner-symlinks.sh | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/src/create-miner-symlinks.sh b/src/create-miner-symlinks.sh +index 114cc54c8..9d8ded2fb 100644 +--- a/src/create-miner-symlinks.sh ++++ b/src/create-miner-symlinks.sh +@@ -13,13 +13,13 @@ have_tracker_miner_fs="$4" + have_tracker_miner_rss="$5" + + mkdir -p ${DESTDIR}/${tracker_miner_services_dir} +-if [[ "$have_tracker_miner_apps" -eq "true" ]]; then ++if [[ "$have_tracker_miner_apps" == "true" ]]; then + ln -sf "${dbus_services_dir}/org.freedesktop.Tracker1.Miner.Applications.service" "${DESTDIR}/${tracker_miner_services_dir}/" + fi + ln -sf "${dbus_services_dir}/org.freedesktop.Tracker1.Miner.Extract.service" "${DESTDIR}/${tracker_miner_services_dir}/" +-if [[ "$have_tracker_miner_fs" -eq "true" ]]; then ++if [[ "$have_tracker_miner_fs" == "true" ]]; then + ln -sf "${dbus_services_dir}/org.freedesktop.Tracker1.Miner.Files.service" "${DESTDIR}/${tracker_miner_services_dir}/" + fi +-if [[ "$have_tracker_miner_rss" -eq "true" ]]; then ++if [[ "$have_tracker_miner_rss" == "true" ]]; then + ln -sf "${dbus_services_dir}/org.freedesktop.Tracker1.Miner.RSS.service" "${DESTDIR}/${tracker_miner_services_dir}/" + fi +-- +2.17.0 + diff --git a/app-misc/tracker-miners/files/2.1.5-rss-symlink-fix2.patch b/app-misc/tracker-miners/files/2.1.5-rss-symlink-fix2.patch new file mode 100644 index 000000000000..30fef51ca492 --- /dev/null +++ b/app-misc/tracker-miners/files/2.1.5-rss-symlink-fix2.patch @@ -0,0 +1,39 @@ +From 191a67bae395eab322f1adc000c95d35b1a60c71 Mon Sep 17 00:00:00 2001 +From: Jeremy Bicha <jbicha@ubuntu.com> +Date: Sun, 18 Nov 2018 16:42:53 -0500 +Subject: [PATCH 2/2] meson: fix bashism in equality check + +Thanks https://rgeissert.blogspot.com/2012/12/a-bashism-week-testing-for-equality.html + +and checkbashisms from Debian's devscripts + +Closes: https://gitlab.gnome.org/GNOME/tracker-miners/issues/38 +(cherry picked from commit 0304f28a9963bff0c5b029d88dc36f91f53dcf65) +--- + src/create-miner-symlinks.sh | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/src/create-miner-symlinks.sh b/src/create-miner-symlinks.sh +index 9d8ded2fb..3ed270bca 100644 +--- a/src/create-miner-symlinks.sh ++++ b/src/create-miner-symlinks.sh +@@ -13,13 +13,13 @@ have_tracker_miner_fs="$4" + have_tracker_miner_rss="$5" + + mkdir -p ${DESTDIR}/${tracker_miner_services_dir} +-if [[ "$have_tracker_miner_apps" == "true" ]]; then ++if ([ "$have_tracker_miner_apps" = "true" ]); then + ln -sf "${dbus_services_dir}/org.freedesktop.Tracker1.Miner.Applications.service" "${DESTDIR}/${tracker_miner_services_dir}/" + fi + ln -sf "${dbus_services_dir}/org.freedesktop.Tracker1.Miner.Extract.service" "${DESTDIR}/${tracker_miner_services_dir}/" +-if [[ "$have_tracker_miner_fs" == "true" ]]; then ++if ([ "$have_tracker_miner_fs" = "true" ]); then + ln -sf "${dbus_services_dir}/org.freedesktop.Tracker1.Miner.Files.service" "${DESTDIR}/${tracker_miner_services_dir}/" + fi +-if [[ "$have_tracker_miner_rss" == "true" ]]; then ++if ([ "$have_tracker_miner_rss" = "true" ]); then + ln -sf "${dbus_services_dir}/org.freedesktop.Tracker1.Miner.RSS.service" "${DESTDIR}/${tracker_miner_services_dir}/" + fi +-- +2.17.0 + |