git.iko.soy/typeable/nixpkgs
on master help sign in
gcc8,gcc9: fix ctypes on NetBSD

This patch was applied to gcc7 in aab8c7ba437 ("netbsd: add cross target"), but it hasn't been brought forward to newer compilers that have the same problem. GCC 6 and (probably) GCC 4.9 also have the issue, but the patch doesn't apply cleanly to them so I'm leaving them alone for now. GCC 10, our current default, appears to have finally fixed this.

commit407e4481148bb482fb2eb75ce058c981e99549b3 authorAlyssa Ross <hi@alyssa.is> dateThu 22 Apr 2021, 11:54 (6 years ago) parentf29292d
2 files changed+2
pkgs/development/compilers/gcc/8/default.nix+1 pkgs/development/compilers/gcc/9/default.nix+1
pkgs/development/compilers/gcc/8/default.nix+1
@@ -55,6 +55,7 @@ let majorVersion = "8";
5555
5656 patches =
5757 optional (targetPlatform != hostPlatform) ../libstdc++-target.patch
58+ ++ optional targetPlatform.isNetBSD ../libstdc++-netbsd-ctypes.patch
5859 ++ optional noSysDirs ../no-sys-dirs.patch
5960 /* ++ optional (hostPlatform != buildPlatform) (fetchpatch { # XXX: Refine when this should be applied
6061 url = "https://git.busybox.net/buildroot/plain/package/gcc/${version}/0900-remove-selftests.patch?id=11271540bfe6adafbc133caf6b5b902a816f5f02";
pkgs/development/compilers/gcc/9/default.nix+1
@@ -70,6 +70,7 @@ let majorVersion = "9";
7070 # This patch can most likely be removed by a post 9.3.0-release.
7171 [ ./avoid-cycling-subreg-reloads.patch ]
7272 ++ optional (targetPlatform != hostPlatform) ../libstdc++-target.patch
73+ ++ optional targetPlatform.isNetBSD ../libstdc++-netbsd-ctypes.patch
7374 ++ optional noSysDirs ../no-sys-dirs.patch
7475 /* ++ optional (hostPlatform != buildPlatform) (fetchpatch { # XXX: Refine when this should be applied
7576 url = "https://git.busybox.net/buildroot/plain/package/gcc/${version}/0900-remove-selftests.patch?id=11271540bfe6adafbc133caf6b5b902a816f5f02";