mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-10 08:39:08 +03:00
brickd: fix build w/ glibc-2.38
Since glibc-2.38[1], `strcasestr(3)` is available by default, not just when using _GNU_SOURCE. This means that the check whether this function is available in `brickd`'s build is bogus now since it bases this decision on __APPLE__ and _GNU_SOURCE rather than __GLIBC__. Failing Hydra build: https://hydra.nixos.org/build/230504252 [1] upstream commit 30e3ca78f92be44f46851557f54b47e789bd3416
This commit is contained in:
parent
774a808ec9
commit
b6a5be4584
@ -30,10 +30,11 @@ stdenv.mkDerivation {
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
export
|
||||
# build the brickd binary
|
||||
mkdir src/daemonlib
|
||||
cp -r ${daemonlib}/* src/daemonlib
|
||||
substituteInPlace src/daemonlib/utils.{c,h} \
|
||||
--replace "_GNU_SOURCE" "__GLIBC__"
|
||||
cd src/brickd
|
||||
make
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user