Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] travis/build.sh: use -jX in xbps-src.
@ 2019-06-04 10:12 voidlinux-github
  2019-06-04 11:51 ` [PR PATCH] [Merged]: " voidlinux-github
  0 siblings, 1 reply; 2+ messages in thread
From: voidlinux-github @ 2019-06-04 10:12 UTC (permalink / raw)
  To: ml

[-- 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
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Merged]: travis/build.sh: use -jX in xbps-src.
  2019-06-04 10:12 [PR PATCH] travis/build.sh: use -jX in xbps-src voidlinux-github
@ 2019-06-04 11:51 ` voidlinux-github
  0 siblings, 0 replies; 2+ messages in thread
From: voidlinux-github @ 2019-06-04 11:51 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 256 bytes --]

There's a merged pull request on the void-packages repository

travis/build.sh: use -jX in xbps-src.
https://github.com/void-linux/void-packages/pull/12119
Description: Do not rely on nproc(1) being available.

Signed-off-by: Juan RP <xtraeme@gmail.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-06-04 11:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-04 10:12 [PR PATCH] travis/build.sh: use -jX in xbps-src voidlinux-github
2019-06-04 11:51 ` [PR PATCH] [Merged]: " voidlinux-github

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).