[meta-selinux] audit: change to use ${WORKDIR} instead ${S}/../

Submitted by Qi.Chen@windriver.com on April 15, 2019, 3:16 a.m. | Patch ID: 160425

Details

Message ID 1555298167-15160-1-git-send-email-Qi.Chen@windriver.com
State New
Headers show

Commit Message

Qi.Chen@windriver.com April 15, 2019, 3:16 a.m.
The do_install function is assuming that ${S}/../ is ${WORKDIR},
but this is not true when using `devtool modify audit'.

So change to use ${WORKDIR}.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 recipes-security/audit/audit_2.8.4.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/recipes-security/audit/audit_2.8.4.bb b/recipes-security/audit/audit_2.8.4.bb
index c29bb74..594786a 100644
--- a/recipes-security/audit/audit_2.8.4.bb
+++ b/recipes-security/audit/audit_2.8.4.bb
@@ -82,7 +82,7 @@  do_install_append() {
 	rmdir ${D}/etc/sysconfig/
 
 	# replace init.d
-	install -D -m 0755 ${S}/../auditd ${D}/etc/init.d/auditd
+	install -D -m 0755 ${WORKDIR}/auditd ${D}/etc/init.d/auditd
 	rm -rf ${D}/etc/rc.d
 
 	if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then