hdf4: fix build on aarch64-linux (#47209)

Pull in the Debian patches for AArch64 support, and a bonus patch for
reproducible builds while we're at it.
This commit is contained in:
Andrew Dunham 2018-09-23 14:56:58 -07:00 committed by xeji
parent ccd2862130
commit 104014c6ba

View file

@ -1,4 +1,5 @@
{ stdenv
, fetchpatch
, fetchurl
, cmake
, libjpeg
@ -14,6 +15,22 @@ stdenv.mkDerivation rec {
sha256 = "0n29klrrbwan9307np0d9hr128dlpc4nnlf57a140080ll3jmp8l";
};
patches = let
# The Debian patch revision to fetch from; this may differ from our package
# version, but older patches should still apply.
patchRev = "4.2.13-4";
getPatch = name: sha256: fetchpatch {
inherit sha256;
url = "https://salsa.debian.org/debian-gis-team/hdf4/raw/debian/${patchRev}/debian/patches/${name}";
};
in [
(getPatch "64bit" "1xqk9zpch4m6ipa0f3x2cm8rwaz4p0ppp1vqglvz18j6q91p8b5y")
(getPatch "hdfi.h" "01fr9csylnvk9jd9jn9y23bvxy192s07p32pr76mm3gwhgs9h7r4")
(getPatch "hdf-4.2.10-aarch64.patch" "1hl0xw5pd9xhpq49xpwgg7c4z6vv5p19x6qayixw0myvgwj1r4zn")
(getPatch "reproducible-builds.patch" "02j639w26xkxpxx3pdhbi18ywz8w3qmjpqjb83n47gq29y4g13hc")
];
buildInputs = [
cmake
libjpeg