Some xargs (Hi Sun) run the command even when stdin is "empty". Compare

'echo | xargs echo' on NetBSD and Solaris...

Workaround this in post-extract target's 'rm' by adding a '-f' argument
to it.

XXX Current upstream tarball does not have .orig files, I could have
removed this post-extract target...
This commit is contained in:
seb 2003-10-03 12:56:48 +00:00
parent edaca2cd73
commit a7ca42bc59

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile.common,v 1.6 2003/09/13 19:08:50 jlam Exp $
# $NetBSD: Makefile.common,v 1.7 2003/10/03 12:56:48 seb Exp $
#
# This Makefile fragment should be included _below_ and SASL_PLUGIN
# definition and _above_ any CONFIGURE_ARGS definitions.
@ -67,7 +67,7 @@ CONFIGURE_ARGS+= --without-pam
# clean up a bit to help package maintainer produce patch files
post-extract:
${_PKG_SILENT}${_PKG_DEBUG} \
${FIND} ${WRKSRC} -type f -name "*.orig" | ${XARGS} ${RM}
${FIND} ${WRKSRC} -type f -name "*.orig" | ${XARGS} ${RM} -f
# Left here as reference for patch makers...
#pre-configure: