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:
Maximilian Bosch 2023-08-19 14:28:10 +02:00
parent 774a808ec9
commit b6a5be4584
No known key found for this signature in database
GPG Key ID: 9A6EEA275CA5BE0A

View File

@ -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