Loading pkgs/development/compilers/gcc/ng/15/libatomic/gthr-include.patch 0 → 100644 +16 −0 Original line number Diff line number Diff line This change was upstreamed in e5d853bbe9b05d6a00d98ad236f01937303e40c4 in GCC, but this file was slightly different in GCC 15, so we're patching it manually. diff --git a/libatomic/aclocal.m4 b/libatomic/aclocal.m4 index 80e24219d7d..581fedcfe13 100644 --- a/libatomic/aclocal.m4 +++ b/libatomic/aclocal.m4 @@ -1189,6 +1189,7 @@ AC_SUBST([am__untar]) m4_include([../config/acx.m4]) m4_include([../config/depstand.m4]) +m4_include([../config/gthr.m4]) m4_include([../config/lead-dot.m4]) m4_include([../config/lthostflags.m4]) m4_include([../config/multi.m4]) pkgs/development/compilers/gcc/ng/common/libatomic/default.nix +4 −3 Original line number Diff line number Diff line Loading @@ -41,13 +41,14 @@ stdenv.mkDerivation (finalAttrs: { patches = [ (fetchpatch { name = "custom-threading-model.patch"; url = "https://inbox.sourceware.org/gcc-patches/20250716204545.1063669-1-git@JohnEricson.me/raw"; hash = "sha256-kxNntY2r4i/+XHQSpf9bYV2Jg+FD/pD5TiMn5hd4ckk="; url = "https://github.com/gcc-mirror/gcc/commit/e5d853bbe9b05d6a00d98ad236f01937303e40c4.diff"; hash = "sha256-U1Eh6ByhmseHQigfHIyO4MlAQB3fECmpPEP/M00DOg0="; includes = [ "config/*" "libatomic/*" "libatomic/configure.ac" ]; }) (getVersionFile "libatomic/gthr-include.patch") ]; postUnpack = '' Loading pkgs/development/compilers/gcc/ng/common/libgcc/default.nix +18 −8 Original line number Diff line number Diff line Loading @@ -45,18 +45,28 @@ stdenv.mkDerivation (finalAttrs: { }) (fetchpatch { name = "custom-threading-model.patch"; url = "https://inbox.sourceware.org/gcc-patches/20250716204545.1063669-1-git@JohnEricson.me/raw"; hash = "sha256-NgiC4cFeFInXXg27me1XpSeImPaL0WHs50Tf1YHz4ps="; url = "https://github.com/gcc-mirror/gcc/commit/e5d853bbe9b05d6a00d98ad236f01937303e40c4.diff"; hash = "sha256-92LIttIXdh12/lRhivb2JTPpqUmGBRn+uKmR5pzuveo="; includes = [ "config/*" "libgcc/configure.ac" ]; }) (fetchpatch { name = "libgcc.mvars-less-0.patch"; url = "https://inbox.sourceware.org/gcc-patches/20250716234028.1153560-1-John.Ericson@Obsidian.Systems/raw"; hash = "sha256-NEcieDCsy+7IRU3qQKVD3i57OuwGZKB/rmNF8X2I1n0="; name = "no-pie-cflags.patch"; url = "https://github.com/gcc-mirror/gcc/commit/77144dd3b6736e0166156bb509590d924375a4f1.diff"; hash = "sha256-QlxlTkWAK1dB7JiU5wz2iOW24gj3bFaeBpwb90oWwns="; includes = [ "gcc/Makefile.in" "gcc/configure.ac" "libgcc/Makefile.in" "libgcc/configure.ac" ]; }) (fetchpatch { name = "libgcc.mvars-less-1.patch"; url = "https://inbox.sourceware.org/gcc-patches/20250716234028.1153560-2-John.Ericson@Obsidian.Systems/raw"; hash = "sha256-nfRC4f6m3kHDro4+6E4y1ZPs+prxBQmn0H2rzIjaMWM="; name = "no-target-system-root.patch"; url = "https://github.com/gcc-mirror/gcc/commit/9947930b7ae923010c5061fd8fa6b1ec4f22f161.diff"; hash = "sha256-BZmpHpJuuyDmQMwpQhSgCZO0Rg7kXt8rTiJAT+e0sUw="; }) (fetchpatch { name = "regular-libdir-includedir.patch"; Loading pkgs/development/compilers/gcc/ng/common/libstdcxx/default.nix +3 −3 Original line number Diff line number Diff line Loading @@ -54,11 +54,11 @@ stdenv.mkDerivation (finalAttrs: { patches = [ (fetchpatch { name = "custom-threading-model.patch"; url = "https://inbox.sourceware.org/gcc-patches/20250716204545.1063669-1-git@JohnEricson.me/raw"; hash = "sha256-jPP0+MoPLtCwWcW6doO6KHCppwAYK40qNVyriLXcGOg="; url = "https://github.com/gcc-mirror/gcc/commit/e5d853bbe9b05d6a00d98ad236f01937303e40c4.diff"; hash = "sha256-f0XAim3uzHnUx5lm/xO00IqBHu4YUEHF2WY+c0yCF6Y="; includes = [ "config/*" "libstdc++-v3/*" "libstdc++-v3/acinclude.m4" ]; }) (getVersionFile "libstdcxx/force-regular-dirs.patch") Loading Loading
pkgs/development/compilers/gcc/ng/15/libatomic/gthr-include.patch 0 → 100644 +16 −0 Original line number Diff line number Diff line This change was upstreamed in e5d853bbe9b05d6a00d98ad236f01937303e40c4 in GCC, but this file was slightly different in GCC 15, so we're patching it manually. diff --git a/libatomic/aclocal.m4 b/libatomic/aclocal.m4 index 80e24219d7d..581fedcfe13 100644 --- a/libatomic/aclocal.m4 +++ b/libatomic/aclocal.m4 @@ -1189,6 +1189,7 @@ AC_SUBST([am__untar]) m4_include([../config/acx.m4]) m4_include([../config/depstand.m4]) +m4_include([../config/gthr.m4]) m4_include([../config/lead-dot.m4]) m4_include([../config/lthostflags.m4]) m4_include([../config/multi.m4])
pkgs/development/compilers/gcc/ng/common/libatomic/default.nix +4 −3 Original line number Diff line number Diff line Loading @@ -41,13 +41,14 @@ stdenv.mkDerivation (finalAttrs: { patches = [ (fetchpatch { name = "custom-threading-model.patch"; url = "https://inbox.sourceware.org/gcc-patches/20250716204545.1063669-1-git@JohnEricson.me/raw"; hash = "sha256-kxNntY2r4i/+XHQSpf9bYV2Jg+FD/pD5TiMn5hd4ckk="; url = "https://github.com/gcc-mirror/gcc/commit/e5d853bbe9b05d6a00d98ad236f01937303e40c4.diff"; hash = "sha256-U1Eh6ByhmseHQigfHIyO4MlAQB3fECmpPEP/M00DOg0="; includes = [ "config/*" "libatomic/*" "libatomic/configure.ac" ]; }) (getVersionFile "libatomic/gthr-include.patch") ]; postUnpack = '' Loading
pkgs/development/compilers/gcc/ng/common/libgcc/default.nix +18 −8 Original line number Diff line number Diff line Loading @@ -45,18 +45,28 @@ stdenv.mkDerivation (finalAttrs: { }) (fetchpatch { name = "custom-threading-model.patch"; url = "https://inbox.sourceware.org/gcc-patches/20250716204545.1063669-1-git@JohnEricson.me/raw"; hash = "sha256-NgiC4cFeFInXXg27me1XpSeImPaL0WHs50Tf1YHz4ps="; url = "https://github.com/gcc-mirror/gcc/commit/e5d853bbe9b05d6a00d98ad236f01937303e40c4.diff"; hash = "sha256-92LIttIXdh12/lRhivb2JTPpqUmGBRn+uKmR5pzuveo="; includes = [ "config/*" "libgcc/configure.ac" ]; }) (fetchpatch { name = "libgcc.mvars-less-0.patch"; url = "https://inbox.sourceware.org/gcc-patches/20250716234028.1153560-1-John.Ericson@Obsidian.Systems/raw"; hash = "sha256-NEcieDCsy+7IRU3qQKVD3i57OuwGZKB/rmNF8X2I1n0="; name = "no-pie-cflags.patch"; url = "https://github.com/gcc-mirror/gcc/commit/77144dd3b6736e0166156bb509590d924375a4f1.diff"; hash = "sha256-QlxlTkWAK1dB7JiU5wz2iOW24gj3bFaeBpwb90oWwns="; includes = [ "gcc/Makefile.in" "gcc/configure.ac" "libgcc/Makefile.in" "libgcc/configure.ac" ]; }) (fetchpatch { name = "libgcc.mvars-less-1.patch"; url = "https://inbox.sourceware.org/gcc-patches/20250716234028.1153560-2-John.Ericson@Obsidian.Systems/raw"; hash = "sha256-nfRC4f6m3kHDro4+6E4y1ZPs+prxBQmn0H2rzIjaMWM="; name = "no-target-system-root.patch"; url = "https://github.com/gcc-mirror/gcc/commit/9947930b7ae923010c5061fd8fa6b1ec4f22f161.diff"; hash = "sha256-BZmpHpJuuyDmQMwpQhSgCZO0Rg7kXt8rTiJAT+e0sUw="; }) (fetchpatch { name = "regular-libdir-includedir.patch"; Loading
pkgs/development/compilers/gcc/ng/common/libstdcxx/default.nix +3 −3 Original line number Diff line number Diff line Loading @@ -54,11 +54,11 @@ stdenv.mkDerivation (finalAttrs: { patches = [ (fetchpatch { name = "custom-threading-model.patch"; url = "https://inbox.sourceware.org/gcc-patches/20250716204545.1063669-1-git@JohnEricson.me/raw"; hash = "sha256-jPP0+MoPLtCwWcW6doO6KHCppwAYK40qNVyriLXcGOg="; url = "https://github.com/gcc-mirror/gcc/commit/e5d853bbe9b05d6a00d98ad236f01937303e40c4.diff"; hash = "sha256-f0XAim3uzHnUx5lm/xO00IqBHu4YUEHF2WY+c0yCF6Y="; includes = [ "config/*" "libstdc++-v3/*" "libstdc++-v3/acinclude.m4" ]; }) (getVersionFile "libstdcxx/force-regular-dirs.patch") Loading