diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-08-11 16:07:18 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-08-15 09:33:53 +0100 |
commit | 8f5f23a5a985f5d48973f27c143b0d5edb8ca797 (patch) | |
tree | d47602f67f51080765a2af713497335f3f537d97 | |
parent | 77ca6be2bcac35a54546b0b468a4d68e8cc8b894 (diff) | |
download | openembedded-core-8f5f23a5a985f5d48973f27c143b0d5edb8ca797.tar.gz openembedded-core-8f5f23a5a985f5d48973f27c143b0d5edb8ca797.tar.bz2 openembedded-core-8f5f23a5a985f5d48973f27c143b0d5edb8ca797.zip |
xf86-video-intel: Fix for glibc
It fails to build wi9th glibc 2.28, add the missing required header inclusion.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-graphics/xorg-driver/xf86-video-intel/glibc.patch | 25 | ||||
-rw-r--r-- | meta/recipes-graphics/xorg-driver/xf86-video-intel_git.bb | 1 |
2 files changed, 26 insertions, 0 deletions
diff --git a/meta/recipes-graphics/xorg-driver/xf86-video-intel/glibc.patch b/meta/recipes-graphics/xorg-driver/xf86-video-intel/glibc.patch new file mode 100644 index 0000000000..ada9eb5e52 --- /dev/null +++ b/meta/recipes-graphics/xorg-driver/xf86-video-intel/glibc.patch @@ -0,0 +1,25 @@ +Add a missing include needed for glibc 2.28 to avoid: + +| ../../git/tools/backlight_helper.c: In function 'main': +| ../../git/tools/backlight_helper.c:54:34: error: implicit declaration of function 'major' [-Werror=implicit-function-declaration] +| if (fd < 0 || fstat(fd, &st) || major(st.st_dev)) +| ^~~~~ +| ../../git/tools/backlight_helper.c:54:34: warning: nested extern declaration of 'major' [-Wnested-externs] +| cc1: some warnings being treated as errors +| Makefile:666: recipe for target 'backlight_helper.o' failed + +Upstream-Status: Pending +RP 2018/8/12 + +Index: git/tools/backlight_helper.c +=================================================================== +--- git.orig/tools/backlight_helper.c ++++ git/tools/backlight_helper.c +@@ -8,6 +8,7 @@ + + #include <sys/types.h> + #include <sys/stat.h> ++#include <sys/sysmacros.h> + + #if MAJOR_IN_MKDEV + #include <sys/mkdev.h> diff --git a/meta/recipes-graphics/xorg-driver/xf86-video-intel_git.bb b/meta/recipes-graphics/xorg-driver/xf86-video-intel_git.bb index 5cc4eefc78..655fd4dc69 100644 --- a/meta/recipes-graphics/xorg-driver/xf86-video-intel_git.bb +++ b/meta/recipes-graphics/xorg-driver/xf86-video-intel_git.bb @@ -15,6 +15,7 @@ S = "${WORKDIR}/git" SRC_URI = "git://anongit.freedesktop.org/xorg/driver/xf86-video-intel \ file://0001-Add-Coffeelake-PCI-IDs-for-S-Skus.patch \ + file://glibc.patch \ " UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)" |