Package: hdf5 Version: 1.8.7-1 Severity: important Tags: patch User: debian-h...@lists.debian.org Usertags: hurd
Hi, currently, hdf5 cannot be compiled on hurd-i386. There are three kind of issues, solved by the attached patches: - debian_no-lam.diff: remove the unneeded build dependency on lam-dev (unavailable on Hurd) - debian_openmpi-on-hurd.diff: add hurd-i386 as architecture for openmpi (we have it) - path_max.diff: a semi-hackish patch to avoid the issue of PATH_MAX not being available on Hurd; not really clean and suitable for upstream though, but can do the job for making hdf5 compile and available in Debian It would be nice if you could review and include them in sight of your coming-soon MPI transition. Thanks, -- Pino
--- a/debian/control.in +++ b/debian/control.in @@ -4,7 +4,7 @@ Maintainer: Debian GIS Project <pkg-grass-de...@lists.alioth.debian.org> Uploaders: Francesco Paolo Lovergine <fran...@debian.org>, Sylvestre Ledru <sylves...@debian.org> -Build-Depends: libmpich2-dev, zlib1g-dev, lam4-dev (>= 7.1.1-3.2), +Build-Depends: libmpich2-dev, zlib1g-dev, libopenmpi-dev [!arm !armel !hppa !mips !mipsel !s390 !sh4 !m68k], libjpeg-dev, debhelper (>> 7), sed (>=4.1.5), gfortran, libibverbs-dev [!arm !armel !hppa !mips !mipsel !s390 !kfreebsd-i386 !kfreebsd-amd64 !hurd-i386 !sh4], sharutils, mpi-default-dev
--- a/debian/rules +++ b/debian/rules @@ -27,7 +27,7 @@ #ARCH_FLAG=-a #ARCHS=any ARCH_FLAG=-s -ARCHS=alpha amd64 i386 ia64 powerpc sparc kfreebsd-i386 kfreebsd-amd64 +ARCHS=alpha amd64 i386 ia64 powerpc sparc kfreebsd-i386 kfreebsd-amd64 hurd-i386 ifeq ($(DEB_BUILD_ARCH),arm) build_openmpi = no
--- a/src/H5F.c +++ b/src/H5F.c @@ -80,6 +80,10 @@ /* Declare a free list to manage the H5F_file_t struct */ H5FL_DEFINE(H5F_file_t); +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif /* !PATH_MAX */ + /*------------------------------------------------------------------------- * Function: H5F_init --- a/testpar/t_cache.c +++ b/testpar/t_cache.c @@ -35,6 +35,10 @@ #include "H5Fpkg.h" +#ifndef PATH_MAX +#define PATH_MAX 512 +#endif /* !PATH_MAX */ + int nerrors = 0; int failures = 0;