rpmbuild ignoring --macros?

Andy Armstrong andy at hexten.net
Tue Jan 5 14:03:22 UTC 2010


(sorry for the barrage of questions - and thanks for the answers)

I've got a macros file that I'd like rpmbuild to use. It seems that rpmbuild 4.4.2.3 is ignoring the --macros switch. If I

$ rpmbuild -qa --macros=mymacros myapp.spec

it attempts to build below /usr/src/redhat/BUILD

If I

$ ln -s $(pwd)/mymacros ~/.rpmmacros
$ rpmbuild -qa myapp.spec

I get the behaviour I'm expecting.

I'd prefer not to have a ~/.rpmmacros and assumed that naming a macros file using the --macros switch would be alternative. What am I missing?

Thanks again.

-- 
Andy Armstrong, Hexten





More information about the Rpm-list mailing list