mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-27 07:57:27 +00:00
rdma-core: Use target path for systemctl
Fixes WARNING: rdma-core-46.0-r0 do_package_qa: QA Issue: File /usr/lib/udev/rules.d/60-srp_daemon.rules in package rdma-core contains reference to TMPDIR Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
+33
@@ -0,0 +1,33 @@
|
|||||||
|
From 92747aab189aa3cee954ab31ee019205f8984155 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Khem Raj <raj.khem@gmail.com>
|
||||||
|
Date: Sat, 27 May 2023 17:22:10 -0700
|
||||||
|
Subject: [PATCH] cmake: Allow SYSTEMCTL_BIN to be overridden from environment
|
||||||
|
|
||||||
|
This allows to encode correct paths which are inside the target rootfs
|
||||||
|
for systemctl
|
||||||
|
|
||||||
|
Upstream-Status: Pending
|
||||||
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||||
|
---
|
||||||
|
CMakeLists.txt | 5 ++++-
|
||||||
|
1 file changed, 4 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||||
|
index 9b7462861..c4d82fb49 100644
|
||||||
|
--- a/CMakeLists.txt
|
||||||
|
+++ b/CMakeLists.txt
|
||||||
|
@@ -226,7 +226,10 @@ else()
|
||||||
|
set(CYTHON_EXECUTABLE "")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
-find_program(SYSTEMCTL_BIN systemctl HINTS "/usr/bin" "/bin")
|
||||||
|
+if (NOT SYSTEMCTL_BIN)
|
||||||
|
+ find_program(SYSTEMCTL_BIN systemctl HINTS "/usr/bin" "/bin")
|
||||||
|
+endif()
|
||||||
|
+
|
||||||
|
if (NOT SYSTEMCTL_BIN)
|
||||||
|
set (SYSTEMCTL_BIN "/bin/systemctl")
|
||||||
|
endif()
|
||||||
|
--
|
||||||
|
2.40.1
|
||||||
|
|
||||||
@@ -5,7 +5,8 @@ SECTION = "libs"
|
|||||||
DEPENDS = "libnl"
|
DEPENDS = "libnl"
|
||||||
RDEPENDS:${PN} = "bash perl"
|
RDEPENDS:${PN} = "bash perl"
|
||||||
|
|
||||||
SRC_URI = "git://github.com/linux-rdma/rdma-core.git;branch=master;protocol=https"
|
SRC_URI = "git://github.com/linux-rdma/rdma-core.git;branch=master;protocol=https \
|
||||||
|
file://0001-cmake-Allow-SYSTEMCTL_BIN-to-be-overridden-from-envi.patch"
|
||||||
SRCREV = "f2789cbd394c5839e8942d585a494ab72fd97e39"
|
SRCREV = "f2789cbd394c5839e8942d585a494ab72fd97e39"
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
@@ -16,6 +17,7 @@ LIC_FILES_CHKSUM = "file://COPYING.BSD_FB;md5=0ec18bae1a9df92c8d6ae01f94a289ae \
|
|||||||
|
|
||||||
EXTRA_OECMAKE = " \
|
EXTRA_OECMAKE = " \
|
||||||
-DCMAKE_INSTALL_SYSTEMD_SERVICEDIR=${systemd_system_unitdir} \
|
-DCMAKE_INSTALL_SYSTEMD_SERVICEDIR=${systemd_system_unitdir} \
|
||||||
|
-DSYSTEMCTL_BIN=${base_bindir}/systemctl \
|
||||||
-DCMAKE_INSTALL_PERLDIR=${libdir}/perl5/${@get_perl_version(d)} \
|
-DCMAKE_INSTALL_PERLDIR=${libdir}/perl5/${@get_perl_version(d)} \
|
||||||
-DNO_MAN_PAGES=1 \
|
-DNO_MAN_PAGES=1 \
|
||||||
"
|
"
|
||||||
|
|||||||
Reference in New Issue
Block a user