更新时间:2022-06-15 08:42:40
上述错误是由于 rpm 构建环境在运行时链接文件,因此它在 build
部分下显示错误规范文件
The above errors are because of linking of files at runtime by the rpm build environment and hence it was showing errors under build
section of the spec file
为了解决上述错误,在包的spec文件的开头添加以下行
To solve the above errors add the following line at the beginning of the spec file of package
%define __debug_package %{nil}
如果已经有类似的代码(%define ^_debug_package %{nil}) 替换为上面的代码
If there is already a similar code(%define ^_debug_package %{nil}) replace it with the above code
osp
包中的错误也可以通过在spec 文件中添加以上行来解决.
The errors in the osp
packages can also be solved by adding the above line to the spec file.
并且还要确保你使用了release repo URL进行编译,你可以使用下面的release repo URL
And also make sure that you use the release repo URL for compilation, you can use the following release repo URL