Description
./configure emits an error on NixOS when executing /usr/bin/file conftest.o:
|
case `/usr/bin/file conftest.o` in |
./configure: line 84230: /usr/bin/file: No such file or directory
The build succeeds regardless, so it's not a huge issue.
file does not live in /usr/bin on NixOS, as the binaries depend on the environment. Instead, they can be looked up with /usr/bin/env. /usr/bin/env file conftest.o works as expected, but it seems that passing further arguments to env is not portable. Maybe we can just depend on file being provided in the current $PATH?
@petk I already pinged on on Slack about this, but you might not be very active there. 🙂
PHP Version
PHP 8.2+
Operating System
NixOS
Description
./configureemits an error onNixOSwhen executing/usr/bin/file conftest.o:php-src/build/libtool.m4
Line 623 in b438e2b
The build succeeds regardless, so it's not a huge issue.
filedoes not live in/usr/binon NixOS, as the binaries depend on the environment. Instead, they can be looked up with/usr/bin/env./usr/bin/env file conftest.oworks as expected, but it seems that passing further arguments toenvis not portable. Maybe we can just depend onfilebeing provided in the current$PATH?@petk I already pinged on on Slack about this, but you might not be very active there. 🙂
PHP Version
PHP 8.2+
Operating System
NixOS