Re: rpmbuild ignoring --macros?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 4.4.2.3 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.

Thanks again!

-- 
Andy Armstrong, Hexten



_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux