mc: add autoreconfHook instead of /usr/bin/file patch

The error is still there but harmless.
It should be rather fixed in autoconf than in every package that
uses autotools.
This commit is contained in:
Jörg Thalheim 2020-03-14 07:28:34 +00:00
parent 784740aee0
commit 841b89cac8
No known key found for this signature in database
GPG Key ID: 003F2096411B5F92

View File

@ -15,6 +15,7 @@
, libssh2
, openssl
, coreutils
, autoreconfHook
}:
stdenv.mkDerivation rec {
@ -26,17 +27,7 @@ stdenv.mkDerivation rec {
sha256 = "0ikd2yql44p7nagmb08dmjqdwadclnvgr7ri9pmzc2s5f301r7w5";
};
preConfigure = ''
for f in \
./configure \
./config/ltmain.sh \
./m4/libtool.m4 \
; do
substituteInPlace $f --replace /usr/bin/file ${file}/bin/file
done
'';
nativeBuildInputs = [ pkgconfig ];
nativeBuildInputs = [ pkgconfig autoreconfHook ];
buildInputs = [
file