[Rpm-maint] [rpm-software-management/rpm] rpmbuild/rpm not reading macros from the the rcfile (Discussion #2030)
rmehtacs
notifications at github.com
Thu Apr 21 11:33:41 UTC 2022
I am learning rpm/rpmbuild and I see strange behavior difference in RPM v4.4.2.3 and RPM v4.14.
I created an **rpmrc** file which has below content
> macrofiles:/home/rmehta/rpmtest/rpmmacros
and **rpmmacros** has below contents
> %_name Rakesh
When I execute `rpmbuild --rcfile /home/rmehta/rpmtest/rpmrc --eval %_name` it gives different output for both RPM versions For
> RPM version 4.4.2.3 (SLES-15) it prints **Rakesh**
> For RPM version 4.14.3 (SLES-11) it prints **%_name**
Also tried ` --eval '%{_name}'` and it has same result.
My question is why this difference and why for RPM v4.14.3 its not reading the rcfile.
I tried same with RPM v4.11(openSUSE) and its behaviour is same as RPM v4.14.3.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/discussions/2030
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/repo-discussions/2030 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220421/d16a9b62/attachment.html>
More information about the Rpm-maint
mailing list