[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
119/122: gnu: tracker: Update to 3.1.1 and make related changes.
From: |
guix-commits |
Subject: |
119/122: gnu: tracker: Update to 3.1.1 and make related changes. |
Date: |
Fri, 11 Jun 2021 12:12:27 -0400 (EDT) |
raghavgururajan pushed a commit to branch wip-gnome
in repository guix.
commit 9e162de346257f735030474c7c776d8827c1721c
Author: Raghav Gururajan <rg@raghavgururajan.name>
AuthorDate: Sat May 15 23:59:41 2021 -0400
gnu: tracker: Update to 3.1.1 and make related changes.
* gnu/packages/gnome.scm (tracker)[configure-flags]
(systemd_user_services): New flag.
(docs,c_link_args): Remove flags.
[phases](adjust-tests,patch-docs): New phases.
(patch-docbook-xml,pre-check): Remove phases.
(check): Replace with custom phase.
[native-inputs]: Add asciidoc, libxslt and python-tappy.
---
gnu/packages/gnome.scm | 63 ++++++++++++++++++++++++++++++++++++++------------
1 file changed, 48 insertions(+), 15 deletions(-)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 2fcde38..bd160c9 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -170,6 +170,7 @@
#:use-module (gnu packages protobuf)
#:use-module (gnu packages pulseaudio)
#:use-module (gnu packages python)
+ #:use-module (gnu packages python-check)
#:use-module (gnu packages python-compression)
#:use-module (gnu packages python-crypto)
#:use-module (gnu packages python-web)
@@ -8781,7 +8782,7 @@ easy, safe, and automatic.")
(define-public tracker
(package
(name "tracker")
- (version "2.3.5")
+ (version "3.1.1")
(source (origin
(method url-fetch)
(uri (string-append "mirror://gnome/sources/tracker/"
@@ -8789,22 +8790,44 @@ easy, safe, and automatic.")
"tracker-" version ".tar.xz"))
(sha256
(base32
- "1ixxyqjlv7pnl4j8g6b72fkbjvzfspza8y71ppkncry8i6xkr223"))))
+ "1rwafk58dm8fpfdb3yk77g0f9gxkk5dy8hm2yx26y1jlhkly4xj3"))))
(build-system meson-build-system)
(outputs '("out" "doc"))
(arguments
`(#:glib-or-gtk? #t
#:configure-flags
(list
- "-Ddocs=true"
- ;; Otherwise, the RUNPATH will lack the final path component.
- (string-append "-Dc_link_args=-Wl,-rpath="
- (assoc-ref %outputs "out") "/lib:"
- (assoc-ref %outputs "out") "/lib/tracker-2.0"))
+ "-Dsystemd_user_services=false") ; not applicable
#:phases
(modify-phases %standard-phases
- (add-after 'unpack 'patch-docbook-xml
+ (add-after 'unpack 'adjust-tests
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; Use correct shell path.
+ (substitute* "utils/trackertestutils/__main__.py"
+ (("shell =.*$")
+ (string-append "shell = '"
+ (assoc-ref inputs "bash")
+ "/bin/bash'")))
+ ;; Due to syntax error bug.
+ ;; Refer, https://gitlab.gnome.org/GNOME/tracker/-/issues/307
+ (with-directory-excursion "tests"
+ (substitute* "libtracker-data/meson.build"
+ (("[ \t]*'sparql'") "")))))
+ (add-after 'unpack 'patch-docs
(lambda* (#:key inputs #:allow-other-keys)
+ ;; Don't rename documentation directories,
+ ;; during installation.
+ (with-directory-excursion "docs/reference"
+ (substitute* (find-files "." "meson.build")
+ (("[ \t]*module_version: tracker_api_major,")
+ "")))
+ ;; Fix asciidoc references.
+ (with-directory-excursion "docs/manpages"
+ (substitute* "meson.build"
+ (("/etc/asciidoc/docbook-xsl/")
+ (string-append (assoc-ref inputs "asciidoc")
+ "/etc/asciidoc/docbook-xsl/"))))
+ ;; Fix docbook references.
(with-directory-excursion "docs/reference"
(substitute* (find-files "." "\\..*ml$")
(("http://www.oasis-open.org/docbook/xml/4.5/")
@@ -8816,11 +8839,17 @@ easy, safe, and automatic.")
(("http://www.oasis-open.org/docbook/xml/4.1.2/")
(string-append (assoc-ref inputs "docbook-xml-4.1.2")
"/xml/dtd/docbook/"))))))
- (add-before 'check 'pre-check
- (lambda _
- ;; Some tests expect to write to $HOME.
- (setenv "HOME" "/tmp")
- #t))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ ;; Tests write to $HOME.
+ (setenv "HOME" (getcwd))
+ ;; Tests look for $XDG_RUNTIME_DIR.
+ (setenv "XDG_RUNTIME_DIR" (getcwd))
+ ;; For missing '/etc/machine-id'.
+ (setenv "DBUS_FATAL_WARNINGS" "0")
+ ;; Tests require d-bus session.
+ (invoke "dbus-launch" "ninja" "test"))))
(add-after 'install 'move-doc
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
@@ -8830,7 +8859,8 @@ easy, safe, and automatic.")
(string-append out "/share/gtk-doc")
(string-append doc "/share/gtk-doc"))))))))
(native-inputs
- `(("docbook-xml-4.1.2" ,docbook-xml-4.1.2)
+ `(("asciidoc" ,asciidoc)
+ ("docbook-xml-4.1.2" ,docbook-xml-4.1.2)
("docbook-xml-4.3" ,docbook-xml-4.3)
("docbook-xml-4.5" ,docbook-xml)
("docbook-xsl" ,docbook-xsl)
@@ -8841,10 +8871,13 @@ easy, safe, and automatic.")
("intltool" ,intltool)
("pkg-config" ,pkg-config)
("python" ,python-wrapper) ; for patch-shebangs phase
- ("vala" ,vala)))
+ ("python-tappy" ,python-tappy)
+ ("vala" ,vala)
+ ("xsltproc" ,libxslt)))
(inputs
`(("bash-completion" ,bash-completion) ; for installing bash-completion
files
("dbus" ,dbus)
+ ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
("sqlite" ,sqlite)
("libxml2" ,libxml2)
("icu4c" ,icu4c) ; libunistring gets miner-miner-fs test to fail.
- 93/122: gnu: gst-plugins-base: Update to 1.18.4., (continued)
- 93/122: gnu: gst-plugins-base: Update to 1.18.4., guix-commits, 2021/06/11
- 94/122: gnu: gst-plugins-base: Enable more features., guix-commits, 2021/06/11
- 96/122: gnu: gst-plugins-ugly: Update to 1.18.4., guix-commits, 2021/06/11
- 104/122: gnu: docbook-xsl: Update to 1.79.2., guix-commits, 2021/06/11
- 109/122: gnu: gnutls: Enable PKCS#11 support., guix-commits, 2021/06/11
- 114/122: gnu: gtkmm@2: Override inheritance of certain changes from gtkmm., guix-commits, 2021/06/11
- 113/122: gnu: gtkmm: Change build-system and adjust arguments accordingly., guix-commits, 2021/06/11
- 106/122: gnu: glib-networking: Update to 2.68.0., guix-commits, 2021/06/11
- 116/122: gnu: libepoxy: Propagate mesa., guix-commits, 2021/06/11
- 118/122: gnu: tracker: Enable documentation., guix-commits, 2021/06/11
- 119/122: gnu: tracker: Update to 3.1.1 and make related changes.,
guix-commits <=
- 121/122: gnu: tracker-miners: Update to 3.1.1 and make related changes., guix-commits, 2021/06/11
- 65/122: gnu: at-spi2-atk: Update to 2.38.0., guix-commits, 2021/06/11
- 70/122: gnu: wayland: Update to 1.19.0., guix-commits, 2021/06/11
- 73/122: gnu: wayland-protocols: Update description., guix-commits, 2021/06/11
- 75/122: gnu: gtk+-2: Enable tests., guix-commits, 2021/06/11
- 84/122: gnu: ibus: Update to 1.5.24., guix-commits, 2021/06/11
- 90/122: gnu: faac: Correct source uri., guix-commits, 2021/06/11
- 97/122: gnu: gst-libav: Update to 1.18.4., guix-commits, 2021/06/11
- 112/122: gnu: python-pygobject: Update to 3.40.1., guix-commits, 2021/06/11
- 111/122: gnu: python-pycairo: Update to 1.20.0., guix-commits, 2021/06/11