Commit Graph

30 Commits

Author SHA1 Message Date
Sergei Trofimovich
99088aafa5 bmake: 20230126 -> 20230414 2023-05-10 08:02:02 -03:00
Anderson Torres
e4aa12d4f8 bmake: change self to finalAttrs 2023-04-26 08:00:11 -03:00
Sergei Trofimovich
69cf5181c3 stdenv/generic/setup.sh: enable parallel installs by default
The primary motivating example is openssl:

Before the change full package build took 1m54s minutes.
After the change full package build takes 59s.

About a 2x speedup.

The difference is visible because openssl builds hundreds of manpages
spawning a perl process per manual in `install` phase. Such a workload
is very easy to parallelize.

Another example would be `autotools`+`libtool` based build system where
install step requires relinking. The more binaries there are to relink
the more gain it will be to do it in parallel.

The change enables parallel installs by default only for buiilds that
already have parallel builds enabled. There is a high chance those build
systems already handle parallelism well but some packages will fail.

Consistently propagated the enableParallelBuilding to:
- cmake (enabled by default, similar to builds)
- ninja (set parallelism explicitly, don't rely on default)
- bmake (enable when requested)
- scons (enable when requested)
- meson (set parallelism explicitly, don't rely on default)
- waf (set parallelism explicitly, don't rely on default)
- qmake-4/5/6 (enable by default, similar to builds)
- xorg (always enable, similar to builds)
2023-02-26 22:02:09 +00:00
Anderson Torres
f799d93ac1 bmake: 20220928 -> 20230126 2023-01-28 23:02:19 -03:00
Guillaume Girol
33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00
AndersonTorres
c46b86c841 bmake: 20220726 -> 20220928 2022-12-08 20:38:00 -03:00
AndersonTorres
d17f36789b bmake: unbreak 2022-08-07 20:50:35 -03:00
AndersonTorres
ce83a76107 bmake: 20220208 -> 20220726 2022-08-07 20:50:35 -03:00
AndersonTorres
47a072b984 bmake: new recursive style attributes 2022-08-07 20:14:15 -03:00
Yestin L. Harrison
58490e244e bmake: unmark as broken on (aarch64-)darwin 2022-08-06 19:06:40 -07:00
AndersonTorres
09c4dcb0ce bmake: 20210621 -> 20220208 2022-02-09 21:18:09 -03:00
sternenseemann
2019f82e3e bmake: enable ksh test on non musl platforms
bmake runs the ksh test if /bin/ksh exists. This is never a good
indication on platforms where we can sandbox and causes problems on
darwin where this path may exist, but never would be in PATH.

We solve this problem by always enabling the test and adding ksh to
checkInputs.

ksh doesn't seem to compile with musl, so we disable it on that
platform.
2021-07-04 20:20:42 +02:00
sternenseemann
32c42d37ab bmake: test musl build
Since we do some additional patching to make it work with musl, we
should also test that, so we can _keep_ it working.
2021-07-04 20:20:42 +02:00
sternenseemann
30200ce8e1 bmake: 20210420 -> 20210621 2021-07-04 20:20:42 +02:00
Alyssa Ross
4de8cbfb16 bmake.passthru.setupHook: set some defaults
These are all read from the environment by the default bmake
stdlib (e.g. <bsd.prog.mk>, <bsd.own.mk>).  Some of the default
values (like building cat pages instead of man pages, or stripping
binaries when installing) don't really make sense for Nixpkgs, so we
override them here for every build using bmake.

Eventually I'd like to unify the bmake setupHook and the NetBSD make
setupHook, but not today.
2021-06-09 12:44:43 +00:00
sternenseemann
10f8f08267 bmake: 20200902 -> 20210420
* Fix varmod-localtime test by setting TZ to an absolute path to the
  appropriate file in TZDIR. This avoids having an extra patch for musl
  which doesn't support TZDIR at all.
* Move tests into checkPhase by applying patch from alpine
* Fix build with musl by disabling deptgt-delete_on_error test (which I
  haven't debugged myself, just copied this from alpine) and fixing a
  test which fails due to differing output from strerror(3) between musl
  and glibc. Also we need to add a shebang to install-sh, otherwise it
  won't be executed in pkgsMusl.
2021-05-31 13:39:35 +02:00
Andrew Childs
976ee287c8 bmake: fix build on darwin 2021-05-29 01:12:23 +02:00
Alyssa Ross
53b88f966e bmake: add setupHook
With this change,

    nativeBuildInputs = [ bmake ];

will cause bmake to be used instead of GNU make, but with the usual
stdenv API.  Packages using bmake will no longer need to implement
their own {build,check,dist}Phase.
2021-04-16 12:56:48 +00:00
Ben Siraphob
c522fec274 pkgs/development/tools: stdenv.lib -> lib 2021-01-23 20:30:03 +07:00
R. RyanTM
749a260edd bmake: 20200710 -> 20200902 2020-09-07 15:20:05 +00:00
R. RyanTM
f792659486 bmake: 20200629 -> 20200710 2020-08-01 21:00:22 -07:00
R. RyanTM
2d6d3db7e2 bmake: 20200606 -> 20200629 2020-07-03 01:07:55 +00:00
R. RyanTM
4fbf2d1b1b bmake: 20200506 -> 20200606 2020-06-16 10:40:27 -05:00
R. RyanTM
61999ffd0e bmake: 20200402 -> 20200506 2020-05-20 06:56:22 +00:00
R. RyanTM
4748748f12 bmake: 20200318 -> 20200402 2020-05-04 19:43:52 +00:00
R. RyanTM
7ba55849c5 bmake: 20200212 -> 20200318 2020-04-09 10:18:27 -07:00
R. RyanTM
24bc04b9d2 bmake: 20181221 -> 20200212 2020-02-19 14:18:49 -06:00
volth
46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00
Austin Seipp
ccee4117be bmake: fix version/url, fix tests, remove unneeded deps
As noted by @jameysharp in #63181.

Signed-off-by: Austin Seipp <as@fastly.com>
2019-06-16 14:26:49 -05:00
Austin Seipp
ebb3f4d428 bmake: init at 20121212
Signed-off-by: Austin Seipp <as@fastly.com>
2019-06-15 22:46:14 -07:00