diff mbox series

[bug#61217] build: Correct guix_system on musl libc distros.

Message ID 20230201202504.14546-1-antero@mailbox.org
State New
Headers show
Series [bug#61217] build: Correct guix_system on musl libc distros. | expand

Commit Message

Antero Mejr Feb. 1, 2023, 8:25 p.m. UTC
* m4/guix.m4 (GUIX_SYSTEM_TYPE): Add linux-musl* case. This prevents
the macro from mis-parsing the host OS, which causes breakage when
building from source.
---
 m4/guix.m4 | 2 ++
 1 file changed, 2 insertions(+)

Comments

Ludovic Courtès March 16, 2023, 11:31 a.m. UTC | #1
Hi,

Antero Mejr <antero@mailbox.org> skribis:

> * m4/guix.m4 (GUIX_SYSTEM_TYPE): Add linux-musl* case. This prevents
> the macro from mis-parsing the host OS, which causes breakage when
> building from source.

Finally applied, thanks!

Ludo’.
diff mbox series

Patch

diff --git a/m4/guix.m4 b/m4/guix.m4
index 700c0dfd4a..147fcc48f4 100644
--- a/m4/guix.m4
+++ b/m4/guix.m4
@@ -58,6 +58,8 @@  AC_DEFUN([GUIX_SYSTEM_TYPE], [
        linux-gnu*)
 	  # For backward compatibility, strip the `-gnu' part.
 	  guix_system="$machine_name-linux";;
+       linux-musl*)
+	  guix_system="$machine_name-linux";;
        gnu*)
           # Always use i586 for GNU/Hurd.
           guix_system="i586-gnu";;