all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#61889] [PATCH] gnu: Add mairix. (WIP)
@ 2023-03-01  3:55 Martin Marshall
  2023-03-01  4:02 ` Martin Marshall
  2023-03-10 23:29 ` [bug#61889] [PATCH] gnu: Add mairix Martin Marshall
  0 siblings, 2 replies; 4+ messages in thread
From: Martin Marshall @ 2023-03-01  3:55 UTC (permalink / raw)
  To: 61889; +Cc: Martin Marshall

* gnu/packages/mail.scm (mairix): Add variable
---
Greetings,

Building with "--system=armhf" fails the check phase.  However,
building with "--system=i686" or "--system=aarch64" succeeds, as does
building without emulation on x86_64.

On an actual armhf device running a debian-based OS (a "Beaglebone
Black" single-board-computer), compilation via "./configure" and
"make" was successful.  And all tests passed "make check".  But that
only proves the upstream source can work on armhf.  It doesn't explain
why the "make check" fails for armhf on Guix.

Any suggestions or fixes for getting this package definition ready to
commit would be appreciated.

 gnu/packages/mail.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index 6ef4c6fdab..3cb3b4cc3f 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -408,6 +408,40 @@ (define-public mailutils
      ;; Libraries are under LGPLv3+, and programs under GPLv3+.
      (list license:gpl3+ license:lgpl3+))))
 
+(define-public mairix
+  (let ((commit "1cc06f4a73ba4b940008c1ffc398d2ac708cd6d6")
+        (revision "0"))
+    (package
+      (name "mairix")
+      (version (git-version "0.24" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/vandry/mairix")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "12bhmk5j77cl3vjda48cmdysq1c2yjzvfv6zm4hlky6d5g3l49d7"))))
+      (build-system gnu-build-system)
+      (arguments
+       (list #:parallel-tests? #f
+             #:phases #~(modify-phases %standard-phases
+                          (replace 'configure
+                            (lambda* (#:key inputs #:allow-other-keys)
+                              (setenv "LC_ALL" "en_US.UTF-8")
+                              (invoke "./configure"
+                                      (string-append "--prefix="
+                                                     #$output)))))))
+      (propagated-inputs (list zlib openssl bzip2 xz))
+      (native-inputs (list flex bison))
+      (home-page "https://github.com/vandry/mairix")
+      (synopsis "Program for indexing and searching email messages")
+      (description
+       "Mairix is a program for indexing and searching email messages stored in
+Maildir, MH, MMDF or mbox folders.")
+      (license license:gpl2))))
+
 (define-public go-gitlab.com-shackra-goimapnotify
   (package
     (name "go-gitlab.com-shackra-goimapnotify")
-- 
2.39.1





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

* [bug#61889] [PATCH] gnu: Add mairix. (WIP)
  2023-03-01  3:55 [bug#61889] [PATCH] gnu: Add mairix. (WIP) Martin Marshall
@ 2023-03-01  4:02 ` Martin Marshall
  2023-03-10 23:29 ` [bug#61889] [PATCH] gnu: Add mairix Martin Marshall
  1 sibling, 0 replies; 4+ messages in thread
From: Martin Marshall @ 2023-03-01  4:02 UTC (permalink / raw)
  To: Martin Marshall; +Cc: 61889


Correction to the above, "--system=armhf" should read as
"--system=armhf-linux", and likewise for the other "--system="
arguments.

Best regards.

-- 
Martin Marshall
law@martinmarshall.com




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

* [bug#61889] [PATCH] gnu: Add mairix.
  2023-03-01  3:55 [bug#61889] [PATCH] gnu: Add mairix. (WIP) Martin Marshall
  2023-03-01  4:02 ` Martin Marshall
@ 2023-03-10 23:29 ` Martin Marshall
  2023-04-02 21:16   ` bug#61889: " Nicolas Goaziou
  1 sibling, 1 reply; 4+ messages in thread
From: Martin Marshall @ 2023-03-10 23:29 UTC (permalink / raw)
  To: 61889

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

Per Guix QA, all builds succeed except for "i586-gnu".  Still not sure
why my system fails the check phase when emulating "armhf-linux".  Will
attribute to user-error.

Attached is an updated patch which builds successfully on my
x86_64-linux system.

Changes from the original patch:
* Moved propagated-inputs to inputs.
* Added perl to inputs.
* Removed (setenv "LC_ALL" "en_US.UTF-8") from configure phase.
* Added (supported-systems ...) at the end to reflect the systems
indicated by Guix QA as building correctly.

Best regards.

-- 
Martin Marshall
law@martinmarshall.com


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: * gnu/packages/mail.scm (mairix): Add variable --]
[-- Type: text/x-patch, Size: 2111 bytes --]

diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index 6ef4c6fdab..95dee43df0 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -408,6 +408,46 @@ (define-public mailutils
      ;; Libraries are under LGPLv3+, and programs under GPLv3+.
      (list license:gpl3+ license:lgpl3+))))
 
+(define-public mairix
+  (let ((commit "1cc06f4a73ba4b940008c1ffc398d2ac708cd6d6")
+        (revision "0"))
+    (package
+      (name "mairix")
+      (version (git-version "0.24" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/vandry/mairix")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "12bhmk5j77cl3vjda48cmdysq1c2yjzvfv6zm4hlky6d5g3l49d7"))))
+      (build-system gnu-build-system)
+      (arguments
+       (list #:parallel-tests? #f
+             #:phases #~(modify-phases %standard-phases
+                          (replace 'configure
+                            (lambda* (#:key inputs #:allow-other-keys)
+                              (invoke "./configure"
+                                      (string-append "--prefix="
+                                                     #$output)))))))
+      (inputs (list bzip2
+                    openssl
+                    perl
+                    xz
+                    zlib))
+      (native-inputs (list bison
+                           flex))
+      (home-page "https://github.com/vandry/mairix")
+      (synopsis "Program for indexing and searching email messages")
+      (description
+       "Mairix is a program for indexing and searching email messages stored in
+Maildir, MH, MMDF or mbox folders.")
+      (license license:gpl2)
+      (supported-systems (list "x86_64-linux" "i686-linux" "aarch64-linux"
+                               "armhf-linux" "powerpc64le-linux")))))
+
 (define-public go-gitlab.com-shackra-goimapnotify
   (package
     (name "go-gitlab.com-shackra-goimapnotify")

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

* bug#61889: [PATCH] gnu: Add mairix.
  2023-03-10 23:29 ` [bug#61889] [PATCH] gnu: Add mairix Martin Marshall
@ 2023-04-02 21:16   ` Nicolas Goaziou
  0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Goaziou @ 2023-04-02 21:16 UTC (permalink / raw)
  To: Martin Marshall; +Cc: 61889-done

Hello,

Martin Marshall <law@martinmarshall.com> writes:

> Attached is an updated patch which builds successfully on my
> x86_64-linux system.

Applied. Thank you.
>

> * Added (supported-systems ...) at the end to reflect the systems
> indicated by Guix QA as building correctly.

I removed the supported-systems field since it is not strictly necessary here.

Regards,
-- 
Nicolas Goaziou




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

end of thread, other threads:[~2023-04-02 21:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-01  3:55 [bug#61889] [PATCH] gnu: Add mairix. (WIP) Martin Marshall
2023-03-01  4:02 ` Martin Marshall
2023-03-10 23:29 ` [bug#61889] [PATCH] gnu: Add mairix Martin Marshall
2023-04-02 21:16   ` bug#61889: " Nicolas Goaziou

Code repositories for project(s) associated with this external index

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

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.