From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: [PR PATCH] travis/build.sh: use -jX in xbps-src.
Date: Tue, 04 Jun 2019 12:12:27 +0200 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-12119@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 414 bytes --]
There is a new pull request by xtraeme against master on the void-packages repository
https://github.com/xtraeme/void-packages travis-nprocs
https://github.com/void-linux/void-packages/pull/12119
travis/build.sh: use -jX in xbps-src.
Do not rely on nproc(1) being available.
Signed-off-by: Juan RP <xtraeme@gmail.com>
A patch file from https://github.com/void-linux/void-packages/pull/12119.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-travis-nprocs-12119.patch --]
[-- Type: application/text/x-diff, Size: 971 bytes --]
From aef29f7ffcae9c9aa7c81f2bbf29a340c100a691 Mon Sep 17 00:00:00 2001
From: Juan RP <xtraeme@gmail.com>
Date: Tue, 4 Jun 2019 12:09:53 +0200
Subject: [PATCH] travis/build.sh: use -jX in xbps-src.
Do not rely on nproc(1) being available.
Signed-off-by: Juan RP <xtraeme@gmail.com>
---
common/travis/build.sh | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/common/travis/build.sh b/common/travis/build.sh
index 32cefdbc739..bd65283d10a 100755
--- a/common/travis/build.sh
+++ b/common/travis/build.sh
@@ -25,8 +25,13 @@ XBPS_SRCPKGDIR=/hostrepo/srcpkgs XBPS_MASTERDIR=/ chroot_prepare $1 || {
PKGS=$(/hostrepo/xbps-src sort-dependencies $(cat /tmp/templates))
+NPROCS=1
+if [ -r /proc/cpuinfo ]; then
+ NPROCS=$(grep ^proc /proc/cpuinfo|wc -l)
+fi
+
for pkg in ${PKGS}; do
- /hostrepo/xbps-src -H "$HOME"/hostdir $arch pkg "$pkg"
+ /hostrepo/xbps-src -j$NPROCS -H "$HOME"/hostdir $arch pkg "$pkg"
[ $? -eq 1 ] && exit 1
done
next reply other threads:[~2019-06-04 10:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-04 10:12 voidlinux-github [this message]
2019-06-04 11:51 ` [PR PATCH] [Merged]: " voidlinux-github
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-12119@inbox.vuxu.org \
--to=voidlinux-github@inbox.vuxu.org \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).