From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: Vagrant Cascadian <vagrant@reproducible-builds.org>
Cc: 71024@debbugs.gnu.org
Subject: [bug#71024] Update diffoscope to 268
Date: Sat, 25 May 2024 23:05:00 -0400 [thread overview]
Message-ID: <87bk4ti883.fsf@gmail.com> (raw)
In-Reply-To: <87bk4vp913.fsf@wireframe> (Vagrant Cascadian's message of "Fri, 24 May 2024 07:41:12 -0700")
Hi Vagrant,
Vagrant Cascadian <vagrant@reproducible-builds.org> writes:
> On 2024-05-21, Maxim Cournoyer wrote:
>> Vagrant Cascadian <vagrant@reproducible-builds.org> writes:
>>> On 2024-05-20, Vagrant Cascadian wrote:
>>>> On 2024-05-20, Maxim Cournoyer wrote:
>>>>> vagrant@reproducible-builds.org writes:
>>>>>> From: Vagrant Cascadian <vagrant@reproducible-builds.org>
>>>> Or fixing diffoscope to work with the older xz version in master
>>>> (5.2.x?) that guix is already using, which, now that I have spelled out
>>>> all of the above, seems possibly a much better idea!
>>>
>>> This was "fixed" in upstream diffoscope git by setting a version
>>> requirement on the test, and I think this was a new test, so not exactly
>>> a regression in test coverage.
>>>
>>> https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/17c061e767e612540dd0227c3fd1f9cab460a78f
>>>
>>> So we could build diffoscope from that commit instead, or manually apply
>>> the patch, or just wait till the next diffoscope version.
>>
>> Given the xz horror story, waiting a bit more seems a good option to me.
>> Thanks for explaining it in more details; it seems upstream is working
>> on a cleaned up 5.8.0 version, which isn't ready yet.
>
> Well, version 268 was just released, which fixes the xz issue ... but
> introduces a test failure for 7z... which is worked around in the
> attached patch.
>
> The other option might be to package 7zip (which seems more maintained
> than p7zip)... but that seems a bit longer term.
>
> Yet another option would be to revert the patch that broke the test with
> p7zip based 7z.
>
> But for now I propose the workaround to effectively skip this one
> test. :)
[...]
> diff --git a/gnu/packages/diffoscope.scm b/gnu/packages/diffoscope.scm
> index fd2146456d..f7c5f07856 100644
> --- a/gnu/packages/diffoscope.scm
> +++ b/gnu/packages/diffoscope.scm
> @@ -75,7 +75,7 @@ (define-module (gnu packages diffoscope)
> (define-public diffoscope
> (package
> (name "diffoscope")
> - (version "265")
> + (version "268")
> (source
> (origin
> (method git-fetch)
> @@ -84,7 +84,7 @@ (define-public diffoscope
> (commit version)))
> (file-name (git-file-name name version))
> (sha256
> - (base32 "0fdaxihmzz1jf9ay8pwr1z60b2rnihawp4js4nw9l7wv0gij9vpg"))))
> + (base32 "148r4grla92g9syjcxkyflxca2ydyb3rznb7wrrdl4zgpp4qirrh"))))
> (build-system python-build-system)
> (arguments
> (list
> @@ -114,6 +114,13 @@ (define (bin command)
> (string-append "[\"" (bin command) "\","))
> (("\\[\"(getfacl)\"," _ command)
> (string-append "[\"" (bin command) "\",")))))
> + (add-after 'unpack 'workaround-sevenz-versioned-test
> + ;; Detects incorrect 7z version from p7zip:
> + ;; https://salsa.debian.org/reproducible-builds/diffoscope/-/issues/376
> + (lambda _
> + (substitute* "tests/comparators/test_sevenz.py"
> + ((", skip_unless_tool_is_at_least") ", skip_unless_tool_is_at_least, skip_unless_tool_is_at_most")
> + (("@skip_unless_tool_is_at_least") "@skip_unless_tool_is_at_most(\"7z\", sevenz_version, \"63\")\n@skip_unless_tool_is_at_least"))))
That would LGTM, if it didn't so severely bust our 80 maximum column
width convention :-). Would you mind editing it into conformance? You
can use actual newlines in the replacement text, and it's common to have
the substitute form broken on multiple lines like:
(substitute "some-file"
(("some-pattern")
"some-replacement"))
--
Thanks,
Maxim
next prev parent reply other threads:[~2024-05-26 3:07 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-18 1:46 [bug#71024] Update diffoscope to 267 (with xz bonus update) Vagrant Cascadian
2024-05-18 1:53 ` Vagrant Cascadian
2024-05-18 1:53 ` Vagrant Cascadian
2024-05-18 2:01 ` Vagrant Cascadian
2024-05-21 2:48 ` Maxim Cournoyer
2024-05-18 3:50 ` [bug#71024] [PATCH 1/2] gnu: Add xz-5.4 variant vagrant
2024-05-18 3:50 ` [bug#71024] [PATCH 2/2] gnu: diffoscope: Update to 267 vagrant
2024-05-21 2:46 ` [bug#71024] Update diffoscope to 267 (with xz bonus update) Maxim Cournoyer
2024-05-21 6:01 ` Vagrant Cascadian
2024-05-21 19:20 ` Vagrant Cascadian
2024-05-22 0:06 ` Maxim Cournoyer
2024-05-24 14:41 ` [bug#71024] Update diffoscope to 268 Vagrant Cascadian
2024-05-26 3:05 ` Maxim Cournoyer [this message]
2024-05-28 22:33 ` Vagrant Cascadian
2024-05-30 1:02 ` Maxim Cournoyer
2024-05-31 17:30 ` bug#71024: " Vagrant Cascadian
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=87bk4ti883.fsf@gmail.com \
--to=maxim.cournoyer@gmail.com \
--cc=71024@debbugs.gnu.org \
--cc=vagrant@reproducible-builds.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).