Commit Graph

652858 Commits

Author SHA1 Message Date
Randy Eckenrode
a49dbb2544
darwin.stdenv: switch to top-level cctools and ld64 2024-07-13 17:54:36 -04:00
Randy Eckenrode
c922cb27b6
bintools-wrapper: drop postLinkSignHook
When the linker signs a Mach-O binary, it sets a flag in the signature’s code directory indicating that the signature was generated by a linker. Tools such as `strip` and `install_name_tool` read this flag and will
update ad hoc signatures after they perform their modifications.

The updated l64 supports signing binaries automatically. Both the updated cctools and LLVM will check for the linker-signed flag and resign binaries they modify automatically when it’s present. Given that, use of postLinkSignHook is unnecessary and potentially harmful.

In particular, if the hook is used and an unwrapped `strip` or `install_name_tool` is on the user’s path, they will not automatically update an ad hoc signature. Instead, they will issue a warning and create a binary with a broken signature.

It is more robust to let the tools handled this since the only time a signature would not be linker-signed is when the user is manually invoking `codesign` (or another tool such as `sigtool` or `rcodesign`), which by nature of the invocation updates the signature to a valid  one.

Since `strip` no longer needs to be wrapped for code-signing, binutils-wrapper now uses the GNU strip wrapper on Darwin.

Fixes https://github.com/NixOS/nixpkgs/issues/208951.
2024-07-13 17:54:36 -04:00
Randy Eckenrode
10c87ee2c7
stdenv: set NIX_DONT_SET_RPATH_FOR_TARGET on Darwin 2024-07-13 17:54:35 -04:00
Randy Eckenrode
9403fdc4a6
darwin.stdenv: consolidate stage 2 into one stage
Separate stages are no longer necessary because CF is not built from source and will not be built in the future.
2024-07-13 17:54:35 -04:00
Randy Eckenrode
05e5d7f73e
darwin.stdenv: clean up GNU binutils ban
- Only propagate binutils-unwrapped; and
- Clarify in the `throw` that it cannot be used in the Darwin bootstrap.
2024-07-13 17:54:35 -04:00
Randy Eckenrode
7f1bc0d5c1
binutils: drop Darwin hack
Darwin no longer uses GNU binutils and prevents it from being used in the bootstrap. This hack is no longer necessary.
2024-07-13 17:54:35 -04:00
Randy Eckenrode
78da51cdb0
darwin.stdenv: adjust flags for llvm-strip in bootstrap tools 2024-07-13 17:54:35 -04:00
Randy Eckenrode
8559d6466b
darwin.stdenv: always use a response file
The bootstrap tools have been updated, so it is no longer necessary to suppress using a response file in the Darwin stdenv bootstrap.
2024-07-13 17:54:35 -04:00
Randy Eckenrode
65a37e7b14
darwin.stdenv: make sure curl cannot be used
Fetchers can use the `curl` binary from the bootstrap tools. Allowing packages in the Darwin bootstrap to link curl makes any curl update cause a full rebuild on Darwin, which is undesirable.
2024-07-13 17:54:35 -04:00
Randy Eckenrode
9f68d60b5c
cctools: 973.0.1 -> 1010.6 2024-07-13 17:54:34 -04:00
Randy Eckenrode
f02b50ba18
ld64: init at 951.9 2024-07-13 17:54:34 -04:00
Randy Eckenrode
cdf968c68d
libtapi: 1100.0.11 -> 1500.0.12.3 2024-07-13 17:54:34 -04:00
Randy Eckenrode
baf3568fb2
darwin.libdispatch: 442.1.4 -> 703.50.37 2024-07-13 17:54:34 -04:00
Randy Eckenrode
4ee4fe5fe7
darwin.configd: remove dependency on CF for private headers 2024-07-13 17:54:33 -04:00
Randy Eckenrode
b7952b4729
darwin.Libsystem: get headers from AvailabilityVersions
While these headers correspond to a newer SDK, they’re compatible with the 10.12 SDK and more compatible with GCC.
2024-07-13 17:54:33 -04:00
Randy Eckenrode
7f45223bea
darwin.binutils: add dwarfdump and fix typo 2024-07-13 17:54:33 -04:00
Randy Eckenrode
3a545f673e
darwin.AvailabilityVersions: init at 140.1 2024-07-13 10:59:42 -04:00
Randy Eckenrode
91d8dd928f
darwin.apple_sdk_10_12.sdkRoot: specify exact SDK version 2024-07-13 10:59:42 -04:00
Randy Eckenrode
4712e8fe80
libredirect: use llvmPackages unconditionally
Darwin and its bootstrap tools both use LLVM 16, which is sufficient for
arm64e support in LLVM. Thsi change removes an unnecessary LLVM 13 build
from the stdenv bootstrap.
2024-07-13 10:59:41 -04:00
Randy Eckenrode
1cb1853573
ld-wrapper: use a temporary file for reponse file
This changes ld-wrapper to use a temporary file for the response file
passed to ld instead of using process substitution.

