From 128822b81465c96cdf3213a37b939769bdbb6cae Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Sun, 16 Mar 2008 01:06:29 +0200 Subject: [PATCH] libgcrypt: Marked libgcrypt as cross-compileable Note: While cross-compiling we had to disable the built-in tests via a patch, as well as providing some little guidance to use the right libgpg-error. --- security/libgcrypt/disable-tests.patch.cross | 29 ++++++++++++++++++++ security/libgcrypt/libgcrypt.conf | 18 ++++++++++++ security/libgcrypt/libgcrypt.desc | 2 +- 3 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 security/libgcrypt/disable-tests.patch.cross create mode 100644 security/libgcrypt/libgcrypt.conf diff --git a/security/libgcrypt/disable-tests.patch.cross b/security/libgcrypt/disable-tests.patch.cross new file mode 100644 index 000000000..ec4164a34 --- /dev/null +++ b/security/libgcrypt/disable-tests.patch.cross @@ -0,0 +1,29 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../libgcrypt/disable-tests.patch.cross +# Copyright (C) 2008 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This patch file is dual-licensed. It is available under the license the +# patched project is licensed under, as long as it is an OpenSource license +# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms +# of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. +# --- SDE-COPYRIGHT-NOTE-END --- + +--- libgcrypt-1.4.0/Makefile.in.orig 2007-12-10 11:05:13.000000000 +0200 ++++ libgcrypt-1.4.0/Makefile.in 2008-03-15 19:27:24.000000000 +0200 +@@ -236,8 +236,8 @@ + DISTCHECK_CONFIGURE_FLAGS = --enable-random-daemon \ + --enable-ciphers=arcfour:blowfish:cast5:des:aes:twofish:serpent:rfc2268:seed:camellia + +-DIST_SUBDIRS = m4 mpi cipher src doc tests +-SUBDIRS = mpi cipher src doc tests ++DIST_SUBDIRS = m4 mpi cipher src doc ++SUBDIRS = mpi cipher src doc + EXTRA_DIST = BUGS autogen.sh README.SVN + DISTCLEANFILES = + all: config.h diff --git a/security/libgcrypt/libgcrypt.conf b/security/libgcrypt/libgcrypt.conf new file mode 100644 index 000000000..588d6d71c --- /dev/null +++ b/security/libgcrypt/libgcrypt.conf @@ -0,0 +1,18 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../libgcrypt/libgcrypt.conf +# Copyright (C) 2008 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 2 of the License. A copy of the +# GNU General Public License can be found in the file COPYING. +# --- SDE-COPYRIGHT-NOTE-END --- + +# libgcrypt depends on libgpg-error and we have to assure that we use the +# one from the sandbox while cross-compiling +pkgprefix -t libgpg-error +var_append confopt ' ' "--with-gpg-error-prefix=$root/$( pkgprefix libgpg-error )" diff --git a/security/libgcrypt/libgcrypt.desc b/security/libgcrypt/libgcrypt.desc index c2cbd4a21..f23f0368d 100644 --- a/security/libgcrypt/libgcrypt.desc +++ b/security/libgcrypt/libgcrypt.desc @@ -30,6 +30,6 @@ [L] GPL [S] Stable [V] 1.4.6 -[P] X -----5---9 109.100 +[P] X -?---5---9 109.100 [D] 1661541147 libgcrypt-1.4.6.tar.bz2 ftp://ftp.gnupg.org/gcrypt/libgcrypt/