From: "pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de>
To: Efraim Flashner <efraim@flashner.co.il>
Cc: guix-devel@gnu.org, pjotr2019@thebird.nl
Subject: Re: Mailman packaging (was: Re: Python package naming: Dots vs hyphens)
Date: Wed, 13 Nov 2019 22:16:55 +0000 [thread overview]
Message-ID: <20191113221655.lihjxm5xafmstfps@florianbeaglebone.fritz.box> (raw)
In-Reply-To: <20191106131833.5a2p7glowry2dhpk@pelzflorian.localdomain>
[-- Attachment #1: Type: text/plain, Size: 191 bytes --]
Hello Efraim!
I need the attached patch to be able to run `mailman start`, `mailman
info` etc. I will continue to set up mailman on a server of mine and
then report back.
Regards,
Florian
[-- Attachment #2: 0001-gn-mailman-Patch-configuration-to-refer-to-the-right.patch --]
[-- Type: text/x-diff, Size: 2418 bytes --]
From 9945d2203362851fb24a829f2a27eead0273ffdc Mon Sep 17 00:00:00 2001
From: Florian Pelz <pelzflorian@pelzflorian.de>
Date: Sun, 10 Nov 2019 11:38:16 +0100
Subject: [PATCH] gn: mailman: Patch configuration to refer to the right
binaries.
* gn/packages/mailman.scm (mailman): Patch schema.cfg.
---
gn/packages/mailman.scm | 29 ++++++++++++++++++++++++++++-
1 file changed, 28 insertions(+), 1 deletion(-)
diff --git a/gn/packages/mailman.scm b/gn/packages/mailman.scm
index 6fd6291..359fdf6 100644
--- a/gn/packages/mailman.scm
+++ b/gn/packages/mailman.scm
@@ -16,7 +16,8 @@
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages python-web)
#:use-module (gnu packages time)
- #:use-module (gnu packages tls))
+ #:use-module (gnu packages tls)
+ #:use-module (gnu packages web-browsers))
(define-public mailman
(package
@@ -30,6 +31,32 @@
(base32
"1qph9i93ndahfxi3bb2sd0kjm2c0pkh844ai6zacfmvihl1k3pvy"))))
(build-system python-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-config
+ (lambda* (#:key outputs inputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out"))
+ (lynx (assoc-ref inputs "lynx")))
+ (substitute* "src/mailman/config/schema.cfg"
+ (("bin_dir:.*") (string-append "bin_dir: " out "/bin\n"))
+ (("html_to_plain_text_command:.*")
+ (string-append "html_to_plain_text_command:" lynx "/bin/lynx"
+ " -dump $filename\n")))
+ #t)))
+ (add-after 'wrap 'restore-helper-progs
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (bin (string-append out "/bin")))
+ ;; Mailman calls os.execle on these, which retains
+ ;; PYTHONPATH anyway and fails with wrappers.
+ (rename-file (string-append bin "/.master-real")
+ (string-append bin "/master"))
+ (rename-file (string-append bin "/.runner-real")
+ (string-append bin "/runner"))
+ #t))))))
+ (inputs
+ `(("lynx" ,lynx)))
(propagated-inputs
`(("python-aiosmtpd" ,python-aiosmtpd)
("python-alembic" ,python-alembic)
--
2.21.0
next prev parent reply other threads:[~2019-11-13 22:17 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-06 6:49 Python package naming: Dots vs hyphens pelzflorian (Florian Pelz)
2019-11-06 7:19 ` Efraim Flashner
2019-11-06 13:13 ` pelzflorian (Florian Pelz)
2019-11-07 7:34 ` Efraim Flashner
2019-11-06 13:18 ` Mailman packaging (was: Re: Python package naming: Dots vs hyphens) pelzflorian (Florian Pelz)
2019-11-13 22:16 ` pelzflorian (Florian Pelz) [this message]
2019-11-18 10:13 ` Efraim Flashner
2019-11-18 13:14 ` pelzflorian (Florian Pelz)
2019-11-20 16:36 ` Pjotr Prins
2021-09-29 16:34 ` Christine Lemmer-Webber
2021-09-30 7:54 ` pelzflorian (Florian Pelz)
2019-11-06 13:53 ` Python package naming: Dots vs hyphens Tobias Geerinckx-Rice
2019-11-10 10:57 ` Andreas Enge
2019-11-11 9:30 ` Efraim Flashner
2019-11-11 10:24 ` pelzflorian (Florian Pelz)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191113221655.lihjxm5xafmstfps@florianbeaglebone.fritz.box \
--to=pelzflorian@pelzflorian.de \
--cc=efraim@flashner.co.il \
--cc=guix-devel@gnu.org \
--cc=pjotr2019@thebird.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.