ld64 does not handle long command-lines when reading from the response
file, which defeats the point of using a response file to handle long
command-lines. cctools-port was patched to work around this, but nixpkgs
is now using Apple’s source release directly instead of the port.

Since it’s preferable not to patch Apple’s release heavily (to reduce
the difficulty of updating to new versions and to match upstream’s
behavior), use the approach that was adopted in cc-wrapper to work
around issues with response files in newer versions of clang.

Related PRs (cctools-port):
- https://github.com/NixOS/nixpkgs/pull/213831
- https://github.com/tpoechtrager/cctools-port/pull/132

Related PRs (cc-wrapper):
- https://github.com/NixOS/nixpkgs/pull/245282
- https://github.com/NixOS/nixpkgs/pull/258608
2024-07-13 10:59:41 -04:00
Vladimír Čunát
5a56b5dfb1
mesa: 24.1.2 -> 24.1.3
https://docs.mesa3d.org/relnotes/24.1.3.html
2024-07-13 13:02:03 +02:00
Vladimír Čunát
6a257a46c6
Merge #324413: gnutls: 3.8.5 -> 3.8.6
...into staging
2024-07-13 13:01:46 +02:00
Jan Tojnar
256178a180
Merge pull request #326637 from NixOS/libxml2
libxml2: 2.12.7 → 2.13.2
2024-07-13 12:53:12 +02:00
Vladimír Čunát
f6f5b1fde5
gss: drop a crashing test
https://hydra.nixos.org/build/266280498/nixlog/1/tail

In the test sources I see lines hinting at the moment it started failing
  name:endtime  type:GENERALIZED_TIME  value:20240711155558Z
