nixpkgs/pkgs/os-specific/bsd/netbsd
Alyssa Ross 7be5fbf70f
pkgsStatic.netbsd: fix nbtool_config.h conflicts
In pkgsStatic, /all/ build inputs are propagated.  This means that
netbsd.compat was propagated, along with its setup hook, which broke
static glib builds because glib defines a function with the same name
as one in nbtool_config.h, and nbtool_config.h was being automatically
included in every C file processed by the compiler, in any transitive
dependent of netbsd.compat's setup hook.

To fix this, rather than forcing nbtool_config.h to be included for
_every_ C file in a derivation that depends on netbsd.compat, modify
the NetBSD-specific mkDerivation to detect files that need the header,
and patch it in there where appropriate.  That way, only files that
are part of NetBSD will be affected, not all transitive dependents.
2022-01-06 14:20:18 +00:00
..
compat-cxx-safe-header.patch netbsd.compat: Don't configure twice 2021-09-03 03:09:05 +00:00
compat-dont-configure-twice.patch netbsd.compat: Don't configure twice 2021-09-03 03:09:05 +00:00
compat-no-force-native.patch netbsd: Make hard/soft float match systems settings 2021-09-03 14:20:12 +00:00
compat-setup-hook.sh pkgsStatic.netbsd: fix nbtool_config.h conflicts 2022-01-06 14:20:18 +00:00
default.nix pkgsStatic.netbsd: fix nbtool_config.h conflicts 2022-01-06 14:20:18 +00:00
fts-setup-hook.sh *-wrapper; Switch from infixSalt to suffixSalt 2020-05-12 00:44:44 -04:00
getent.patch
install-setup-hook.sh netbsd.compat: Fix cross compilation 2021-09-03 14:19:49 +00:00
libbsd-overlay.pc netbsd: allow replacing nbcompat with libbsd 2018-05-31 12:36:44 -04:00
locale.patch netbsd.locale: init 2018-06-11 14:47:47 -04:00
no-dynamic-linker.patch netbsd: 8.0 -> 9.1 2021-05-09 18:56:20 +00:00
setup-hook.sh netbsd.compat: Fix cross compilation 2021-09-03 14:19:49 +00:00
sys-headers-incsdir.patch netbsd.compat: Fix cross compilation 2021-09-03 14:19:49 +00:00