* [PATCH 1/8] Makefile.PL: check `getconf NPROCESSORS_ONLN', too
2023-09-09 12:01 5% [PATCH 0/8] NetBSD-related updates Eric Wong
@ 2023-09-09 12:01 7% ` Eric Wong
0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2023-09-09 12:01 UTC (permalink / raw)
To: meta
NetBSD and OpenBSD getconf(1) don't accept a leading underscore,
while glibc getconf(1) only accepts the leading underscore
(`_NPROCESSORS_ONLN'). FreeBSD getconf(1) accepts both variants.
---
Makefile.PL | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Makefile.PL b/Makefile.PL
index 5a5628ba..d0652410 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -196,7 +196,8 @@ WriteMakefile(
);
sub MY::postamble {
- my $N = (`{ getconf _NPROCESSORS_ONLN || nproc; } 2>/dev/null` || 1);
+ my $N = (`{ getconf _NPROCESSORS_ONLN || getconf NPROCESSORS_ONLN ||
+ gnproc || nproc; } 2>/dev/null` || 1);
$N += 1; # account for sleeps in some tests (and makes an IV)
<<EOF;
PROVE = prove
^ permalink raw reply related [relevance 7%]
* [PATCH 0/8] NetBSD-related updates
@ 2023-09-09 12:01 5% Eric Wong
2023-09-09 12:01 7% ` [PATCH 1/8] Makefile.PL: check `getconf NPROCESSORS_ONLN', too Eric Wong
0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2023-09-09 12:01 UTC (permalink / raw)
To: meta
It actually packages `p5-highlight' like Debian!
Eric Wong (8):
Makefile.PL: check `getconf NPROCESSORS_ONLN', too
ipc: define _SC_NPROCESSORS_ONLN for NetBSD
ci/run.sh: parameterize BUILD_JOBS TEST_JOBS and TEST_TARGET
ci/profiles: rewrite in Perl
update CI helper scripts for NetBSD and `pkgin'
xap_helper: note __cleanup__ works with C++ exceptions
xap_helper: use _OPENBSD_SOURCE on NetBSD for reallocarray
xap_helper: clamp workers to USHRT_MAX
Makefile.PL | 3 +-
ci/deps.perl | 24 +++++++--
ci/profiles.perl | 93 ++++++++++++++++++++++++++++++++++
ci/profiles.sh | 98 ------------------------------------
ci/run.sh | 14 +++---
lib/PublicInbox/IPC.pm | 16 ++++--
lib/PublicInbox/xap_helper.h | 15 +++++-
7 files changed, 148 insertions(+), 115 deletions(-)
create mode 100755 ci/profiles.perl
delete mode 100755 ci/profiles.sh
^ permalink raw reply [relevance 5%]
Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2023-09-09 12:01 5% [PATCH 0/8] NetBSD-related updates Eric Wong
2023-09-09 12:01 7% ` [PATCH 1/8] Makefile.PL: check `getconf NPROCESSORS_ONLN', too Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).