From: Michael Tremer Date: Wed, 24 Oct 2018 08:15:28 +0000 (+0100) Subject: parted: Fix build with glibc >= 2.28 X-Git-Tag: v2.21-core125~42^2~2 X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=commitdiff_plain;h=2678d600f98cfbef73faabc15f19ce85723ad698 parted: Fix build with glibc >= 2.28 Signed-off-by: Michael Tremer --- diff --git a/config/rootfiles/core/125/filelists/parted b/config/rootfiles/core/125/filelists/parted new file mode 120000 index 0000000000..89195d8e89 --- /dev/null +++ b/config/rootfiles/core/125/filelists/parted @@ -0,0 +1 @@ +../../../common/parted \ No newline at end of file diff --git a/lfs/parted b/lfs/parted index bbaeff1a33..dc68ba8502 100644 --- a/lfs/parted +++ b/lfs/parted @@ -79,6 +79,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/parted-3.2-device-mapper.patch + cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/parted-3.2-sysmacros.patch cd $(DIR_APP) && ./configure --prefix=/usr --disable-device-mapper cd $(DIR_APP) && make $(MAKETUNING) cd $(DIR_APP) && make install diff --git a/src/patches/parted-3.2-sysmacros.patch b/src/patches/parted-3.2-sysmacros.patch new file mode 100644 index 0000000000..a29e7619b1 --- /dev/null +++ b/src/patches/parted-3.2-sysmacros.patch @@ -0,0 +1,28 @@ +https://bugs.gentoo.org/580022 + +From dec8995fe80508374beba6356f6ecbba8ef6b18b Mon Sep 17 00:00:00 2001 +From: Mike Frysinger +Date: Tue, 21 Jun 2016 15:01:08 -0400 +Subject: [PATCH] include sysmacros.h for major/minor/makedev + +Linux C libs are moving away from including this header implicitly via +sys/types.h, so include it explicitly. +--- + libparted/arch/linux.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/libparted/arch/linux.c b/libparted/arch/linux.c +index 326b95619d31..e5c168be3c68 100644 +--- a/libparted/arch/linux.c ++++ b/libparted/arch/linux.c +@@ -37,6 +37,7 @@ + #include + #include + #include ++#include + #include + #include /* for uname() */ + #include +-- +2.8.2 +