[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/18: gnu: public-inbox: Some packaging fixes
From: |
guix-commits |
Subject: |
03/18: gnu: public-inbox: Some packaging fixes |
Date: |
Wed, 1 Jun 2022 17:29:17 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit c017acec3421d10ceceffbd68312083645562ce5
Author: Thiago Jung Bauermann <bauermann@kolabnow.com>
AuthorDate: Sun May 15 19:02:28 2022 -0300
gnu: public-inbox: Some packaging fixes
The file ‘script/public-inbox-compact’ doesn't call ‘xapian-compact’
directly
anymore, so the substitution in the ‘qualify-paths’ phase doesn't do
anything.
Now there's a reference to ‘xapian-compact’ in ‘lib/PublicInbox/Xapcmd.pm’,
so substitute the path there.
And move xapian from native-inputs to inputs and use its input path in the
substitution, since ‘xapian-compact’ is called during normal execution of
public-inbox.
Also add ‘bash-minimal’ to the package's inputs, since it uses
‘wrap-program’.
Finally, take the opportunity to change build phases to not return #t
unconditionally, since that isn't necessary anymore.
* gnu/packages/mail.scm (public-inbox)[arguments]<#:phases>: Don't return #t
from each phase.
{qualify-paths}: Substitute ‘xapian-compact’ path in the correct file. Use
‘search-input-file’ rather than ‘which’ to find it.
[native-inputs]: Move ‘xapian’ from here ...
[inputs]: ... to here. Add ‘bash-minimal’.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/mail.scm | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index f1af69faab..8312aca2e0 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -46,6 +46,7 @@
;;; Copyright © 2021 Philip McGrath <philip@philipmcgrath.com>
;;; Copyright © 2022 Andrew Tropin <andrew@trop.in>
;;; Copyright © 2022 Justin Veilleux <terramorpha@cock.li>
+;;; Copyright © 2022 Thiago Jung Bauermann <bauermann@kolabnow.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -4084,12 +4085,12 @@ Git and exports them in maildir format or to an MDA
through a pipe.")
'(#:phases
(modify-phases %standard-phases
(add-before 'configure 'qualify-paths
- (lambda _
+ (lambda* (#:key inputs #:allow-other-keys)
;; Use absolute paths for 'xapian-compact'.
- (let ((xapian-compact (which "xapian-compact")))
- (substitute* "script/public-inbox-compact"
- (("xapian-compact") xapian-compact)))
- #t))
+ (substitute* "lib/PublicInbox/Xapcmd.pm"
+ (("'xapian-compact'")
+ (format #f "'~a'" (search-input-file inputs
+
"/bin/xapian-compact"))))))
(add-before 'check 'pre-check
(lambda _
(substitute* "t/spawn.t"
@@ -4100,8 +4101,7 @@ Git and exports them in maildir format or to an MDA
through a pipe.")
;; XXX: This test fails due to zombie process is not reaped by
;; the builder.
(substitute* "t/httpd-unix.t"
- (("^SKIP: \\{") "SKIP: { skip('Guix');"))
- #t))
+ (("^SKIP: \\{") "SKIP: { skip('Guix');"))))
(add-after 'install 'wrap-programs
(lambda* (#:key inputs outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
@@ -4116,14 +4116,13 @@ Git and exports them in maildir format or to an MDA
through a pipe.")
;; perl module.
`("PATH" ":" prefix
(,(dirname (search-input-file inputs "/bin/git"))))))
- (find-files (string-append out "/bin"))))
- #t)))))
+ (find-files (string-append out "/bin")))))))))
(native-inputs
- (list xapian
- ;; For testing.
+ (list ;; For testing.
lsof openssl))
(inputs
- (list git
+ (list bash-minimal
+ git
perl-dbd-sqlite
perl-dbi
perl-email-address-xs
@@ -4145,7 +4144,8 @@ Git and exports them in maildir format or to an MDA
through a pipe.")
;; ("highlight" ,highlight)
;; For testing.
perl-ipc-run
- perl-xml-feed))
+ perl-xml-feed
+ xapian))
(home-page "https://public-inbox.org/README.html")
(synopsis "Archive mailing lists in Git repositories")
(description
- branch master updated (572bc6d7bd -> 582b4bb4ce), guix-commits, 2022/06/01
- 01/18: shell: '--export-manifest -D x -D y' generates a valid manifest., guix-commits, 2022/06/01
- 08/18: gnu: libstrophe: Improve package definition., guix-commits, 2022/06/01
- 09/18: gnu: profanity: Update to 0.12.1., guix-commits, 2022/06/01
- 10/18: gnu: libmesode: Remove package., guix-commits, 2022/06/01
- 04/18: gnu: Add perl-socket-msghdr, guix-commits, 2022/06/01
- 02/18: gnu: Add emacs-bfuture., guix-commits, 2022/06/01
- 03/18: gnu: public-inbox: Some packaging fixes,
guix-commits <=
- 05/18: gnu: public-inbox: Update to 1.8.0., guix-commits, 2022/06/01
- 06/18: gnu: emacs-doom-themes: Include extension files., guix-commits, 2022/06/01
- 14/18: gnu: Add python-osmnx, guix-commits, 2022/06/01
- 15/18: gnu: Add freerct., guix-commits, 2022/06/01
- 07/18: gnu: libstrophe: Update to 0.12.0., guix-commits, 2022/06/01
- 13/18: gnu: python-rtree: Update to 1.0.0., guix-commits, 2022/06/01
- 17/18: gnu: smlnj: Use HTTPS home page., guix-commits, 2022/06/01
- 16/18: gnu: Add cdecl., guix-commits, 2022/06/01
- 18/18: doc: cookbook: Refer to the "Writing Manifests" manual node., guix-commits, 2022/06/01
- 11/18: gnu: profanity: Remove input labels., guix-commits, 2022/06/01