diff options
| author | Khem Raj <raj.khem@gmail.com> | 2022-09-01 09:55:24 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-09-01 10:55:23 -0700 |
| commit | 5a782fe1853cabf2634657d9f994cef86cf30f27 (patch) | |
| tree | eb86a12ae422d7e9372102624083cbe98652333f | |
| parent | 6d9291c7e05fa230557d1fa92348a7774de6ff1b (diff) | |
| download | meta-openembedded-5a782fe1853cabf2634657d9f994cef86cf30f27.tar.gz | |
xfce4-dev-tools: Fix configure check for libX11
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2 files changed, 38 insertions, 1 deletions
diff --git a/meta-xfce/recipes-xfce/xfce4-dev-tools/xfce4-dev-tools/0001-m4macros-Check-for-a-function-provided-by-libX11-in-.patch b/meta-xfce/recipes-xfce/xfce4-dev-tools/xfce4-dev-tools/0001-m4macros-Check-for-a-function-provided-by-libX11-in-.patch new file mode 100644 index 0000000000..43b1eb505a --- /dev/null +++ b/meta-xfce/recipes-xfce/xfce4-dev-tools/xfce4-dev-tools/0001-m4macros-Check-for-a-function-provided-by-libX11-in-.patch | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | From 8f58e1b5c15fc3b6f775207971d078c058d9eb7b Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Thu, 1 Sep 2022 08:21:56 -0700 | ||
| 4 | Subject: [PATCH] m4macros: Check for a function provided by libX11 in | ||
| 5 | AC_CHECK_LIB | ||
| 6 | |||
| 7 | checking for main is not ideal, since its not a function from libX11 | ||
| 8 | moreover with newer versions of autoconf this will start to fail [1], so | ||
| 9 | change this to use XFree API which is provided by libX11 and seems more | ||
| 10 | relevant to check here. | ||
| 11 | |||
| 12 | [1] https://lists.gnu.org/archive/html/autoconf-patches/2022-08/msg00018.html | ||
| 13 | |||
| 14 | Upstream-Status: Submitted [https://gitlab.xfce.org/xfce/xfce4-dev-tools/-/issues/57] | ||
| 15 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 16 | --- | ||
| 17 | m4macros/xdt-depends.m4 | 2 +- | ||
| 18 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 19 | |||
| 20 | diff --git a/m4macros/xdt-depends.m4 b/m4macros/xdt-depends.m4 | ||
| 21 | index 3c07c90..ce1b272 100644 | ||
| 22 | --- a/m4macros/xdt-depends.m4 | ||
| 23 | +++ b/m4macros/xdt-depends.m4 | ||
| 24 | @@ -213,7 +213,7 @@ AC_DEFUN([XDT_CHECK_LIBX11], | ||
| 25 | |||
| 26 | LIBX11_CFLAGS= LIBX11_LDFLAGS= LIBX11_LIBS= | ||
| 27 | if test x"$no_x" != x"yes"; then | ||
| 28 | - AC_CHECK_LIB([X11], [main], | ||
| 29 | + AC_CHECK_LIB([X11], [XFree], | ||
| 30 | [ | ||
| 31 | AC_DEFINE([HAVE_LIBX11], [1], [Define if libX11 is available]) | ||
| 32 | LIBX11_CFLAGS="$X_CFLAGS" | ||
| 33 | -- | ||
| 34 | 2.37.3 | ||
| 35 | |||
diff --git a/meta-xfce/recipes-xfce/xfce4-dev-tools/xfce4-dev-tools_4.16.0.bb b/meta-xfce/recipes-xfce/xfce4-dev-tools/xfce4-dev-tools_4.16.0.bb index 5c41a76ed6..586a77efc6 100644 --- a/meta-xfce/recipes-xfce/xfce4-dev-tools/xfce4-dev-tools_4.16.0.bb +++ b/meta-xfce/recipes-xfce/xfce4-dev-tools/xfce4-dev-tools_4.16.0.bb | |||
| @@ -11,7 +11,9 @@ inherit autotools pkgconfig | |||
| 11 | 11 | ||
| 12 | BBCLASSEXTEND = "native" | 12 | BBCLASSEXTEND = "native" |
| 13 | 13 | ||
| 14 | SRC_URI = "http://archive.xfce.org/src/xfce/${BPN}/${@'${PV}'[0:4]}/${BPN}-${PV}.tar.bz2" | 14 | SRC_URI = "http://archive.xfce.org/src/xfce/${BPN}/${@'${PV}'[0:4]}/${BPN}-${PV}.tar.bz2 \ |
| 15 | file://0001-m4macros-Check-for-a-function-provided-by-libX11-in-.patch \ | ||
| 16 | " | ||
| 15 | SRC_URI:append:class-target = " file://0001-Run-native-xdt-csource-on-tests.patch" | 17 | SRC_URI:append:class-target = " file://0001-Run-native-xdt-csource-on-tests.patch" |
| 16 | SRC_URI[sha256sum] = "f50b3070e66f3ebdf331744dd1ec5e1af5de333965d491e15ce05545e8eb4f04" | 18 | SRC_URI[sha256sum] = "f50b3070e66f3ebdf331744dd1ec5e1af5de333965d491e15ce05545e8eb4f04" |
| 17 | 19 | ||
