Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 671979 Details for
Bug 891588
use nproc for _smp_mflags if available
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch _smp_mflags to use nproc(1) if available
redhat-rpm-config-nproc.diff (text/plain), 925 bytes, created by
Pádraig Brady
on 2013-01-03 10:57:59 UTC
(
hide
)
Description:
Patch _smp_mflags to use nproc(1) if available
Filename:
MIME Type:
Creator:
Pádraig Brady
Created:
2013-01-03 10:57:59 UTC
Size:
925 bytes
patch
obsolete
>From 4fda342a797f1cf8f3b273782019290956fa1dd9 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?P=C3=A1draig=20Brady?= <P@draigBrady.com> >Date: Thu, 3 Jan 2013 10:51:14 +0000 >Subject: [PATCH] use nproc for _smp_mflags if available > >nproc (since coreutils 8.1) can be more accurate as it >honors CPU affinity set with taskset for example. >--- > macros | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > >diff --git a/macros b/macros >index 1ac46d7..d1124ef 100644 >--- a/macros >+++ b/macros >@@ -66,7 +66,8 @@ > install > > %_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ >- && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ >+ && RPM_BUILD_NCPUS="`/usr/bin/nproc 2>/dev/null || \\\ >+ /usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ > if [ "$RPM_BUILD_NCPUS" -gt 16 ]; then echo "-j16"; \\\ > elif [ "$RPM_BUILD_NCPUS" -gt 1 ]; then echo "-j$RPM_BUILD_NCPUS"; fi) > >-- >1.7.6.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 891588
: 671979