为什么在构建 rpm 时档案中的二进制文件(jaeger)被错误复制?

为什么在构建 rpm 时档案中的二进制文件(jaeger)被错误复制?

尝试将 jaeger-all-in-one 打包到 rpm 中

源代码在这里: https://github.com/patsevanton/jaeger-all-in-one-rpm

rpm is created - but the copied binary is of a different size.

37M Nov 28 11:14 /root/rpmbuild/BUILD/jaeger-1.8.2-linux-amd64/jaeger-all-in-one

32M Jan 29 10:54 /usr/local/bin/jaeger-all-in-one

为什么在构建 rpm 时档案中的二进制文件(jaeger)被错误复制?

答案1

需要将 %global __strip /bin/true 添加到 spec 文件

相关内容