1 |
commit: f8fdcbb7421355945fc895231fa3da30645ef81b |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 1 18:38:29 2021 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 1 19:41:12 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f8fdcbb7 |
7 |
|
8 |
sys-libs/zlib: fix .a and .la removal logic |
9 |
|
10 |
minizip uses automake/libtool, and its static lib is disabled at |
11 |
configure time. We just need to remove the .la file. |
12 |
|
13 |
libz uses a homegrown Makefile, and we need to remove libz.a after |
14 |
installation. There is no .la file. |
15 |
|
16 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
17 |
|
18 |
sys-libs/zlib/zlib-1.2.11-r4.ebuild | 7 ++++++- |
19 |
1 file changed, 6 insertions(+), 1 deletion(-) |
20 |
|
21 |
diff --git a/sys-libs/zlib/zlib-1.2.11-r4.ebuild b/sys-libs/zlib/zlib-1.2.11-r4.ebuild |
22 |
index 5dfe56381a9..6af7187084d 100644 |
23 |
--- a/sys-libs/zlib/zlib-1.2.11-r4.ebuild |
24 |
+++ b/sys-libs/zlib/zlib-1.2.11-r4.ebuild |
25 |
@@ -149,8 +149,13 @@ multilib_src_install() { |
26 |
sed_macros "${ED}"/usr/include/minizip/*.h |
27 |
fi |
28 |
|
29 |
+ if use minizip; then |
30 |
+ rm "${ED}"/usr/$(get_libdir)/libminizip.la || die |
31 |
+ fi |
32 |
+ |
33 |
if ! use static-libs ; then |
34 |
- rm -f "${ED}"/usr/$(get_libdir)/lib{z,minizip}.{a,la} || die #419645 |
35 |
+ # https://bugs.gentoo.org/419645 |
36 |
+ rm "${ED}"/usr/$(get_libdir)/libz.a || die |
37 |
fi |
38 |
} |