* [bug#61780] [PATCH 1/3] gnu: tracker: Don't wrap binaries in libexec/tracker3 directory.
2023-02-25 8:09 [bug#61780] [PATCH 0/3] Fix Tracker and update it Liliana Marie Prikler
@ 2023-02-25 6:46 ` Liliana Marie Prikler
2023-02-25 6:51 ` [bug#61780] [PATCH 2/3] gnu: tracker: Use G-Expressions in arguments Liliana Marie Prikler
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Liliana Marie Prikler @ 2023-02-25 6:46 UTC (permalink / raw)
To: 61780
These binaries are mere symlinks to the already wrapped tracker command.
They are used in a command lookup via argv[0], which wrapping them breaks.
* gnu/packages/gnome.scm (tracker)[#:phases]: Add ‘unwrap-libexec’.
---
gnu/packages/gnome.scm | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index ff53781b7c..dd9b80ea67 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -9707,7 +9707,18 @@ (define-public tracker
;; Some tests expect to write to $HOME.
(setenv "HOME" "/tmp")
(apply invoke "dbus-run-session" "--" "meson" "test"
- "--print-errorlogs" test-options)))))))
+ "--print-errorlogs" test-options))))
+ (add-after 'glib-or-gtk-wrap 'unwrap-libexec
+ (lambda* (#:key outputs #:allow-other-keys)
+ (with-directory-excursion (string-append (assoc-ref outputs "out")
+ "/libexec/tracker3")
+ (for-each
+ (lambda (f)
+ (let ((real (string-append "." (basename f) "-real")))
+ (when (file-exists? real)
+ (delete-file f)
+ (rename-file real f))))
+ (find-files "."))))))))
(native-inputs
(list gettext-minimal
`(,glib "bin")
--
2.39.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [bug#61780] [PATCH 2/3] gnu: tracker: Use G-Expressions in arguments.
2023-02-25 8:09 [bug#61780] [PATCH 0/3] Fix Tracker and update it Liliana Marie Prikler
2023-02-25 6:46 ` [bug#61780] [PATCH 1/3] gnu: tracker: Don't wrap binaries in libexec/tracker3 directory Liliana Marie Prikler
@ 2023-02-25 6:51 ` Liliana Marie Prikler
2023-02-25 8:08 ` [bug#61780] [PATCH 3/3] gnu: tracker: Update to 3.4.2 Liliana Marie Prikler
2023-03-05 8:57 ` bug#61780: [PATCH 0/3] Fix Tracker and update it Liliana Marie Prikler
3 siblings, 0 replies; 5+ messages in thread
From: Liliana Marie Prikler @ 2023-02-25 6:51 UTC (permalink / raw)
To: 61780
* gnu/packages/gnome.scm (tracker)[arguments]: Change to list of
G-Expressions. Re-indent.
---
gnu/packages/gnome.scm | 93 +++++++++++++++++++++---------------------
1 file changed, 47 insertions(+), 46 deletions(-)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index dd9b80ea67..00d4190727 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -9673,52 +9673,53 @@ (define-public tracker
"0r144kdqxdzs51qn495vablzf1zxkhkk6imrlrzj9wiqwc2gg520"))))
(build-system meson-build-system)
(arguments
- `(#:glib-or-gtk? #t
- #:test-options (list ,@(if (target-riscv64?)
- `("--timeout-multiplier" "5")
- '()))
- #:configure-flags
- ;; Otherwise, the RUNPATH will lack the final path component.
- (list (string-append "-Dc_link_args=-Wl,-rpath="
- (assoc-ref %outputs "out") "/lib:"
- (assoc-ref %outputs "out") "/lib/tracker-3.0")
- "-Ddocs=false"
- "-Dsystemd_user_services=false")
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'patch-paths
- (lambda* (#:key inputs #:allow-other-keys)
- (substitute* "utils/trackertestutils/__main__.py"
- (("/bin/bash")
- (search-input-file inputs "bin/bash")))))
- (add-before 'configure 'set-shell
- (lambda _
- (setenv "SHELL" (which "bash"))))
- (add-before 'configure 'fix-paths
- (lambda* (#:key inputs #:allow-other-keys)
- (let* ((manpage "/etc/asciidoc/docbook-xsl/manpage.xsl")
- (file (search-input-file inputs manpage)))
- (substitute* "docs/manpages/meson.build"
- (("/etc/asciidoc[^']+")
- file)))))
- (replace 'check
- (lambda* (#:key tests? test-options #:allow-other-keys)
- (when tests?
- ;; Some tests expect to write to $HOME.
- (setenv "HOME" "/tmp")
- (apply invoke "dbus-run-session" "--" "meson" "test"
- "--print-errorlogs" test-options))))
- (add-after 'glib-or-gtk-wrap 'unwrap-libexec
- (lambda* (#:key outputs #:allow-other-keys)
- (with-directory-excursion (string-append (assoc-ref outputs "out")
- "/libexec/tracker3")
- (for-each
- (lambda (f)
- (let ((real (string-append "." (basename f) "-real")))
- (when (file-exists? real)
- (delete-file f)
- (rename-file real f))))
- (find-files "."))))))))
+ (list
+ #:glib-or-gtk? #t
+ #:test-options `(list ,@(if (target-riscv64?)
+ `("--timeout-multiplier" "5")
+ '()))
+ #:configure-flags
+ ;; Otherwise, the RUNPATH will lack the final path component.
+ #~(list (string-append "-Dc_link_args=-Wl,-rpath="
+ #$output "/lib:"
+ #$output "/lib/tracker-3.0")
+ "-Ddocs=false"
+ "-Dsystemd_user_services=false")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-paths
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "utils/trackertestutils/__main__.py"
+ (("/bin/bash")
+ (search-input-file inputs "bin/bash")))))
+ (add-before 'configure 'set-shell
+ (lambda _
+ (setenv "SHELL" (which "bash"))))
+ (add-before 'configure 'fix-paths
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let* ((manpage "/etc/asciidoc/docbook-xsl/manpage.xsl")
+ (file (search-input-file inputs manpage)))
+ (substitute* "docs/manpages/meson.build"
+ (("/etc/asciidoc[^']+")
+ file)))))
+ (replace 'check
+ (lambda* (#:key tests? test-options #:allow-other-keys)
+ (when tests?
+ ;; Some tests expect to write to $HOME.
+ (setenv "HOME" "/tmp")
+ (apply invoke "dbus-run-session" "--" "meson" "test"
+ "--print-errorlogs" test-options))))
+ (add-after 'glib-or-gtk-wrap 'unwrap-libexec
+ (lambda* (#:key outputs #:allow-other-keys)
+ (with-directory-excursion (string-append (assoc-ref outputs "out")
+ "/libexec/tracker3")
+ (for-each
+ (lambda (f)
+ (let ((real (string-append "." (basename f) "-real")))
+ (when (file-exists? real)
+ (delete-file f)
+ (rename-file real f))))
+ (find-files "."))))))))
(native-inputs
(list gettext-minimal
`(,glib "bin")
--
2.39.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [bug#61780] [PATCH 3/3] gnu: tracker: Update to 3.4.2.
2023-02-25 8:09 [bug#61780] [PATCH 0/3] Fix Tracker and update it Liliana Marie Prikler
2023-02-25 6:46 ` [bug#61780] [PATCH 1/3] gnu: tracker: Don't wrap binaries in libexec/tracker3 directory Liliana Marie Prikler
2023-02-25 6:51 ` [bug#61780] [PATCH 2/3] gnu: tracker: Use G-Expressions in arguments Liliana Marie Prikler
@ 2023-02-25 8:08 ` Liliana Marie Prikler
2023-03-05 8:57 ` bug#61780: [PATCH 0/3] Fix Tracker and update it Liliana Marie Prikler
3 siblings, 0 replies; 5+ messages in thread
From: Liliana Marie Prikler @ 2023-02-25 8:08 UTC (permalink / raw)
To: 61780
* gnu/packages/gnome.scm (tracker): Update to 3.4.2.
---
gnu/packages/gnome.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 00d4190727..47d895a8c7 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -9662,7 +9662,7 @@ (define-public gnome-autoar
(define-public tracker
(package
(name "tracker")
- (version "3.3.3")
+ (version "3.4.2")
(source (origin
(method url-fetch)
(uri (string-append "mirror://gnome/sources/tracker/"
@@ -9670,7 +9670,7 @@ (define-public tracker
"tracker-" version ".tar.xz"))
(sha256
(base32
- "0r144kdqxdzs51qn495vablzf1zxkhkk6imrlrzj9wiqwc2gg520"))))
+ "0c8ppm03b9r6lyxalama8sjmw3km4jibbswqra7qf17pli1g2vaf"))))
(build-system meson-build-system)
(arguments
(list
--
2.39.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [bug#61780] [PATCH 0/3] Fix Tracker and update it
@ 2023-02-25 8:09 Liliana Marie Prikler
2023-02-25 6:46 ` [bug#61780] [PATCH 1/3] gnu: tracker: Don't wrap binaries in libexec/tracker3 directory Liliana Marie Prikler
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Liliana Marie Prikler @ 2023-02-25 8:09 UTC (permalink / raw)
To: 61780
Hi Guix,
I noticed that the tracker3 command line utility which ships with our
tracker package is a little broken. I decided to fix the issue behind
it and also update the package alongside.
I'm currently running the builds, but since more than 100 packages
appear to be affected, I'll only do native builds. Let's cross our
fingers that CI also thinks it's fine :)
Cheers
Liliana Marie Prikler (3):
gnu: tracker: Don't wrap binaries in libexec/tracker3 directory.
gnu: tracker: Use G-Expressions in arguments.
gnu: tracker: Update to 3.4.2.
gnu/packages/gnome.scm | 86 ++++++++++++++++++++++++------------------
1 file changed, 49 insertions(+), 37 deletions(-)
base-commit: ea2fa86f31a83195ac789a6d92bcaee8e53e4397
--
2.39.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#61780: [PATCH 0/3] Fix Tracker and update it
2023-02-25 8:09 [bug#61780] [PATCH 0/3] Fix Tracker and update it Liliana Marie Prikler
` (2 preceding siblings ...)
2023-02-25 8:08 ` [bug#61780] [PATCH 3/3] gnu: tracker: Update to 3.4.2 Liliana Marie Prikler
@ 2023-03-05 8:57 ` Liliana Marie Prikler
3 siblings, 0 replies; 5+ messages in thread
From: Liliana Marie Prikler @ 2023-03-05 8:57 UTC (permalink / raw)
To: 61780-done
Am Samstag, dem 25.02.2023 um 09:09 +0100 schrieb Liliana Marie
Prikler:
> Hi Guix,
>
> I noticed that the tracker3 command line utility which ships with our
> tracker package is a little broken. I decided to fix the issue
> behind it and also update the package alongside.
>
> I'm currently running the builds, but since more than 100 packages
> appear to be affected, I'll only do native builds. Let's cross our
> fingers that CI also thinks it's fine :)
CI does report some newly failing builds, but those new failures appear
to already have existed (???)
Anyway, I pushed this series now.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-03-05 8:58 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-25 8:09 [bug#61780] [PATCH 0/3] Fix Tracker and update it Liliana Marie Prikler
2023-02-25 6:46 ` [bug#61780] [PATCH 1/3] gnu: tracker: Don't wrap binaries in libexec/tracker3 directory Liliana Marie Prikler
2023-02-25 6:51 ` [bug#61780] [PATCH 2/3] gnu: tracker: Use G-Expressions in arguments Liliana Marie Prikler
2023-02-25 8:08 ` [bug#61780] [PATCH 3/3] gnu: tracker: Update to 3.4.2 Liliana Marie Prikler
2023-03-05 8:57 ` bug#61780: [PATCH 0/3] Fix Tracker and update it Liliana Marie Prikler
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).