commit: 5384e86a42d6e3f3f6eeff7e44a9f76aa3ce02b7 Author: Stefan Strogin <steils <AT> gentoo <DOT> org> AuthorDate: Fri May 24 08:27:42 2019 +0000 Commit: Stefan Strogin <steils <AT> gentoo <DOT> org> CommitDate: Fri May 24 08:36:26 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5384e86a
dev-libs/libressl: fix compilation on non-glibc systems Reported-by: Philipp Ammann <philipp.ammann <AT> posteo.de> Closes: https://github.com/gentoo/gentoo/pull/12078 Package-Manager: Portage-2.3.66, Repoman-2.3.12 Signed-off-by: Stefan Strogin <steils <AT> gentoo.org> .../libressl/files/libressl-2.9.2-non-glibc.patch | 32 ++++++++++++++++++++++ dev-libs/libressl/libressl-2.9.2.ebuild | 1 + 2 files changed, 33 insertions(+) diff --git a/dev-libs/libressl/files/libressl-2.9.2-non-glibc.patch b/dev-libs/libressl/files/libressl-2.9.2-non-glibc.patch new file mode 100644 index 00000000000..b00316d8814 --- /dev/null +++ b/dev-libs/libressl/files/libressl-2.9.2-non-glibc.patch @@ -0,0 +1,32 @@ +From a9f0b2143c3154da34b8798127263f6f11f61bd5 Mon Sep 17 00:00:00 2001 +From: Ishimoto Shinobu <[email protected]> +Date: Tue, 21 May 2019 22:41:05 +0900 +Subject: [PATCH] avoid glibc + +cause problems on musl systems + +Upstream-Status: Backport +[https://github.com/libressl-portable/portable/pull/529] +Signed-off-by: Stefan Strogin <[email protected]> +--- + crypto/compat/getprogname_linux.c | 4 +--- + 1 file changed, 1 insertion(+), 3 deletions(-) + +diff --git a/crypto/compat/getprogname_linux.c b/crypto/compat/getprogname_linux.c +index 2c89743..4e7e31f 100644 +--- a/crypto/compat/getprogname_linux.c ++++ b/crypto/compat/getprogname_linux.c +@@ -26,9 +26,7 @@ getprogname(void) + #if defined(__ANDROID_API__) && __ANDROID_API__ < 21 + extern const char *__progname; + return __progname; +-#elif defined(__GLIBC__) +- return program_invocation_short_name; + #else +-#error "Cannot emulate getprogname" ++ return program_invocation_short_name; + #endif + } +-- +2.21.0 + diff --git a/dev-libs/libressl/libressl-2.9.2.ebuild b/dev-libs/libressl/libressl-2.9.2.ebuild index b9ba51552c3..41f5f416b1b 100644 --- a/dev-libs/libressl/libressl-2.9.2.ebuild +++ b/dev-libs/libressl/libressl-2.9.2.ebuild @@ -41,6 +41,7 @@ src_prepare() { fi eapply "${FILESDIR}"/${PN}-2.8.3-solaris10.patch + eapply "${FILESDIR}"/${P}-non-glibc.patch eapply_user elibtoolize # for Solaris
