* [gentoo-commits] gentoo-x86 commit in app-arch/libarchive/files: libarchive-2.8.1+openssl.patch libarchive-2.7.0-fortified-sources.patch libarchive-2.6.0-nolibs.patch libarchive-2.6.1-headers.patch libarchive-2.7.0-pipe.patch
@ 2010-03-07 18:18 Diego Petteno (flameeyes)
0 siblings, 0 replies; only message in thread
From: Diego Petteno (flameeyes) @ 2010-03-07 18:18 UTC (permalink / raw
To: gentoo-commits
flameeyes 10/03/07 18:18:34
Added: libarchive-2.8.1+openssl.patch
Removed: libarchive-2.7.0-fortified-sources.patch
libarchive-2.6.0-nolibs.patch
libarchive-2.6.1-headers.patch
libarchive-2.7.0-pipe.patch
Log:
Version bump, add a patch to fix handling of OpenSSL checks.
(Portage version: 2.2_rc65/cvs/Linux x86_64)
Revision Changes Path
1.1 app-arch/libarchive/files/libarchive-2.8.1+openssl.patch
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/libarchive/files/libarchive-2.8.1+openssl.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/libarchive/files/libarchive-2.8.1+openssl.patch?rev=1.1&content-type=text/plain
Index: libarchive-2.8.1+openssl.patch
===================================================================
commit 18311d1be81d93350a406b641d501e3ced5a2662
Author: joerg.sonnenberger <joerg.sonnenberger@2e22974a-a639-11dd-bc7a-dd6b2ed99ab5>
Date: Sun Feb 21 14:23:09 2010 +0000
Improve detection of SHA2 functions in OpenSSL to deal with ancient
versions like in Mac OS X and FreeBSD 6.x. Fixes #65 and should fix #55.
git-svn-id: http://libarchive.googlecode.com/svn/trunk@1940 2e22974a-a639-11dd-bc7a-dd6b2ed99ab5
diff --git a/configure.ac b/configure.ac
index 45960ad..921ed87 100644
--- a/configure.ac
+++ b/configure.ac
@@ -281,30 +281,34 @@ if test "x$with_openssl" != "xno"; then
AC_CHECK_HEADERS([openssl/sha.h])
AC_SEARCH_LIBS([SHA1_Init], [crypto])
fi
- if test "$ac_cv_func_SHA256Init" != "yes" ||
- test "$ac_cv_func_SHA384Init" != "yes" ||
- test "$ac_cv_func_SHA512Init" != "yes"; then
- if test "$ac_cv_func_SHA256_Init" != "yes" ||
- test "$ac_cv_func_SHA384_Init" != "yes" ||
- test "$ac_cv_func_SHA512_Init" != "yes"; then
- AC_CHECK_HEADERS([openssl/sha.h])
- # TODO: Does AC_SEARCH_LIBS support more than one function at once?
- # This appears to always fail.
- AC_SEARCH_LIBS([SHA256_Init SHA384_Init SHA512_Init], [crypto])
-
- # TODO: Actually test for these. Previously our C code did not
- # test for these at all and just assumed availability. Now that
- # the C code tests these macros we preserve previous behavior
- # for the autotools build by hard-coding availability.
- if test "$ac_cv_header_openssl_sha_h" = "yes"; then
+
+ AC_CHECK_HEADERS([openssl/sha.h])
+ if test "$ac_cv_func_SHA256Init" != "yes" &&
+ test "$ac_cv_func_SHA256_Init" != "yes"; then
+ AC_SEARCH_LIBS([SHA256_Init], [crypto])
+ if test "$ac_cv_func_SHA256_Init" = "yes" &&
+ test "$ac_cv_header_openssl_sha_h" = "yes"; then
AC_DEFINE(HAVE_OPENSSL_SHA256_INIT, 1,
[Define to 1 if your openssl has the `SHA256_Init' function.])
+ fi
+ fi
+ if test "$ac_cv_func_SHA384Init" != "yes" &&
+ test "$ac_cv_func_SHA384_Init" != "yes"; then
+ AC_SEARCH_LIBS([SHA384_Init], [crypto])
+ if test "$ac_cv_func_SHA384_Init" = "yes" &&
+ test "$ac_cv_header_openssl_sha_h" = "yes"; then
AC_DEFINE(HAVE_OPENSSL_SHA384_INIT, 1,
[Define to 1 if your openssl has the `SHA384_Init' function.])
+ fi
+ fi
+ if test "$ac_cv_func_SHA512Init" != "yes" &&
+ test "$ac_cv_func_SHA512_Init" != "yes"; then
+ AC_SEARCH_LIBS([SHA512_Init], [crypto])
+ if test "$ac_cv_func_SHA512_Init" = "yes" &&
+ test "$ac_cv_header_openssl_sha_h" = "yes"; then
AC_DEFINE(HAVE_OPENSSL_SHA512_INIT, 1,
[Define to 1 if your openssl has the `SHA512_Init' function.])
fi
- fi
fi
fi
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-03-07 18:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-07 18:18 [gentoo-commits] gentoo-x86 commit in app-arch/libarchive/files: libarchive-2.8.1+openssl.patch libarchive-2.7.0-fortified-sources.patch libarchive-2.6.0-nolibs.patch libarchive-2.6.1-headers.patch libarchive-2.7.0-pipe.patch Diego Petteno (flameeyes)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox