Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 827542 - net-fs/nfs-utils-2.5.4-r2: emerge fails on amd64 musl system - sys/queue.h: No such file or directory
Summary: net-fs/nfs-utils-2.5.4-r2: emerge fails on amd64 musl system - sys/queue.h: N...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2021-11-26 18:40 UTC by Martin Dummer
Modified: 2021-11-28 01:33 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,42.50 KB, text/x-log)
2021-11-26 18:40 UTC, Martin Dummer
Details
emerge --info (emerge-info.txt,5.13 KB, text/plain)
2021-11-26 18:41 UTC, Martin Dummer
Details
Patch to fix build on musl based system (musl-fix-queue-header.patch,2.15 KB, patch)
2021-11-26 18:42 UTC, Martin Dummer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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(-)