Patchwork [1/1] chkconfig: fix QA warning about unsafe references in binaries

login
register
mail settings
Submitter wenzong.fan@windriver.com
Date June 6, 2013, 9:28 a.m.
Message ID <1c14aa64c8618df5c99815044972621a418e4a46.1370510036.git.wenzong.fan@windriver.com>
Download mbox | patch
Permalink /patch/51225/
State Accepted
Commit 18f5e6b80e1465e00242a2513a4bd90e0a2f3ff7
Headers show

Comments

wenzong.fan@windriver.com - June 6, 2013, 9:28 a.m.
From: Wenzong Fan <wenzong.fan@windriver.com>

This test is disabled in oe-core by default, but if we enable it, we'll
get following warnings:

  + WARN_QA = "unsafe-references-in-binaries unsafe-references-in-scripts"

WARNING: QA Issue: chkconfig: /sbin/chkconfig, installed in the \
base_prefix, requires a shared library under exec_prefix (/usr): \
libpopt.so.0 => /usr/lib64/libpopt.so.0

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
---
 meta/recipes-extended/chkconfig/chkconfig_1.3.58.bb |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch

diff --git a/meta/recipes-extended/chkconfig/chkconfig_1.3.58.bb b/meta/recipes-extended/chkconfig/chkconfig_1.3.58.bb
index 4c6985f..c6f8b1d 100644
--- a/meta/recipes-extended/chkconfig/chkconfig_1.3.58.bb
+++ b/meta/recipes-extended/chkconfig/chkconfig_1.3.58.bb
@@ -43,7 +43,8 @@  obey_variables () {
 }
 
 do_install() {
-	oe_runmake 'DESTDIR=${D}' 'INSTALLNLSDIR=${D}${datadir}/locale' install
+	oe_runmake 'DESTDIR=${D}' 'INSTALLNLSDIR=${D}${datadir}/locale' \
+		'BINDIR=${sbindir}' install
 	install -d ${D}${sysconfdir}/chkconfig.d
 }