Report forwarded
to bug-guix@gnu.org: bug#47239; Package guix.
(Thu, 18 Mar 2021 15:06:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Konrad Hinsen <konrad.hinsen@fastmail.net>:
New bug report received and forwarded. Copy sent to bug-guix@gnu.org.
(Thu, 18 Mar 2021 15:06:02 GMT) (full text, mbox, link).
Dear Guix Gurus,
I am trying to compile Guix (commit
1955ef93b76e51cab5bed4c90f7eb9df7035355a) from source, on a computer
running Ubuntu 20.04 with Guix added via a binary installation. I get
one test failure, whose test-suite.log is attached.
Cheers,
Konrad.
Subject: Re: bug#47239: Test failure in tests/publish.scm with commit
1955ef93b76e51cab5bed4c90f7eb9df7035355a
Date: Sun, 21 Mar 2021 11:26:08 +0100
Hi Ludo,
> Is it reproducible? (You can run “make check TESTS=tests/publish.scm”.)
Yes.
> If it is, could you add ‘pk’ calls here and there to see which of the
> sub-expressions in (and …) returns false?
'pk' shows nothing, but I rolled my own version using plain old
"display" and found that
(stat:perms (lstat nar))
is #o664 rather than the expected #o644.
Cheers,
Konrad.
Information forwarded
to bug-guix@gnu.org: bug#47239; Package guix.
(Sun, 21 Mar 2021 14:28:02 GMT) (full text, mbox, link).
To: Konrad Hinsen <konrad.hinsen@fastmail.net>, Ludovic Courtès <ludo@gnu.org>
Cc: 47239@debbugs.gnu.org
Subject: Re: bug#47239: Test failure in tests/publish.scm with commit
1955ef93b76e51cab5bed4c90f7eb9df7035355a
Date: Sun, 21 Mar 2021 15:25:02 +0100
Hi,
On Sun, 21 Mar 2021 at 11:26, Konrad Hinsen <konrad.hinsen@fastmail.net> wrote:
>> Is it reproducible? (You can run “make check TESTS=tests/publish.scm”.)
>
> Yes.
For the record, ’tests/publish.scm’ pass on Debian but not on Ubuntu.
Cheers,
simon
Information forwarded
to bug-guix@gnu.org: bug#47239; Package guix.
(Mon, 22 Mar 2021 07:55:02 GMT) (full text, mbox, link).
To: zimoun <zimon.toutoune@gmail.com>, Ludovic Courtès
<ludo@gnu.org>
Cc: 47239@debbugs.gnu.org
Subject: Re: bug#47239: Test failure in tests/publish.scm with commit
1955ef93b76e51cab5bed4c90f7eb9df7035355a
Date: Mon, 22 Mar 2021 08:54:50 +0100
zimoun <zimon.toutoune@gmail.com> writes:
> For the record, ’tests/publish.scm’ pass on Debian but not on Ubuntu.
One more data point: the tests pass under Ubuntu 18.04, but fail under
Ubuntu 20.04.
Cheers,
Konrad.
Information forwarded
to bug-guix@gnu.org: bug#47239; Package guix.
(Mon, 22 Mar 2021 16:34:02 GMT) (full text, mbox, link).
I think this is a simple umask issue. Making the test check for just the bits worked for me:
diff --git a/tests/publish.scm b/tests/publish.scm
index 52101876b5..3e67c435ac 100644
--- a/tests/publish.scm
+++ b/tests/publish.scm
@@ -452,8 +452,8 @@ References: ~%"
(wait-for-file cached)
;; Both the narinfo and nar should be world-readable.
- (= #o644 (stat:perms (lstat cached)))
- (= #o644 (stat:perms (lstat nar)))
+ (= #o444 (logand #o444 (stat:perms (lstat cached))))
+ (= #o444 (logand #o444 (stat:perms (lstat nar))))
(let* ((body (http-get-port url))
(compressed (http-get nar-url))
Added indication that bug 47239 blocks47297
Request was from zimoun <zimon.toutoune@gmail.com>
to control@debbugs.gnu.org.
(Wed, 24 Mar 2021 03:15:02 GMT) (full text, mbox, link).
Reply sent
to Ludovic Courtès <ludo@gnu.org>:
You have taken responsibility.
(Wed, 31 Mar 2021 14:03:02 GMT) (full text, mbox, link).
Notification sent
to Konrad Hinsen <konrad.hinsen@fastmail.net>:
bug acknowledged by developer.
(Wed, 31 Mar 2021 14:03:02 GMT) (full text, mbox, link).
Subject: Re: bug#47239: Test failure in tests/publish.scm with commit
1955ef93b76e51cab5bed4c90f7eb9df7035355a
Date: Wed, 31 Mar 2021 16:02:15 +0200
Hi,
Cees de Groot <cg@evrl.com> skribis:
> I think this is a simple umask issue. Making the test check for just the bits worked for me:
>
> diff --git a/tests/publish.scm b/tests/publish.scm
> index 52101876b5..3e67c435ac 100644
> --- a/tests/publish.scm
> +++ b/tests/publish.scm
> @@ -452,8 +452,8 @@ References: ~%"
> (wait-for-file cached)
>
> ;; Both the narinfo and nar should be world-readable.
> - (= #o644 (stat:perms (lstat cached)))
> - (= #o644 (stat:perms (lstat nar)))
> + (= #o444 (logand #o444 (stat:perms (lstat cached))))
> + (= #o444 (logand #o444 (stat:perms (lstat nar))))
Indeed. Pushed as c536f0b217714917988d2f412999d978c2f2f495 on your
behalf.
Thanks!
Ludo’.
bug archived.
Request was from Debbugs Internal Request <help-debbugs@gnu.org>
to internal_control@debbugs.gnu.org.
(Thu, 29 Apr 2021 11:24:06 GMT) (full text, mbox, link).
Debbugs is free software and licensed under the terms of the
GNU Public License version 2. The current version can be
obtained from https://bugs.debian.org/debbugs-source/.