1 |
commit: e5a6bfb643858febc9ff8509363099b67465e220 |
2 |
Author: Tobias Klausmann <klausman <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jun 5 13:35:31 2020 +0000 |
4 |
Commit: Tobias Klausmann <klausman <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 5 13:35:31 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5a6bfb6 |
7 |
|
8 |
dev-libs/zlog: Remove .a files from build and install |
9 |
|
10 |
Closes: https://bugs.gentoo.org/534172 |
11 |
Package-Manager: Portage-2.3.100, Repoman-2.3.22 |
12 |
Signed-off-by: Tobias Klausmann <klausman <AT> gentoo.org> |
13 |
|
14 |
dev-libs/zlog/files/zlog_no_static_lib.patch | 59 ++++++++++++++++++++++ |
15 |
.../{zlog-1.2.14.ebuild => zlog-1.2.14-r1.ebuild} | 3 +- |
16 |
2 files changed, 61 insertions(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/dev-libs/zlog/files/zlog_no_static_lib.patch b/dev-libs/zlog/files/zlog_no_static_lib.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..3f45f5648dd |
21 |
--- /dev/null |
22 |
+++ b/dev-libs/zlog/files/zlog_no_static_lib.patch |
23 |
@@ -0,0 +1,59 @@ |
24 |
+--- src/makefile.orig 2020-06-05 15:29:43.926423440 +0200 |
25 |
++++ src/makefile 2020-06-05 15:30:26.266501492 +0200 |
26 |
+@@ -43,8 +43,6 @@ |
27 |
+ DYLIB_MAJOR_NAME=$(LIBNAME).$(DYLIBSUFFIX).$(ZLOG_MAJOR) |
28 |
+ DYLIBNAME=$(LIBNAME).$(DYLIBSUFFIX) |
29 |
+ DYLIB_MAKE_CMD=$(CC) -shared -Wl,-soname,$(DYLIB_MINOR_NAME) -o $(DYLIBNAME) $(LDFLAGS) |
30 |
+-STLIBNAME=$(LIBNAME).$(STLIBSUFFIX) |
31 |
+-STLIB_MAKE_CMD=ar rcs $(STLIBNAME) |
32 |
+ |
33 |
+ # Installation related variables |
34 |
+ PREFIX?=/usr/local |
35 |
+@@ -78,7 +76,6 @@ |
36 |
+ # not to mention dynamic linker .a preference... |
37 |
+ DYLIB_MAKE_CMD=$(CC) -shared -Wl,-G,-b64 -maix64 -pthread -o $(DYLIBNAME) $(LDFLAGS) |
38 |
+ REAL_CFLAGS+= -maix64 |
39 |
+- STLIB_MAKE_CMD=OBJECT_MODE=64 ar rcs $(STLIBNAME) $(DYLIB_MAJOR_NAME) |
40 |
+ endif |
41 |
+ |
42 |
+ all: $(DYLIBNAME) $(BINS) |
43 |
+@@ -139,21 +136,17 @@ |
44 |
+ cp -f $(DYLIBNAME) $(DYLIB_MAJOR_NAME) |
45 |
+ cp -f $(DYLIBNAME) $(DYLIB_MINOR_NAME) |
46 |
+ |
47 |
+-$(STLIBNAME): $(OBJ) |
48 |
+- $(STLIB_MAKE_CMD) $(OBJ) |
49 |
+- |
50 |
+ dynamic: $(DYLIBNAME) |
51 |
+-static: $(STLIBNAME) |
52 |
+ |
53 |
+ # Binaries: |
54 |
+-zlog-chk-conf: zlog-chk-conf.o $(STLIBNAME) $(DYLIBNAME) |
55 |
++zlog-chk-conf: zlog-chk-conf.o $(DYLIBNAME) |
56 |
+ $(CC) -o $@ zlog-chk-conf.o -L. -lzlog $(REAL_LDFLAGS) |
57 |
+ |
58 |
+ .c.o: |
59 |
+ $(CC) -std=c99 -pedantic -c $(REAL_CFLAGS) $< |
60 |
+ |
61 |
+ clean: |
62 |
+- rm -rf $(DYLIBNAME) $(STLIBNAME) $(BINS) *.o *.gcda *.gcno *.gcov $(DYLIB_MINOR_NAME) $(DYLIB_MAJOR_NAME) |
63 |
++ rm -rf $(DYLIBNAME) $(BINS) *.o *.gcda *.gcno *.gcov $(DYLIB_MINOR_NAME) $(DYLIB_MAJOR_NAME) |
64 |
+ |
65 |
+ dep: |
66 |
+ $(CC) -MM *.c |
67 |
+@@ -171,14 +164,13 @@ |
68 |
+ |
69 |
+ INSTALL?= cp -a |
70 |
+ |
71 |
+-install: $(DYLIBNAME) $(STLIBNAME) |
72 |
++install: $(DYLIBNAME) |
73 |
+ mkdir -p $(INSTALL_INCLUDE_PATH) $(INSTALL_LIBRARY_PATH) $(INSTALL_BINARY_PATH) |
74 |
+ $(INSTALL) zlog.h $(INSTALL_INCLUDE_PATH) |
75 |
+ $(INSTALL) zlog-chk-conf $(INSTALL_BINARY_PATH) |
76 |
+ $(INSTALL) $(DYLIBNAME) $(INSTALL_LIBRARY_PATH)/$(DYLIB_MINOR_NAME) |
77 |
+ cd $(INSTALL_LIBRARY_PATH) && ln -sf $(DYLIB_MINOR_NAME) $(DYLIB_MAJOR_NAME) |
78 |
+ cd $(INSTALL_LIBRARY_PATH) && ln -sf $(DYLIB_MAJOR_NAME) $(DYLIBNAME) |
79 |
+- $(INSTALL) $(STLIBNAME) $(INSTALL_LIBRARY_PATH) |
80 |
+ |
81 |
+ 32bit: |
82 |
+ @echo "" |
83 |
|
84 |
diff --git a/dev-libs/zlog/zlog-1.2.14.ebuild b/dev-libs/zlog/zlog-1.2.14-r1.ebuild |
85 |
similarity index 87% |
86 |
rename from dev-libs/zlog/zlog-1.2.14.ebuild |
87 |
rename to dev-libs/zlog/zlog-1.2.14-r1.ebuild |
88 |
index 66b2ba8509c..741717bc2d8 100644 |
89 |
--- a/dev-libs/zlog/zlog-1.2.14.ebuild |
90 |
+++ b/dev-libs/zlog/zlog-1.2.14-r1.ebuild |
91 |
@@ -3,7 +3,7 @@ |
92 |
|
93 |
EAPI=6 |
94 |
|
95 |
-inherit toolchain-funcs |
96 |
+inherit toolchain-funcs eutils |
97 |
|
98 |
DESCRIPTION="A reliable, thread safe, clear-model, pure C logging library." |
99 |
HOMEPAGE="http://hardysimpson.github.io/zlog/" |
100 |
@@ -16,6 +16,7 @@ IUSE="test" |
101 |
RESTRICT="!test? ( test )" |
102 |
|
103 |
src_compile() { |
104 |
+ epatch "${FILESDIR}/zlog_no_static_lib.patch" || die |
105 |
emake CC="$(tc-getCC)" |
106 |
} |