]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
hdparm: Fix build with glibc 2.36
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 15 Aug 2022 17:17:46 +0000 (17:17 +0000)
committerPeter Müller <peter.mueller@ipfire.org>
Sun, 11 Sep 2022 08:36:17 +0000 (08:36 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/hdparm
src/patches/hdparm-9.64-fix-glibc-headers.patch [new file with mode: 0644]

index 704317a6a898092a5423dde0088ae8a2db4409f7..8d3f6d1cf3fd1ac8c2c5aa7ecf01b38976a9a8ea 100644 (file)
@@ -70,6 +70,7 @@ $(subst %,%_BLAKE2,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
+       cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/hdparm-9.64-fix-glibc-headers.patch
        cd $(DIR_APP) && make $(MAKETUNING)
        cd $(DIR_APP) && make install
        @rm -rf $(DIR_APP)
diff --git a/src/patches/hdparm-9.64-fix-glibc-headers.patch b/src/patches/hdparm-9.64-fix-glibc-headers.patch
new file mode 100644 (file)
index 0000000..7589c86
--- /dev/null
@@ -0,0 +1,11 @@
+--- hdparm-9.64/hdparm.c
++++ hdparm-9.64/hdparm.c
+@@ -24,9 +24,6 @@
+ #include <sys/mount.h>
+ #include <sys/mman.h>
+ #include <sys/user.h>
+-#include <linux/types.h>
+-#include <linux/fs.h>
+-#include <linux/major.h>
+ #include <endian.h>
+ #include <asm/byteorder.h>