Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 832428 - net-fs/openafs-1.8.8.1-r1 fails to compile: checking your AFS sysname.. configure: error: An AFS sysname is required
Summary: net-fs/openafs-1.8.8.1-r1 fails to compile: checking your AFS sysname.. confi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-01-31 12:44 UTC by Agostino Sarubbo
Modified: 2025-01-06 07:24 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,42.50 KB, text/plain)
2022-01-31 12:44 UTC, Agostino Sarubbo
Details
1-config.log (1-config.log,51.71 KB, text/plain)
2022-01-31 12:44 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-01-31 12:44:40 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: net-fs/openafs-1.8.8.1-r1 fails to compile.
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
This machine uses MUSL libc
Comment 1 Agostino Sarubbo gentoo-dev 2022-01-31 12:44:43 UTC
Created attachment 764044 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-01-31 12:44:44 UTC
Created attachment 764045 [details]
1-config.log

1-config.log
Comment 3 Cheyenne Wills 2022-08-04 20:42:26 UTC
The problem is within the configure step.  configure is unable to determine the system name.  You should be able to get around this problem by adding "--with-afs-sysname=amd64_linux26" as an option to configure within the ebuild itself.


When --with-afs-sysname is not specified, configure will try to determine the system name via the --host parameter, which is --host=x86_64-gentoo-linux-musl in this case, and that doesn't match up with what is configure is looking for ("x86_64-*-linux-gnu").  

As an additional comment, I'm not sure if you will run into additional problems trying to build or run using musl.
Comment 4 Cheyenne Wills 2025-01-05 20:01:26 UTC
There is a simple patch that would allow the build, however it is unknown if openafs would build cleanly or even function using the musl libraries.  

I will try to set up a set of musl based virtual machines and attempt a build/test, but for the moment, I'm not sure of the success of using musl with openafs.

For the moment, I would like to mask the use of musl with openafs until I can spend some time to perform some testing.
Comment 5 Larry the Git Cow gentoo-dev 2025-01-06 07:24:34 UTC
The bug has been closed via the following commit(s):

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

commit 41d41b94b6a03626eecca6eddcca7eafa2b88fef
Author:     Cheyenne Wills <cwills@witznd.net>
AuthorDate: 2025-01-06 01:42:42 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-01-06 07:23:18 +0000

    net-fs/openafs: add 1.8.13.1
    
    Update net-fs/openafs to 1.8.13.1 which has support for Linux 6.12
    Add package.mask for net-fs/openafs for musl.
    Add package.use.mask for afs for musl.
    Update ebuild to add QA_CONFIG_IMPL_DECL_SKIP.
    
    Signed-off-by: Cheyenne Wills <cwills@witznd.net>
    Closes: https://bugs.gentoo.org/947559
    Closes: https://bugs.gentoo.org/832428
    Closes: https://bugs.gentoo.org/943641
    Signed-off-by: Sam James <sam@gentoo.org>

 net-fs/openafs/Manifest                 |   2 +
 net-fs/openafs/openafs-1.8.13.1.ebuild  | 346 ++++++++++++++++++++++++++++++++
 profiles/features/musl/package.mask     |   6 +
 profiles/features/musl/package.use.mask |   7 +
 4 files changed, 361 insertions(+)