Files
poky/meta/recipes-devtools
Hongxu Jia 5c8ceb35b4 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: cab720b5508411f9a63025e2765d4d46914a1404)

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>
(cherry picked from commit 0d0773879ab9520c475c4a8c930b2e663de0e032)
Signed-off-by: Deepak Rathore <deeratho@cisco.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
2025-09-09 09:08:09 -07:00
..
2024-01-21 12:27:12 +00:00
2025-09-01 08:30:56 -07:00
2023-07-30 07:54:44 +01:00
2024-03-01 09:28:51 +00:00
2024-09-19 05:11:35 -07:00
2024-02-03 22:08:26 +00:00
2023-05-05 11:07:25 +01:00
2025-09-01 08:30:56 -07:00
2025-09-01 08:30:56 -07:00
2025-06-20 08:38:12 -07:00
2024-03-05 12:24:49 +00:00
2025-09-01 08:30:56 -07:00
2025-09-01 08:30:56 -07:00
2023-09-26 10:35:27 +01:00
2023-12-02 17:18:57 +00:00
2024-09-09 06:08:10 -07:00
2024-03-07 17:25:02 +00:00
2024-11-26 06:11:30 -08:00
2023-06-27 16:23:40 +01:00
2025-09-01 08:30:56 -07:00
2023-03-11 00:08:41 +00:00
2024-10-18 06:04:41 -07:00
2024-07-26 07:43:46 -07:00
2023-09-26 10:35:27 +01:00
2025-07-29 07:59:53 -07:00
2024-08-10 06:34:25 -07:00
2024-12-06 05:50:25 -08:00
2025-07-29 07:59:52 -07:00
2025-05-02 08:20:12 -07:00
2025-05-02 08:20:11 -07:00
2025-08-20 07:37:19 -07:00
2024-03-07 17:25:03 +00:00
2025-01-25 06:20:37 -08:00
2025-09-01 08:30:57 -07:00
2025-09-01 08:30:56 -07:00
2024-03-01 09:28:52 +00:00
2025-07-07 07:42:58 -07:00
2024-11-26 06:11:30 -08:00
2024-03-18 12:21:45 +00:00