如何在rpmbuild规范文件中为gmake设置destdir
我正在尝试构建一个规格文件,以支持QT自定义的RPM。因为QT的配置脚本无法识别%configure scriptlet中包含的某些选项 ./ configure -prefix =%{_ qtdir} -confirm-license -opensourse -opensource -System -Sqlite -opengl桌面
其中_qtdir是/opt/custom custom/sensor。
我的问题是,通过尝试直接安装到/opt/opt/custom/传感器而不是在buildroot目录下,%安装步骤失败。我尝试设置destdir和前缀没有运气,例如,
%install
make install prefix=%{_buildrootdir}/%{sensor}.Qt-%{version}-1.el7_9.x86_64%{_qtdir}
如何获得使安装
尊重安装目录,而不是对配置脚本提供的内容?
I'm trying to build a SPEC file to support a customized RPM for Qt. Because Qt's configure script doesn't recognize some of the options automatically included in the %configure scriptlet I have to call it explicitly in the SPEC file with./configure --prefix=%{_qtdir} -confirm-license -opensource -system-sqlite -opengl desktop
where _qtdir is /opt/custom/SENSOR.
My problem is that the %install step fails by trying to install directly to /opt/custom/SENSOR instead of under the BUILDROOT directory. I've tried setting DESTDIR and prefix with no luck, e.g.
%install
make install prefix=%{_buildrootdir}/%{sensor}.Qt-%{version}-1.el7_9.x86_64%{_qtdir}
How do I get make install
to respect an installation directory other than what was given to the configure script?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它应该像
发行版一样工作,可能有一些宏来为您提供帮助,例如在Fedora上
It is supposed to work like
Distributions may have some macros defined to help you there, e.g. on Fedora