[Rpm-maint] [rpm-software-management/rpm] 4.19.1.1: `rpmbuild --undefine foo` is not working (Discussion #2939)

Michael Schroeder notifications at github.com
Wed Feb 28 14:41:43 UTC 2024


Your "test-define" example is also not working like you expect. If you add
```
%define test 2
```
at the top of the specfile and add "%test" to your echo statement, you'll see that it echos "2" even if you call rpmbuild with `--define "test 1"`.

Basically --define and --undefine work similar to adding define/undefine to the top of the spec file. So it is not possible to change a %define that comes later on. 

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/discussions/2939#discussioncomment-8619441
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/repo-discussions/2939/comments/8619441 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240228/40ba594a/attachment.html>


More information about the Rpm-maint mailing list