[Buildroot] [PATCH] parted: fix minor()/major() build failure due to glibc 2.28

Thomas Petazzoni thomas.petazzoni at bootlin.com
Mon Sep 10 07:25:10 UTC 2018


Hello,

On Sun,  9 Sep 2018 19:29:17 +0200, Giulio Benetti wrote:

> diff --git a/package/parted/0005-libparted-include-sys-sysmacros.h-to-compile-with-gl.patch b/package/parted/0005-libparted-include-sys-sysmacros.h-to-compile-with-gl.patch
> new file mode 100644
> index 0000000000..63dda4c4ff
> --- /dev/null
> +++ b/package/parted/0005-libparted-include-sys-sysmacros.h-to-compile-with-gl.patch
> @@ -0,0 +1,33 @@
> +From 715e3e937536326af272c45a86cc3765f00297f7 Mon Sep 17 00:00:00 2001
> +From: Giulio Benetti <giulio.benetti at micronovasrl.com>
> +Date: Sun, 9 Sep 2018 19:19:19 +0200
> +Subject: [PATCH] libparted: include <sys/sysmacros.h> to compile with
> + glibc-2.28
> +
> +glibc 2.28 no longer includes <sys/sysmacros.h> from <sys/types.h>,
> +and therefore <sys/sysmacros.h> must be included explicitly when
> +major()/minor() are used.
> +
> +Include <sys/sysmacros.h> into libparted/arch/linux.c where minor() and
> +major() macros are used.
> +
> +Signed-off-by: Giulio Benetti <giulio.benetti at micronovasrl.com>

Please backport upstream commit
ba5e0451b51c983e40afd123b6e0d3eddb55e610 instead of coming up with your
one fix. Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


More information about the buildroot mailing list