diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-04-28 20:02:04 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-04-28 20:02:04 +0100 |
commit | a4e2a46beb5e4858ef27bdedbb0ff6d2ced430ad (patch) | |
tree | 852c90a4bf354c30ea66504f70bfab5401fba18d /sci-libs/hdf/files | |
parent | 5e8702bcbbed438e6c6cce023e7ef0cc9baa3e02 (diff) |
gentoo resync : 28.04.2018
Diffstat (limited to 'sci-libs/hdf/files')
-rw-r--r-- | sci-libs/hdf/files/hdf-4.2.13-fix-xdr-configure.patch | 13 | ||||
-rw-r--r-- | sci-libs/hdf/files/hdf-4.2.13-linux-tirpc.patch | 29 |
2 files changed, 42 insertions, 0 deletions
diff --git a/sci-libs/hdf/files/hdf-4.2.13-fix-xdr-configure.patch b/sci-libs/hdf/files/hdf-4.2.13-fix-xdr-configure.patch new file mode 100644 index 000000000000..a4514ab267ec --- /dev/null +++ b/sci-libs/hdf/files/hdf-4.2.13-fix-xdr-configure.patch @@ -0,0 +1,13 @@ +Index: hdf-4.2.13/configure.ac +=================================================================== +--- hdf-4.2.13.orig/configure.ac ++++ hdf-4.2.13/configure.ac +@@ -676,7 +676,7 @@ case "$host" in + *) ;; + esac + +-if test "X$BUILD_XDR" != "Xyes"; then ++if test "X$BUILD_XDR" = "Xyes"; then + AC_TRY_LINK([ + #include <rpc/types.h> + #include <rpc/xdr.h>], [xdr_int], diff --git a/sci-libs/hdf/files/hdf-4.2.13-linux-tirpc.patch b/sci-libs/hdf/files/hdf-4.2.13-linux-tirpc.patch new file mode 100644 index 000000000000..963388f66982 --- /dev/null +++ b/sci-libs/hdf/files/hdf-4.2.13-linux-tirpc.patch @@ -0,0 +1,29 @@ +Index: hdf-4.2.13/configure.ac +=================================================================== +--- hdf-4.2.13.orig/configure.ac ++++ hdf-4.2.13/configure.ac +@@ -673,6 +673,9 @@ case "$host" in + *-pc-cygwin*) + LIBS="$LIBS -ltirpc" + CPPFLAGS="$CPPFLAGS -I/usr/include/tirpc" ;; ++ *-pc-linux*) ++ LIBS="$LIBS -ltirpc" ++ CPPFLAGS="$CPPFLAGS -I/usr/include/tirpc" ;; + *) ;; + esac + +@@ -703,6 +706,14 @@ if test "X$BUILD_XDR" != "Xyes"; then + HAVE_RPC="yes" + AC_CHECK_HEADER([rpc.h],[:], [unset HAVE_RPC]) + AC_CHECK_LIB([tirpc], [xdr_opaque],[:], [unset HAVE_RPC]) ++ if test -z "$HAVE_RPC"; then ++ AC_MSG_ERROR([couldn't find tirpc library]) ++ fi ++ ;; ++ *-pc-linux*) ++ HAVE_RPC="yes" ++ AC_CHECK_HEADER([rpc/rpc.h],[:], [unset HAVE_RPC]) ++ AC_CHECK_LIB([tirpc], [xdr_opaque],[:], [unset HAVE_RPC]) + if test -z "$HAVE_RPC"; then + AC_MSG_ERROR([couldn't find tirpc library]) + fi |