but I was unable to find a fix quickly.
2024-07-13 11:48:34 +02:00
github-actions[bot]
81b9c6ab7a
Merge staging-next into staging 2024-07-13 06:01:31 +00:00
github-actions[bot]
2b17947157
Merge master into staging-next 2024-07-13 06:01:07 +00:00
Jörg Thalheim
bd24e293f2
Merge pull request #326434 from uncenter/pr-76d418ec
serpl: 0.1.30 -> 0.1.34
2024-07-13 07:04:17 +02:00
Randy Eckenrode
85de798ad5
Merge pull request #326703 from corngood/dotnet-darwin-fix
dotnet: use dwarfdump from cctools-llvm
2024-07-12 23:51:59 -04:00
David McFarland
77bc2008a8 dotnet: use dwarfdump from cctools-llvm
At some point cctools changed from cctools-llvm to cctools-port, and
this broke dotnet.
2024-07-13 03:02:49 +00:00
David McFarland
3a81f51093
Merge pull request #326588 from corngood/swift
swift: fix build and mark as unbroken on darwin
2024-07-12 23:33:32 -03:00
OTABI Tomoya
b86d37a72e
Merge pull request #324749 from natsukium/nbmerge
python311Packages.nbmerge: move to top-level attribute
2024-07-13 10:37:03 +09:00
OTABI Tomoya
0c6d6d9b01
Merge pull request #324734 from natsukium/mygpoclient
python311Packages.mygpoclient: 1.8 -> 1.9
2024-07-13 10:36:05 +09:00
OTABI Tomoya
6b87da85e2
Merge pull request #324729 from natsukium/mkl-service
python311Packages.mkl-service: refactor and remove nose
2024-07-13 10:35:20 +09:00
Bruno BELANYI
cb4ceede85
Merge pull request #311179 from redyf/tmux-power-update 2024-07-13 01:40:05 +01:00
Redyf
6d5dbe79a4 tmuxPlugins.power-theme: unstable-2020-11-18 -> unstable-2024-05-12
https://github.com/wfxr/tmux-power
2024-07-12 21:34:28 -03:00
github-actions[bot]
345035df51
Merge staging-next into staging 2024-07-13 00:02:49 +00:00
github-actions[bot]
efdfac4a0d
Merge master into staging-next 2024-07-13 00:02:21 +00:00
nixpkgs-merge-bot[bot]
f9d8021398
Merge pull request #326629 from r-ryantm/auto-update/scip-go
scip-go: 0.1.14 -> 0.1.15
2024-07-12 23:29:19 +00:00
Ivan Mincik
4b6a089037
Merge pull request #326550 from imincik/qgis-ltr-fix-pyqt-patch
qgis-ltr: fix pyqt patch
2024-07-12 21:51:00 +00:00
Ryan Horiguchi
68dda74fc2 plex: 1.40.3.8555-fef15d30c -> 1.40.4.8679-424562606 2024-07-12 23:14:12 +02:00
R. Ryantm
73b9e297fa surrealdb: 1.5.3 -> 1.5.4 2024-07-12 23:12:04 +02:00
R. Ryantm
432f17dd44 podman: 5.1.1 -> 5.1.2 2024-07-12 23:11:46 +02:00
Francesco Gazzetta
61d453da80 ladybird: 0-unstable-2024-06-08 -> 0-unstable-2024-07-11 2024-07-12 21:02:32 +00:00
Peder Bergebakken Sundt
7d0187f7c7
Merge pull request #325570 from michaelgrahamevans/fretboard-7.1
fretboard: 7.0 -> 7.1
2024-07-12 23:00:30 +02:00
Peder Bergebakken Sundt
5f3fd5e599
Merge pull request #319288 from getchoo/pkgs/diesel-cli/adopt
diesel-cli: adopt; modernize
2024-07-12 22:57:44 +02:00
Nick Cao
4e7b26b9d4
Merge pull request #326601 from r-ryantm/auto-update/kickoff
kickoff: 0.7.3 -> 0.7.4
2024-07-12 16:31:36 -04:00
Nick Cao
495199a81b
Merge pull request #326602 from mgit-at/pwru-fix
pwru: 1.0.6 -> 1.0.7, fix build
2024-07-12 16:31:17 -04:00
Fabian Affolter
89822fd8f5
Merge pull request #326495 from r-ryantm/auto-update/python312Packages.faraday-plugins
python312Packages.faraday-plugins: 1.18.0 -> 1.18.1
2024-07-12 22:30:57 +02:00
Fabian Affolter
1a350374c1
Merge pull request #326496 from r-ryantm/auto-update/python312Packages.faraday-agent-parameters-types
python312Packages.faraday-agent-parameters-types: 1.6.0 -> 1.7.0
2024-07-12 22:30:33 +02:00
Nick Cao
7f1e3bd90c
Merge pull request #326609 from r-ryantm/auto-update/python312Packages.pipdeptree
python312Packages.pipdeptree: 2.23.0 -> 2.23.1
2024-07-12 16:30:05 -04:00