From 8645b10c8e68e29f8c19cd725f22ded25406bf8d Mon Sep 17 00:00:00 2001 From: Matt Housh Date: Wed, 7 Aug 2013 07:45:36 -0500 Subject: [PATCH] libgmp: fix for multilib header installation --- libgmp/.footprint | 1 + libgmp/.md5sum | 1 + libgmp/Pkgfile | 7 +++++-- libgmp/gmp.h | 16 ++++++++++++++++ 4 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 libgmp/gmp.h diff --git a/libgmp/.footprint b/libgmp/.footprint index 74ea801a..c59633b1 100644 --- a/libgmp/.footprint +++ b/libgmp/.footprint @@ -1,5 +1,6 @@ drwxr-xr-x root/root usr/ drwxr-xr-x root/root usr/include/ +-rw-r--r-- root/root usr/include/gmp-64.h -rw-r--r-- root/root usr/include/gmp.h -rw-r--r-- root/root usr/include/gmpxx.h drwxr-xr-x root/root usr/lib/ diff --git a/libgmp/.md5sum b/libgmp/.md5sum index f023fc3d..2c49966f 100644 --- a/libgmp/.md5sum +++ b/libgmp/.md5sum @@ -1 +1,2 @@ 06fe2ca164221c59ce74867155cfc1ac gmp-5.1.2.tar.xz +bbf6d30f092c6d302f028679f1f9bfc3 gmp.h diff --git a/libgmp/Pkgfile b/libgmp/Pkgfile index 913baebd..7dc42a56 100644 --- a/libgmp/Pkgfile +++ b/libgmp/Pkgfile @@ -4,8 +4,9 @@ name=libgmp version=5.1.2 -release=1 -source=(ftp://ftp.gmplib.org/pub/gmp-$version/gmp-$version.tar.xz) +release=2 +source=(ftp://ftp.gmplib.org/pub/gmp-$version/gmp-$version.tar.xz \ + gmp.h) build() { cd gmp-$version @@ -14,5 +15,7 @@ build() { --build=x86_64-unknown-linux-gnu make make DESTDIR=$PKG install + mv $PKG/usr/include/gmp{,-64}.h + cp $SRC/gmp.h $PKG/usr/include/ rm -r $PKG/usr/share } diff --git a/libgmp/gmp.h b/libgmp/gmp.h new file mode 100644 index 00000000..da84168b --- /dev/null +++ b/libgmp/gmp.h @@ -0,0 +1,16 @@ +/* gmp.h stub */ + +#ifndef __STUB__GMP_H__ +#define __STUB__GMP_H__ + +#if defined(__x86_64__) || \ + defined(__sparc64__) || \ + defined(__arch64__) || \ + defined(__powerpc64__) || \ + defined(__s390x__) +#include "gmp-64.h" +#else +#include "gmp-32.h" +#endif + +#endif \ No newline at end of file