Files
poky/meta/recipes-devtools
Hongxu Jia 403e50f043 rpm: keep leading `/' from sed operation
For /usr/lib/rpm/macros, Yocto explicitly set OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM
= "ONLY" [1][2] to search tools from CMAKE_FIND_ROOT_PATH [5] which locates in
native recipe sysroot or HOSTTOOLS_DIR. If found in native recipe sysroot or
HOSTTOOLS_DIR, the sed operation removed leading `/'

root@qemux86-64:~# vi /usr/lib/rpm/macros
...
%__xz                   usr/bin/xz
%__make                 usr/bin/make
%__zstd                 usr/bin/zstd
%__quilt                usr/bin/quilt
%__patch                usr/bin/patch
...

root@qemux86-64:~# rpm --eval "%{__xz} %{__make} %{__zstd} %{__quilt} %{__patch}"
usr/bin/xz usr/bin/make usr/bin/zstd usr/bin/quilt usr/bin/patch

This commit keeps leading `/' from sed operation, and similar reason for
/usr/lib/cmake/rpm/rpm-targets.cmake

After applying this commit:
root@qemux86-64:~# rpm --eval "%{__xz} %{__make} %{__zstd} %{__quilt} %{__patch}"
/usr/bin/xz /usr/bin/make /usr/bin/zstd /usr/bin/quilt /usr/bin/patch

[1] https://git.openembedded.org/openembedded-core/commit/?id=f4ea12f6635125ee793f4dd801c538c0186f9dc3
[2] https://cmake.org/cmake/help/latest/variable/CMAKE_FIND_ROOT_PATH_MODE_PROGRAM.html

(From OE-Core rev: 0d0773879ab9520c475c4a8c930b2e663de0e032)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-07-17 10:41:18 +01:00
..
2025-05-13 10:29:20 +01:00
2025-07-17 10:41:18 +01:00
2024-09-03 10:21:38 +01:00
2025-05-13 10:29:20 +01:00
2024-05-28 09:38:23 +01:00
2025-06-26 11:02:34 +01:00
2025-06-20 12:07:27 +01:00
2025-06-11 09:34:40 +01:00
2024-04-16 08:07:01 +01:00
2025-06-20 12:07:27 +01:00
2025-05-01 14:33:26 +01:00
2025-07-07 22:12:50 +01:00
2025-07-14 17:49:48 +01:00
2024-10-29 11:19:57 +00:00
2023-09-26 10:35:27 +01:00
2024-08-23 09:12:37 +01:00
2025-06-16 17:57:30 +01:00
2025-07-10 10:47:31 +01:00
2025-06-20 12:07:27 +01:00
2025-07-01 08:49:37 +01:00
2024-06-04 12:04:52 +01:00
2025-07-01 08:49:37 +01:00
2025-06-20 12:07:27 +01:00
2025-03-06 11:16:47 +00:00
2025-06-20 12:07:27 +01:00
2025-07-07 22:12:50 +01:00
2025-07-14 17:49:48 +01:00
2025-06-20 12:07:27 +01:00
2025-06-05 11:02:22 +01:00
2025-07-07 22:12:50 +01:00
2025-01-20 13:38:59 +00:00
2025-07-14 17:49:48 +01:00
2025-05-13 10:29:21 +01:00
2025-07-01 08:49:37 +01:00
2025-03-27 11:19:04 +00:00
2025-03-17 17:09:22 +00:00