Remove build_id files from rpm by yakirgb · Pull Request #954 · github/gh-ost
Related issue: #953
Description
Right now the rpm including unwanted files of /usr/lib/.build-id/ for example:
[root@u1 ~]# rpm -ql gh-ost-1.1.2-1
/usr/bin/gh-ost
/usr/lib/.build-id
/usr/lib/.build-id/c4
/usr/lib/.build-id/c4/dd5acac09d7d035b4a07fdce618a4eab59366c
Based on https://fedoraproject.org/wiki/Changes/ParallelInstallableDebuginfo and https://fedoraproject.org/wiki/Releases/FeatureBuildId , add --rpm-rpmbuild-define "_build_id_links none" will fix the issue.
After the fix:
[root@u1 ~]# rpm -ql gh-ost-1.1.2-1
/usr/bin/gh-ost
Thank you, Yakir.