From 4268d19692534743dd332d2bcb1b02d9550ed189 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 5 May 2014 12:46:15 +0200 Subject: [PATCH] libgpg-error: grrr fixed cross build. --- srcpkgs/libgpg-error/files/lock-obj-pub.arm.h | 25 +++++++++++++++++++ srcpkgs/libgpg-error/template | 6 +++++ 2 files changed, 31 insertions(+) create mode 100644 srcpkgs/libgpg-error/files/lock-obj-pub.arm.h diff --git a/srcpkgs/libgpg-error/files/lock-obj-pub.arm.h b/srcpkgs/libgpg-error/files/lock-obj-pub.arm.h new file mode 100644 index 0000000000..7dcb0ad13b --- /dev/null +++ b/srcpkgs/libgpg-error/files/lock-obj-pub.arm.h @@ -0,0 +1,25 @@ +## lock-obj-pub.x86_64-unknown-linux-gnu.h +## File created by gen-posix-lock-obj - DO NOT EDIT +## To be included by mkheader into gpg-error.h + +typedef struct +{ + long _vers; + union { + volatile char _priv[24]; + long _x_align; + long *_xp_align; + } u; +} gpgrt_lock_t; + +#define GPGRT_LOCK_INITIALIZER {1,{{0,0,0,0,0,0,0,0, \ + 0,0,0,0,0,0,0,0, \ + 0,0,0,0,0,0,0,0, \ + 0,0,0,0,0,0,0,0, \ + 0,0,0,0,0,0,0,0}}} +## +## Local Variables: +## mode: c +## buffer-read-only: t +## End: +## diff --git a/srcpkgs/libgpg-error/template b/srcpkgs/libgpg-error/template index 68c00f3a6b..42a1203fd0 100644 --- a/srcpkgs/libgpg-error/template +++ b/srcpkgs/libgpg-error/template @@ -10,6 +10,12 @@ license="LGPL-2.1" distfiles="ftp://ftp.gnupg.org/gcrypt/libgpg-error/$pkgname-$version.tar.bz2" checksum=f8aba9038d8a46cefe6a6c4a7e4527144c029eb4e3ca1ed27011b962102c9b0a +post_configure() { + if [ "$CROSS_BUILD" ]; then + cp ${FILESDIR}/lock-obj-pub.arm.h \ + src/syscfg/lock-obj-pub.${XBPS_CROSS_TRIPLET#*-}.h + fi +} post_install() { rm -rf ${DESTDIR}/usr/share/common-lisp }