trying to put "--define 'macro value'" in a variable
"Brian J. Murrell" <[email protected]> Tue, 01 Apr 2008 17:56:28 -0400
| Newsgroups | gmane.linux.redhat.rpm.general |
|---|---|
| Organization | Sun Microsystems of Canada |
| Message-ID | <[email protected]> |
This is not making any sense to me. Please observe: $ rpmbuild --version RPM version 4.4.1 $ RPMBUILD_ARGS="--nodeps" $ set -x $ RPMBUILD_DEFINES="--define '_buildshell /bin/bash'" + RPMBUILD_DEFINES='--define '\''_buildshell /bin/bash'\''' $ rpmbuild $RPMBUILD_ARGS --rebuild SRPMS/opensm-3.1.10-1.ofed1.3.src.rpm $RPMBUILD_DEFINES + rpmbuild --nodeps --rebuild SRPMS/opensm-3.1.10-1.ofed1.3.src.rpm --define ''\''_buildshell' '/bin/bash'\''' error: Macro % has illegal name (%define) error: Macro % has illegal name (%define) ... $ rpmbuild $RPMBUILD_ARGS --rebuild SRPMS/opensm-3.1.10-1.ofed1.3.src.rpm --define '_buildshell /bin/bash' + rpmbuild --nodeps --rebuild SRPMS/opensm-3.1.10-1.ofed1.3.src.rpm --define '_buildshell /bin/bash' [ no Macro errors ] I can't see why putting the "--define 'macro value'" in a shell variable and substituting it onto the rpmbuild command line is having the ill effects that it is. Anyone got any ideas before I start digging into rpmb and popt any deeper? Thanx, b. _______________________________________________ Rpm-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/rpm-list
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBH8q+Ml3EQlGLyuXARAl92AKD6/MAMeH2OMdUfbprCaW5DmJOwGQCfREzq 4Gog31/y0ev5AHtEP2WRl1k= =S5rp -----END PGP SIGNATURE-----