Commit graph

92 commits

Author SHA1 Message Date
Sandro Jäckel 06c51c4604
boehmgc: little cleanup 2022-12-07 21:29:39 +01:00
Adam Joseph 7343a3b642 boehmgc: switch from versionAtLeast to == for powerpc workaround 2022-11-06 23:08:33 -08:00
Adam Joseph 8260aed123 rephrase to avoid mass-rebuild 2022-11-06 22:28:31 -08:00
Adam Joseph 06ecc51368 boehmgc: disable SOFT_VDB on powerpc64le for version 8.2.2
Upstream has not yet fixed the bug:

  https://github.com/ivmai/bdwgc/issues/376
  https://github.com/ivmai/bdwgc/issues/479

However there is a recommended workaround:

  https://github.com/ivmai/bdwgc/issues/479#issuecomment-1279687537

This adds `CFLAGS_EXTRA=-DNO_SOFT_VDB` to the `makeFlags`, which
prevents direct accesses to `/proc` being used for tracking dirtied
pages (which must be rescanned):

  54522af853/include/private/gcconfig.h (L741)

The collector will fall back to using mprotect() to trigger page
faults on writes to clean pages and maintain its own dirty bits,
which is slightly less efficient but (in this case) more reliable.
Unreliable page-dirtiness bits can lead to use-after-free()
corruption; this is not a situation where disabling the tests is a
good idea.
2022-11-06 22:11:48 -08:00
zowoq 172f9cf807 boehmgc: disabled tests on x86_64-darwin 2022-09-19 18:17:30 +10:00
Ivan Maidanski 992773b898 boehmgc: 8.0.6 -> 8.2.2
https://github.com/ivmai/bdwgc/releases/tag/v8.2.2

Drop mcfgthread.patch (upstreamed).
2022-08-30 12:40:16 +03:00
AndersonTorres 643c72495e boehmgc: refactor
- use finalAttrs-style recursive attributes
- create option for mmap
- add myself as maintainer
2022-07-17 19:27:02 -03:00
Will Dietz 2e04cdd240
boehmgc: drop musl flags, per upstream's note (!) (#157625)
0938316e05 (commitcomment-63005097)

Resulting binaries are identifical according to diffoscope
(other than embedded /nix/store/.../ paths).

