fix jfsutils cross compilation

This commit is contained in:
eburimu 2018-11-28 00:16:59 +03:00 committed by Jörg Thalheim
parent 5df783f106
commit 98a2a5b537
No known key found for this signature in database
GPG Key ID: CA4106B8D7CC79FA
2 changed files with 18 additions and 2 deletions

View File

@ -0,0 +1,10 @@
--- jfsutils-1.1.15/configure.in.orig 2018-11-27 20:46:55.830242385 +0300
+++ jfsutils-1.1.15/configure.in 2018-11-27 20:47:00.596307630 +0300
@@ -15,6 +15,7 @@
AC_PATH_PROG(LN, ln, ln)
AC_PROG_LN_S
AC_PROG_RANLIB
+AM_PROG_AR
dnl Checks for header files.
AC_HEADER_STDC

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, libuuid }:
{ stdenv, fetchurl, libuuid, autoreconfHook }:
stdenv.mkDerivation rec {
name = "jfsutils-1.1.15";
@ -8,8 +8,14 @@ stdenv.mkDerivation rec {
sha256 = "0kbsy2sk1jv4m82rxyl25gwrlkzvl3hzdga9gshkxkhm83v1aji4";
};
patches = [ ./types.patch ./hardening-format.patch ];
patches = [
./types.patch
./hardening-format.patch
# required for cross-compilation
./ar-fix.patch
];
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ libuuid ];
meta = with stdenv.lib; {