且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

/var/tmp/rpm-tmp.ajKra4 (%prep) 的错误退出状态

更新时间:2022-06-15 08:42:58

查看http://www.rpm.org/max-rpm/s1-rpm-inside-macros.html,特别是-n — 设置构建目录的名称"部分.

Check out http://www.rpm.org/max-rpm/s1-rpm-inside-macros.html, specifically the "-n — Set Name of Build Directory" section.

%setup 宏期望在解压 tar.gz 之后,会有一个 hero-01 目录可用,但您的 hero-01.tar.gz 可能会创建一些其他目录名称,可能没有包含在名字.

The %setup macro is expecting that after untaring the tar.gz, there will be a hero-01 directory available, but your hero-01.tar.gz probably creates some other directory name, probably one without the version included in the name.

因此,例如,如果解压后/root/rpmbuild/BUILD 中有一个 'hero' 目录而不是 'hero-01' 目录,则更新规范文件以使用 '%setup -n hero'只是%setup".

So, for example, if there's a 'hero' directory instead of a 'hero-01' directory in /root/rpmbuild/BUILD after the untarring, then update the spec file to use '%setup -n hero' instead of just '%setup'.