Commit Graph

3085 Commits

Author SHA1 Message Date
Jean-François Roche
4844b997d4 nix: fix installCheckPhase crashes on Darwin
While building nix on Darwin, I encountered an error in the `installCheckPhase`:

```
nix>     building '/private/tmp/nix-build-nix-2.17.1.drv-1/nix-test/tests/fetchurl/store/mkc9z3arar02wi5jii655cjhdinx4npy-fetchurl.sh.drv'...
nix>     waiting for children
nix>     building of '/private/tmp/nix-build-nix-2.17.1.drv-1/nix-test/tests/fetchurl/store/mkc9z3arar02wi5jii655cjhdinx4npy-fetchurl.sh.drv^out' from .drv file: read 377 bytes
nix>     objc[70707]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called.
nix>     objc[70707]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
nix>     waiting for children
```

I noticed that #278802 should have addressed this problem, but it didn't.
The solution for me was to replace `yes` with `YES`.

As it turns out, most of the references to `OBJC_DISABLE_INITIALIZE_FORK_SAFETY` use `YES` instead of `yes`.

https://airflow.apache.org/blog/airflow-1.10.10/#running-airflow-on-macos
http://sealiesoftware.com/blog/archive/2017/6/5/Objective-C_and_fork_in_macOS_1013.html

The objective C code that parses the environment variable is defined in
the function `environ_init` in [here](cd5e62a559/runtime/objc-runtime.mm (L265)) and it does
`*opt->var = (0 == strcmp(value, "YES"));`.

```
% nix-info -m
 - system: `"aarch64-darwin"`
 - host os: `Darwin 21.3.0, macOS 12.2.1`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.19.2`
 - channels(hetzner): `"darwin, nixpkgs-22.05-darwin"`
 - channels(root): `"darwin, nixpkgs-23.05-darwin"`
 - nixpkgs: `/Users/hetzner/git/nixpkgs`
