all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Arun Isaac <arunisaac@systemreboot.net>
To: Sarah Morgensen <iskarian@mgsn.dev>
Cc: 49494@debbugs.gnu.org
Subject: [bug#49494] [PATCH 0/7] Add nncp
Date: Mon, 02 Aug 2021 01:46:10 +0530	[thread overview]
Message-ID: <87o8agapkl.fsf@systemreboot.net> (raw)
In-Reply-To: <86wnphrfhr.fsf_-_@mgsn.dev>

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


Hi Sarah,

I have pushed patches 1-6 to master after implementing your suggestion
for patch 6 (klauspost-compress). I'm sending a WIP v2 of patch 7 (nncp)
in a following email. The tests are failing despite implementing your
suggestion. Any help in that regard would be much appreciated.

>> +(define-public nncp
>> +  (package
>> +    (name "nncp")
>> +    (version "7.2.0")

In patch v2, I have updated to the latest version 7.5.0.

>> +    (build-system gnu-build-system)
>> +    (arguments
>> +     `(#:tests? #f                      ; tests fail
>
> It is not a good idea to just disable tests without knowing why they
> fail (and leaving a comment explaining why).

True, I agree.

>> +       #:modules ((guix build gnu-build-system)
>> +                  ((guix build go-build-system) #:prefix go:)
>> +                  (guix build union)
>                      ^ this module isn't necessary
>

[...]

>> +                  (guix build utils))
>> +       #:imported-modules (,@%gnu-build-system-modules
>> +                           (guix build union)
>> +                           (guix build go-build-system))
>
> This can probably just be
>   #:imported-modules ,%go-build-system-modules

Good catch! Implemented both suggestions.

>> +               (setenv "BINDIR" (string-append out "/bin"))
>> +               (setenv "INFODIR" (string-append out "/share/info"))
>> +               (setenv "DOCDIR" (string-append out "/share/doc/nncp")))
>
> Consider perhaps:
>   (setenv "DOCDIR" (string-append out "/share/doc/nncp"
>                                   ,(package-version this-package)))

I've removed the version number from DOCDIR since that's what most
packages are doing. Even the configure phase of the gnu-build-system
does not put the version number in docdir. Only the
install-license-files of the gnu-build-system puts the version number
in, and that's probably a bug.

> Does CFGPATH need to be set?

I have now set CFGPATH TO /etc/nncp.hjson.

> I took a quick look at the source and it looks like you'll also need:
>
>   (substitute* '("src/toss_test.go" "src/pipe.go")
>     (("/bin/sh") (which "sh")))
>   (substitute* "src/toss_test.go"
>     (("; cat") (string-append "; " (which "cat"))))
>
> Which also makes the tests succeed.

Good catch, but tests still don't succeed (at least on my machine).

>> +    (inputs
>> +     `(("go" ,go)))

I have moved go to native-inputs.

>> +    (native-inputs
>> +     `(("texinfo" ,texinfo)))
>> +    (propagated-inputs
>> +     `(("go-github-com-davecgh-go-xdr" ,go-github-com-davecgh-go-xdr)
>> +       ("go-github-com-dustin-go-humanize" ,go-github-com-dustin-go-humanize)
>> +       ("go-github-com-flynn-noise" ,go-github-com-flynn-noise)
>> +       ("go-github-com-gorhill-cronexpr" ,go-github-com-gorhill-cronexpr)
>> +       ("go-github-com-hjson-hjson-go" ,go-github-com-hjson-hjson-go)
>> +       ("go-github-com-klauspost-compress" ,go-github-com-klauspost-compress)
>> +       ("go-golang-org-x-crypto" ,go-golang-org-x-crypto)
>> +       ("go-golang-org-x-net" ,go-golang-org-x-net)
>> +       ("go-golang-org-x-term" ,go-golang-org-x-term)
>> +       ("go-lukechampine-com-blake3" ,go-lukechampine-com-blake3)))
>
> Since this is an end-user package, these can be regular inputs.

Done!

> I also notice that nncp can use `sendmail`; should `sendmail` be an
> input as well?

I think sendmail need not be an input. There are many sendmail
compatible implementations and we can leave it up to the user to install
one in their profile and configure nncp accordingly.

> This package is also retaining references to the Go compiler package;
> re-adding this phase from go-build-system fixes that:
>
>   (add-after 'install 'remove-go-references
>              (assoc-ref go:%standard-phases 'remove-go-references))

Done!

Thanks,
Arun

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 524 bytes --]

  reply	other threads:[~2021-08-01 20:17 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-09 16:12 [bug#49494] [PATCH 0/7] Add nncp Arun Isaac
2021-07-09 16:19 ` [bug#49494] [PATCH 1/7] gnu: Add go-github-com-davecgh-go-xdr Arun Isaac
2021-07-09 16:19   ` [bug#49494] [PATCH 2/7] gnu: Add go-github-com-dustin-go-humanize Arun Isaac
2021-07-09 16:19   ` [bug#49494] [PATCH 3/7] gnu: Add go-lukechampine-com-blake3 Arun Isaac
2021-07-09 16:19   ` [bug#49494] [PATCH 4/7] gnu: Add go-golang-org-x-term Arun Isaac
2021-07-09 16:19   ` [bug#49494] [PATCH 5/7] gnu: Add go-github-com-flynn-noise Arun Isaac
2021-07-09 16:19   ` [bug#49494] [PATCH 6/7] gnu: Add go-github-com-klauspost-compress Arun Isaac
2021-07-22 23:38     ` [bug#49494] [PATCH 0/7] Add nncp Sarah Morgensen
2021-07-09 16:19   ` [bug#49494] [PATCH 7/7] gnu: " Arun Isaac
2021-07-23  1:22     ` [bug#49494] [PATCH 0/7] " Sarah Morgensen
2021-08-01 20:16       ` Arun Isaac [this message]
2021-08-01 20:19         ` [bug#49494] [PATCH v2] gnu: " Arun Isaac
2021-08-02  5:54         ` [bug#49494] [PATCH 0/7] " Sarah Morgensen
2021-08-02 17:10           ` Arun Isaac
2021-08-02 18:33             ` Arun Isaac
2021-08-02 18:40               ` Sarah Morgensen
2021-08-03 20:12                 ` Arun Isaac
2021-08-03 20:16                 ` [bug#49494] [PATCH v3] gnu: " Arun Isaac
2021-08-03 21:40                   ` [bug#49494] [PATCH 0/7] " Sarah Morgensen
2021-08-04  6:42                     ` bug#49494: " Arun Isaac

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=87o8agapkl.fsf@systemreboot.net \
    --to=arunisaac@systemreboot.net \
    --cc=49494@debbugs.gnu.org \
    --cc=iskarian@mgsn.dev \
    /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.