rpmbuild ignoring --macros?
andy at hexten.net
Tue Jan 5 14:37:09 UTC 2010
On 5 Jan 2010, at 14:33, Valery Reznic wrote:
>> I've got a macros file that I'd like rpmbuild to use. It
>> seems that rpmbuild 188.8.131.52 is ignoring the --macros switch.
> Not an answer to your questions, but...
> Rpmbuild supposed to be tool, that reliable convert srpm to binary rpm.
> If your .rpmmacros contains not only stuff like rpmbild directory, but something essential to rpm build, than no one will be able to build this rpm without mymacros.
> Don't like as a good idea (unless you are trying to secure your job this way :)
> So if the content of the mymacros is (relative) unimportant - directories, etc - I suggest to put it into ~/.rpmmacros.
> If it's important - use make file (or whatever build system you use) to combine your spec with mymacros.
> Something like this in Makefile:
> spec_file: mymacros spec_file.in
> rm $@
> cat mymacros spec_file.in > $@
> Where spec-file.in is your original specfile
Ah thanks - that's useful to know. The RPM I'm building at the moment exists only to require a number of other RPMs - so I think it's going to be fine - but in the future I'll make sure that I'm not hiding anything important in my local macros.
Andy Armstrong, Hexten
More information about the Rpm-list