all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christopher Baines <mail@cbaines.net>
To: 70878@debbugs.gnu.org
Subject: [bug#70878] [PATCH 0/4] Reduce download builder duplication.
Date: Sat, 11 May 2024 17:29:16 +0100	[thread overview]
Message-ID: <87h6f48g83.fsf@cbaines.net> (raw)

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

I think we currently have an issue where the builder scripts for several
download approaches are very numerous, svn-multi-download is probably
the extreme example as that's used for the numerous texlive packages.

I noticed this when wondering why bayfront is spending so much time
substituting svn-multi-download files from data.guix.gnu.org, and it's
probably taking up extra space in the data.guix.gnu.org database too.

These commits should address the issue in svn-multi-fetch, svn-fetch,
hg-fetch and git-fetch (although this issue doesn't affect users of
builtin:git-download).  The main change is to pass the hash through to
the builder as an environment variable, rather than generating a
different builder script for each different hash.

I've also restructured the code to try and avoid this problem in the
future.  While there was a comment about the intent to not duplicate the
builder scripts, it's too easy to miss.  By moving the builder to it's
own procedure and moving the comment to the call site, it'll be clearer
when a new source of variation is added.


Christopher Baines (4):
  svn-download: Reduce svn-multi-fetch builder duplication.
  svn-download: Reduce svn-fetch builder duplication.
  hg-download: Reduce builder duplication.
  git-download: Reduce builder duplication.

 guix/git-download.scm | 123 +++++++++++---------
 guix/hg-download.scm  | 127 +++++++++++---------
 guix/svn-download.scm | 264 +++++++++++++++++++++++-------------------
 3 files changed, 291 insertions(+), 223 deletions(-)

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

             reply	other threads:[~2024-05-11 16:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-11 16:29 Christopher Baines [this message]
2024-05-11 16:40 ` [bug#70878] [PATCH 1/4] svn-download: Reduce svn-multi-fetch builder duplication Christopher Baines
2024-05-11 16:40   ` [bug#70878] [PATCH 2/4] svn-download: Reduce svn-fetch " Christopher Baines
2024-05-11 16:40   ` [bug#70878] [PATCH 3/4] hg-download: Reduce " Christopher Baines
2024-05-11 16:40   ` [bug#70878] [PATCH 4/4] git-download: " Christopher Baines

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=87h6f48g83.fsf@cbaines.net \
    --to=mail@cbaines.net \
    --cc=70878@debbugs.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.