Disable sys/random.h for Node.js
My last-minute update to Node.js 22.11.0 made Linux builds fail:
../deps/cares/src/lib/util/ares_rand.c:37:12: fatal error: sys/random.h: No such file or directory
37 | # include <sys/random.h>
| ^~~~~~~~~~~~~~
compilation terminated.
So, I checked taskcluster/scripts/misc/build-nodejs.sh
, and found that Mozilla has a workaround for that:
# The glibc in our sysroot doesn't have `sys/random.h`/`getrandom`.
sed -i '/HAVE_SYS_RANDOM_H/d;/HAVE_GETRANDOM/d' deps/cares/config/linux/ares_config.h