libressl: new package
PATCH v2 1/1 libressl: new package
---
v1 -> v2:
- Add INSTALL_STAGING
--- package/Config.in | 1 + package/libressl/Config.in | 11 ++++++ ...essl-0001-Fix-unavailable-file-for-uClibc.patch | 40 ++++++++++++++++++++++ package/libressl/libressl.mk | 13 +++++++ 4 files changed, 65 insertions(+) create mode 100644 package/libressl/Config.in create mode 100644 package/libressl/libressl-0001-Fix-unavailable-file-for-uClibc.patch create mode 100644 package/libressl/libressl.mk
package/Config.in +1 -0
@@ -588,6 +588,7 @@ menu "Crypto" source "package/libsecret/Config.in" source "package/libsha1/Config.in" source "package/libssh2/Config.in" + source "package/libressl/Config.in" source "package/nettle/Config.in" source "package/openssl/Config.in" source "package/polarssl/Config.in"
package/libressl/Config.in new file +11 -0
@@ -0,0 +1,11 @@ +config BR2_PACKAGE_LIBRESSL + bool "libressl" + depends on BR2_LARGEFILE + depends on BR2_TOOLCHAIN_HAS_THREADS + help + LibreSSL is a FREE version of the SSL/TLS protocol forked from OpenSSL + + http://www.libressl.org/ + +comment "libressl needs a toolchain w/ largefile, threads" + depends on !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS
package/libressl/libressl-0001-Fix-unavailable-file-for-uClibc.patch new file +40 -0
@@ -0,0 +1,40 @@ +From aec56aae7650399ae8103c1cff8050c5ea606425 Mon Sep 17 00:00:00 2001 +From: Maxime Hadjinlian <[email protected]> +Date: Tue, 19 Aug 2014 21:58:15 +0200 +Subject: [PATCH] Fix unavailable file for uClibc + +This file is not available for uClibc has it does not implement getauxval(). +As specified in this discution: +https://github.com/libressl-portable/portable/pull/1 + +This will never be fixed in libressl, patch have been sent for other +libc which should work. + +Signed-off-by: Maxime Hadjinlian <[email protected]> +--- + crypto/compat/issetugid_linux.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/crypto/compat/issetugid_linux.c b/crypto/compat/issetugid_linux.c +index 669edce..19b2b57 100644 +--- a/crypto/compat/issetugid_linux.c ++++ b/crypto/compat/issetugid_linux.c +@@ -4,7 +4,6 @@ + */ + + #include <errno.h> +-#include <gnu/libc-version.h> + #include <string.h> + #include <sys/types.h> + #include <unistd.h> +@@ -14,6 +13,7 @@ + * launched setuid/setgid or with additional capabilities. + */ + #ifdef HAVE_GETAUXVAL ++#include <gnu/libc-version.h> + #include <sys/auxv.h> + #endif + +-- +2.0.1 +
package/libressl/libressl.mk new file +13 -0
@@ -0,0 +1,13 @@ +################################################################################ +# +# libressl +# +################################################################################ + +LIBRESSL_VERSION = 2.0.5 +LIBRESSL_SITE = http://ftp.openbsd.org/pub/OpenBSD/LibreSSL +LIBRESSL_LICENSE = Apache-1.0, BSD-4c, ISC License, Public Domain +LIBRESSL_INSTALL_STAGING = YES +LIBRESSL_LIBTOOL_PATCH = NO + +$(eval $(autotools-package))
Signature · 1 line
2.1.1
PATCH v2 1/1 libressl: new package
Dear Maxime Hadjinlian,
Quoted 4 lines · Maxime Hadjinlian
Signed-off-by Maxime Hadjinlian <[email protected]>---
v1 -> v2:
- AddINSTALL_STAGING
It is more complicated than this: libressl installs the same libraries as openssl. So they should conflict with each other, and possibly a virtual package should be introduced so that all packages can build against either libressl or openssl depending on which one is selected.
Since you have pushed again this patch since October 2014, I'll mark it as Changes Requested in patchwork.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH v2 1/1 libressl: new package
Hi Thomas,
Quoted 8 lines · Thomas Petazzoni
Dear Maxime Hadjinlian,
Quoted 4 lines · Maxime Hadjinlian
Signed-off-by Maxime Hadjinlian <[email protected]>---
v1 -> v2:
- AddINSTALL_STAGING
Quoted 7 lines
It is more complicated than this: libressl installs the same libraries as openssl. So they should conflict with each other, and possibly a virtual package should be introduced so that all packages can build against either libressl or openssl depending on which one is selected.
Since you have pushed again this patch since October 2014, I'll mark it as Changes Requested in patchwork.
Yup, I supposed I would have to do something like that, this first patch was only to feel the water about introducing libressl (which was not really old at that time).
Anyway, I'll remove the dust from my repository and start working on that again !
Quoted 6 lines
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com