Without this patch, alpine silently(?) complains until a$HOME/.pinerc exists: Global config "/gnu/store/57k152vswq14m2ialxacmnrkar17vcan-alpine-2.21/lib/pine.conf" is defaultPersonal config "/home/user/.pinerc" is defaultExceptions config not set on cmdline checking for default "/home/user/.pinercex" in pinerc dir no, there is no exceptions config Global config: /gnu/store/57k152vswq14m2ialxacmnrkar17vcan-alpine-2.21/lib/pine.conf Personal config: /home/user/.pinerc Exceptions config: <none> Fixed config: /gnu/store/57k152vswq14m2ialxacmnrkar17vcan-alpine-2.21/lib/pine.conf.fixed reading_pinerc "/gnu/store/57k152vswq14m2ialxacmnrkar17vcan-alpine-2.21/lib/pine.conf" so_get error: /gnu/store/57k152vswq14m2ialxacmnrkar17vcan-alpine-2.21/lib/pine.conf : No such file or directory Open failed: No such file or directory reading_pinerc "/home/user/.pinerc" Read 24568 characters: reading_pinerc "/gnu/store/57k152vswq14m2ialxacmnrkar17vcan-alpine-2.21/lib/pine.conf.fixed" so_get error: /gnu/store/57k152vswq14m2ialxacmnrkar17vcan-alpine-2.21/lib/pine.conf.fixed : No such file or directory Open failed: No such file or directory With this patch, we profive these missing files.The way they are created is copied from slackware and seems to bethe recommended way of providing them, as no such file exists inthe distribution of alpine.-- https://pragmatique.xyzPGP: https://people.pragmatique.xyz/ng0/
From 7a7995cb5718c133124ae29fd8276fbe2ff57a35 Mon Sep 17 00:00:00 2001From: ng0 <email@example.com>Date: Tue, 16 May 2017 22:28:57 +0000Subject: [PATCH] gnu: alpine: Add 'generate-system-pine.conf' phase. * gnu/packages/mail.scm (alpine)[arguments]: Add new 'generate-system-pine.conf'phase to provide system-wide configs which are expected by alpine.--- gnu/packages/mail.scm | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-)
Toggle diff (33 lines)diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scmindex b4dfef6ec..ecb49af0b 100644--- a/gnu/packages/mail.scm+++ b/gnu/packages/mail.scm@@ -2264,7 +2264,25 @@ operators and scripters.") (substitute* (list "alpine/Makefile.in" "web/src/alpined.d/Makefile.in") (("`date`") "1970-01-01"))- #t)))))+ #t))+ (add-after 'install 'generate-system-pine.conf+ (lambda* (#:key outputs #:allow-other-keys)+ ;; Alpine will silently complain if no system-wide+ ;; default config is present. This is the recommended+ ;; way of generating such a config.+ (let* ((out (assoc-ref outputs "out"))+ (alpine (string-append out "/bin/alpine"))+ (lib (string-append out "/lib")))+ (mkdir-p lib)+ (with-output-to-file+ (string-append lib "/pine.conf")+ (lambda _+ (zero? (system* alpine "-conf"))+ out))+ ;; pine.conf.fixed is expected aswell, so pine.conf.fixed+ ;; is equal to pine.conf in our system.+ (symlink (string-append lib "/pine.conf")+ (string-append lib "/pine.conf.fixed")))))))) (inputs `(("ncurses" ,ncurses) ("openssl" ,openssl)-- 2.13.0
Toggle quote (3 lines)> Without this patch, alpine silently(?) complains until a> $HOME/.pinerc exists:
How does it complain “silently”? :)
Toggle quote (4 lines)> The way they are created is copied from slackware and seems to be> the recommended way of providing them, as no such file exists in> the distribution of alpine.
Recommended by whom? I see in the manual  that $prefix/lib/pine.conf (Pine's global configuration file) $prefix/lib/pine.conf.fixed (Non-overridable global configuration file) should exist, but it doesn’t say what should be in them. Could theyjust be empty? Given that one of them is for non-overridable globalconfigurations I’d rather not fill them. : https://www.washington.edu/alpine/tech-notes/installation.html#files-unix WDYT? -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAChttps://elephly.net
Toggle quote (8 lines)> > ng0 <firstname.lastname@example.org> writes:> > > Without this patch, alpine silently(?) complains until a> > $HOME/.pinerc exists:> > How does it complain “silently”? :)
I removed my .pinerc symlink and this is what happens. I should'vedescribed the problem before I sent this: Upon first start, a .pinerc is generated from a global file, butwe also get a ".pine-debug1" and with every start a new one thiswith a number increase. Is it just because of these files? I'm nota alpine user.. This .pine-debug1 is appended. Twice because I forgothow to remove attachments. 1: I _guess_ ... the existing file is actually not existing so I don'tknow what alpine does here. Fixing it the way I did it seemed likethe first possible solution to me.
Toggle quote (6 lines)> > The way they are created is copied from slackware and seems to be> > the recommended way of providing them, as no such file exists in> > the distribution of alpine.> > Recommended by whom? I see in the manual  that
Actually this is a comment in a file I can longer find (slackbuilds?)which came up when I searched for this problem.
Toggle quote (8 lines)> $prefix/lib/pine.conf (Pine's global configuration file)> $prefix/lib/pine.conf.fixed (Non-overridable global configuration file)> > should exist, but it doesn’t say what should be in them. Could they> just be empty? Given that one of them is for non-overridable global> configurations I’d rather not fill them.> > : https://www.washington.edu/alpine/tech-notes/installation.html#files-unix
^Keep in mind that this |-- is not the alpine we use.If it is
Toggle quote (3 lines)> I'm not using alpine, so I'll leave this bug open for anyone who> uses alpine and wants to solve it.
I think that the bug report as it is now is not actionable. Sinceneither of us are using alpine and it is not clear to me that this patchclearly improves the package, I’m closing this now. If there really is a bug in our alpine package, please submit a bug witha clear summary and problem description to email@example.com. Thanks! -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAChttps://elephly.net