Re: rpmbuild --define | some rpm sorcerer around?

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



On 11/06/18 17:32, Jonathan Billings wrote:
On Mon, Jun 11, 2018 at 05:00:11PM +0100, lejeczek wrote:
none of of these work for me, like I said earlier I fiddle a bit with it. I
was hoping someone could confirm this and then maybe it's a bug?

This sounds like you're running into bash quoting issues, not a bug in
rpmbuild. Are you running these commands in a shell script?  Is it
executed from a non-interactive service?


Everything in bash script.
It actually might be working. What I did was I was looking for a confirmation like this:

$ ps -FC rpmbuild --cols 9999
UID        PID  PPID  C    SZ   RSS PSR STIME TTY          TIME CMD
appmgr 24855 24835 0 44512 6772 16 17:33 pts/0 00:00:00 rpmbuild --define "_MKL 1" --define "_mic 1"

waiting to see those quotation marks(single or double) in there, but.. it turns out that it works actually when ps is not showing them, like:

$ ps -FC rpmbuild --cols 9999
UID        PID  PPID  C    SZ   RSS PSR STIME TTY          TIME CMD
appmgr 24855 24835 0 44512 6772 16 17:33 pts/0 00:00:00 rpmbuild --define _MKL 1 --define _mic 1

and then vars(in a bash script, all in such a script) are simply declared:
...
export _definition1='_MKL 1'
rpmbuild --define "${_definition1}" --define "${_definition2}"

without! any escaping of quotes.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux