summaryrefslogtreecommitdiffstats
path: root/meta-gnome/recipes-support/tracker
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2017-04-27 11:04:51 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2017-08-31 10:18:33 +0200
commitec9e5ed06256ad92c818474cdb490dc0d3a0d0a3 (patch)
treee16d2a838f4561d5538928a58f805e5f1373225a /meta-gnome/recipes-support/tracker
parent6775acb048dabd624c5c8197b683aba45ed91569 (diff)
downloadmeta-openembedded-ec9e5ed06256ad92c818474cdb490dc0d3a0d0a3.tar.gz
recipes: remove blacklisted recipes
* as PNBLACKLIST message says, these recipes are blacklisted for long time and nobody showed any interest to fix them * remove all unused .patch and .inc files as well Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-gnome/recipes-support/tracker')
-rw-r--r--meta-gnome/recipes-support/tracker/tracker-0.14.2/enable-sqlite-crosscompile.patch13
-rw-r--r--meta-gnome/recipes-support/tracker/tracker-0.14.2/fix-removable-media-detection.patch30
-rw-r--r--meta-gnome/recipes-support/tracker/tracker-0.14.2/giflib5-support.patch126
-rw-r--r--meta-gnome/recipes-support/tracker/tracker_0.14.2.bb88
4 files changed, 0 insertions, 257 deletions
diff --git a/meta-gnome/recipes-support/tracker/tracker-0.14.2/enable-sqlite-crosscompile.patch b/meta-gnome/recipes-support/tracker/tracker-0.14.2/enable-sqlite-crosscompile.patch
deleted file mode 100644
index 5dadda2a29..0000000000
--- a/meta-gnome/recipes-support/tracker/tracker-0.14.2/enable-sqlite-crosscompile.patch
+++ /dev/null
@@ -1,13 +0,0 @@
1Index: tracker-0.10.17/m4/sqlite-threadsafe.m4
2===================================================================
3--- tracker-0.10.17.orig/m4/sqlite-threadsafe.m4
4+++ tracker-0.10.17/m4/sqlite-threadsafe.m4
5@@ -45,7 +45,7 @@ int main ()
6 ]])],
7 [ax_cv_sqlite_threadsafe=yes],
8 [ax_cv_sqlite_threadsafe=no],
9- [ax_cv_sqlite_threadsafe=no])])
10+ [ax_cv_sqlite_threadsafe=yes])])
11
12 LIBS="$save_LIBS"
13 ])
diff --git a/meta-gnome/recipes-support/tracker/tracker-0.14.2/fix-removable-media-detection.patch b/meta-gnome/recipes-support/tracker/tracker-0.14.2/fix-removable-media-detection.patch
deleted file mode 100644
index 6c3d9de107..0000000000
--- a/meta-gnome/recipes-support/tracker/tracker-0.14.2/fix-removable-media-detection.patch
+++ /dev/null
@@ -1,30 +0,0 @@
1Index: tracker-0.14.2/src/libtracker-miner/tracker-storage.c
2===================================================================
3--- tracker-0.14.2.orig/src/libtracker-miner/tracker-storage.c 2011-08-03 13:53:16.000000000 +0100
4+++ tracker-0.14.2/src/libtracker-miner/tracker-storage.c 2012-09-10 08:25:18.322215126 +0100
5@@ -20,6 +20,7 @@
6 #include "config.h"
7
8 #include <string.h>
9+#include <sys/stat.h>
10
11 #include <gio/gio.h>
12 #include <gio/gunixmounts.h>
13@@ -646,6 +647,17 @@
14 gchar *content_type;
15 gboolean is_multimedia;
16 gboolean is_blank;
17+ struct stat st;
18+
19+ /*
20+ * Consider all files under /media to be
21+ * removable unless the file .this-is-root is
22+ * present.
23+ */
24+ if (!strncmp (mount_path, "/media/",
25+ strlen ("/media/")) &&
26+ stat ("/media/.this-is-root", &st))
27+ is_removable = TRUE;
28
29 content_type = mount_guess_content_type (mount, &is_optical, &is_multimedia, &is_blank);
30
diff --git a/meta-gnome/recipes-support/tracker/tracker-0.14.2/giflib5-support.patch b/meta-gnome/recipes-support/tracker/tracker-0.14.2/giflib5-support.patch
deleted file mode 100644
index fab3371f0f..0000000000
--- a/meta-gnome/recipes-support/tracker/tracker-0.14.2/giflib5-support.patch
+++ /dev/null
@@ -1,126 +0,0 @@
1 src/tracker-extract/tracker-extract-gif.c | 36 +++++++++++++++++++++++++++++
2 1 file changed, 36 insertions(+)
3--- a/src/tracker-extract/tracker-extract-gif.c
4+++ a/src/tracker-extract/tracker-extract-gif.c
5@@ -75,6 +75,39 @@
6 return (GIF_OK);
7 }
8
9+#if GIFLIB_MAJOR >= 5
10+static inline void
11+gif_error (const gchar *action, int err)
12+{
13+ const char *str = GifErrorString (err);
14+ if (str != NULL) {
15+ g_message ("%s, error: '%s'", action, str);
16+ } else {
17+ g_message ("%s, undefined error %d", action, err);
18+ }
19+}
20+#else /* GIFLIB_MAJOR >= 5 */
21+static inline void print_gif_error()
22+{
23+#if defined(GIFLIB_MAJOR) && defined(GIFLIB_MINOR) && ((GIFLIB_MAJOR == 4 && GIFLIB_MINOR >= 2) || GIFLIB_MAJOR > 4)
24+ const char *str = GifErrorString ();
25+ if (str != NULL) {
26+ g_message ("GIF, error: '%s'", str);
27+ } else {
28+ g_message ("GIF, undefined error");
29+ }
30+#else
31+ PrintGifError();
32+#endif
33+}
34+#endif /* GIFLIB_MAJOR >= 5 */
35+
36+/* giflib 5.1 changed the API of DGifCloseFile to take two arguments */
37+#if !defined(GIFLIB_MAJOR) || \
38+ !(GIFLIB_MAJOR > 5 || (GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1))
39+#define DGifCloseFile(a, b) DGifCloseFile(a)
40+#endif
41+
42 static void
43 read_metadata (TrackerSparqlBuilder *preupdate,
44 TrackerSparqlBuilder *metadata,
45@@ -100,14 +133,22 @@
46 ExtBlock extBlock;
47
48 if (DGifGetRecordType(gifFile, &RecordType) == GIF_ERROR) {
49- PrintGifError();
50+#if GIFLIB_MAJOR < 5
51+ print_gif_error ();
52+#else /* GIFLIB_MAJOR < 5 */
53+ gif_error ("Could not read next GIF record type", gifFile->Error);
54+#endif /* GIFLIB_MAJOR < 5 */
55 return;
56 }
57
58 switch (RecordType) {
59 case IMAGE_DESC_RECORD_TYPE:
60 if (DGifGetImageDesc(gifFile) == GIF_ERROR) {
61- PrintGifError();
62+#if GIFLIB_MAJOR < 5
63+ print_gif_error();
64+#else /* GIFLIB_MAJOR < 5 */
65+ gif_error ("Could not get GIF record information", gifFile->Error);
66+#endif /* GIFLIB_MAJOR < 5 */
67 return;
68 }
69
70@@ -117,7 +158,11 @@
71 framedata = g_malloc (framewidth*frameheight);
72
73 if (DGifGetLine(gifFile, framedata, framewidth*frameheight)==GIF_ERROR) {
74- PrintGifError();
75+#if GIFLIB_MAJOR < 5
76+ print_gif_error();
77+#else /* GIFLIB_MAJOR < 5 */
78+ gif_error ("Could not load a block of GIF pixes", gifFile->Error);
79+#endif /* GIFLIB_MAJOR < 5 */
80 return;
81 }
82
83@@ -593,6 +638,9 @@
84 gchar *filename, *uri;
85 GFile *file;
86 int fd;
87+#if GIFLIB_MAJOR >= 5
88+ int err;
89+#endif
90
91 preupdate = tracker_extract_info_get_preupdate_builder (info);
92 metadata = tracker_extract_info_get_metadata_builder (info);
93@@ -617,8 +665,14 @@
94 return FALSE;
95 }
96
97+#if GIFLIB_MAJOR < 5
98 if ((gifFile = DGifOpenFileHandle (fd)) == NULL) {
99- PrintGifError ();
100+ print_gif_error ();
101+#else /* GIFLIB_MAJOR < 5 */
102+ if ((gifFile = DGifOpenFileHandle (fd, &err)) == NULL) {
103+ gif_error ("Could not open GIF file with handle", err);
104+#endif /* GIFLIB_MAJOR < 5 */
105+ g_free (filename);
106 close (fd);
107 return FALSE;
108 }
109@@ -637,10 +691,15 @@
110 g_string_free (where, TRUE);
111
112 g_free (uri);
113-
114+#if GIFLIB_MAJOR < 5
115 if (DGifCloseFile (gifFile) != GIF_OK) {
116- PrintGifError ();
117+ print_gif_error ();
118+ }
119+#else /* GIFLIB_MAJOR < 5 */
120+ if (DGifCloseFile (gifFile, NULL) != GIF_OK) {
121+ gif_error ("Could not close GIF file", gifFile->Error);
122 }
123+#endif /* GIFLIB_MAJOR < 5 */
124
125 return TRUE;
126 }
diff --git a/meta-gnome/recipes-support/tracker/tracker_0.14.2.bb b/meta-gnome/recipes-support/tracker/tracker_0.14.2.bb
deleted file mode 100644
index eb36a120fe..0000000000
--- a/meta-gnome/recipes-support/tracker/tracker_0.14.2.bb
+++ /dev/null
@@ -1,88 +0,0 @@
1DESCRIPTION = "Tracker is a tool designed to extract information and metadata about your personal data so that it can be searched easily and quickly."
2LICENSE = "GPLv2"
3LIC_FILES_CHKSUM = "file://COPYING;md5=ee31012bf90e7b8c108c69f197f3e3a4"
4DEPENDS = "file gstreamer dbus libexif gettext sqlite3 icu gst-plugins-base libgnome-keyring poppler tiff enca libgsf libunistring giflib taglib bzip2 upower gtk+3 libgee networkmanager intltool-native"
5
6RDEPENDS_${PN} += " gvfs gsettings-desktop-schemas"
7
8RDEPENDS_${PN}-nautilus-extension += "nautilus"
9HOMEPAGE = "http://projects.gnome.org/tracker/"
10
11PR = "r7"
12
13inherit autotools pkgconfig gnomebase gettext gsettings systemd gobject-introspection
14
15VER_DIR = "${@gnome_verdir("${PV}")}"
16SRC_URI = "http://ftp.gnome.org/pub/GNOME/sources/tracker/${VER_DIR}/tracker-${PV}.tar.xz \
17 file://enable-sqlite-crosscompile.patch \
18 file://fix-removable-media-detection.patch \
19 file://giflib5-support.patch \
20 file://90tracker \
21 file://tracker-store.service \
22 file://tracker-miner-fs.service \
23 file://tracker-dbus.service \
24 "
25
26SYSTEMD_SERVICE_${PN} = " tracker-store.service tracker-miner-fs.service tracker-dbus.service "
27SYSTEMD_AUTO_ENABLE = "disable"
28
29EXTRA_OECONF += " tracker_cv_have_ioprio=yes"
30
31PACKAGECONFIG ?= "nautilus"
32PACKAGECONFIG[nautilus] = "--enable-nautilus-extension,--disable-nautilus-extension,nautilus"
33
34# Disable the desktop-centric miners
35EXTRA_OECONF += "--disable-miner-thunderbird --disable-miner-firefox \
36 --disable-miner-evolution --disable-miner-flickr"
37
38LEAD_SONAME = "libtrackerclient.so.0"
39
40do_compile_prepend() {
41 export GIR_EXTRA_LIBS_PATH="${B}/src/libtracker-sparql-backend/.libs:${B}/src/libtracker-data/.libs:${B}/src/libtracker-common/.libs"
42}
43
44do_install_append() {
45 cp -PpR ${D}${STAGING_DATADIR}/* ${D}${datadir}/ || true
46# install -d ${D}/${sysconfdir}/X11/Xsession.d/
47# install -m 0755 ${WORKDIR}/90tracker ${D}/${sysconfdir}/X11/Xsession.d/
48
49 install -d ${D}${systemd_unitdir}/system
50 install -m 0644 ${WORKDIR}/tracker-store.service ${D}${systemd_unitdir}/system
51 install -m 0644 ${WORKDIR}/tracker-miner-fs.service ${D}${systemd_unitdir}/system
52 install -m 0644 ${WORKDIR}/tracker-dbus.service ${D}${systemd_unitdir}/system
53 sed -i -e 's,@LIBEXECDIR@,${libexecdir},g' \
54 -e 's,@BASE_BINDIR@,${base_bindir},g' \
55 ${D}${systemd_unitdir}/system/*.service
56}
57
58PACKAGES =+ "${PN}-tests ${PN}-vala ${PN}-nautilus-extension"
59
60FILES_${PN} += "${datadir}/dbus-1/ \
61 ${libdir}/tracker-${VER_DIR}/*.so.* \
62 ${libdir}/tracker-${VER_DIR}/extract-modules/*.so \
63 ${libdir}/tracker-${VER_DIR}/writeback-modules/*.so \
64 ${datadir}/icons/hicolor/*/apps/tracker.* \
65 ${libdir}/nautilus/extensions-2.0/*.la \
66 ${datadir}/glib-2.0/schemas/* \
67 ${systemd_unitdir}/system/tracker-store.service \
68 ${systemd_unitdir}/system/tracker-miner-fs.service \
69 ${systemd_unitdir}/system/tracker-dbus.service \
70"
71
72FILES_${PN}-dev += "${libdir}/tracker-${VER_DIR}/*.la \
73 ${libdir}/tracker-${VER_DIR}/*.so \
74 ${libdir}/tracker-${VER_DIR}/*/*.la \
75 ${libdir}/tracker-${VER_DIR}/extract-modules/*.la"
76
77FILES_${PN}-staticdev += "${libdir}/nautilus/extensions-2.0/*.a"
78FILES_${PN}-dbg += "${libdir}/*/*/.debug \
79 ${libdir}/*/.debug"
80FILES_${PN}-tests = "${datadir}/tracker-tests/"
81FILES_${PN}-vala = "${datadir}/vala/"
82FILES_${PN}-nautilus-extension += "${libdir}/nautilus/extensions-2.0/*.so"
83
84SRC_URI[md5sum] = "f3a871beeebf86fd752863ebd22af9ac"
85SRC_URI[sha256sum] = "9b59330aa2e9e09feee587ded895e9247f71fc25f46b023d616d9969314bc7f1"
86
87# http://errors.yoctoproject.org/Errors/Details/81007/
88PNBLACKLIST[tracker] ?= "BROKEN: fails to build with new binutils-2.27 - the recipe will be removed on 2017-09-01 unless the issue is fixed"