[CentOS] rpmbuild --define | some rpm sorcerer around?
lejeczek
peljasz at yahoo.co.ukWed Jun 13 09:18:10 UTC 2018
- Previous message: [CentOS] rpmbuild --define | some rpm sorcerer around?
- Next message: [CentOS] rpmbuild --define | some rpm sorcerer around?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message: [CentOS] rpmbuild --define | some rpm sorcerer around?
- Next message: [CentOS] rpmbuild --define | some rpm sorcerer around?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list