[php-src] Issue #15946: ./configure error when building with NixOS

From: Date: Wed, 18 Sep 2024 12:47:06 +0000
Subject: [php-src] Issue #15946: ./configure error when building with NixOS
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-247825@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/15946 Author: iluuu1994 ### Description ./configure emits an error on NixOS when executing /usr/bin/file conftest.o: https://github.com/php/php-src/blob/b438e2b1ed9b0f5a185a0385eef4d829005356a2/build/libtool.m4#L623 /usr/bin/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. :slightly_smiling_face: ### PHP Version PHP 8.2+ ### Operating System NixOS

« previous php.bugs (#247825) next »