unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: "Nicolò Balzarotti" <anothersms@gmail.com>
Cc: 45972@debbugs.gnu.org
Subject: [bug#45972] [PATCH] Add julia-json with dependencies
Date: Wed, 27 Jan 2021 23:40:28 +0100	[thread overview]
Message-ID: <87mtwut34z.fsf@gnu.org> (raw)
In-Reply-To: <87lfcfcmf3.fsf@guixSD.i-did-not-set--mail-host-address--so-tickle-me> ("Nicolò Balzarotti"'s message of "Wed, 27 Jan 2021 00:23:44 +0100")

Hi,

Nicolò Balzarotti <anothersms@gmail.com> skribis:

> Almost all of Julia packages are under MIT (expat), I double checked and
> they are fine.  Also, 3 packages (out of 8) have been updated since my
> submission, so I updated them now and guix lint does not complain anymore.

Great.

> This is the first batch, I finally decided to submit in small batches
> the 100+ packages I have; you have been warned :D

Oh, fun! :-)

So, actually, we have a problem:

> +(define-public julia-orderedcollections
> +  (package
> +    (name "julia-orderedcollections")
> +    (version "1.3.2")
> +    (source
> +     (origin
> +       (method git-fetch)
> +       (uri (git-reference
> +             (url "https://github.com/JuliaCollections/OrderedCollections.jl")
> +             (commit (string-append "v" version))))
> +       (file-name "OrderedCollections")

I was surprised that ‘guix lint’ doesn’t complain about this file name,
I thought it required the file name to match the package name and at
least that’s the spirit (I’ll take a look).

Anyway, I went ahead and replaced all these by (git-file-name name
version) as is done elsewhere.  But now the tests would fail like so:

--8<---------------cut here---------------start------------->8---
starting phase `check'
ERROR: LoadError: ArgumentError: Package Adapt not found in current path:
- Run `import Pkg; Pkg.add("Adapt")` to install the Adapt package.
--8<---------------cut here---------------end--------------->8---

My understanding is that the first patch expects the source file name to
match the Julia package name.  IMO, that shouldn’t be the case.  Can we
either extract the Julia package name from metadata that’s in the
package itself (?), or otherwise pass it to all the phases via
‘julia-build-system’?

Sorry for not noticing earlier!

Thanks,
Ludo’.




  reply	other threads:[~2021-01-27 22:41 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-18 23:47 [bug#45972] [PATCH] Add julia-json with dependencies Nicolò Balzarotti
2021-01-26 21:33 ` Ludovic Courtès
2021-01-26 23:23   ` Nicolò Balzarotti
2021-01-27 22:40     ` Ludovic Courtès [this message]
2021-01-28  0:30       ` Nicolò Balzarotti
2021-01-28 13:10         ` Ludovic Courtès
2021-01-28 15:37           ` Nicolò Balzarotti
2021-01-30 14:10             ` bug#45972: " Ludovic Courtès
2021-01-30 14:46         ` [bug#45972] Julia importer? zimoun
2021-01-30 20:13           ` Nicolò Balzarotti
2021-01-30 21:42             ` Nicolò Balzarotti
2021-01-31 19:35             ` zimoun
2021-01-31 20:00               ` Nicolò Balzarotti
2021-02-01  7:22                 ` zimoun

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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mtwut34z.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=45972@debbugs.gnu.org \
    --cc=anothersms@gmail.com \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).