1 |
commit: 5cf61691ddfac7700856869d533f507748aaf7b7 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 4 19:34:16 2021 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 4 19:34:52 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5cf61691 |
7 |
|
8 |
mail-filter/libsrs_alt-1.0-r1: fix link, thanks orbea, bug #778575 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/778575 |
11 |
Package-Manager: Portage-3.0.18, Repoman-3.0.2 |
12 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
13 |
|
14 |
.../libsrs_alt/files/libsrs_alt-1.0-link-fix.patch | 32 ++++++++++++++++++++++ |
15 |
mail-filter/libsrs_alt/libsrs_alt-1.0-r1.ebuild | 9 ++++-- |
16 |
2 files changed, 38 insertions(+), 3 deletions(-) |
17 |
|
18 |
diff --git a/mail-filter/libsrs_alt/files/libsrs_alt-1.0-link-fix.patch b/mail-filter/libsrs_alt/files/libsrs_alt-1.0-link-fix.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..d2e37c07d62 |
21 |
--- /dev/null |
22 |
+++ b/mail-filter/libsrs_alt/files/libsrs_alt-1.0-link-fix.patch |
23 |
@@ -0,0 +1,32 @@ |
24 |
+From 5fe95ee063c1f29037cdaacd2d96aea4759b57c1 Mon Sep 17 00:00:00 2001 |
25 |
+From: orbea <orbea@××××××.net> |
26 |
+Date: Sat, 27 Mar 2021 08:28:11 -0700 |
27 |
+Subject: [PATCH] build: Correctly use .la files and LDADD. |
28 |
+ |
29 |
+--- |
30 |
+ Makefile.am | 6 ++---- |
31 |
+ 1 file changed, 2 insertions(+), 4 deletions(-) |
32 |
+ |
33 |
+diff --git a/Makefile.am b/Makefile.am |
34 |
+index 46de31a..5bdf9d3 100644 |
35 |
+--- a/Makefile.am |
36 |
++++ b/Makefile.am |
37 |
+@@ -1,13 +1,11 @@ |
38 |
+ SUBDIRS = lib src . |
39 |
+ EXTRA_DIST = MTAs |
40 |
+ |
41 |
+-LDADD = lib/libcompat.a |
42 |
+- |
43 |
+ bin_PROGRAMS = srs |
44 |
+ noinst_PROGRAMS = test |
45 |
+ |
46 |
+ test_SOURCES = test.c |
47 |
+-test_LDFLAGS = src/.libs/libsrs_alt.a |
48 |
++test_LDADD = lib/libcompat.la src/libsrs_alt.la |
49 |
+ |
50 |
+ srs_SOURCES = srs.c |
51 |
+-srs_LDFLAGS = src/.libs/libsrs_alt.a |
52 |
++srs_LDADD = lib/libcompat.la src/libsrs_alt.la |
53 |
+-- |
54 |
+2.26.3 |
55 |
+ |
56 |
|
57 |
diff --git a/mail-filter/libsrs_alt/libsrs_alt-1.0-r1.ebuild b/mail-filter/libsrs_alt/libsrs_alt-1.0-r1.ebuild |
58 |
index ad3fc51b0e4..2b6e7c534c3 100644 |
59 |
--- a/mail-filter/libsrs_alt/libsrs_alt-1.0-r1.ebuild |
60 |
+++ b/mail-filter/libsrs_alt/libsrs_alt-1.0-r1.ebuild |
61 |
@@ -1,4 +1,4 @@ |
62 |
-# Copyright 1999-2020 Gentoo Authors |
63 |
+# Copyright 1999-2021 Gentoo Authors |
64 |
# Distributed under the terms of the GNU General Public License v2 |
65 |
|
66 |
EAPI=7 |
67 |
@@ -20,9 +20,12 @@ IUSE="static-libs" |
68 |
|
69 |
RDEPEND="!dev-perl/Mail-SRS" |
70 |
|
71 |
-src_prepare() { |
72 |
- eapply "${FILESDIR}"/${P}-ftime.patch |
73 |
+PATCHES=( |
74 |
+ "${FILESDIR}"/${P}-ftime.patch |
75 |
+ "${FILESDIR}"/${P}-link-fix.patch |
76 |
+) |
77 |
|
78 |
+src_prepare() { |
79 |
# add missing header |
80 |
sed -i -e '/timeb.h>/ a #include <stdlib.h>' test.c |