From b9c02f0b77eaaa09477bf358d42b71a4f0daca26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Wed, 2 Sep 2015 09:13:00 +0200 Subject: [PATCH] dracut: fix cross compiling for musl --- srcpkgs/dracut/patches/musl-__wordsize.patch | 15 +++++++++++++++ srcpkgs/dracut/template | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/dracut/patches/musl-__wordsize.patch diff --git a/srcpkgs/dracut/patches/musl-__wordsize.patch b/srcpkgs/dracut/patches/musl-__wordsize.patch new file mode 100644 index 0000000000..d2dbd5f083 --- /dev/null +++ b/srcpkgs/dracut/patches/musl-__wordsize.patch @@ -0,0 +1,15 @@ +For musl libc it is required to include to +have __WORDSIZE defined to e.g. 32 for arm*-musl. + +--- install/util.h 2015-06-15 12:27:21.000000000 +0200 ++++ install/util.h 2015-09-02 09:07:57.321104222 +0200 +@@ -33,6 +33,9 @@ + #include + #include + #include ++#if !defined(__GLIBC__) ++#include ++#endif + #include + #include + #include diff --git a/srcpkgs/dracut/template b/srcpkgs/dracut/template index d6ce33cc5f..4213a07fcf 100644 --- a/srcpkgs/dracut/template +++ b/srcpkgs/dracut/template @@ -1,7 +1,7 @@ # Template file for 'dracut' pkgname=dracut version=043 -revision=8 +revision=9 build_style=configure configure_args="--prefix=/usr --sysconfdir=/etc" hostmakedepends="libxslt docbook-xsl asciidoc"