Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 827542

Summary: net-fs/nfs-utils-2.5.4-r2: emerge fails on amd64 musl system - sys/queue.h: No such file or directory
Product: Gentoo Linux Reporter: Martin Dummer <martin.dummer>
Component: Current packagesAssignee: Gentoo musl team <musl>
Status: RESOLVED FIXED    
Severity: normal CC: base-system, martin.dummer
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge --info
Patch to fix build on musl based system

Description Martin Dummer 2021-11-26 18:40:00 UTC
Created attachment 756670 [details]
build.log

On a system freshly build from stage3-amd64-musl-20211121T170545Z.tar.xz nfs-utils fail to emerge.

Relevant error message:

v4root.c:16:10: fatal error: sys/queue.h: No such file or directory
   16 | #include <sys/queue.h>
      |          ^~~~~~~~~~~~~
compilation terminated.

I checked net-fs/nfs-utils-2.5.3-r2 also with the same result.

See attachments build.log and emerge-info.txt.

I also add a patch that fixes this issue for my purpose (musl system!) must be saved as file

/etc/portage/patches/net-fs/nfs-utils/musl-fix-queue-header.patch
Comment 1 Martin Dummer 2021-11-26 18:41:00 UTC
Created attachment 756674 [details]
emerge --info
Comment 2 Martin Dummer 2021-11-26 18:42:24 UTC
Created attachment 756678 [details, diff]
Patch to fix build on musl based system
Comment 3 Mike Gilbert gentoo-dev 2021-11-27 23:42:31 UTC
Does it work if you install sys-libs/queue-standalone?
Comment 4 Larry the Git Cow gentoo-dev 2021-11-28 01:33:03 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aabfcc2020b0c52c53418bdc6667603f0bfbd6da

commit aabfcc2020b0c52c53418bdc6667603f0bfbd6da
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2021-11-28 01:31:51 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2021-11-28 01:31:51 +0000

    net-fs/nfs-utils: depend on sys-libs/queue-standalone for musl
    
    Closes: https://bugs.gentoo.org/827542
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 net-fs/nfs-utils/nfs-utils-2.5.3-r2.ebuild | 7 +++++--
 net-fs/nfs-utils/nfs-utils-2.5.4-r2.ebuild | 7 +++++--
 2 files changed, 10 insertions(+), 4 deletions(-)