aboutsummaryrefslogtreecommitdiff
path: root/package/udftools
diff options
context:
space:
mode:
authorGravatar Fabrice Fontaine <fontaine.fabrice@gmail.com>2018-10-14 20:11:38 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2018-10-15 07:19:37 +0200
commit3c4c7a79ee9de47a860a64684eee1722c8784cc3 (patch)
treed65d4dcba66b853c083f561eaa01ca599d03f036 /package/udftools
parentfbaf0a6db208f77e0f69c36b7338e8c37ad269d9 (diff)
downloadbuildroot-3c4c7a79ee9de47a860a64684eee1722c8784cc3.tar.gz
buildroot-3c4c7a79ee9de47a860a64684eee1722c8784cc3.tar.bz2
udftools: fix build 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. Fixes: - http://autobuild.buildroot.org/results/33cb370ee80d0603974b6376f0364f914d150463 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/udftools')
-rw-r--r--package/udftools/0003-Include-sys-sysmacros-h-to-prevent-build-breakage-with-glibc-2-25.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/package/udftools/0003-Include-sys-sysmacros-h-to-prevent-build-breakage-with-glibc-2-25.patch b/package/udftools/0003-Include-sys-sysmacros-h-to-prevent-build-breakage-with-glibc-2-25.patch
new file mode 100644
index 0000000000..ac56715d62
--- /dev/null
+++ b/package/udftools/0003-Include-sys-sysmacros-h-to-prevent-build-breakage-with-glibc-2-25.patch
@@ -0,0 +1,38 @@
+From cca194f17fe2892c929acab2f1d5016ad38aa305 Mon Sep 17 00:00:00 2001
+From: Lars Wendler <polynomial-c@gentoo.org>
+Date: Tue, 2 Jan 2018 15:10:34 +0100
+Subject: [PATCH] Include <sys/sysmacros.h> to prevent build breakage with
+ >=glibc-2.25
+
+libtool: link: x86_64-pc-linux-gnu-gcc -march=native -mtune=native -O2
+-pipe -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -Wl,--as-needed -o
+mkudffs main.o mkudffs.o defaults.o file.o options.o
+../libudffs/.libs/libudffs.a
+main.o: In function `is_whole_disk':
+main.c:(.text+0x2ce): undefined reference to `major'
+main.c:(.text+0x2dd): undefined reference to `minor'
+main.o: In function `main':
+main.c:(.text.startup+0x72f): undefined reference to `minor'
+main.c:(.text.startup+0x741): undefined reference to `major'
+collect2: error: ld returned 1 exit status
+make[1]: *** [Makefile:378: mkudffs] Error 1
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Retrieved from
+https://github.com/pali/udftools/commit/cca194f17fe2892c929acab2f1d5016ad38aa305]
+---
+ mkudffs/main.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/mkudffs/main.c b/mkudffs/main.c
+index 066afac..3e306ac 100644
+--- a/mkudffs/main.c
++++ b/mkudffs/main.c
+@@ -43,6 +43,7 @@
+ #include <sys/ioctl.h>
+ #include <linux/fs.h>
+ #include <linux/fd.h>
++#include <sys/sysmacros.h>
+
+ #include "mkudffs.h"
+ #include "defaults.h"