GNU bug report logs -
#48850
[PATCH] gnu: coreutils: Disable inotify-dir-recreate test
Previous Next
Reported by: Carl Dong <contact <at> carldong.me>
Date: Sat, 5 Jun 2021 15:27:01 UTC
Severity: normal
Tags: patch
Fixed in version 6ba1058df0c4ce5611c2367531ae5c3cdc729ab4
Done: Carl Dong <contact <at> carldong.me>
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 48850 in the body.
You can then email your comments to 48850 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#48850
; Package
guix-patches
.
(Sat, 05 Jun 2021 15:27:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Carl Dong <contact <at> carldong.me>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Sat, 05 Jun 2021 15:27:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
This test fails on filesystems where tail detects that it cannot use
inotify safely. See #47935 for more details.
* gnu/packages/base.scm (coreutils)[phases]: Disable
inotify-dir-recreate tests.
---
gnu/packages/base.scm | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index d30299a7b6..02ac619fac 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -378,13 +378,16 @@ used to apply commands with arbitrarily long arguments.")
(("/bin/sh") (which "sh")))
(substitute* (find-files "tests" "\\.sh$")
(("#!/bin/sh") (string-append "#!" (which "sh"))))))
- ,@(if (hurd-target?)
- `((add-after 'unpack 'remove-tests
- (lambda _
- (substitute* "Makefile.in"
- ;; this test hangs
- (("^ *tests/misc/timeout-group.sh.*") "")))))
- '()))))
+ (add-after 'unpack 'remove-tests
+ (lambda _
+ (if ,(hurd-target?)
+ (substitute* "Makefile.in"
+ ;; this test hangs
+ (("^ *tests/misc/timeout-group.sh.*") "")))
+ (substitute* "Makefile.in"
+ ;; fails on filesystems where inotify cannot be used,
+ ;; more info in #47935
+ (("^ *tests/tail-2/inotify-dir-recreate.sh.*") "")))))))
(synopsis "Core GNU utilities (file, text, shell)")
(description
"GNU Coreutils package includes all of the basic command-line tools that
--
2.31.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#48850
; Package
guix-patches
.
(Sat, 05 Jun 2021 20:19:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 48850 <at> debbugs.gnu.org (full text, mbox):
Hi,
Carl Dong <contact <at> carldong.me> skribis:
> This test fails on filesystems where tail detects that it cannot use
> inotify safely. See #47935 for more details.
>
> * gnu/packages/base.scm (coreutils)[phases]: Disable
> inotify-dir-recreate tests.
Please write the full bug URL in the commit log and comment; it’s less
ambiguous, more future-proof, and more convenient.
> - ,@(if (hurd-target?)
> - `((add-after 'unpack 'remove-tests
> - (lambda _
> - (substitute* "Makefile.in"
> - ;; this test hangs
> - (("^ *tests/misc/timeout-group.sh.*") "")))))
> - '()))))
> + (add-after 'unpack 'remove-tests
> + (lambda _
> + (if ,(hurd-target?)
> + (substitute* "Makefile.in"
> + ;; this test hangs
> + (("^ *tests/misc/timeout-group.sh.*") "")))
I’d write it like this:
(lambda _
,@(if (hurd-target?)
'((substitute* …))
'())
…)
That way, the Hurd bit is only expanded when targeting the Hurd, and we
can also adjust it without causing rebuilds on GNU/Linux.
As far as I’m concerned, it’s OK for ‘core-updates’ with these changes!
Thanks,
Ludo’.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#48850
; Package
guix-patches
.
(Mon, 07 Jun 2021 21:53:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 48850 <at> debbugs.gnu.org (full text, mbox):
> I’d write it like this:
>
> (lambda _
> ,@(if (hurd-target?)
> '((substitute* …))
> '())
>
> …)
I'm not entirely familiar with the quoting here, but I trust that this is
correct... Does the following patch look okay?
---
This test fails on filesystems where tail detects that it cannot use
inotify safely. See https://issues.guix.gnu.org/47935 for more details.
* gnu/packages/base.scm (coreutils)[phases]: Disable
inotify-dir-recreate tests.
---
gnu/packages/base.scm | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index d30299a7b6..1ab50dfaf9 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -378,13 +378,17 @@ used to apply commands with arbitrarily long arguments.")
(("/bin/sh") (which "sh")))
(substitute* (find-files "tests" "\\.sh$")
(("#!/bin/sh") (string-append "#!" (which "sh"))))))
- ,@(if (hurd-target?)
- `((add-after 'unpack 'remove-tests
- (lambda _
- (substitute* "Makefile.in"
- ;; this test hangs
- (("^ *tests/misc/timeout-group.sh.*") "")))))
- '()))))
+ (add-after 'unpack 'remove-tests
+ (lambda _
+ ,@(if (hurd-target?)
+ '(substitute* "Makefile.in"
+ ;; this test hangs
+ (("^ *tests/misc/timeout-group.sh.*") ""))
+ '())
+ (substitute* "Makefile.in"
+ ;; fails on filesystems where inotify cannot be used,
+ ;; more info in #47935
+ (("^ *tests/tail-2/inotify-dir-recreate.sh.*") "")))))))
(synopsis "Core GNU utilities (file, text, shell)")
(description
"GNU Coreutils package includes all of the basic command-line tools that
--
2.31.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#48850
; Package
guix-patches
.
(Tue, 08 Jun 2021 18:40:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 48850 <at> debbugs.gnu.org (full text, mbox):
Fixed my quoting thanks to mbakke :-)
---
This test fails on filesystems where tail detects that it cannot use
inotify safely. See https://issues.guix.gnu.org/47935 for more details.
* gnu/packages/base.scm (coreutils)[phases]: Disable
inotify-dir-recreate tests, quote Hurd substitute* call to reduce
rebuilds.
---
gnu/packages/base.scm | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index d30299a7b6..edc4c4a427 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -378,13 +378,17 @@ used to apply commands with arbitrarily long arguments.")
(("/bin/sh") (which "sh")))
(substitute* (find-files "tests" "\\.sh$")
(("#!/bin/sh") (string-append "#!" (which "sh"))))))
- ,@(if (hurd-target?)
- `((add-after 'unpack 'remove-tests
- (lambda _
- (substitute* "Makefile.in"
+ (add-after 'unpack 'remove-tests
+ (lambda _
+ ,@(if (hurd-target?)
+ '((substitute* "Makefile.in"
;; this test hangs
- (("^ *tests/misc/timeout-group.sh.*") "")))))
- '()))))
+ (("^ *tests/misc/timeout-group.sh.*") "")))
+ '())
+ (substitute* "Makefile.in"
+ ;; fails on filesystems where inotify cannot be used,
+ ;; more info in #47935
+ (("^ *tests/tail-2/inotify-dir-recreate.sh.*") "")))))))
(synopsis "Core GNU utilities (file, text, shell)")
(description
"GNU Coreutils package includes all of the basic command-line tools that
--
2.31.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#48850
; Package
guix-patches
.
(Fri, 11 Jun 2021 13:57:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 48850 <at> debbugs.gnu.org (full text, mbox):
Hi Carl,
Carl Dong <contact <at> carldong.me> skribis:
> Fixed my quoting thanks to mbakke :-)
>
> ---
>
> This test fails on filesystems where tail detects that it cannot use
> inotify safely. See https://issues.guix.gnu.org/47935 for more details.
>
> * gnu/packages/base.scm (coreutils)[phases]: Disable
> inotify-dir-recreate tests, quote Hurd substitute* call to reduce
> rebuilds.
LGTM and OK for ‘core-updates’, thanks!
Ludo’.
bug marked as fixed in version 6ba1058df0c4ce5611c2367531ae5c3cdc729ab4, send any further explanations to
48850 <at> debbugs.gnu.org and Carl Dong <contact <at> carldong.me>
Request was from
Carl Dong <contact <at> carldong.me>
to
control <at> debbugs.gnu.org
.
(Fri, 11 Jun 2021 20:41:01 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 10 Jul 2021 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 283 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.