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

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

 



lejeczek via users wrote:
> I'm sorry, I do not get it.. was I so hard to read?
> 
> $ _def1="_me 1"
> $ rpmbuild --define \'"${_def1}"\'
> 
> and no matter how I quote, how I escape bash's var, rpmbuild does not
> "react" to it. I run it from a bash script.
> I should mention I'm on Centos 7.5. RPM version 4.11.3

Yes, it's good to know that you're on CentOS which uses an
older version of rpm.  That's not likely the issue here, but
it's sometimes the details which make all the difference.

More importantly, things we are still missing include:

    - an example spec file (or at least the parts where you
      define the macro and use them)

    - the output you get (including the commands you run to
      get them)

    - how that differs from the output you expect.

I included a simplified spec file and commands which showed
the output when run.  How does your spec file differ from
that example in the usage of the macros and %if statements?

We can help, but we need more information in order to do so.

I suspect that your issue is in how you're trying to create
and call the rpmbuild command from your shell script, which
is why you're showing so many levels of quoting.

But we shouldn't have to guess at this, you should provide
clear steps to demonstrate the issue, what the actual output
is, and what you expect it to be.

-- 
Todd
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If quizzes are quizzical, what are tests?

Attachment: signature.asc
Description: PGP signature

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx/message/XXCOM5NFT6GUYCGZCLOKEH4OSMMRR5SV/
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux