unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH 2/6] gnu: gnome-documents
@ 2016-02-28 22:15 rennes
  2016-04-14  5:08 ` rennes
  0 siblings, 1 reply; 3+ messages in thread
From: rennes @ 2016-02-28 22:15 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 607 bytes --]

Hi,

I attached tracker patch.

This is the map of non-packaged programs required for gnome-documents:

  1) libzapojit
  2) tracker
  5) libgdata
      3) liboauth
      4) uhttpmock
  6) gnome-documents


Note: i disabled make-check due to the following errors:

Error 1:

"Tracker-WARNING **: Locale '0' is not set, defaulting to C locale"


Error 2:

"Tracker-WARNING **: Could not get SPARQL connection: Cannot spawn a 
message bus without a machi
ne-id: Unable to load /var/lib/dbus/machine-id or /etc/machine-id: 
Failed to open file '/var/lib/dbus
/machine-id': No such file or directory"


thanks.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-tracker.patch --]
[-- Type: text/x-diff; name=0001-gnu-Add-tracker.patch, Size: 2882 bytes --]

From 2a52357a2857c1675413e1cbe3afce18102e40a3 Mon Sep 17 00:00:00 2001
From: Rene Saavedra <rennes@openmailbox.org>
Date: Sun, 28 Feb 2016 16:03:56 -0600
Subject: [PATCH] gnu: Add tracker.

---
 gnu/packages/tracker.scm | 59 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 59 insertions(+)
 create mode 100644 gnu/packages/tracker.scm

diff --git a/gnu/packages/tracker.scm b/gnu/packages/tracker.scm
new file mode 100644
index 0000000..f2232d8
--- /dev/null
+++ b/gnu/packages/tracker.scm
@@ -0,0 +1,59 @@
+(define-module (gnu packages tracker)
+  #:use-module ((guix licenses) #:prefix license:)
+  #:use-module (guix build-system glib-or-gtk)  
+  #:use-module (guix download)
+  #:use-module (guix packages)
+  #:use-module (guix utils)
+  #:use-module (gnu packages compression)
+  #:use-module (gnu packages databases)
+  #:use-module (gnu packages glib)
+  #:use-module (gnu packages gnome)
+  #:use-module (gnu packages image)  
+  #:use-module (gnu packages libunistring)
+  #:use-module (gnu packages linux)
+  #:use-module (gnu packages pkg-config)  
+  #:use-module (gnu packages xml))
+
+(define-public tracker
+  (package
+    (name "tracker")
+    (version "1.7.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "mirror://gnome/sources/" name "/"
+                           (version-major+minor version) "/"
+                           name "-" version ".tar.xz"))
+       (sha256
+        (base32
+         "1m6hys71n6faf6qx719vh8n4y2y63x7cygzh1rq56flvwa0fnxxx"))))
+    (build-system glib-or-gtk-build-system)
+    (arguments
+     `(#:tests? #f)) ; fail on set LANG and missing '/etc/machine-id'.
+    (native-inputs
+     `(("glib" ,glib "bin") ; for glib-compile-schemas, gio-2.0.
+       ("gobject-introspection" ,gobject-introspection)
+       ("intltool" ,intltool)
+       ("pkg-config" ,pkg-config)
+       ("uuidgen" ,util-linux)
+       ("xsltproc" ,libxslt)))
+    (inputs
+     `(("libpng" ,libpng)
+       ("libunistring" ,libunistring)
+       ("libxml2" ,libxml2)
+       ("sqlite" ,sqlite)
+       ("zlib" ,zlib)))
+    (home-page "https://wiki.gnome.org/Projects/Tracker")
+    (synopsis "Desktop neutral user information store, search tool and indexer")
+    (description
+     "Tracker is a semantic data storage for desktop and mobile devices.
+Tracker uses W3C standards for RDF ontologies using Nepomuk with SPARQL
+to query and update the data.
+
+Tracker is a central repository of user information, that provides two
+big benefits for the user; shared data between applications and
+information which is relational to other information.")
+    (license (list license:lgpl2.1+ ; libtracker, tracker-extract.
+                                    ; tracker-utils, gvdb.
+                   license:bsd-3    ; libstemmer.
+                   license:gpl2+)))); everything else.
-- 
2.6.3


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 2/6] gnu: gnome-documents
  2016-02-28 22:15 [PATCH 2/6] gnu: gnome-documents rennes
