GNU bug report logs -
#64579
[PATCH] gnu: libleak: Update to 0.3.6.
Previous Next
Reported by: Michael Ford <fanquake <at> gmail.com>
Date: Wed, 12 Jul 2023 09:28:01 UTC
Severity: normal
Tags: patch
Done: Ricardo Wurmus <rekado <at> elephly.net>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 64579 in the body.
You can then email your comments to 64579 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#64579
; Package
guix-patches
.
(Wed, 12 Jul 2023 09:28:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Michael Ford <fanquake <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Wed, 12 Jul 2023 09:28:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
From 790f44dde3a2a68ac9525f45b72ba65f8486d0f0 Mon Sep 17 00:00:00 2001
From: fanquake <fanquake <at> gmail.com>
Date: Wed, 12 Jul 2023 10:08:56 +0100
Subject: [PATCH] gnu: libleak: Update to 0.3.6.
* gnu/packages/debug.scm (libleak): Update to 0.3.6.
---
gnu/packages/debug.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/debug.scm b/gnu/packages/debug.scm
index 7283d04bd2..0c97f61ccb 100644
--- a/gnu/packages/debug.scm
+++ b/gnu/packages/debug.scm
@@ -716,7 +716,7 @@ (define-public libbacktrace
(define-public libleak
(package
(name "libleak")
- (version "0.3.5")
+ (version "0.3.6")
(source (origin
(method git-fetch)
(uri (git-reference
@@ -725,7 +725,7 @@ (define-public libleak
(file-name (git-file-name name version))
(sha256
(base32
- "1p8mb0hcfp8hdv1klv6rrpkn2zlhjxgkxbbjsk8kszxv7ijln87d"))))
+ "1p6x20mm0dym2qn10d6cvwmh71m93xwcd319g94zkv88hj5q17n6"))))
(build-system gnu-build-system)
(arguments
`(#:tests? #f ;no test suite
--
2.41.0
Information forwarded
to
jlicht <at> fsfe.org, guix-patches <at> gnu.org
:
bug#64579
; Package
guix-patches
.
(Thu, 13 Jul 2023 08:45:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 64579 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/node.scm (node-lts)[arguments]: Add build phase
'ignore-number-of-hardlinks.
---
gnu/packages/node.scm | 31 ++++++++++++++++++++++++++++++-
1 file changed, 30 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm
index c0bb4f2342..8ba57dd4e0 100644
--- a/gnu/packages/node.scm
+++ b/gnu/packages/node.scm
@@ -874,7 +874,36 @@ (define-public node-lts
(copy-file (string-append llhttp "/src/http.c")
"deps/llhttp/src/http.c")
(copy-file (string-append llhttp "/include/llhttp.h")
- "deps/llhttp/include/llhttp.h"))))))))
+ "deps/llhttp/include/llhttp.h"))))
+ ;; npm installs dependencies by copying their files over a tar
+ ;; stream. A file with more than one hardlink is marked as a
+ ;; "Link". pacote/lib/fetcher.js calls node-tar's extractor with a
+ ;; filter that ignores any "Link" entries. This means that
+ ;; dependending on the number of hardlinks on files in a node-*
+ ;; package *some* of its files may not be installed when generating
+ ;; another package's "node_modules" directory. The build output
+ ;; would differ depending on irrelevant file system state.
+ ;;
+ ;; To avoid this, we patch node-tar to treat files with hardlinks
+ ;; the same as any other file, so that node-tar has no choice but
+ ;; to extract all of them --- independent of pacote's filter.
+ ;;
+ ;; Why not patch pacote's filter instead? This has led to subtle
+ ;; differences in where the files are installed, so it's easier to
+ ;; just ensure that files with hardlinks are always treated as
+ ;; regular files.
+ ;;
+ ;; Discussion:
+ ;; https://lists.gnu.org/archive/html/guix-devel/2023-07/msg00040.html
+ ;; Upstream bug report:
+ ;; https://github.com/npm/pacote/issues/285
+ (add-after 'install 'ignore-number-of-hardlinks
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((file (string-append (assoc-ref outputs "out")
+ "/lib/node_modules/npm/node_modules"
+ "/tar/lib/write-entry.js")))
+ (substitute* file
+ (("this.stat.nlink > 1") "false")))))))))
(native-inputs
(list ;; Runtime dependencies for binaries used as a bootstrap.
c-ares-for-node
--
2.40.1
Reply sent
to
Ricardo Wurmus <rekado <at> elephly.net>
:
You have taken responsibility.
(Thu, 13 Jul 2023 08:50:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Michael Ford <fanquake <at> gmail.com>
:
bug acknowledged by developer.
(Thu, 13 Jul 2023 08:50:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 64579-done <at> debbugs.gnu.org (full text, mbox):
Thank you for the patch (and sorry for the unrelated email I
accendentally sent to this issue).
I’ve applied it and pushed to the “master” branch with commit
dd4c1992103a65b8fbdc80fe07a9fe9be822769a.
--
Ricardo
Information forwarded
to
guix-patches <at> gnu.org
:
bug#64579
; Package
guix-patches
.
(Fri, 14 Jul 2023 12:43:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 64579 <at> debbugs.gnu.org (full text, mbox):
Ricardo Wurmus <rekado <at> elephly.net> writes:
> * gnu/packages/node.scm (node-lts)[arguments]: Add build phase
> 'ignore-number-of-hardlinks.
LGTM, and I was able to do node-related things with these patches
applied locally.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 12 Aug 2023 11:24:13 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 349 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.