Subject: bug#49933: closed (Re: bug#49933: [PATCH core-updates-frozen] gnu: util-linux: Disable unreliable ioctl_ns test)

From: [email-masked] (GNU bug Tracking System)
Date: Sun, 15 Aug 2021 10:17:02 +0000

Your bug report

#49933: [PATCH core-updates-frozen] gnu: util-linux: Disable unreliable ioctl_ns test

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
49933: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=49933
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#49933: [PATCH core-updates-frozen] gnu: util-linux: Disable unreliable ioctl_ns test
From: Mathieu Othacehe <[email-masked]>
To: Maxime Devos <[email-masked]>
Cc: [email-masked], Thiago Jung Bauermann <[email-masked]>
Date: Sun, 15 Aug 2021 12:16:01 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hey,

> * gnu/packages/linux.scm
>   (util-linux)[arguments]<#:phases>{delete-lsns-test}: New phase.

Pushed, thanks!

Mathieu

Subject: [PATCH core-updates-frozen] gnu: util-linux: Disable unreliable ioctl_ns test
From: Maxime Devos <[email-masked]>
To: [email-masked]
Date: Sat, 07 Aug 2021 23:54:50 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

In <https://issues.guix.gnu.org/XXXXX>, XXXXX will need
to be replaced with the debbugs id.
From dae891f54d4ace4ab467d547f1c91cf003f47051 Mon Sep 17 00:00:00 2001
From: Maxime Devos <[email-masked]>
Date: Sat, 7 Aug 2021 23:41:10 +0200
Subject: [PATCH core-updates-frozen] gnu: util-linux: Disable unreliable
 ioctl_ns test.
To: [email-masked]

* gnu/packages/linux.scm
  (util-linux)[arguments]<#:phases>{delete-lsns-test}: New phase.
---
 gnu/packages/linux.scm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index a5fd8ddaee..c964602e63 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -1804,6 +1804,14 @@ providing the system administrator with some help in common tasks.")
                          (string-append
                           all "\n"
                           "ts_skip \"setarch tests are unreliable under QEMU\"")))))
+                  (add-before 'check 'disable-lsns-test
+                    (lambda _
+                      ;; The lsns tests can fail due to ioctl(_, NS_GET_USERNS)
+                      ;; returning ENOTTY, indicating this kernel does not
+                      ;; support user namespaces.  Curiously, this test can fail
+                      ;; on i686 even if the same test passes on x86_64 on the
+                      ;; same machine.  See <https://issues.guix.gnu.org/XXXXX>.
+                      (delete-file "tests/ts/lsns/ioctl_ns")))
                   (add-after 'install 'move-static-libraries
                     (lambda* (#:key outputs #:allow-other-keys)
                       (let ((lib    (assoc-ref outputs "lib"))

base-commit: 944ba4237f4c0ccab1bc62a23a31f577ce1878e5
-- 
2.32.0