all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tomas Volf <~@wolfsden.cz>
To: Felix Lechner <felix.lechner@lease-up.com>
Cc: help-guix@gnu.org
Subject: Re: Is a graft warranted here?
Date: Sat, 15 Jun 2024 01:49:59 +0200	[thread overview]
Message-ID: <ZmzXJxgw51ndWqlv@ws> (raw)
In-Reply-To: <871q4z2jh4.fsf@lease-up.com>

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

Hello Felix,

On 2024-06-14 16:27:35 -0700, Felix Lechner via wrote:
> Hi,
>
> Why does the package definition below provide a grafted version 1.08.1
> instead of the source I requested, please?
>
> Kind regards
> Felix
>
> * * *
>
> (define-public nyacc/juix
>   (let* ((commit "41691b062b598a92549821879766e0ee48b635da")
>          (revision "0"))
>     (package
>       (inherit nyacc)
>       (name "nyacc")
>       (version "1.10-dev")
>       (source (origin
>                 (method git-fetch)
>                 (uri (git-reference
>                       (url "https://git.savannah.nongnu.org/git/nyacc.git")
>                       (commit commit)))
>                 (file-name (git-file-name name version))
>                 (sha256
>                  (base32
>                   "1fa88fix6avyazyiy4k70v9fzdkz1i0p99xnmxmq94j3wpc76y3j"))
>                 (modules '((guix build utils)))
>                 (snippet
>                  '(substitute* "configure"
>                     (("GUILE_GLOBAL_SITE=\\$prefix.*")
>                      "GUILE_GLOBAL_SITE=\
> $prefix/share/guile/site/$GUILE_EFFECTIVE_VERSION\n"))))))))
>

Maybe I misunderstood something, but for me it seems to provide what I assume
would be 1.10-dev:

    $ cat $(guix build -e '(begin (use-modules (guix git-download) (gnu packages mes) (guix) (gnu) (gnu packages)) (let* ((commit "41691b062b598a92549821879766e0ee48b635da")
             (revision "0"))
        (package
          (inherit nyacc)
          (name "nyacc")
          (version "1.10-dev")
          (source (origin
                    (method git-fetch)
                    (uri (git-reference
                          (url "https://git.savannah.nongnu.org/git/nyacc.git")
                          (commit commit)))
                    (file-name (git-file-name name version))
                    (sha256
                     (base32
                      "1fa88fix6avyazyiy4k70v9fzdkz1i0p99xnmxmq94j3wpc76y3j"))
                    (modules (quote ((guix build utils))))
                    (snippet
                     (quote (substitute* "configure"
                        (("GUILE_GLOBAL_SITE=\\$prefix.*")
                         "GUILE_GLOBAL_SITE=\
    $prefix/share/guile/site/$GUILE_EFFECTIVE_VERSION\n")))))))))')/share/guile/site/3.0/nyacc/version.scm | tail -n7 | head -n5
    (define-module (nyacc version)
      #:export (*nyacc-version*)
      #:version (1 09 4))

    (define *nyacc-version* "1.09.4")

When I do the same for nyacc I get different output:

    $ cat $(guix build nyacc)/share/guile/site/3.0/nyacc/version.scm | tail -n7 | head -n5
    (define-module (nyacc version)
      #:export (*nyacc-version*)
      #:version (1 08 1))

    (define *nyacc-version* "1.08.1")

This is on up-to-date Guix.  I am probably not seeing the problem (it is bit
late).  Could you write bit more about how to reproduce it and what to look for?

Thanks,
Tomas

--
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.

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

  reply	other threads:[~2024-06-14 23:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-14 23:27 Is a graft warranted here? Felix Lechner via
2024-06-14 23:49 ` Tomas Volf [this message]
2024-06-15  0:34   ` Felix Lechner via
2024-06-15  8:15     ` Tomas Volf

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=ZmzXJxgw51ndWqlv@ws \
    --to=~@wolfsden.cz \
    --cc=felix.lechner@lease-up.com \
    --cc=help-guix@gnu.org \
    /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.