rpmbuild/rpm不读取rcfile
我正在学习rpm/rpmbuild,并且看到RPM v4.4.2.3和rpm v4.14。
中的行为差异很奇怪 我创建了一个 rpmrc 文件,该文件的内容以下
宏files:/home/rmehta/rpmtest/rpmmacros
和 rpmmacros 的内容以下
%_名称rakesh
当我执行rpmbuild -rcfile/home/rmehta/rpmtest/rpmrc -eval%_name
它给出了两个RPM版本的不同输出 对于RPM版本4.4.2.3(SLES-15),它打印 rakesh
对于RPM版本4.14.3(SLES-11),它打印%_名称
我的问题是为什么这种差异以及RPM v4.14.3为什么不读取RCFILE。
我尝试使用RPM v4.11(OpenSuse),其行为与RPM v4.14.3相同。
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
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论