```
2024-01-23 11:05:12 +01:00
Bernardo Meurer
435b6785ea
Merge pull request #282300 from trofi/nixUnstable-update
nixUnstable: 2.19.2 -> 2.19.3
2024-01-20 17:51:43 -05:00
Sergei Trofimovich
8a3cd26194 nixUnstable: 2.19.2 -> 2.19.3
Changes: https://github.com/NixOS/nix/compare/2.19.2...2.19.3
2024-01-20 10:33:19 +00:00
Weijia Wang
a2cd922c79
Merge pull request #279788 from r-ryantm/auto-update/fortran-fpm
fortran-fpm: 0.9.0 -> 0.10.0
2024-01-20 07:08:33 +01:00
Weijia Wang
bf805ff180
Merge pull request #279884 from r-ryantm/auto-update/npm-check-updates
npm-check-updates: 16.14.0 -> 16.14.12
2024-01-20 06:24:15 +01:00
Robert Schütz
015bcd8ec2
Merge pull request #281328 from TomaSajt/pdm
pdm: 2.10.4 -> 2.12.1, fix build
2024-01-17 16:41:48 +01:00
TomaSajt
7ecfd26775
pdm: 2.10.4 -> 2.12.1, fix build 2024-01-17 08:51:08 +01:00
Robert Schütz
3b5fd3ff81 poetry: fix tests on Darwin
tests/console/commands/test_shell.py::test_shell used to fail with

    shellingham.posix.ps.PsNotAvailable: ps not found
2024-01-16 13:06:06 -08:00
sternenseemann
82f1776035 licensee: 9.16.0 -> 9.16.1
https://github.com/licensee/licensee/releases/tag/v9.16.1
2024-01-16 21:49:55 +01:00
Nick Cao
5c5a077f59
Merge pull request #281124 from chewblacka/update-apx
apx: 2.2.0 -> 2.3.0
2024-01-16 11:28:19 -05:00
Robert Schütz
d2a1ff1079
Merge pull request #281103 from ches/poetry-relax-xattr
poetry: Relax dep requirement check for xattr
2024-01-15 20:58:12 +01:00
Bernardo Meurer
fae15249c5
Merge pull request #276892 from trofi/nix-set-pos-attribute 2024-01-15 13:05:51 -05:00
John Garcia
912bd1b214 apx: 2.2.0 -> 2.3.0 2024-01-15 12:02:20 +00:00
Ches Martin
25f6ddf601 poetry: Relax dep requirement check for xattr
Following from #280522, the xattr dependency still failed the
pythonRuntimeDepsCheck hook, likely overlooked because it is a
Darwin-only dep:

    > Checking runtime dependencies for poetry-1.7.1-py3-none-any.whl
    >   - xattr<0.11.0,>=0.10.0 not satisfied by version 1.0.0

From 0.10.0 to 1.0.0 there are no functional changes with compatibility
implications, only dropped support for Python 2.
2024-01-15 17:22:10 +07:00
Franz Pletz
87b9bf8ea4
Merge pull request #273477 from charles-dyfis-net/poetry-compose-overrides 2024-01-15 02:25:49 +01:00
Robert Schütz
48eaf25070
Merge pull request #280522 from mweinelt/poetry-deps
poetry: fix up dependencies
2024-01-13 23:12:55 +01:00
éclairevoyant
f574819aa4
pacman: fix build with strictDeps = true; 2024-01-12 23:09:19 -05:00
Nick Cao
63ef5de390
Merge pull request #280499 from chewblacka/update-apx
apx: 2.1.2 -> 2.2.0
2024-01-12 14:23:03 -05:00
John Garcia
e547272017 apx: 2.1.2 -> 2.2.0 2024-01-12 17:03:19 +00:00
Martin Weinelt
7995c92514 poetry: fix up dependencies
> Checking runtime dependencies for poetry-1.7.1-py3-none-any.whl
>   - fastjsonschema not installed
>   - platformdirs<4.0.0,>=3.0.0 not satisfied by version 4.0.0
2024-01-12 08:49:54 -08:00
K900
e7b611e59d Merge remote-tracking branch 'origin/master' into staging-next 2024-01-12 13:59:54 +03:00
Ryan Lahfa
56df644cb4 Revert "nixVersions.stable: 2.18.1 -> 2.19.2"
This version does not pass our NixOS tests, e.g. `nixosTests.misc` and
potentially other fundamental tests such as lib-tests.
2024-01-11 19:15:07 +01:00
github-actions[bot]
5ee7600250
Merge master into staging-next 2024-01-11 12:01:18 +00:00
K900
50e858cb18
Merge pull request #279749 from K900/protontricks
protontricks: 1.10.1 -> 1.11.0
2024-01-11 10:34:38 +03:00
Weijia Wang
2f9e98ccf3 Merge branch 'master' into staging-next 2024-01-10 23:12:44 +01:00
éclairevoyant
c27bc49c43
nixVersions.stable: 2.18.1 -> 2.19.2 2024-01-10 14:04:30 -05:00
K900
a7b4a999ec protontricks: 1.10.1 -> 1.11.0 2024-01-10 00:32:21 +03:00
K900
838aefefc3 Merge remote-tracking branch 'origin/master' into staging-next 2024-01-09 22:42:37 +03:00
R. Ryantm
6fe79120cc npm-check-updates: 16.14.0 -> 16.14.12 2024-01-09 19:13:53 +00:00
GetPsyched
f98ec4f73c treewide: update meta.description to fit the guidelines 2024-01-09 17:12:31 +01:00
R. Ryantm
fadeddc6db fortran-fpm: 0.9.0 -> 0.10.0 2024-01-09 10:11:02 +00:00
Jan Tojnar
ff42d23313 Merge branch 'master' into staging-next
Conflicts:

pkgs/development/python-modules/dbt-core/default.nix
pkgs/development/python-modules/dbt-semantic-interfaces/default.nix

Still broken by pydantic 2 bump, though.
2024-01-07 16:14:41 +01:00
Benjamin Hipple
8f5b6bf391
Merge pull request #278230 from mcmah309/master
fix: Fix conda-shell environment first creation issue
2024-01-07 09:43:09 -05:00
maxine
f14a8d6e50
Merge pull request #278279 from katexochen/dnf5/5-1-10
dnf5: 5.1.9 -> 5.1.10
2024-01-07 15:04:44 +01:00
R. Ryantm
cc9d950564 home-manager: unstable-2023-12-31 -> unstable-2024-01-05 2024-01-07 05:15:55 +00:00
github-actions[bot]
17cf061755
Merge master into staging-next 2024-01-06 18:01:15 +00:00
Mario Rodas
90b361e0a1
Merge pull request #278902 from r-ryantm/auto-update/nfpm
nfpm: 2.35.1 -> 2.35.2
2024-01-06 08:11:46 -05:00
Martin Weinelt
430fd07751
Merge remote-tracking branch 'origin/master' into staging-next 2024-01-06 04:57:06 +01:00
Martin Weinelt
095dec0437
Merge pull request #278808 from mweinelt/maintenance
Scale back maintainership on various packages
2024-01-06 04:51:44 +01:00
github-actions[bot]
76201c62e0
Merge master into staging-next 2024-01-05 18:00:58 +00:00
Nick Cao
4b486c82dd
Merge pull request #278729 from teutat3s/deploy-rs-2023-12-20
deploy-rs: unstable-2023-09-12 -> unstable-2023-12-20
2024-01-05 12:05:33 -05:00
Martin Weinelt
4611371303
treewide: scale back maintainership for various packages 2024-01-05 14:43:39 +01:00
R. Ryantm
cb6ffe2e9d nfpm: 2.35.1 -> 2.35.2 2024-01-05 09:37:49 +00:00
Randy Eckenrode
8dd78e6dc9
nix: fix installCheckPhase crashes on Darwin
Ensure that `OBJC_DISABLE_INITIALIZE_FORK_SAFETY=yes` is set when
starting the Nix daemon during tests, or the fetchurl.sh test will
crash trying to initialize libcurl. This is happening since IPv6 support
was enabled in https://github.com/NixOS/nixpkgs/pull/277471.

See also:
- http://sealiesoftware.com/blog/archive/2017/6/5/Objective-C_and_fork_in_macOS_1013.html
- https://github.com/NixOS/nix/pull/2674
2024-01-04 19:22:05 -05:00
teutat3s
33f97bbf64
deploy-rs: unstable-2023-09-12 -> unstable-2023-12-20
31c32fb295..b709d63deb
2024-01-04 17:26:10 +01:00
Vladimír Čunát
c33b4961cb
Merge #276696: nixVersions.nix_2_3: fix build against current gcc
...into staging-next
2024-01-04 14:48:50 +01:00
github-actions[bot]
307002948d
Merge master into staging-next 2024-01-03 18:00:57 +00:00
Weijia Wang
5e24de4ac6
Merge pull request #273694 from r-ryantm/auto-update/home-manager
home-manager: 2023-09-14 -> unstable-2023-12-31
2024-01-03 16:18:22 +01:00
Weijia Wang
eb5334c27d Merge branch 'master' into staging-next 2024-01-03 03:22:40 +01:00
John Garcia
5c5ba2333f apx: 2.1.1 -> 2.1.2 2024-01-02 16:56:23 +00:00