FWIW, going back through versions we've packaged, the most recent
instance where these flags produced differing outputs was in 7.6.8
(comparing $out's only, FWIW).
2022-02-01 12:18:35 -06:00
Bernardo Meurer 3e049210ef
treewide: replace nix_2_3 with nixVersions.nix_2_3 2022-01-26 10:54:08 -08:00
Sergei Trofimovich 0826392b3a boehmgc: revert "8.0.6 -> 8.2.0", experimental release
Revert also fixes build guile-3. Without it the build fails as:

  error: builder for '/nix/store/v3vkr9vaxg278mdi6cv2a0jaqw8mn3xp-guile-3.0.7.drv' failed with exit code 2;
       last 10 log lines:
       >                  from alist.c:31:
       > /nix/store/2dzi3ls093ffivpp6ykhb3wh33ngyaww-boehm-gc-8.2.0-dev/include/gc/gc.h:1784:11: fatal error: gc_pthread_redirects.h: No such file or directory
       >  1784 | # include "gc_pthread_redirects.h"
       >       |           ^~~~~~~~~~~~~~~~~~~~~~~~

Upstream fixed it in master only.
2021-12-26 18:13:22 +08:00
Robert Hensing 80b05635f1 boehmgc: Add Nix packages to passthru 2021-12-17 00:31:52 +01:00
Robert Hensing fdf5ca2de6 boehmgc: Make comment future proof
It gets updated to new tags automatically but the line number would
have to change.
2021-12-17 00:31:52 +01:00
R. Ryantm 9ff566b0f5 boehmgc: 8.0.6 -> 8.2.0 2021-12-17 00:31:51 +01:00
Ivan Maidanski d219f102bb Drop boehmgc_766 attribute
Reason:
- boehmgc_766 (pkgs/top-level/all-packages.nix) is only defined but not
used in Nixpkgs, so dropping it will not affect any package in Nixpkgs.
It was introduced for the asymptote package which has moved on to the
regular boehmgc attribute. There's a slim chance that some user depends
on it, but it would be unrealistic to expect us to maintain the
attribute indefinitely.

Details:
- Delete pkgs/development/libraries/boehm-gc/7.6.6.nix
- Delete pkgs/development/libraries/boehm-gc/riscv.patch
2021-10-08 06:46:21 +03:00
Ivan Maidanski ede464cd70 boehmgc: 8.0.4 -> 8.0.6
https://github.com/ivmai/bdwgc/releases/tag/v8.0.6
2021-10-08 06:45:34 +03:00
Ben Siraphob 66e44425c6 pkgs/development/libraries: stdenv.lib -> lib 2021-01-21 19:11:02 -08:00
Jonathan Ringer 9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
continuation of #109595

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.

python3Packages.pkgconfig remained unchanged because
it's the canonical name of the upstream package
on pypi.
2021-01-19 01:16:25 -08:00
Michael Reilly 84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
c0bw3b 9367367dfd Treewide: fix URL permanent redirects
Permanent redirects on homepages and/or source URLs
as reported by Repology
2019-11-16 01:41:23 +01:00
John Ericson 16f0fe7fe3 Merge remote-tracking branch 'upstream/master' into mingw-mcfthreads 2019-11-11 20:48:14 -05:00
John Ericson e00237e790 boehm-gc: Fix build on MinGW with mcfgthreads
CC @lhmouse
2019-11-11 14:10:01 -05:00
Domen Kožar 094f290f35
bohem-gc: fix static build 2019-09-29 11:19:56 +02:00
Matthew Bauer 85210e13e5
boehm-gc: support static + musl 2019-09-29 11:19:56 +02: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
Frederik Rietdijk f120248daf Merge staging-next into staging 2019-06-18 11:07:56 +02:00
volth f3282c8d1e treewide: remove unused variables (#63177)
* treewide: remove unused variables

* making ofborg happy
2019-06-16 19:59:05 +00:00
Ben Wolsieffer 7c11742f85 boehm-gc: remove libatomic_ops build input 2019-06-15 18:20:16 +02:00
Ben Wolsieffer 26e907886c boehm-gc: remove unneeded dontStrip attribute 2019-06-15 18:20:16 +02:00
Will Dietz 9c3a566163 boehmgc: 8.0.2 -> 8.0.4
https://github.com/ivmai/bdwgc/releases/tag/v8.0.4
2019-03-02 21:37:19 -06:00
Vladimír Čunát 32767d139f
Merge branch 'staging-next'
This round is without the systemd CVE,
as we don't have binaries for that yet.
BTW, I just ignore darwin binaries these days,
as I'd have to wait for weeks for them.
2019-02-20 09:38:45 +01:00
Matthew Bauer 55757a0d44
Merge pull request #54402 from lopsided98/boehm-gc-cross-fix
beohm-gc: fix cross build of dependent packages
2019-02-19 22:51:00 -05:00
Frederik Rietdijk 7257dedd7c Merge master into staging-next 2019-02-13 12:33:29 +01:00
Will Dietz 9214f85843 boehmgc_766: similarly fix CFLAGS w/musl to include space first 2019-02-03 13:35:34 -06:00
Will Dietz 0938316e05 boehmgc: fix CFLAGS w/musl so new args are separate (add a space first) 2019-02-03 13:32:49 -06:00
Ben Wolsieffer 30cda188e5 boehm-gc: don't link to libatomic_ops when cross-compiling
The configure script can't detect whether C11 atomic intrinsics are available
when cross-compiling, so it links to libatomic_ops, which has to be propagated
to all dependencies. To avoid this, assume that the atomic intrinsics are
available.
2019-01-20 23:09:48 -05:00
Vladimír Čunát bde8efe792
Merge branch 'master' into staging-next
A couple thousand rebuilds have accumulated on master.
2019-01-12 12:19:34 +01:00
Vladimír Čunát 414e66f222
boehmgc: avoid mass rebuild due to the parent commit 2019-01-11 20:12:56 +01:00
Dmitry Kalinkin ac7f4c0478
boehmgc: fix patch url
Fixes: 587467a18e ('github-gentoo-compromized_can...')
Closes: #53809
2019-01-11 13:20:05 -05:00
Dylan Simon 69466ba96a boehm-gc: remove obsolete sys_select patch 2019-01-08 10:23:32 -05:00
Will Dietz 0d208d923d boehmgc: 8.0.0 -> 8.0.2
https://github.com/ivmai/bdwgc/releases/tag/v8.0.2
2018-12-29 13:53:56 -06:00
R. RyanTM 5fc8aca96d boehmgc: 7.6.8 -> 8.0.0
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/boehm-gc/versions
2018-10-21 08:44:42 +02:00
Michael Raskin b669a45868 boehmgc: reinstate 7.6.6, use for asymptote
A quickfix after #45708
2018-10-08 12:04:53 +03:00
Will Dietz cec0ff764d boehmgc: 7.6.6 -> 7.6.8 (#45708) 2018-09-20 00:28:41 +02:00
John Ericson 0828e2d8c3 treewide: Remove usage of remaining redundant platform compatability stuff
Want to get this out of here for 18.09, so it can be deprecated
thereafter.
2018-08-30 17:20:32 -04:00
Vladimír Čunát 1bdb138710
nix: use boehmgc with enableLargeConfig = true
Fixes #43015 for me and hopefully also similar issues.

== Resource consumption ==

TL;DR: no change for small-memory cases, less CPU for large-memory cases.

I assume almost all of the large memory usage is just the expression
evaluation and managed by the GC, so I used just `nix-env -q...` to test.
Old and new lines for each command follow.  I tried to run each several
times, but the values were very stable (<1% difference on re-runs),
so only one line for each command-version pair is provided.

$ time nix-env -f . -qaP --description -A nix >/dev/null
- 0.06user 0.01system 0:00.07elapsed 101%CPU (0avgtext+0avgdata 29036maxresident)k
+ 0.06user 0.01system 0:00.07elapsed 102%CPU (0avgtext+0avgdata 29864maxresident)k

$ time nix-env -f . -qaP --description >/dev/null
- 6.45user 0.36system 0:06.82elapsed  99%CPU (0avgtext+0avgdata 1021024maxresident)k
+ 6.23user 0.33system 0:06.57elapsed 100%CPU (0avgtext+0avgdata  938408maxresident)k

$ time nix-env -f . --show-trace -qa --drv-path --system --meta --xml 2>&1 >/dev/null
- 56.35user 0.96system 0:31.03elapsed 184%CPU (0avgtext+0avgdata 3207708maxresident)k
+ 44.80user 0.91system 0:26.12elapsed 175%CPU (0avgtext+0avgdata 3192696maxresident)k

$ time ./result-nix-large/bin/nix-instantiate --dry-run --eval --strict \
    --show-trace ./maintainers/scripts/eval-release.nix > /dev/null
- Too many heap sections: Increase MAXHINCR or MAX_HEAP_SECTS
- Command terminated by signal 6
- 175.18user 2.68system 1:17.42elapsed 229%CPU (0avgtext+0avgdata 8468440maxresident)k
+ 178.48user 2.78system 1:15.11elapsed 241%CPU (0avgtext+0avgdata 8460572maxresident)k
2018-07-06 13:03:45 +02:00
sander 587467a18e github-gentoo-compromized_cannot-download_boehm-gc-7.6.0-sys_select.patch-from-any-mirror - change to gentoo git repository gitweb.gentoo.org 2018-07-02 11:59:27 +02:00
Will Dietz a23c0c577c boehmgc: 7.6.4 -> 7.6.6
https://github.com/ivmai/bdwgc/releases/tag/v7.6.6
2018-04-20 21:16:55 -05:00
Shea Levy f3f79bd6c6
boehmgc: Add patch for RISC-V support. 2018-02-18 09:02:06 -05:00
Will Dietz 4aca016313 changes some targetPlatform to hostPlatform checks 2018-02-13 09:44:42 -06:00
Will Dietz e4d5928ba3 boehm-gc: fix missing include, fix build w/musl
Also disable-static, don't remember why
2018-02-13 09:44:39 -06:00