* [meta-gnome][PATCH 1/3] tracker: add a patch to support giflib 5
@ 2016-05-06 17:29 Derek Straka
2016-05-06 17:29 ` [meta-gnome][PATCH 2/3] tracker: add missing depends for intltool-native Derek Straka
2016-05-06 17:29 ` [meta-gnome][PATCH 3/3] tracker: update run-time dependencies Derek Straka
0 siblings, 2 replies; 3+ messages in thread
From: Derek Straka @ 2016-05-06 17:29 UTC (permalink / raw)
To: openembedded-devel; +Cc: Derek Straka
Signed-off-by: Derek Straka <derek@asterius.io>
---
.../tracker/tracker-0.14.2/giflib5-support.patch | 126 +++++++++++++++++++++
.../recipes-support/tracker/tracker_0.14.2.bb | 3 +-
2 files changed, 128 insertions(+), 1 deletion(-)
create mode 100644 meta-gnome/recipes-support/tracker/tracker-0.14.2/giflib5-support.patch
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
new file mode 100644
index 0000000..fab3371
--- /dev/null
+++ b/meta-gnome/recipes-support/tracker/tracker-0.14.2/giflib5-support.patch
@@ -0,0 +1,126 @@
+ src/tracker-extract/tracker-extract-gif.c | 36 +++++++++++++++++++++++++++++
+ 1 file changed, 36 insertions(+)
+--- a/src/tracker-extract/tracker-extract-gif.c
++++ a/src/tracker-extract/tracker-extract-gif.c
+@@ -75,6 +75,39 @@
+ return (GIF_OK);
+ }
+
++#if GIFLIB_MAJOR >= 5
++static inline void
++gif_error (const gchar *action, int err)
++{
++ const char *str = GifErrorString (err);
++ if (str != NULL) {
++ g_message ("%s, error: '%s'", action, str);
++ } else {
++ g_message ("%s, undefined error %d", action, err);
++ }
++}
++#else /* GIFLIB_MAJOR >= 5 */
++static inline void print_gif_error()
++{
++#if defined(GIFLIB_MAJOR) && defined(GIFLIB_MINOR) && ((GIFLIB_MAJOR == 4 && GIFLIB_MINOR >= 2) || GIFLIB_MAJOR > 4)
++ const char *str = GifErrorString ();
++ if (str != NULL) {
++ g_message ("GIF, error: '%s'", str);
++ } else {
++ g_message ("GIF, undefined error");
++ }
++#else
++ PrintGifError();
++#endif
++}
++#endif /* GIFLIB_MAJOR >= 5 */
++
++/* giflib 5.1 changed the API of DGifCloseFile to take two arguments */
++#if !defined(GIFLIB_MAJOR) || \
++ !(GIFLIB_MAJOR > 5 || (GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1))
++#define DGifCloseFile(a, b) DGifCloseFile(a)
++#endif
++
+ static void
+ read_metadata (TrackerSparqlBuilder *preupdate,
+ TrackerSparqlBuilder *metadata,
+@@ -100,14 +133,22 @@
+ ExtBlock extBlock;
+
+ if (DGifGetRecordType(gifFile, &RecordType) == GIF_ERROR) {
+- PrintGifError();
++#if GIFLIB_MAJOR < 5
++ print_gif_error ();
++#else /* GIFLIB_MAJOR < 5 */
++ gif_error ("Could not read next GIF record type", gifFile->Error);
++#endif /* GIFLIB_MAJOR < 5 */
+ return;
+ }
+
+ switch (RecordType) {
+ case IMAGE_DESC_RECORD_TYPE:
+ if (DGifGetImageDesc(gifFile) == GIF_ERROR) {
+- PrintGifError();
++#if GIFLIB_MAJOR < 5
++ print_gif_error();
++#else /* GIFLIB_MAJOR < 5 */
++ gif_error ("Could not get GIF record information", gifFile->Error);
++#endif /* GIFLIB_MAJOR < 5 */
+ return;
+ }
+
+@@ -117,7 +158,11 @@
+ framedata = g_malloc (framewidth*frameheight);
+
+ if (DGifGetLine(gifFile, framedata, framewidth*frameheight)==GIF_ERROR) {
+- PrintGifError();
++#if GIFLIB_MAJOR < 5
++ print_gif_error();
++#else /* GIFLIB_MAJOR < 5 */
++ gif_error ("Could not load a block of GIF pixes", gifFile->Error);
++#endif /* GIFLIB_MAJOR < 5 */
+ return;
+ }
+
+@@ -593,6 +638,9 @@
+ gchar *filename, *uri;
+ GFile *file;
+ int fd;
++#if GIFLIB_MAJOR >= 5
++ int err;
++#endif
+
+ preupdate = tracker_extract_info_get_preupdate_builder (info);
+ metadata = tracker_extract_info_get_metadata_builder (info);
+@@ -617,8 +665,14 @@
+ return FALSE;
+ }
+
++#if GIFLIB_MAJOR < 5
+ if ((gifFile = DGifOpenFileHandle (fd)) == NULL) {
+- PrintGifError ();
++ print_gif_error ();
++#else /* GIFLIB_MAJOR < 5 */
++ if ((gifFile = DGifOpenFileHandle (fd, &err)) == NULL) {
++ gif_error ("Could not open GIF file with handle", err);
++#endif /* GIFLIB_MAJOR < 5 */
++ g_free (filename);
+ close (fd);
+ return FALSE;
+ }
+@@ -637,10 +691,15 @@
+ g_string_free (where, TRUE);
+
+ g_free (uri);
+-
++#if GIFLIB_MAJOR < 5
+ if (DGifCloseFile (gifFile) != GIF_OK) {
+- PrintGifError ();
++ print_gif_error ();
++ }
++#else /* GIFLIB_MAJOR < 5 */
++ if (DGifCloseFile (gifFile, NULL) != GIF_OK) {
++ gif_error ("Could not close GIF file", gifFile->Error);
+ }
++#endif /* GIFLIB_MAJOR < 5 */
+
+ return TRUE;
+ }
diff --git a/meta-gnome/recipes-support/tracker/tracker_0.14.2.bb b/meta-gnome/recipes-support/tracker/tracker_0.14.2.bb
index c52d95e..fa7fcd5 100644
--- a/meta-gnome/recipes-support/tracker/tracker_0.14.2.bb
+++ b/meta-gnome/recipes-support/tracker/tracker_0.14.2.bb
@@ -13,7 +13,8 @@ inherit autotools pkgconfig gnomebase gettext gsettings systemd gobject-introspe
VER_DIR = "${@gnome_verdir("${PV}")}"
SRC_URI = "http://ftp.gnome.org/pub/GNOME/sources/tracker/${VER_DIR}/tracker-${PV}.tar.xz \
file://enable-sqlite-crosscompile.patch \
- file://fix-removable-media-detection.patch \
+ file://fix-removable-media-detection.patch \
+ file://giflib5-support.patch \
file://90tracker \
file://tracker-store.service \
file://tracker-miner-fs.service \
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [meta-gnome][PATCH 2/3] tracker: add missing depends for intltool-native
2016-05-06 17:29 [meta-gnome][PATCH 1/3] tracker: add a patch to support giflib 5 Derek Straka
@ 2016-05-06 17:29 ` Derek Straka
2016-05-06 17:29 ` [meta-gnome][PATCH 3/3] tracker: update run-time dependencies Derek Straka
1 sibling, 0 replies; 3+ messages in thread
From: Derek Straka @ 2016-05-06 17:29 UTC (permalink / raw)
To: openembedded-devel; +Cc: Derek Straka
Signed-off-by: Derek Straka <derek@asterius.io>
---
meta-gnome/recipes-support/tracker/tracker_0.14.2.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta-gnome/recipes-support/tracker/tracker_0.14.2.bb b/meta-gnome/recipes-support/tracker/tracker_0.14.2.bb
index fa7fcd5..302d9b8 100644
--- a/meta-gnome/recipes-support/tracker/tracker_0.14.2.bb
+++ b/meta-gnome/recipes-support/tracker/tracker_0.14.2.bb
@@ -1,7 +1,7 @@
DESCRIPTION = "Tracker is a tool designed to extract information and metadata about your personal data so that it can be searched easily and quickly."
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=ee31012bf90e7b8c108c69f197f3e3a4"
-DEPENDS = "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"
+DEPENDS = "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"
RDEPENDS_${PN} += " gvfs gsettings-desktop-schemas"
HOMEPAGE = "http://projects.gnome.org/tracker/"
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [meta-gnome][PATCH 3/3] tracker: update run-time dependencies
2016-05-06 17:29 [meta-gnome][PATCH 1/3] tracker: add a patch to support giflib 5 Derek Straka
2016-05-06 17:29 ` [meta-gnome][PATCH 2/3] tracker: add missing depends for intltool-native Derek Straka
@ 2016-05-06 17:29 ` Derek Straka
1 sibling, 0 replies; 3+ messages in thread
From: Derek Straka @ 2016-05-06 17:29 UTC (permalink / raw)
To: openembedded-devel; +Cc: Derek Straka
Addresses QA Issue: /usr/lib/nautilus/extensions-2.0/libnautilus-tracker-tags.so
Signed-off-by: Derek Straka <derek@asterius.io>
---
meta-gnome/recipes-support/tracker/tracker_0.14.2.bb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta-gnome/recipes-support/tracker/tracker_0.14.2.bb b/meta-gnome/recipes-support/tracker/tracker_0.14.2.bb
index 302d9b8..ff53669 100644
--- a/meta-gnome/recipes-support/tracker/tracker_0.14.2.bb
+++ b/meta-gnome/recipes-support/tracker/tracker_0.14.2.bb
@@ -4,6 +4,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=ee31012bf90e7b8c108c69f197f3e3a4"
DEPENDS = "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"
RDEPENDS_${PN} += " gvfs gsettings-desktop-schemas"
+
+RDEPENDS_${PN}-nautilus-extension += "nautilus"
HOMEPAGE = "http://projects.gnome.org/tracker/"
PR = "r7"
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-05-06 17:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-06 17:29 [meta-gnome][PATCH 1/3] tracker: add a patch to support giflib 5 Derek Straka
2016-05-06 17:29 ` [meta-gnome][PATCH 2/3] tracker: add missing depends for intltool-native Derek Straka
2016-05-06 17:29 ` [meta-gnome][PATCH 3/3] tracker: update run-time dependencies Derek Straka
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.