diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-07-10 06:08:30 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-07-10 06:08:30 +0000 |
commit | 731688f3c6778fa6601f7d0ee34201b3096e3e94 (patch) | |
tree | d721a66c1cc8ffd44de1471309da013bac01ea43 | |
parent | add upstream link (diff) | |
download | gentoo-2-731688f3c6778fa6601f7d0ee34201b3096e3e94.tar.gz gentoo-2-731688f3c6778fa6601f7d0ee34201b3096e3e94.tar.bz2 gentoo-2-731688f3c6778fa6601f7d0ee34201b3096e3e94.zip |
Use _DEFAULT_SOURCE with newer glibc versions #554338 by Agostino Sarubbo.
(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key D2E96200)
-rw-r--r-- | dev-libs/openssl/ChangeLog | 7 | ||||
-rw-r--r-- | dev-libs/openssl/files/openssl-1.0.1p-default-source.patch | 29 | ||||
-rw-r--r-- | dev-libs/openssl/openssl-1.0.1p.ebuild | 3 | ||||
-rw-r--r-- | dev-libs/openssl/openssl-1.0.2d.ebuild | 3 |
4 files changed, 39 insertions, 3 deletions
diff --git a/dev-libs/openssl/ChangeLog b/dev-libs/openssl/ChangeLog index 4629dde169b7..403343f965ac 100644 --- a/dev-libs/openssl/ChangeLog +++ b/dev-libs/openssl/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-libs/openssl # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/ChangeLog,v 1.672 2015/07/09 18:12:37 zlogene Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/ChangeLog,v 1.673 2015/07/10 06:08:30 vapier Exp $ + + 10 Jul 2015; Mike Frysinger <vapier@gentoo.org> + +files/openssl-1.0.1p-default-source.patch, openssl-1.0.1p.ebuild, + openssl-1.0.2d.ebuild: + Use _DEFAULT_SOURCE with newer glibc versions #554338 by Agostino Sarubbo. 09 Jul 2015; Mikle Kolyada <zlogene@gentoo.org> openssl-1.0.1p.ebuild: arm stable wrt bug #554172 diff --git a/dev-libs/openssl/files/openssl-1.0.1p-default-source.patch b/dev-libs/openssl/files/openssl-1.0.1p-default-source.patch new file mode 100644 index 000000000000..7d5bbbe157c3 --- /dev/null +++ b/dev-libs/openssl/files/openssl-1.0.1p-default-source.patch @@ -0,0 +1,29 @@ +https://bugs.gentoo.org/554338 + +From 7c2e97f8bbae517496fdc11f475b4ae54b2534f5 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@gentoo.org> +Date: Fri, 10 Jul 2015 01:50:52 -0400 +Subject: [PATCH] test: use _DEFAULT_SOURCE with newer glibc versions + +The _BSD_SOURCE macro is replaced by the _DEFAULT_SOURCE macro. Using +just the former with newer versions leads to a build time warning, so +make sure to use the new macro too. +--- + ssl/ssltest.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/ssl/ssltest.c b/ssl/ssltest.c +index 26cf96c..b36f667 100644 +--- a/ssl/ssltest.c ++++ b/ssl/ssltest.c +@@ -141,6 +141,7 @@ + */ + + /* Or gethostname won't be declared properly on Linux and GNU platforms. */ ++#define _DEFAULT_SOURCE 1 + #define _BSD_SOURCE 1 + + #include <assert.h> +-- +2.4.4 + diff --git a/dev-libs/openssl/openssl-1.0.1p.ebuild b/dev-libs/openssl/openssl-1.0.1p.ebuild index 0694d6852617..e1d7bd4249e6 100644 --- a/dev-libs/openssl/openssl-1.0.1p.ebuild +++ b/dev-libs/openssl/openssl-1.0.1p.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/openssl-1.0.1p.ebuild,v 1.4 2015/07/09 18:12:37 zlogene Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/openssl-1.0.1p.ebuild,v 1.5 2015/07/10 06:08:30 vapier Exp $ EAPI="4" @@ -63,6 +63,7 @@ src_prepare() { epatch "${FILESDIR}"/${PN}-1.0.1m-x32.patch epatch "${FILESDIR}"/${PN}-1.0.1m-ipv6.patch epatch "${FILESDIR}"/${PN}-1.0.1f-revert-alpha-perl-generation.patch #499086 + epatch "${FILESDIR}"/${PN}-1.0.1p-default-source.patch #554338 epatch_user #332661 fi diff --git a/dev-libs/openssl/openssl-1.0.2d.ebuild b/dev-libs/openssl/openssl-1.0.2d.ebuild index e06344486ee0..3b0c7d47b668 100644 --- a/dev-libs/openssl/openssl-1.0.2d.ebuild +++ b/dev-libs/openssl/openssl-1.0.2d.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/openssl-1.0.2d.ebuild,v 1.1 2015/07/09 14:08:16 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/openssl-1.0.2d.ebuild,v 1.2 2015/07/10 06:08:30 vapier Exp $ EAPI="4" @@ -65,6 +65,7 @@ src_prepare() { epatch "${FILESDIR}"/${PN}-1.0.2a-parallel-symlinking.patch #545028 epatch "${FILESDIR}"/${PN}-1.0.2-ipv6.patch epatch "${FILESDIR}"/${PN}-1.0.2a-x32-asm.patch #542618 + epatch "${FILESDIR}"/${PN}-1.0.1p-default-source.patch #554338 epatch_user #332661 fi |