diff options
| author | Gyorgy Sarvari <skandigraun@gmail.com> | 2025-09-08 16:49:55 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-09-11 11:31:57 +0100 |
| commit | 95dd4137a1dc1af8df58026ffd3d9a8c007b9b2b (patch) | |
| tree | f50e4b488acad58ef582b9ade7020cb9fbf5ba56 | |
| parent | 46455d3025592aa0254844348d3b0ad4301d2e2a (diff) | |
| download | poky-95dd4137a1dc1af8df58026ffd3d9a8c007b9b2b.tar.gz | |
libassuan: don't search for gpgrt-config on build host
When another project uses the libassuan.m4 file to find libassuan details,
the macro first tries to execute the gpgrt-config executable if it can find
any in the PATH. However it also prepends the PATH with ${prefix}/bin, which
usually translates to /usr/bin - in case the build host has this executable
installed, then it is executed, and it shows warnings about mis-matched
architecture before pkg-config would be executed.
To avoid this, extend the existing patch to not prepend the PATH with the
build host path - the existing PATH should be good enough.
(From OE-Core rev: d5e41e1cee17c25a63a9df0769052ff4dce44333)
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Cc: Ross Burton <ross.burton@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-support/libassuan/libassuan/libassuan-add-pkgconfig-support.patch | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/meta/recipes-support/libassuan/libassuan/libassuan-add-pkgconfig-support.patch b/meta/recipes-support/libassuan/libassuan/libassuan-add-pkgconfig-support.patch index 20361e8a99..5714e46b7e 100644 --- a/meta/recipes-support/libassuan/libassuan/libassuan-add-pkgconfig-support.patch +++ b/meta/recipes-support/libassuan/libassuan/libassuan-add-pkgconfig-support.patch | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | |||
| 1 | From 9d28122b7e7ae3f17364e1ab97355cf5eaf14cb8 Mon Sep 17 00:00:00 2001 | 2 | From 9d28122b7e7ae3f17364e1ab97355cf5eaf14cb8 Mon Sep 17 00:00:00 2001 |
| 2 | From: Trevor Gamblin <tgamblin@baylibre.com> | 3 | From: Trevor Gamblin <tgamblin@baylibre.com> |
| 3 | Date: Wed, 7 Aug 2024 11:36:26 -0400 | 4 | Date: Wed, 7 Aug 2024 11:36:26 -0400 |
| @@ -14,14 +15,30 @@ Refactor to apply on top of 3.0.1, including reformatting as an mbox for | |||
| 14 | easier use. | 15 | easier use. |
| 15 | 16 | ||
| 16 | Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com> | 17 | Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com> |
| 18 | |||
| 19 | Remove $prefix/bin (/usr/bin) from search path to avoid executing gpgrt-config | ||
| 20 | installed on the build system. At the very least it leads to warnings | ||
| 21 | about mis-matched architectures in the config logs. | ||
| 22 | |||
| 23 | Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> | ||
| 24 | |||
| 17 | --- | 25 | --- |
| 18 | src/libassuan.m4 | 81 ++---------------------------------------------- | 26 | src/libassuan.m4 | 83 +++--------------------------------------------- |
| 19 | 1 file changed, 3 insertions(+), 78 deletions(-) | 27 | 1 file changed, 4 insertions(+), 79 deletions(-) |
| 20 | 28 | ||
| 21 | diff --git a/src/libassuan.m4 b/src/libassuan.m4 | 29 | diff --git a/src/libassuan.m4 b/src/libassuan.m4 |
| 22 | index 4d7da17..f4692ab 100644 | 30 | index 4d7da17..81b495a 100644 |
| 23 | --- a/src/libassuan.m4 | 31 | --- a/src/libassuan.m4 |
| 24 | +++ b/src/libassuan.m4 | 32 | +++ b/src/libassuan.m4 |
| 33 | @@ -17,7 +17,7 @@ dnl (minimum pkg-config functionality, supporting cross build) | ||
| 34 | dnl | ||
| 35 | dnl _AM_PATH_GPGRT_CONFIG | ||
| 36 | AC_DEFUN([_AM_PATH_GPGRT_CONFIG],[dnl | ||
| 37 | - AC_PATH_PROG(GPGRT_CONFIG, gpgrt-config, no, [$prefix/bin:$PATH]) | ||
| 38 | + AC_PATH_PROG(GPGRT_CONFIG, gpgrt-config, no, [$PATH]) | ||
| 39 | if test "$GPGRT_CONFIG" != "no"; then | ||
| 40 | # Determine gpgrt_libdir | ||
| 41 | # | ||
| 25 | @@ -103,27 +103,6 @@ dnl | 42 | @@ -103,27 +103,6 @@ dnl |
| 26 | AC_DEFUN([_AM_PATH_LIBASSUAN_COMMON], | 43 | AC_DEFUN([_AM_PATH_LIBASSUAN_COMMON], |
| 27 | [ AC_REQUIRE([AC_CANONICAL_HOST])dnl | 44 | [ AC_REQUIRE([AC_CANONICAL_HOST])dnl |
| @@ -136,6 +153,3 @@ index 4d7da17..f4692ab 100644 | |||
| 136 | ifelse([$3], , :, [$3]) | 153 | ifelse([$3], , :, [$3]) |
| 137 | fi | 154 | fi |
| 138 | AC_SUBST(LIBASSUAN_CFLAGS) | 155 | AC_SUBST(LIBASSUAN_CFLAGS) |
| 139 | -- | ||
| 140 | 2.43.0 | ||
| 141 | |||
