Re: rpmbuild --define not working anymore?

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

 



Simon Perreault wrote:
I'm trying to use the --define flag of the rpmbuild command but it has no effect. It's as if I didn't specify it. I'm using Fedora Core 3, rpm-4.3.2-21. Did --define become obsolete? Can I get the same behavior otherwise?

In foo.spec:

%define key value
...stuff...

Here's the command-line I'm using:

rpmbuild -ba --define 'key newvalue' foo.spec

As the result of that command, foo is built with key=value instead of key=newvalue. No error message is displayed. Why?

I dunno, but for what it's worth, it's slightly more common now to use the --with flag (documented in /usr/share/doc/rpm-4.2/conditionalbuilds) Yeah, it's just --define in disguise, but try it out, maybe the change of scenery will jog loose your problem.

_______________________________________________
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