Commit Graph

24752 Commits

Author SHA1 Message Date
Luna Nova
dbb57d8d86 go: only enable PIE by default when building for GOARCH matching target
We rely on teaching go to use the correct ELF interpreter
for PIE in a way that can't work for packages that 
go off and do their own GOARCH=something cross builds
without touching nixpkgs cross machinery,
so update the default pie patch to bake targetPlatform's
GOARCH and only activate for it.

tailscale works as a testcase for this as it cross compiles
many arches in tstest/archtest/qemu_test.go
2025-10-07 20:27:45 -07:00
Luna Nova
08aadbf8d4 go: position independent executables by default
Followup to setting --enable-default-pie for our gcc,
we teach go to build PIE by default when supported.
2025-10-07 20:27:45 -07:00
Luna Nova
97a43a6db4 go: teach internal linker to use correct ELF interpreter
Teaches go's internal linker to use the GO_LDSO env var as the path for the dynamic linker, instead of defaulting to an FHS /lib path.
GO_LDSO is automatically set to the appropriate value by checking $NIX_CC/nix-support/dynamic-linker
External linking is set as the default for cross compile situations
where CGO is supported.
Teaching go to correctly handle cross
in the internal linker is hard, and our system linker already knows
how to find the right ELF interpreter.
For cross situations where CGO is not supported we assume either non-ELF
binaries or static binaries will be produced.
2025-10-07 17:32:25 -07:00
nixpkgs-ci[bot]
bd43b58711 Merge master into staging-next 2025-10-08 00:16:11 +00:00
zowoq
d100301784 go_1_24: 1.24.7 -> 1.24.8
Changelog: https://go.dev/doc/devel/release#go1.24
2025-10-08 09:54:44 +10:00
zowoq
c27d4b0b74 go_1_25: 1.25.1 -> 1.25.2
Changelog: https://go.dev/doc/devel/release#go1.25
2025-10-08 09:53:43 +10:00
David McFarland
1d94a65857 dotnetCorePackages.dotnet_{8..10}.vmr: fix darwin build 2025-10-07 23:40:55 +00:00
David McFarland
43b6e7fada dotnetCorePackages.dotnet_10.vmr: cherry-pick AVX-512 crash fix (#449237) 2025-10-07 20:50:53 +00:00
Olli Helenius
efd0262214 jetbrains.jdk: 21.0.7 -> 21.0.8 2025-10-07 23:26:25 +03:00
Olli Helenius
4f46ccb8b7 jetbrains.jcef: 1014 -> 1059 2025-10-07 23:26:25 +03:00
Olli Helenius
7f5f68d9ff jetbrains.jcef: build with Thrift 0.20.0
Upstream is incompatible with 0.21.0.
2025-10-07 23:26:25 +03:00
nixpkgs-ci[bot]
993047cee0 Merge staging-next into staging 2025-10-07 12:08:18 +00:00
Vladimír Čunát
9601d1fec3 llvmPackages_21: 21.1.1 -> 21.1.2 (#447069) 2025-10-07 11:41:19 +02:00
Arne Keller
c7cab2f3c0 temurin-{,jre-}bin-24: drop, open{jdk,jfx}24: drop (#448547) 2025-10-07 09:08:41 +00:00
Marie Ramlow
06e1588e57 gcc: drop libstdc++ patch
This patch was introduced in 2010 to fix mingw compilers.
See c548c084bb
It no longer applies to gcc15 and all of our current gccs (13, 14 and 15)
build fine without it.

Tested the following cross-compilers:
```shell
nix-build --expr 'with (import ./. { }).pkgsCross.mingwW64; hello.override { stdenv = gcc13Stdenv; }' \
          --expr 'with (import ./. { }).pkgsCross.mingwW64; hello.override { stdenv = gcc14Stdenv; }' \
          --expr 'with (import ./. { }).pkgsCross.mingwW64; hello.override { stdenv = gcc15Stdenv; }' \
          --expr 'with (import ./. { }).pkgsCross.mingw32; hello.override { stdenv = gcc13Stdenv; }' \
          --expr 'with (import ./. { }).pkgsCross.mingw32; hello.override { stdenv = gcc14Stdenv; }' \
          --expr 'with (import ./. { }).pkgsCross.mingw32; hello.override { stdenv = gcc15Stdenv; }'
```
2025-10-07 10:28:13 +02:00
K900
fb73ccd10d Merge remote-tracking branch 'origin/staging-next' into staging 2025-10-07 08:19:36 +03:00
R. Ryantm
d590b03970 dart: 3.9.3 -> 3.9.4 2025-10-07 04:39:33 +00:00
David McFarland
ec95e68a73 dotnetCorePackages.dotnet_10.vmr: cherry-pick AVX-512 crash fix
Fixes: #431811
2025-10-06 16:55:23 -03:00
Alyssa Ross
7264875271 llvmPackages_git: 22.0.0-unstable-2025-09-28 -> 22.0.0-unstable-2025-… (#449199) 2025-10-06 17:14:07 +00:00
Tristan Ross
f0d1b55145 llvmPackages_git: 22.0.0-unstable-2025-09-28 -> 22.0.0-unstable-2025-10-05 2025-10-06 09:56:47 -07:00
Tom van Dijk
47513a1990 temurin-{,jre-}bin-24: drop, open{jdk,jfx}24: drop 2025-10-06 18:01:59 +02:00
Michael Daniels
e0d5027e88 treewide: migrate to by-name 2025-10-05 15:16:28 -04:00
Wolfgang Walther
d7448200ec [haskell-updates] cherry picks from staging-next (#447025) 2025-10-05 12:13:49 +00:00
Wolfgang Walther
faa75cc974 Merge commit 'aee3f2ec9ef6ddea6115097946bc237a5b6ad8d9' into haskell-updates 2025-10-05 11:43:34 +02:00
Wolfgang Walther
5e1f5b623b Merge branch 'staging-next' into staging 2025-10-05 11:40:56 +02:00
K900
e93c560b79 Merge remote-tracking branch 'origin/master' into staging-next 2025-10-05 12:17:08 +03:00
Wolfgang Walther
91a8fee3aa treewide: remove redundant parentheses
Auto-fixed by nixf-diagnose.
2025-10-05 10:52:03 +02:00
Wolfgang Walther
c283f32d29 treewide: remove unused with
Auto-fixed by nixf-diagnose.
2025-10-05 10:50:41 +02:00
Wolfgang Walther
90e7159c55 treewide: remove unused rec
Auto-fix by nixf-diagnose.
2025-10-05 10:49:12 +02:00
nixpkgs-ci[bot]
99bf2f7c42 Merge 0832d1b3a0 into haskell-updates 2025-10-05 00:22:14 +00:00
nixpkgs-ci[bot]
e23d356469 Merge staging-next into staging 2025-10-05 00:18:23 +00:00
Alyssa Ross
6f7816d63e llvmPackages.compiler-rt: clean up libxcrypt fix (#447574) 2025-10-04 20:12:01 +02:00
K900
f8d669f413 Merge remote-tracking branch 'origin/master' into staging-next 2025-10-04 21:10:21 +03:00
NAHO
c8d4dabc43 pkgs: remove optional builtins prefixes from prelude functions
Remove optional builtins prefixes from prelude functions by running:

    builtins=(
      abort
      baseNameOf
      break
      derivation
      derivationStrict
      dirOf
      false
      fetchGit
      fetchMercurial
      fetchTarball
      fetchTree
      fromTOML
      import
      isNull
      map
      null
      placeholder
      removeAttrs
      scopedImport
      throw
      toString
      true
    )

    fd \
      --type file \
      . \
      pkgs \
      --exec-batch sed --in-place --regexp-extended "
        s/\<builtins\.($(
          printf '%s\n' "${builtins[@]}" |
            paste --delimiter '|' --serial -
        ))\>/\1/g
      "

    nix fmt
2025-10-04 19:02:37 +02:00
dramforever
736ac3f69f Merge remote-tracking branch 'nixos/staging-next' into HEAD 2025-10-04 22:46:07 +08:00
nixpkgs-ci[bot]
45e7932c78 Merge master into staging-next 2025-10-04 12:05:54 +00:00
jopejoe1
851e8a2f10 treewide: remove stringy licenses (#439982) 2025-10-04 11:36:34 +00:00
David McFarland
70529ae3bc Revert "treewide: undo changes causing rebuilds" (#447736) 2025-10-02 11:24:30 -03:00
sternenseemann
847d79da4a spago-legacy: 0.21.0 -> 0.21.1, rename from spago
See https://github.com/purescript/spago-legacy/pull/3.

Co-authored-by: Peter Becich <peterbecich@gmail.com>
(cherry picked from commit 401566541b)
2025-10-02 12:28:23 +02:00
sternenseemann
932b4a5f4f Merge commit 41b88f48c1 into haskell-updates 2025-10-02 09:55:47 +02:00
nixpkgs-ci[bot]
d6ac0273cd Merge staging-next into staging 2025-10-01 00:19:21 +00:00
nixpkgs-ci[bot]
b873fed1e5 Merge master into staging-next 2025-10-01 00:18:39 +00:00
Tristan Ross
18052c6ee3 flutter335: 3.35.4 -> 3.35.5 (#447372) 2025-09-30 22:21:56 +00:00
David McFarland
b8cf634aa1 Revert "treewide: undo changes causing rebuilds"
This reverts commit e098bea39d.
2025-09-30 19:05:25 -03:00
Alyssa Ross
4d44f8fa53 llvmPackages.compiler-rt: clean up libxcrypt fix
This is unnecessary since LLVM commit d7bead833631 ("[sanitizer]
Remove crypt and crypt_r interceptors"), included in LLVM 18, the
oldest version we still have in Nixpkgs.
2025-09-30 22:40:41 +02:00
K900
4999ae577c Merge remote-tracking branch 'origin/master' into staging-next 2025-09-30 21:47:55 +03:00
Sandro
82a2c5e841 emscripten: fix cross-compilation by using host python (#431462) 2025-09-30 18:18:27 +00:00
ghpzin
02746ead92 haskell.compiler.ghc{948,967,984,9101,9121,9122}: fix build with gcc15
- add patch from fedora (rebase of latest fix from upstream):
https://gitlab.haskell.org/ghc/ghc/-/issues/25662
https://gitlab.haskell.org/ghc/ghc/-/merge_requests/13863

ghc versions excluded from patch:
9.10.2 - has previous fix with `extern void* malloc(size_t);`
9.10.3 - has latest fix with `#include <stdlib.h>`
9.12.3 - has latest fix with `#include <stdlib.h>`

Fixes build failure with gcc15, building utils/hp2ps/Utilities.c:
```
utils/hp2ps/Utilities.c:6:14: error:
warning: conflicting types for built-in function ‘malloc’;
expected ‘void *(long unsigned int)’ [-Wbuiltin-declaration-mismatch]
        6 | extern void* malloc();
          |              ^~~~~~
...
utils/hp2ps/Utilities.c:92:18: error:
warning: conflicting types for built-in function ‘realloc’;
expected ‘void *(void *, long unsigned int)’ [-Wbuiltin-declaration-mismatch]
       92 |     extern void *realloc();
          |                  ^~~~~~~
```
2025-09-30 19:16:07 +02:00
Alyssa Ross
10a4dec731 llvmPackages: clean up rebuild avoidance (#447071) 2025-09-30 17:32:57 +02:00
Alyssa Ross
05a384cfe2 llvmPackages.libunwind: condition doFakeLibgcc on !stdenv.hostPlatform.isStatic (#417354) 2025-09-30 15:30:28 +00:00