Error in in builder check_buildarch

Kacper Kornet kornet at camk.edu.pl
Mon Mar 5 17:01:25 CET 2007


On Mon, Mar 05, 2007 at 04:56:58PM +0100, Kacper Kornet wrote:
> Best solution that I could find is in the attachment.

And the forgotten attachment.
-- 
  Kacper Kornet
-------------- next part --------------
Index: builder
===================================================================
RCS file: /cvsroot/SPECS/builder,v
retrieving revision 1.487
diff -u -r1.487 builder
--- builder	5 Mar 2007 10:03:44 -0000	1.487
+++ builder	5 Mar 2007 15:52:55 -0000
@@ -1183,7 +1183,7 @@
 # this avoids unneccessary BR filling.
 check_buildarch() {
 	local out ret
-	out=$($RPMBUILD --short-circuit -bp --define 'prep exit 0' --nodeps $QUIET $RPMOPTS $RPMBUILDOPTS $BCOND $TARGET_SWITCH $SPECFILE 2>&1)
+	out="`eval $RPMBUILD --short-circuit -bp --define \'prep exit 0\' --nodeps $QUIET $RPMOPTS $RPMBUILDOPTS $BCOND $TARGET_SWITCH $SPECFILE 2\>\&1`"
 	ret=$?
 	if [ $ret -ne 0 ]; then
 		echo >&2 "$out"


More information about the pld-devel-en mailing list