[Rpm-maint] [rpm-software-management/rpm] Use multiple (%_smp_build_ncpus) processes in brp-strip-static-archive (#663)

Igor Gnatenko notifications at github.com
Mon Apr 15 13:54:48 UTC 2019


ignatenkobrain commented on this pull request.



>  
 case `uname -a` in
 Darwin*) exit 0 ;;
 *) ;;
 esac
 
 # Strip static libraries.
-for f in `find "$RPM_BUILD_ROOT" -type f -a -exec file {} \; | \
-        grep -v "^${RPM_BUILD_ROOT}/\?usr/lib/debug"  | \
+for f in `find "$RPM_BUILD_ROOT" -type f | \
+	grep -v "^${RPM_BUILD_ROOT}/\?usr/lib/debug" | \
+	xargs -r -P$NCPUS -n16 file | sed 's/:  */: /' | \

why `-n16`

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/663#pullrequestreview-226659427
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20190415/359e085d/attachment.html>


More information about the Rpm-maint mailing list