Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
brp-strip script runs strip command on deliverables paralley and if deliverables are hard linked inside buildroot, it will create contention. One good example for such package is git. https://github.com/vmware/photon/blob/master/SPECS/git/git.spec ``` Sample output: $ rpm -ql git | grep libexec | xargs ls -li 668153 -rwxr-xr-x 137 root root 3401056 Aug 2 08:30 /usr/libexec/git-core/git 668153 -rwxr-xr-x 137 root root 3401056 Aug 2 08:30 /usr/libexec/git-core/git-add 787238 -rwxr-xr-x 1 root root 47770 Aug 2 08:30 /usr/libexec/git-core/git-add--interactive 668153 -rwxr-xr-x 137 root root 3401056 Aug 2 08:30 /usr/libexec/git-core/git-am ``` To overcome this, we run strip twice once for all files with no hardlinks, this is a parallel job, meaning multiple binaries will be stripped in parallel. And once for files with hardlinks, in this case we disable parallel processing and strip binaries in sequential order. RH bug link: https://bugzilla.redhat.com/show_bug.cgi?id=1959049 Co-authored-by: Dweep Advani <[email protected]> Signed-off-by: Shreenidhi Shedi <[email protected]>
- Loading branch information