Skip to contentSkip to conversation

postfix.inc: Remove references to buildmachine paths in target makedefs.out

PATCH New [email protected] 1 participant 1 message Nov 21, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 postfix.inc: Remove references to buildmachine paths in target makedefs.out

From: Jackie Huang <[email protected]>

Fixed the buildpaths QA issue:
ERROR: QA Issue: File /work/core2-64-wrs-linux/postfix/2.11.1-r0/packages-split/postfix/etc/postfix/makedefs.out in package contained reference to tmpdir [buildpaths]

---
 meta-networking/recipes-daemons/postfix/postfix.inc | 5 +++++
 1 file changed, 5 insertions(+)
meta-networking/recipes-daemons/postfix/postfix.inc +5 -0
index d2f3356..caf1f80 100644
@@ -204,6 +204,11 @@ do_install_append_class-native() {
 	ln -sf ../sbin/sendmail.postfix ${D}${bindir}/mailq
 }
 
+do_install_append_class-target() {
+	# Remove references to buildmachine paths in target makedefs.out
+	sed -i -e 's:--sysroot=${STAGING_DIR_TARGET}::g' ${D}/etc/postfix/makedefs.out
+}
+
 NATIVE_INSTALL_WORKS = "1"
 
 ALTERNATIVE_${PN} = "sendmail"
Signature · 1 line
2.0.0