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

Bug 913758

Summary: media-sound/alsa-utils-1.2.10: fails to compile on musl (type u_intX_t not recognized)
Product: Gentoo Linux Reporter: spykyvenator
Component: Current packagesAssignee: Gentoo ALSA team [DISABLED] <alsa-bugs>
Status: RESOLVED FIXED    
Severity: trivial CC: sam
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: AMD64   
OS: Linux   
See Also: https://github.com/alsa-project/alsa-utils/pull/234
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info alsa-utils
alsa-utils 1.2.10 build.log

Description spykyvenator 2023-09-07 17:44:57 UTC
Created attachment 870040 [details]
emerge --info alsa-utils

alsa-utils failed to build when updating, a patch to include sys/types.h to nhlt-dmic-info.c made things build for me:

diff -ruN ../alsa-utils-1.2.10/nhlt/nhlt-dmic-info.c ./nhlt/nhlt-dmic-info.c
--- ../alsa-utils-1.2.10/nhlt/nhlt-dmic-info.c	2023-09-01 17:36:26.000000000 +0200
+++ ./nhlt/nhlt-dmic-info.c	2023-09-07 19:20:13.030450794 +0200
@@ -23,6 +23,7 @@
  *
  */
 
+#include <sys/types.h>
 #include "aconfig.h"
 #include <stdint.h>
 #include <stdio.h>

note that I am on musl
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-07 17:46:11 UTC
Can you share the build.log please?
Comment 2 spykyvenator 2023-09-07 17:50:56 UTC
Created attachment 870041 [details]
alsa-utils 1.2.10 build.log

Here is the build log
Comment 3 spykyvenator 2023-09-07 18:16:04 UTC
I forgot to mention that I am using an older version of musl: 1.2.3-r8
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-07 20:30:07 UTC
Thanks, I've sent a few patches upstream at https://github.com/alsa-project/alsa-utils/pull/234.
Comment 5 Larry the Git Cow gentoo-dev 2023-09-07 20:50:41 UTC
The bug has been closed via the following commit(s):

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

commit b3dd0b056b2520cd5ef490597e061a0f2a73ef7c
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-09-07 20:35:11 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-09-07 20:50:17 +0000

    media-sound/alsa-utils: fix musl build
    
    Closes: https://bugs.gentoo.org/913758
    Signed-off-by: Sam James <sam@gentoo.org>

 media-sound/alsa-utils/Manifest                    |  1 +
 media-sound/alsa-utils/alsa-utils-1.2.10-r1.ebuild | 93 ++++++++++++++++++++++
 2 files changed, 94 insertions(+)