Subject: bug#47791: util-linux fails to build on the Hurd (some tests fail)

From: Ludovic Courtès <[email-masked]>
Date: Fri, 16 Apr 2021 18:07:55 +0200

Hi,

Maxime Devos <[email-masked]> skribis:

> On my x86_64-linux-gnu with a childhurd, util-linux fails to compile.
>
> $ guix build util-linux --system=i586-gnu
>> [exporting path ...]
>> offloading build of /gnu/store/nih[...]8fxg-util-linux-2.35.1.drv to 'localhost'
>> [log, attached in e-mail]
>
> $ guix --version
>> guix (GNU Guix) 3f3d66377c052d6121b46db53391614329fa4ffb
>
> Some bits that seem relevant:
>
>>        fdisk: MBR - sort                     ... OK
>>        fdisk: invalid input tests            ... FAILED (fdisk/oddinput)
>>        fdisk: sunlabel tests                 ... OK
>> [...]
>>        hwclock: system to hw                ... SKIPPED (no root permissions)
>>        ipcs: headers                        ... FAILED (ipcs/headers)
>>        ipcs: limits overflow                ... SKIPPED (no root permissions)
>> [...]
>>                 : ends-with                   ... OK
>>                 : mountpoint                  ... FAILED (libmount/utils-mountpoint)
>>                 : mountpoint-subdir           ... SKIPPED (no /proc)
>> [...]
>>  3 tests of 204 FAILED

Yes, this is a “known problem”:

  https://issues.guix.gnu.org/43857

The problem is that the build environment on GNU/Hurd has yet to be
specified, which is what the patch above was partly trying to address
(though I think we could do better than spawn one firmlink translator
per store item…).

The “Isolated build environments” section of
<https://guix.gnu.org/en/blog/2020/childhurds-and-substitutes/>
discusses the broader issue.

If you’d like to get some Hurd hacking done, here’s a good opportunity.
:-)

Ludo’.