From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: 45773@debbugs.gnu.org
Subject: [bug#45773] [PATCH core-updates 0/1] Allow patch-and-repack to work with plain files.
Date: Sun, 10 Jan 2021 17:07:43 -0500 [thread overview]
Message-ID: <87o8hw4f9s.fsf@gmail.com> (raw)
In-Reply-To: <20210110200231.24214-1-maxim.cournoyer@gmail.com> (Maxim Cournoyer's message of "Sun, 10 Jan 2021 15:02:31 -0500")
[-- Attachment #1: Type: text/plain, Size: 596 bytes --]
Hello,
Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:
> While attempting to reproduce the now closed issue
> <http://issues.guix.gnu.org/30116>, I stumbled upon another annoyance, which
> is that the patch-and-repack procedure used as part of an origin derivation
> didn't support single files, so the following failed, for example:
>
> <#part type="text/plain" filename="/home/maxim/src/guix-core-updates/repro.scm" disposition=inline description="Script exhibiting problem">
> <#/part>
That didn't work out well :-).
Here's the attachment that I meant to send along the cover letter.
[-- Attachment #2: repro.scm --]
[-- Type: text/plain, Size: 1436 bytes --]
;;; Run script with: ./pre-inst-env guile -e main -s repro.scm
(use-modules (gnu packages base)
(gnu packages bootstrap)
(guix build utils)
(guix derivations)
(guix download)
(guix packages)
(guix store))
(define %test-file-uri
"https://raw.githubusercontent.com/realgud/realgud/master/realgud/common/bp-image-data.el")
(define (main _)
(let ((source (origin
(method url-fetch)
(uri %test-file-uri)
(modules '((guix build utils)))
(patch-inputs `(("tar" ,%bootstrap-coreutils&co)
("xz" ,%bootstrap-coreutils&co)
("locales" ,glibc-utf8-locales)))
(snippet
'(begin
(with-fluids ((%default-port-encoding "ISO-8859-1")
(%default-port-conversion-strategy 'error))
(substitute* "bp-image-data.el"
(("something")
"something else")))))
(sha256
(base32
"1qpn2zhh2qw579bhgjyxvf670r4kibaxls589hkm2yhwfvsjvs68")))))
(with-store store
(build-derivations store
(list (run-with-store store
(origin->derivation source)))))))
[-- Attachment #3: Type: text/plain, Size: 16 bytes --]
Thanks,
Maxim
next prev parent reply other threads:[~2021-01-10 22:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-10 20:02 [bug#45773] [PATCH core-updates 0/1] Allow patch-and-repack to work with plain files Maxim Cournoyer
2021-01-10 22:07 ` Maxim Cournoyer [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-01-10 20:05 [bug#45774] [PATCH core-updates 1/1] guix: packages: " Maxim Cournoyer
2021-01-13 17:40 ` [bug#45774] [PATCH core-updates v2] build-systems/gnu: Allow unpacking/repacking more kind of files Maxim Cournoyer
2021-01-14 17:48 ` [bug#45773] [PATCH core-updates 0/1] Allow patch-and-repack to work with plain files Ludovic Courtès
2021-01-14 18:43 ` Maxim Cournoyer
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=87o8hw4f9s.fsf@gmail.com \
--to=maxim.cournoyer@gmail.com \
--cc=45773@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 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).