basic macro definitions

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

 



Hello all,

I was just looking around the /usr/lib/rpm/macros file at some of the
default macros and I had a question about macro syntax.  

It seems the RPM_BUILD_DIR environment variable is defined as 

RPM_BUILD_DIR=\"%{u2p:%{_builddir}}\"

I am having a hard time figuring out what the "u2p" part of that definition
means.  %_builddir is defined earlier in the file.  Is this the format of a
conditional macro?  Or is this a builtin macro?  

What about the following:

%___build_shell  %{?_buildshell:%{_buildshell}}%{!?_buildshell:/bin/sh}

Does this say something along the lines of set %___build_shell to the value
of %_buildshell if it exists.  If it doesn't exist, set the value to
/bin/sh?

Your help is very much appreciated.

Ben Piela


Please do not transmit orders or instructions regarding a UBS account by
email. The information provided in this email or any attachments is not an
official transaction confirmation or account statement. For your protection,
do not include account numbers, Social Security numbers, credit card
numbers, passwords or other non-public information in your email. Because
the information contained in this message may be privileged, confidential,
proprietary or otherwise protected from disclosure, please notify us
immediately by replying to this message and deleting it from your computer
if you have received this communication in error.  Thank you.

UBS Financial Services Inc.
UBS International Inc.


_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/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