Using generally useful macros

Till Maas opensource at till.name
Tue Mar 16 18:32:27 UTC 2010


On Tue, Mar 16, 2010 at 07:09:59PM +0100, Kevin Kofler wrote:
> Nikolay Ulyanitsky wrote:
> > There are a lot of generally useful macros in Fedora, which are not
> > described in the Fedora wiki: %__awk, %__bzip2, %__cat, %__chgrp,
> > %__chmod, %__chown, %__cp, %__cpio, %__file, %__gpg, %__grep,
> > %__gzip, %__id, %__install, %__ln_s, %__lzma, %__xz, %__make,
> > %__mkdir, %__mkdir_p, %__mv, %__patch, %__perl, %__pgp, %__python,
                                                            ^^^^^^^^^
> > %__rm, %__rsh, %__sed, %__ssh, %__tar, %__unzip, etc.
> 
> They're not described because they're actually not "generally useful" at 
> all, but completely useless. They just expand to full paths which makes no 
> sense because PATH exists for a reason, and sometimes not even that.
> 
> > These macros are defined in /usr/lib/rpm/macros.
> 
> Mostly for historical/backwards-compatibility reasons, I guess. It also 
> increases compatibility with specfiles from some other distros which really 
> like those macros for some reason.
> 
> > Some maintainers use them, some do not.
> > 
> > What is recommended way?
> 
> As others have already recommended: Don't use that junk. :-)

The python rpmdev-newspec templates use %__python btw. I do not know,
whether it is somehow required for the python multiple stack support,
though.

Regards
Till
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/devel/attachments/20100316/eccac4b4/attachment.bin 


More information about the devel mailing list