错误:命令'rpmbuild'失败

时间:2016-08-29 08:00:38

标签: python centos redhat rpm

我正在尝试生成RPM包。

我的SO是MACOS El Capitan,RPM生成是使用Red Hat 6的docker执行的。

我的用户是root

我的.rpmmacros文件是:

%__os_install_post \ /usr/lib/rpm/redhat/brp-compress \ %{!?__debug_package:/usr/lib/rpm/redhat/brp-strip %{__strip}} \ /usr/lib/rpm/redhat/brp-strip-static-archive %{__strip} \ /usr/lib/rpm/redhat/brp-strip-comment-note %{__strip} %{__objdump} \ /usr/lib/rpm/redhat/brp-python-hardlink \ %{!?__jar_repack:/usr/lib/rpm/redhat/brp-java-repack-jars} \ %{nil}

然后得到下一个错误:

building RPMs rpmbuild -bb --define _topdir $MY_PROJECT_PATH/build/bdist.linux-x86_64/rpm --clean build/bdist.linux-x86_64/rpm/SPECS/udo.spec error: error creating temporary file /var/tmp/rpm-tmp.oYIK1K: Operation not permitted error: Unable to open temp file.

RPM build errors: error creating temporary file /var/tmp/rpm-tmp.oYIK1K: Operation not permitted Unable to open temp file.

0 个答案:

没有答案