[ATrpms-devel] ATrpms rpm macros [was Re: failure building mythtv for FC5]
D. Hugh Redelmeier
hugh at mimosa.com
Fri Aug 31 08:58:53 CEST 2007
| From: Axel Thimm <Axel.Thimm at ATrpms.net>
| But as said waiting for me to get the perfect setup released
| will take forever, so I went now with release early & often.
Good!
A little documentation would be the first thing I'd add.
| But being a package means that you also very easily
| uninstall it.
Yes. And I did uninstall your to try Paulo's.
| > - a superficial glance at Axel's leads me to beleive that it does not
| > define lib_package whereas yours does
|
| Both need to define it.
|
| # rpm -ql atrpms-rpm-config | xargs grep ^%lib_package
| /etc/rpm/macros.libs:%lib_package() \
| /usr/lib/rpm/atrpms/macros:%lib_package() \
OK. I don't know why my grep didn't find it. I probably mis-typed
something.
| > So I'm going to try your package, with /etc/rpm/macros renamed
| > /etc/rpm/macros.atrpms and copied into ~atrpms/.rpmmacros
|
| Whether the macrs are in /etc/rpm/macros or /etc/rpm/macros.atrpms
| makes no difference, modern rpm reads out any /etc/rpm/macros* file by
| default.
Damn. It would be nice if rpmbuild(8) said so. Under FILES it lists
/etc/rpm/macros, not /etc/rpm/macros*.
Are these macro files idempotent? In other words, does reading them
twice (once in my ~atrpms/.rpmmacros and again in
/etc/rpm/macros.atrpms) have the same effect as reading them once?
Certainly reading them twice has not yet genrated a failure (I guess
it is a third of the way through building mythtv).
RPM is so badly documented and unfriendly. For example, not detecting
or reporting many easy-to-make mistakes.
More information about the atrpms-devel
mailing list