* [bug#71024] Update diffoscope to 267 (with xz bonus update) @ 2024-05-18 1:46 Vagrant Cascadian 2024-05-18 1:53 ` Vagrant Cascadian 2024-05-18 3:50 ` [bug#71024] [PATCH 1/2] gnu: Add xz-5.4 variant vagrant 0 siblings, 2 replies; 16+ messages in thread From: Vagrant Cascadian @ 2024-05-18 1:46 UTC (permalink / raw) To: 71024 [-- Attachment #1: Type: text/plain, Size: 550 bytes --] The upcoming patches update diffoscope to 267, which requires a newer version of xz to pass the test suites (No, no, not the *evil* versions, just the same version that is in core-updates, 5.4.5! (although that version has shadows cast on it too due to involvement of a certain infamous internet identity, caveat emptor)). I made a versioned xz variant to avoid a world rebuild so we can update diffoscope before updating core-updates, hopefully I did it mostly right... :) Uhhh... so yeah, send in the clowns... er, patches! live well, vagrant [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 227 bytes --] ^ permalink raw reply [flat|nested] 16+ messages in thread
* [bug#71024] Update diffoscope to 267 (with xz bonus update) 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 3:50 ` [bug#71024] [PATCH 1/2] gnu: Add xz-5.4 variant vagrant 1 sibling, 1 reply; 16+ messages in thread From: Vagrant Cascadian @ 2024-05-18 1:53 UTC (permalink / raw) To: 71024 [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1.1: 0001-gnu-Add-xz-5.4-variant.patch --] [-- Type: text/x-diff, Size: 1400 bytes --] From 1aabeef6612d8b3df66db9bbda7f44896f1a5c94 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <vagrant@reproducible-builds.org> Date: Fri, 17 May 2024 18:33:04 -0700 Subject: [PATCH 1/2] gnu: Add xz-5.4 variant. * gnu/packages/compression.scm (xz-5.4): New variable. --- gnu/packages/compression.scm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm index dd88fce9ca..d89d72c9b7 100644 --- a/gnu/packages/compression.scm +++ b/gnu/packages/compression.scm @@ -573,6 +573,21 @@ (define-public xz (license (list license:gpl2+ license:lgpl2.1+)) ; bits of both (home-page "https://tukaani.org/xz/"))) +(define-public xz-5.4 + (package + (inherit xz) + (name "xz-5.4") + (version "5.4.5") + (source (origin + (method url-fetch) + (uri (list (string-append "http://tukaani.org/xz/xz-" version + ".tar.gz") + (string-append "http://multiprecision.org/guix/xz-" + version ".tar.gz"))) + (sha256 + (base32 + "1mmpwl4kg1vs6n653gkaldyn43dpbjh8gpk7sk0gps5f6jwr0p0k")))))) + (define-public lhasa (package (name "lhasa") base-commit: e9b25a6c6c626a560d28a1f732e6e5d362d584a4 -- 2.39.2 [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 227 bytes --] ^ permalink raw reply related [flat|nested] 16+ messages in thread
* [bug#71024] Update diffoscope to 267 (with xz bonus update) 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 0 siblings, 2 replies; 16+ messages in thread From: Vagrant Cascadian @ 2024-05-18 1:53 UTC (permalink / raw) To: 71024 [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1.1: 0002-gnu-diffoscope-Update-to-267.patch --] [-- Type: text/x-diff, Size: 1416 bytes --] From a889aaf43ee1d3cc9669bcc80888450bbd3d9ca1 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <vagrant@reproducible-builds.org> Date: Fri, 17 May 2024 17:18:39 -0700 Subject: [PATCH 2/2] gnu: diffoscope: Update to 267. * gnu/packages/diffoscope.scm (diffoscope): Update to 267. [native-inputs]: Use xz-5.4. --- gnu/packages/diffoscope.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gnu/packages/diffoscope.scm b/gnu/packages/diffoscope.scm index fd2146456d..83c8f84967 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 "267") (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 "19iyx846rrz5j8fx4q9sx4p3mr8h7g7190ayjmzl8hr2y9knmy74")))) (build-system python-build-system) (arguments (list @@ -219,7 +219,7 @@ (define (bin command) unzip wabt xxd - xz + xz-5.4 ; tests require newer version zip zstd) -- 2.39.2 [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 227 bytes --] ^ permalink raw reply related [flat|nested] 16+ messages in thread
* [bug#71024] Update diffoscope to 267 (with xz bonus update) 2024-05-18 1:53 ` Vagrant Cascadian @ 2024-05-18 2:01 ` Vagrant Cascadian 2024-05-21 2:48 ` Maxim Cournoyer 1 sibling, 0 replies; 16+ messages in thread From: Vagrant Cascadian @ 2024-05-18 2:01 UTC (permalink / raw) To: 71024 [-- Attachment #1: Type: text/plain, Size: 417 bytes --] On 2024-05-17, Vagrant Cascadian wrote: > * gnu/packages/diffoscope.scm (diffoscope): Update to 267. > [native-inputs]: Use xz-5.4. I should probably mention the related upstream diffoscope bug somewhere: https://salsa.debian.org/reproducible-builds/diffoscope/-/issues/374 Other options would be to monkey-patch to skip the test when the xz version is not sufficient or something similar. live well, vagrant [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 227 bytes --] ^ permalink raw reply [flat|nested] 16+ messages in thread
* [bug#71024] Update diffoscope to 267 (with xz bonus update) 2024-05-18 1:53 ` Vagrant Cascadian 2024-05-18 2:01 ` Vagrant Cascadian @ 2024-05-21 2:48 ` Maxim Cournoyer 1 sibling, 0 replies; 16+ messages in thread From: Maxim Cournoyer @ 2024-05-21 2:48 UTC (permalink / raw) To: Vagrant Cascadian; +Cc: 71024 Hi, Vagrant Cascadian <vagrant@reproducible-builds.org> writes: > From a889aaf43ee1d3cc9669bcc80888450bbd3d9ca1 Mon Sep 17 00:00:00 2001 > From: Vagrant Cascadian <vagrant@reproducible-builds.org> > Date: Fri, 17 May 2024 17:18:39 -0700 > Subject: [PATCH 2/2] gnu: diffoscope: Update to 267. > > * gnu/packages/diffoscope.scm (diffoscope): Update to 267. > [native-inputs]: Use xz-5.4. Reviewed-by: Maxim Cournoyer <maxim.cournoyer@gmail> LGTM, but I think it's safe to use xz 5.6.1 *from git*, unless I've missed recent development on the xz backdoor story. -- Thanks, Maxim ^ permalink raw reply [flat|nested] 16+ messages in thread
* [bug#71024] [PATCH 1/2] gnu: Add xz-5.4 variant. 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 3:50 ` 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 1 sibling, 2 replies; 16+ messages in thread From: vagrant @ 2024-05-18 3:50 UTC (permalink / raw) To: 71024; +Cc: vagrant From: Vagrant Cascadian <vagrant@reproducible-builds.org> * gnu/packages/compression.scm (xz-5.4): New variable. --- gnu/packages/compression.scm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm index dd88fce9ca..d89d72c9b7 100644 --- a/gnu/packages/compression.scm +++ b/gnu/packages/compression.scm @@ -573,6 +573,21 @@ (define-public xz (license (list license:gpl2+ license:lgpl2.1+)) ; bits of both (home-page "https://tukaani.org/xz/"))) +(define-public xz-5.4 + (package + (inherit xz) + (name "xz-5.4") + (version "5.4.5") + (source (origin + (method url-fetch) + (uri (list (string-append "http://tukaani.org/xz/xz-" version + ".tar.gz") + (string-append "http://multiprecision.org/guix/xz-" + version ".tar.gz"))) + (sha256 + (base32 + "1mmpwl4kg1vs6n653gkaldyn43dpbjh8gpk7sk0gps5f6jwr0p0k")))))) + (define-public lhasa (package (name "lhasa") base-commit: e9b25a6c6c626a560d28a1f732e6e5d362d584a4 -- 2.39.2 ^ permalink raw reply related [flat|nested] 16+ messages in thread
* [bug#71024] [PATCH 2/2] gnu: diffoscope: Update to 267. 2024-05-18 3:50 ` [bug#71024] [PATCH 1/2] gnu: Add xz-5.4 variant vagrant @ 2024-05-18 3:50 ` vagrant 2024-05-21 2:46 ` [bug#71024] Update diffoscope to 267 (with xz bonus update) Maxim Cournoyer 1 sibling, 0 replies; 16+ messages in thread From: vagrant @ 2024-05-18 3:50 UTC (permalink / raw) To: 71024; +Cc: vagrant From: Vagrant Cascadian <vagrant@reproducible-builds.org> * gnu/packages/diffoscope.scm (diffoscope): Update to 267. [native-inputs]: Use xz-5.4. --- gnu/packages/diffoscope.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gnu/packages/diffoscope.scm b/gnu/packages/diffoscope.scm index fd2146456d..83c8f84967 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 "267") (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 "19iyx846rrz5j8fx4q9sx4p3mr8h7g7190ayjmzl8hr2y9knmy74")))) (build-system python-build-system) (arguments (list @@ -219,7 +219,7 @@ (define (bin command) unzip wabt xxd - xz + xz-5.4 ; tests require newer version zip zstd) -- 2.39.2 ^ permalink raw reply related [flat|nested] 16+ messages in thread
* [bug#71024] Update diffoscope to 267 (with xz bonus update) 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 ` Maxim Cournoyer 2024-05-21 6:01 ` Vagrant Cascadian 1 sibling, 1 reply; 16+ messages in thread From: Maxim Cournoyer @ 2024-05-21 2:46 UTC (permalink / raw) To: vagrant; +Cc: 71024 Hi, vagrant@reproducible-builds.org writes: > From: Vagrant Cascadian <vagrant@reproducible-builds.org> > > * gnu/packages/compression.scm (xz-5.4): New variable. > --- > gnu/packages/compression.scm | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) > > diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm > index dd88fce9ca..d89d72c9b7 100644 > --- a/gnu/packages/compression.scm > +++ b/gnu/packages/compression.scm > @@ -573,6 +573,21 @@ (define-public xz > (license (list license:gpl2+ license:lgpl2.1+)) ; bits of both > (home-page "https://tukaani.org/xz/"))) > > +(define-public xz-5.4 > + (package > + (inherit xz) > + (name "xz-5.4") > + (version "5.4.5") > + (source (origin > + (method url-fetch) > + (uri (list (string-append "http://tukaani.org/xz/xz-" version > + ".tar.gz") > + (string-append "http://multiprecision.org/guix/xz-" > + version ".tar.gz"))) > + (sha256 > + (base32 > + "1mmpwl4kg1vs6n653gkaldyn43dpbjh8gpk7sk0gps5f6jwr0p0k")))))) > + Any reason not to use the latest, which is v5.6.1 (fetched from git, to avoid the xz backdoor issue)? -- Thanks, Maxim ^ permalink raw reply [flat|nested] 16+ messages in thread
* [bug#71024] Update diffoscope to 267 (with xz bonus update) 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 0 siblings, 1 reply; 16+ messages in thread From: Vagrant Cascadian @ 2024-05-21 6:01 UTC (permalink / raw) To: Maxim Cournoyer; +Cc: 71024 [-- Attachment #1: Type: text/plain, Size: 2400 bytes --] On 2024-05-20, Maxim Cournoyer wrote: > vagrant@reproducible-builds.org writes: > >> From: Vagrant Cascadian <vagrant@reproducible-builds.org> >> >> * gnu/packages/compression.scm (xz-5.4): New variable. >> --- >> gnu/packages/compression.scm | 15 +++++++++++++++ >> 1 file changed, 15 insertions(+) >> >> diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm >> index dd88fce9ca..d89d72c9b7 100644 >> --- a/gnu/packages/compression.scm >> +++ b/gnu/packages/compression.scm >> @@ -573,6 +573,21 @@ (define-public xz >> (license (list license:gpl2+ license:lgpl2.1+)) ; bits of both >> (home-page "https://tukaani.org/xz/"))) >> >> +(define-public xz-5.4 >> + (package >> + (inherit xz) >> + (name "xz-5.4") >> + (version "5.4.5") >> + (source (origin >> + (method url-fetch) >> + (uri (list (string-append "http://tukaani.org/xz/xz-" version >> + ".tar.gz") >> + (string-append "http://multiprecision.org/guix/xz-" >> + version ".tar.gz"))) >> + (sha256 >> + (base32 >> + "1mmpwl4kg1vs6n653gkaldyn43dpbjh8gpk7sk0gps5f6jwr0p0k")))))) >> + > > Any reason not to use the latest, which is v5.6.1 (fetched from git, to > avoid the xz backdoor issue)? For one, 5.6.1 was also released by "Jia Tan" according to: https://tukaani.org/xz-backdoor/ To fix bugs in the backdoor partly introduced in 5.6.0... e.g. not to remove the backdoor, but to make it a working backdoor. In other words, DO NOT USE 5.6.1. :) There are some concerns about questionable code by "Jia Tan" in earlier versions too: https://bugs.debian.org/1068024 ... although even the 5.4.x version I proposed was, admittedly, being a bit lazy and just picking a version already present in core-updates as the easiest path forward that was reasonably close to the version present in Debian which diffoscope was tested against... Reverting to 5.3.1 might be a more conservative approach, although I have not tested it with diffoscope. 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! live well, vagrant [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 227 bytes --] ^ permalink raw reply [flat|nested] 16+ messages in thread
* [bug#71024] Update diffoscope to 267 (with xz bonus update) 2024-05-21 6:01 ` Vagrant Cascadian @ 2024-05-21 19:20 ` Vagrant Cascadian 2024-05-22 0:06 ` Maxim Cournoyer 0 siblings, 1 reply; 16+ messages in thread From: Vagrant Cascadian @ 2024-05-21 19:20 UTC (permalink / raw) To: Maxim Cournoyer; +Cc: 71024 [-- Attachment #1: Type: text/plain, Size: 885 bytes --] 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> >>> >>> * gnu/packages/compression.scm (xz-5.4): New variable. ... > 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. live well, vagrant [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 227 bytes --] ^ permalink raw reply [flat|nested] 16+ messages in thread
* [bug#71024] Update diffoscope to 267 (with xz bonus update) 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 0 siblings, 1 reply; 16+ messages in thread From: Maxim Cournoyer @ 2024-05-22 0:06 UTC (permalink / raw) To: Vagrant Cascadian; +Cc: 71024 Hi Vagrant, 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> >>>> >>>> * gnu/packages/compression.scm (xz-5.4): New variable. > ... >> 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. -- Thanks, Maxim ^ permalink raw reply [flat|nested] 16+ messages in thread
* [bug#71024] Update diffoscope to 268 2024-05-22 0:06 ` Maxim Cournoyer @ 2024-05-24 14:41 ` Vagrant Cascadian 2024-05-26 3:05 ` Maxim Cournoyer 0 siblings, 1 reply; 16+ messages in thread From: Vagrant Cascadian @ 2024-05-24 14:41 UTC (permalink / raw) To: Maxim Cournoyer; +Cc: 71024 [-- Attachment #1.1: Type: text/plain, Size: 1599 bytes --] 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. :) live well, vagrant [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1.2: 0001-gnu-diffoscope-Update-to-268.patch --] [-- Type: text/x-diff, Size: 2187 bytes --] From 31c4b7ce41eb36aaf58913b3cc17021643e5fefe Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <vagrant@reproducible-builds.org> Date: Fri, 24 May 2024 04:16:32 -0700 Subject: [PATCH] gnu: diffoscope: Update to 268. * gnu/packages/diffoscope.scm (diffoscope): Update to 268. [phases] Add 'workaround-sevenz-versioned-test. --- gnu/packages/diffoscope.scm | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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")))) (add-after 'build 'build-man-page (lambda _ (invoke "make" "-C" "doc"))) base-commit: c5e63e19ac672f9e63fc8ee98fa9a16f978ce19c -- 2.39.2 [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 227 bytes --] ^ permalink raw reply related [flat|nested] 16+ messages in thread
* [bug#71024] Update diffoscope to 268 2024-05-24 14:41 ` [bug#71024] Update diffoscope to 268 Vagrant Cascadian @ 2024-05-26 3:05 ` Maxim Cournoyer 2024-05-28 22:33 ` Vagrant Cascadian 0 siblings, 1 reply; 16+ messages in thread From: Maxim Cournoyer @ 2024-05-26 3:05 UTC (permalink / raw) To: Vagrant Cascadian; +Cc: 71024 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 ^ permalink raw reply [flat|nested] 16+ messages in thread
* [bug#71024] Update diffoscope to 268 2024-05-26 3:05 ` Maxim Cournoyer @ 2024-05-28 22:33 ` Vagrant Cascadian 2024-05-30 1:02 ` Maxim Cournoyer 0 siblings, 1 reply; 16+ messages in thread From: Vagrant Cascadian @ 2024-05-28 22:33 UTC (permalink / raw) To: Maxim Cournoyer; +Cc: 71024 [-- Attachment #1: Type: text/plain, Size: 1714 bytes --] On 2024-05-25, Maxim Cournoyer wrote: > 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! ... >> 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. ... >> + (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? Oops. must not have guix linted that one! Well, again, upstream has fixed it even better: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/2a361d7dff135d3e832161f587a55a62fcbec9f2 Tested fine for me building against that commit. So ... wait again till another release (and maybe find new breakage in the new release), or build against an untagged commit, or pull in a patch from the upstream commit? :) live well, vagrant [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 227 bytes --] ^ permalink raw reply [flat|nested] 16+ messages in thread
* [bug#71024] Update diffoscope to 268 2024-05-28 22:33 ` Vagrant Cascadian @ 2024-05-30 1:02 ` Maxim Cournoyer 2024-05-31 17:30 ` bug#71024: " Vagrant Cascadian 0 siblings, 1 reply; 16+ messages in thread From: Maxim Cournoyer @ 2024-05-30 1:02 UTC (permalink / raw) To: Vagrant Cascadian; +Cc: 71024 Hi Vagrant, Vagrant Cascadian <vagrant@reproducible-builds.org> writes: > On 2024-05-25, Maxim Cournoyer wrote: >> 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! > ... >>> 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. > ... >>> + (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? > > Oops. must not have guix linted that one! > > > Well, again, upstream has fixed it even better: > > https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/2a361d7dff135d3e832161f587a55a62fcbec9f2 > > Tested fine for me building against that commit. > > So ... wait again till another release (and maybe find new breakage in > the new release), or build against an untagged commit, or pull in a > patch from the upstream commit? :) If you want to get done with this, I'd recommend pulling a patch from the upstream commit. Then when we get to upgrading to the next release we can drop such patch. Hope that helps, -- Thanks, Maxim ^ permalink raw reply [flat|nested] 16+ messages in thread
* bug#71024: Update diffoscope to 268 2024-05-30 1:02 ` Maxim Cournoyer @ 2024-05-31 17:30 ` Vagrant Cascadian 0 siblings, 0 replies; 16+ messages in thread From: Vagrant Cascadian @ 2024-05-31 17:30 UTC (permalink / raw) To: Maxim Cournoyer; +Cc: 71024-done [-- Attachment #1: Type: text/plain, Size: 838 bytes --] On 2024-05-29, Maxim Cournoyer wrote: > Vagrant Cascadian <vagrant@reproducible-builds.org> writes: >> Well, again, upstream has fixed it even better: >> >> https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/2a361d7dff135d3e832161f587a55a62fcbec9f2 >> >> Tested fine for me building against that commit. >> >> So ... wait again till another release (and maybe find new breakage in >> the new release), or build against an untagged commit, or pull in a >> patch from the upstream commit? :) > > If you want to get done with this, I'd recommend pulling a patch from > the upstream commit. Then when we get to upgrading to the next release > we can drop such patch. Apparently waiting was the thing to do... 269 was released with only that change! Pushed as c7888f5361fbdbe5182e7dbe90ccc12e2d95d3c3. live well, vagrant [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 227 bytes --] ^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2024-05-31 17:32 UTC | newest] Thread overview: 16+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 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 2024-05-28 22:33 ` Vagrant Cascadian 2024-05-30 1:02 ` Maxim Cournoyer 2024-05-31 17:30 ` bug#71024: " Vagrant Cascadian
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).