Skip to contentSkip to conversation

audit: change to use ${WORKDIR} instead ${S}/../

PATCH New Chen Qi 1 participant 1 message Apr 15, 2019

lore
Share & tools
lore

Chen Qi

author
#0 lore raw

PATCH 1/1 audit: change to use ${WORKDIR} instead ${S}/../

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}.

---
 recipes-security/audit/audit_2.8.4.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-security/audit/audit_2.8.4.bb +1 -1
index c29bb74..594786a 100644
@@ -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
Signature · 1 line
2.7.4