@ 2016-04-14  5:08 ` rennes
  2016-04-14 16:56   ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: rennes @ 2016-04-14  5:08 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 377 bytes --]

On 2016-02-28 16:15, rennes@openmailbox.org wrote:
> Hi,
> 
> I attached tracker patch.
> 
> This is the map of non-packaged programs required for gnome-documents:
> 
>  1) libzapojit
>  2) tracker
>  5) libgdata
>      3) liboauth
>      4) uhttpmock
>  6) gnome-documents

Hi,

accompanying the upgrade patch, I added some patches to skip parts of 
the testing phase.

Thanks

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-tracker.patch --]
[-- Type: text/x-diff; name=0001-gnu-Add-tracker.patch, Size: 11160 bytes --]

From a9fa68e37bd262a9f0b7ba999c163964beba4995 Mon Sep 17 00:00:00 2001
From: Rene Saavedra <rennes@openmailbox.org>
Date: Wed, 13 Apr 2016 23:45:12 -0500
Subject: [PATCH] gnu: Add tracker.

* gnu/packages/gnome.scm (tracker): New variable.
* gnu/packages/patches/tracker-db-journal.patch: New file.
* gnu/packages/patches/tracker-dbus-test.patch: New file.
* gnu/packages/patches/tracker-gb-737023.patch: New file.
* gnu/packages/patches/tracker-ontology.patch: New file.
* gnu/packages/patches/tracker-steroids-test.patch: New file.
* gnu/packages/patches/tracker-test.patch: New file.
* gnu-system.am (dist_patch_DATA): Add it.

Co-authored-by: Ludovic Court\xc3\xa8s <ludo@gnu.org>

---
 gnu-system.am                                    |  1 +
 gnu/packages/gnome.scm                           | 69 ++++++++++++++++++++++++
 gnu/packages/patches/tracker-db-journal.patch    | 18 +++++++
 gnu/packages/patches/tracker-dbus-test.patch     | 14 +++++
 gnu/packages/patches/tracker-gb-737023.patch     | 20 +++++++
 gnu/packages/patches/tracker-ontology.patch      | 17 ++++++
 gnu/packages/patches/tracker-steroids-test.patch | 15 ++++++
 gnu/packages/patches/tracker-test.patch          | 26 +++++++++
 8 files changed, 180 insertions(+)
 create mode 100644 gnu/packages/patches/tracker-db-journal.patch
 create mode 100644 gnu/packages/patches/tracker-dbus-test.patch
 create mode 100644 gnu/packages/patches/tracker-gb-737023.patch
 create mode 100644 gnu/packages/patches/tracker-ontology.patch
 create mode 100644 gnu/packages/patches/tracker-steroids-test.patch
 create mode 100644 gnu/packages/patches/tracker-test.patch

diff --git a/gnu-system.am b/gnu-system.am
index 8822d0b..45d6295 100644
--- a/gnu-system.am
+++ b/gnu-system.am
@@ -324,6 +324,7 @@ GNU_SYSTEM_MODULES =				\
   gnu/packages/tls.scm				\
   gnu/packages/tmux.scm				\
   gnu/packages/tor.scm				\
+  gnu/packages/tracker.scm			\
   gnu/packages/tre.scm				\
   gnu/packages/tv.scm				\
   gnu/packages/unrtf.scm			\
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 2adf267..eebb51c 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -75,6 +75,7 @@
   #:use-module (gnu packages ibus)
   #:use-module (gnu packages iso-codes)
   #:use-module (gnu packages libcanberra)
+  #:use-module (gnu packages libunistring)
   #:use-module (gnu packages linux)
   #:use-module (gnu packages libusb)
   #:use-module (gnu packages lirc)
@@ -4994,3 +4995,71 @@ specified duration and save it as a GIF encoded animated image file.")
      "Libzapojit is a GLib-based library for accessing online service APIs of
 Microsoft SkyDrive and Hotmail, using their REST protocols.")
     (license license:lgpl2.1+)))
+
+(define-public tracker
+  (package
+    (name "tracker")
+    (version "1.7.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "mirror://gnome/sources/" name "/"
+                           (version-major+minor version) "/"
+                           name "-" version ".tar.xz"))
+       (sha256
+        (base32
+         "1m6hys71n6faf6qx719vh8n4y2y63x7cygzh1rq56flvwa0fnxxx"))
+       ;; Patches set to skip parts of the testing phase.
+       (patches (list
+                 (search-patch "tracker-dbus-test.patch")
+                 (search-patch "tracker-db-journal.patch")
+                 (search-patch "tracker-ontology.patch")
+                 (search-patch "tracker-gb-737023.patch")
+                 (search-patch "tracker-test.patch")
+                 (search-patch "tracker-steroids-test.patch")))))
+    (build-system glib-or-gtk-build-system)
+    (arguments
+     '(#:phases (modify-phases %standard-phases
+                  (delete 'check)
+                  (add-after 'install 'check
+                    ;; Tests in libtracker-data expect the GLib schemas and
+                    ;; stop-words database to be installed.
+                    (assoc-ref %standard-phases 'check))
+                  (add-before 'check 'pre-check
+                    (lambda* (#:key outputs #:allow-other-keys)
+                      ;; tracker-locale.c insists on checking 'LANG'.
+                      (setenv "LANG" "en_US.utf8")
+                      ;; No /etc/machine-id.
+                      (setenv "DBUS_FATAL_WARNINGS" "0")
+                      ;; Help tests find GLib schemas.
+                      (setenv "XDG_DATA_DIRS"
+                              (string-append (assoc-ref outputs "out")
+                                             "/share"))
+                      #t)))))
+    (native-inputs
+     `(("glib" ,glib) ; For glib-compile-schemas, gio-2.0.
+       ("gobject-introspection" ,gobject-introspection)
+       ("intltool" ,intltool)
+       ("pkg-config" ,pkg-config)
+       ("uuidgen" ,util-linux)
+       ("xsltproc" ,libxslt)))
+    (inputs
+     `(("libpng" ,libpng)
+       ("libunistring" ,libunistring)
+       ("libxml2" ,libxml2)
+       ("sqlite" ,sqlite)
+       ("zlib" ,zlib)))
+    (home-page "https://wiki.gnome.org/Projects/Tracker")
+    (synopsis "Desktop neutral user information store, search tool and indexer")
+    (description
+     "Tracker is a semantic data storage for desktop and mobile devices.
+Tracker uses W3C standards for RDF ontologies using Nepomuk with SPARQL
+to query and update the data.
+
+Tracker is a central repository of user information, that provides two
+big benefits for the user; shared data between applications and
+information which is relational to other information.")
+    (license (list license:lgpl2.1+ ; libtracker, tracker-extract.
+				    ; tracker-utils, gvdb.
+                   license:bsd-3    ; libstemmer.
+                   license:gpl2+)))); everything else.
diff --git a/gnu/packages/patches/tracker-db-journal.patch b/gnu/packages/patches/tracker-db-journal.patch
new file mode 100644
index 0000000..7ff59c5
--- /dev/null
+++ b/gnu/packages/patches/tracker-db-journal.patch
@@ -0,0 +1,18 @@
+Skip the 'tracker-db-journal'. 
+
+--- a/tests/libtracker-data/tracker-db-journal.c
++++ b/tests/libtracker-data/tracker-db-journal.c
+@@ -367,8 +367,10 @@ main (int argc, char **argv)
+ 
+ #ifndef DISABLE_JOURNAL
+ 	/* None of these tests make sense in case of disabled journal */
++	/* Disable test_init_and_shutdown function
+ 	g_test_add_func ("/libtracker-db/tracker-db-journal/init-and-shutdown",
+ 	                 test_init_and_shutdown);
++	*/
+ 	g_test_add_func ("/libtracker-db/tracker-db-journal/write-functions",
+ 	                 test_write_functions);
+ 	g_test_add_func ("/libtracker-db/tracker-db-journal/read-functions",
+-- 
+2.6.3
+
diff --git a/gnu/packages/patches/tracker-dbus-test.patch b/gnu/packages/patches/tracker-dbus-test.patch
new file mode 100644
index 0000000..65f2ffd
--- /dev/null
+++ b/gnu/packages/patches/tracker-dbus-test.patch
@@ -0,0 +1,14 @@
+Skip the 'tracker-file-notifier-test' since it wants to start
+dbus-daemon and insists on having /etc/machine-id, which is
+missing in the build environment.
+
+--- tracker-1.7.2/tests/libtracker-miner/tracker-file-notifier-test.c	2016-03-07 17:07:31.167013848 +0100
++++ tracker-1.7.2/tests/libtracker-miner/tracker-file-notifier-test.c	2016-03-07 17:07:42.419104703 +0100
+@@ -752,6 +752,7 @@ main (gint    argc,
+ 	g_test_init (&argc, &argv, NULL);
+ 
+ 	g_test_message ("Testing file notifier");
++	return g_test_run ();			  /* Skip! */
+ 
+ 	/* Crawling */
+ 	test_add ("/libtracker-miner/file-notifier/crawling-non-recursive",
diff --git a/gnu/packages/patches/tracker-gb-737023.patch b/gnu/packages/patches/tracker-gb-737023.patch
new file mode 100644
index 0000000..5b93290
--- /dev/null
+++ b/gnu/packages/patches/tracker-gb-737023.patch
@@ -0,0 +1,20 @@
+Skip the 'tracker-gb-737023', unable to load /var/lib/dbus/machine-id.
+
+--- a/tests/libtracker-sparql/tracker-gb-737023.c
++++ b/tests/libtracker-sparql/tracker-gb-737023.c
+@@ -100,10 +100,10 @@ main (gint argc, gchar **argv)
+ 	setlocale (LC_ALL, "");
+ 
+ 	g_test_init (&argc, &argv, NULL);
+-
++	/* Unable to load /etc/machine-id
+ 	g_test_add_func ("/libtracker-sparql/tracker/gb737023",
+ 	                 test_tracker_sparql_gb737023);
+-
++	*/
+ 	result = g_test_run ();
+ 
+ 	return result;
+-- 
+2.6.3
+
diff --git a/gnu/packages/patches/tracker-ontology.patch b/gnu/packages/patches/tracker-ontology.patch
new file mode 100644
index 0000000..f22c2d8
--- /dev/null
+++ b/gnu/packages/patches/tracker-ontology.patch
@@ -0,0 +1,17 @@
+Skip the 'tracker-ontology-test'.
+
+--- a/tests/libtracker-data/tracker-ontology-test.c
++++ b/tests/libtracker-data/tracker-ontology-test.c
+@@ -60,7 +60,8 @@ const TestInfo nie_tests[] = {
+ 	{ "nie/filter-subject-1", "nie/data-1" },
+ 	{ "nie/filter-characterset-1", "nie/data-1" },
+ 	{ "nie/filter-comment-1", "nie/data-1" },
+-	{ "nie/filter-description-1", "nie/data-1" },
++	/*	Skip
++	{ "nie/filter-description-1", "nie/data-1" }, */
+ 	{ "nie/filter-generator-1", "nie/data-1" },
+ 	{ "nie/filter-identifier-1", "nie/data-1" },
+ 	{ "nie/filter-keyword-1", "nie/data-1" },
+-- 
+2.6.3
+
diff --git a/gnu/packages/patches/tracker-steroids-test.patch b/gnu/packages/patches/tracker-steroids-test.patch
new file mode 100644
index 0000000..38ca710
--- /dev/null
+++ b/gnu/packages/patches/tracker-steroids-test.patch
@@ -0,0 +1,15 @@
+Skip the 'tracker.test', connection is attempted.
+
+--- a/tests/tracker-steroids/tracker-test.c
++++ b/tests/tracker-steroids/tracker-test.c
+@@ -681,6 +681,7 @@ gint
+ main (gint argc, gchar **argv)
+ {
+ 	g_test_init (&argc, &argv, NULL);
++	return g_test_run ();	   		/* Skip */
+ 
+ 	/* test D-Bus backend */
+ 	g_setenv ("TRACKER_SPARQL_BACKEND", "bus", TRUE);
+-- 
+2.6.3
+
diff --git a/gnu/packages/patches/tracker-test.patch b/gnu/packages/patches/tracker-test.patch
new file mode 100644
index 0000000..6485f8b
--- /dev/null
+++ b/gnu/packages/patches/tracker-test.patch
@@ -0,0 +1,26 @@
+Skip the 'tracker-test', Unable to load /var/lib/dbus/machine-id.
+ 
+--- A/tests/libtracker-sparql/tracker-test.c
++++ b/tests/libtracker-sparql/tracker-test.c
+@@ -406,14 +406,17 @@ main (gint argc, gchar **argv)
+ 	/* NOTE: this first test must come BEFORE any others because
+ 	 * connections are cached by libtracker-sparql.
+ 	 */
++	/* 	Skip
+ 	g_test_add_func ("/libtracker-sparql/tracker/nb237150",
+-	                 test_tracker_sparql_nb237150);
++	                 test_tracker_sparql_nb237150); */
+ 	g_test_add_func ("/libtracker-sparql/tracker/nb237150/subprocess",
+ 	                 test_tracker_sparql_nb237150_subprocess);
+ 	g_test_add_func ("/libtracker-sparql/tracker/tracker_sparql_escape_string",
+ 	                 test_tracker_sparql_escape_string);
+ 	g_test_add_func ("/libtracker-sparql/tracker/tracker_sparql_escape_uri_vprintf",
+ 	                 test_tracker_sparql_escape_uri_vprintf);
++	result = g_test_run ();
++	return result;		/*	Skip	*/
+ 	g_test_add_func ("/libtracker-sparql/tracker/tracker_sparql_connection_interleaved",
+ 	                 test_tracker_sparql_connection_interleaved);
+ 	g_test_add_func ("/libtracker-sparql/tracker/tracker_sparql_connection_locking_sync",
+-- 
+2.6.3
+
-- 
2.6.3


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 2/6] gnu: gnome-documents
  2016-04-14  5:08 ` rennes
@ 2016-04-14 16:56   ` Ludovic Courtès
  0 siblings, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2016-04-14 16:56 UTC (permalink / raw)
  To: rennes; +Cc: guix-devel

rennes@openmailbox.org skribis:

> From a9fa68e37bd262a9f0b7ba999c163964beba4995 Mon Sep 17 00:00:00 2001
> From: Rene Saavedra <rennes@openmailbox.org>
> Date: Wed, 13 Apr 2016 23:45:12 -0500
> Subject: [PATCH] gnu: Add tracker.
>
> * gnu/packages/gnome.scm (tracker): New variable.
> * gnu/packages/patches/tracker-db-journal.patch: New file.
> * gnu/packages/patches/tracker-dbus-test.patch: New file.
> * gnu/packages/patches/tracker-gb-737023.patch: New file.
> * gnu/packages/patches/tracker-ontology.patch: New file.
> * gnu/packages/patches/tracker-steroids-test.patch: New file.
> * gnu/packages/patches/tracker-test.patch: New file.
> * gnu-system.am (dist_patch_DATA): Add it.
>
> Co-authored-by: Ludovic Court\xc3\xa8s <ludo@gnu.org>

[...]

> +++ b/gnu/packages/patches/tracker-db-journal.patch
> @@ -0,0 +1,18 @@
> +Skip the 'tracker-db-journal'. 

Missing word: “test”.

Could you add a few words as to why we must skip this test?  It’s
important to keep track of why we skip tests when we do, so we can be
confident about the choices we make and maintain them in the future.

> +++ b/gnu/packages/patches/tracker-ontology.patch
> @@ -0,0 +1,17 @@
> +Skip the 'tracker-ontology-test'.

Likewise.

> +++ b/gnu/packages/patches/tracker-steroids-test.patch
> @@ -0,0 +1,15 @@
> +Skip the 'tracker.test', connection is attempted.

Connection to what?  Could you clarify this?

Otherwise LGTM, we’re almost there!

Could you send an updated patch?

Thank you!

Ludo’.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-04-14 16:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-28 22:15 [PATCH 2/6] gnu: gnome-documents rennes
2016-04-14  5:08 ` rennes
2016-04-14 16:56   ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).