Gentoo Archives: gentoo-commits

From: Stefan Strogin <steils@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libressl/files/, dev-libs/libressl/
Date: Mon, 02 Nov 2020 09:55:43
Message-Id: 1604310924.4f4eb2c0233265332d3725e4658f5c616936148e.steils@gentoo
1 commit: 4f4eb2c0233265332d3725e4658f5c616936148e
2 Author: Stefan Strogin <steils <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 2 09:27:49 2020 +0000
4 Commit: Stefan Strogin <steils <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 2 09:55:24 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f4eb2c0
7
8 dev-libs/libressl: fix building with USE=-static-libs
9
10 Closes: https://bugs.gentoo.org/751532
11 Package-Manager: Portage-3.0.8, Repoman-3.0.2
12 Signed-off-by: Stefan Strogin <steils <AT> gentoo.org>
13
14 dev-libs/libressl/files/libressl-3.2.2-build.patch | 56 ++++++++++++++++++++++
15 dev-libs/libressl/libressl-3.2.2.ebuild | 1 +
16 2 files changed, 57 insertions(+)
17
18 diff --git a/dev-libs/libressl/files/libressl-3.2.2-build.patch b/dev-libs/libressl/files/libressl-3.2.2-build.patch
19 new file mode 100644
20 index 00000000000..586e7a7a423
21 --- /dev/null
22 +++ b/dev-libs/libressl/files/libressl-3.2.2-build.patch
23 @@ -0,0 +1,56 @@
24 +From 9abd36e3af5876f67c633f27496ad5660ab7fe24 Mon Sep 17 00:00:00 2001
25 +From: Brent Cook <busterb@×××××.com>
26 +Date: Sun, 18 Oct 2020 22:14:03 -0500
27 +Subject: [PATCH] modify nc build to link libcompat objects directly
28 +
29 +Rather than assuming the static version of libcrypto exists for pulling in the compatibility functions, link the compat objects directly. This modifies the object file generation script a bit to handle the empty-case properly as well.
30 +---
31 + apps/nc/Makefile.am | 8 ++++++--
32 + crypto/Makefile.am | 4 ++--
33 + 2 files changed, 8 insertions(+), 4 deletions(-)
34 +
35 +diff --git a/apps/nc/Makefile.am b/apps/nc/Makefile.am
36 +index d678f1eda..58b5c0118 100644
37 +--- a/apps/nc/Makefile.am
38 ++++ b/apps/nc/Makefile.am
39 +@@ -1,5 +1,7 @@
40 + include $(top_srcdir)/Makefile.am.common
41 +
42 ++-include $(abs_top_builddir)/crypto/libcrypto_la_objects.mk
43 ++
44 + if BUILD_NC
45 +
46 + if ENABLE_NC
47 +@@ -12,11 +14,13 @@ endif
48 + EXTRA_DIST = nc.1
49 + EXTRA_DIST += CMakeLists.txt
50 +
51 +-nc_LDFLAGS = $(abs_top_builddir)/crypto/.libs/libcrypto.a
52 +-
53 + nc_LDADD = $(abs_top_builddir)/tls/libtls.la
54 + nc_LDADD += $(PLATFORM_LDADD) $(PROG_LDADD)
55 +
56 ++nc_LDADD += $(libcrypto_la_objects)
57 ++nc_LDADD += $(libcompat_la_objects)
58 ++nc_LDADD += $(libcompatnoopt_la_objects)
59 ++
60 + AM_CPPFLAGS += -I$(top_srcdir)/apps/nc/compat
61 +
62 + nc_SOURCES = atomicio.c
63 +diff --git a/crypto/Makefile.am b/crypto/Makefile.am
64 +index 97a84e1a7..e32ca96c3 100644
65 +--- a/crypto/Makefile.am
66 ++++ b/crypto/Makefile.am
67 +@@ -99,10 +99,10 @@ libcrypto_la_objects.mk: Makefile
68 + | sed 's/ */ $$\(abs_top_builddir\)\/crypto\//g' \
69 + > libcrypto_la_objects.mk
70 + @echo "libcompat_la_objects= $(libcompat_la_OBJECTS)" \
71 +- | sed 's/ */ $$\(abs_top_builddir\)\/crypto\//g' \
72 ++ | sed 's/compat\// $$\(abs_top_builddir\)\/crypto\/&/g' \
73 + >> libcrypto_la_objects.mk
74 + @echo "libcompatnoopt_la_objects= $(libcompatnoopt_la_OBJECTS)" \
75 +- | sed 's/ */ $$\(abs_top_builddir\)\/crypto\//g' \
76 ++ | sed 's/compat\// $$\(abs_top_builddir\)\/crypto\/&/g' \
77 + >> libcrypto_la_objects.mk
78 +
79 + libcrypto_la_LDFLAGS = -version-info @LIBCRYPTO_VERSION@ -no-undefined -export-symbols crypto_portable.sym
80
81 diff --git a/dev-libs/libressl/libressl-3.2.2.ebuild b/dev-libs/libressl/libressl-3.2.2.ebuild
82 index ab31f204168..d6e5a198531 100644
83 --- a/dev-libs/libressl/libressl-3.2.2.ebuild
84 +++ b/dev-libs/libressl/libressl-3.2.2.ebuild
85 @@ -42,6 +42,7 @@ src_prepare() {
86 fi
87
88 eapply "${FILESDIR}"/${PN}-2.8.3-solaris10.patch
89 + eapply "${FILESDIR}"/${PN}-3.2.2-build.patch
90 eapply_user
91
92 elibtoolize # for Solaris