1 |
commit: 23a08d7367b3dfa0957e2ab1cfab3f799a6b3bf5 |
2 |
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 24 15:36:41 2020 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 24 15:36:41 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23a08d73 |
7 |
|
8 |
mail-filter/opendkim: add back lua-5.2 support. |
9 |
|
10 |
Package-Manager: Portage-3.0.9, Repoman-3.0.2 |
11 |
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org> |
12 |
|
13 |
.../files/opendkim-2.10.3-lua-pkgconfig-pt2.patch | 51 ++++++++++++++++++++++ |
14 |
mail-filter/opendkim/opendkim-2.10.3-r25.ebuild | 6 +-- |
15 |
2 files changed, 53 insertions(+), 4 deletions(-) |
16 |
|
17 |
diff --git a/mail-filter/opendkim/files/opendkim-2.10.3-lua-pkgconfig-pt2.patch b/mail-filter/opendkim/files/opendkim-2.10.3-lua-pkgconfig-pt2.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..9e963eced4d |
20 |
--- /dev/null |
21 |
+++ b/mail-filter/opendkim/files/opendkim-2.10.3-lua-pkgconfig-pt2.patch |
22 |
@@ -0,0 +1,51 @@ |
23 |
+From 6dcab8d2e001bb4b91314693affa65e9c1a9adbd Mon Sep 17 00:00:00 2001 |
24 |
+From: Michael Orlitzky <michael@××××××××.com> |
25 |
+Date: Tue, 22 Dec 2020 19:36:28 -0500 |
26 |
+Subject: [PATCH 1/2] configure.ac: drop lua5.1 pkg-config check. |
27 |
+ |
28 |
+The official upstream name for the lua pkg-config file is "lua.pc", so |
29 |
+preferring the name "lua5.1.pc" to the official one can lead to |
30 |
+problems when both are installed. Specifically, if lua-5.2 is |
31 |
+installed and its pkg-config file is called "lua.pc", then ./configure |
32 |
+will still detect (and use!) lua-5.1 if it happens to be installed |
33 |
+with just the right name. |
34 |
+ |
35 |
+This was honestly left in only for superstitious reasons, and now it's |
36 |
+actually causing problems on Gentoo systems that have more than one |
37 |
+version of Lua installed. So, time to go. |
38 |
+ |
39 |
+Closes: https://github.com/trusteddomainproject/OpenDKIM/issues/111 |
40 |
+--- |
41 |
+ configure.ac | 14 ++------------ |
42 |
+ 1 file changed, 2 insertions(+), 12 deletions(-) |
43 |
+ |
44 |
+diff --git a/configure.ac b/configure.ac |
45 |
+index 828fe53f..d3d688ec 100644 |
46 |
+--- a/configure.ac |
47 |
++++ b/configure.ac |
48 |
+@@ -1517,20 +1517,10 @@ lua_found="no" |
49 |
+ |
50 |
+ if test \( x"$luapath" = x"auto" -o x"$luapath" = x"yes" \) -a x"$PKG_CONFIG" != x"" |
51 |
+ then |
52 |
+- PKG_CHECK_MODULES([LIBLUA], [lua5.1], [ |
53 |
++ PKG_CHECK_MODULES([LIBLUA], [lua], [ |
54 |
+ LIBLUA_INCDIRS="$LIBLUA_CFLAGS" |
55 |
+ lua_found="yes" |
56 |
+- ], |
57 |
+- [ |
58 |
+- AC_MSG_WARN([pkg-config for lua5.1 not found, trying lua...]) |
59 |
+- PKG_CHECK_MODULES([LIBLUA], [lua], [ |
60 |
+- LIBLUA_INCDIRS="$LIBLUA_CFLAGS" |
61 |
+- lua_found="yes" |
62 |
+- ], |
63 |
+- [AC_MSG_WARN([pkg-config for lua not found, trying manual search...])] |
64 |
+- ) |
65 |
+- ] |
66 |
+- ) |
67 |
++ ]) |
68 |
+ fi |
69 |
+ |
70 |
+ if test \( x"$luapath" = x"yes" -o x"$luapath" = x"auto" \) -a x"$lua_found" = x"no" |
71 |
+-- |
72 |
+2.26.2 |
73 |
+ |
74 |
|
75 |
diff --git a/mail-filter/opendkim/opendkim-2.10.3-r25.ebuild b/mail-filter/opendkim/opendkim-2.10.3-r25.ebuild |
76 |
index eb05adb29aa..b105074a89a 100644 |
77 |
--- a/mail-filter/opendkim/opendkim-2.10.3-r25.ebuild |
78 |
+++ b/mail-filter/opendkim/opendkim-2.10.3-r25.ebuild |
79 |
@@ -3,10 +3,7 @@ |
80 |
|
81 |
EAPI=7 |
82 |
|
83 |
-# Supports lua5-2 as well but in order for that to work the lua-pkgconfig |
84 |
-# patch has to be updated not to prefer "lua5.1" over "lua" while looking |
85 |
-# for Lua pkgconfig modules. |
86 |
-LUA_COMPAT=( lua5-1 ) |
87 |
+LUA_COMPAT=( lua5-1 lua5-2 ) |
88 |
|
89 |
inherit autotools db-use eutils systemd tmpfiles lua-single |
90 |
|
91 |
@@ -58,6 +55,7 @@ PATCHES=( |
92 |
"${FILESDIR}/${P}-openrc.patch" |
93 |
"${FILESDIR}/${P}-openssl-1.1.1.patch.r2" |
94 |
"${FILESDIR}/${P}-lua-pkgconfig.patch" |
95 |
+ "${FILESDIR}/${P}-lua-pkgconfig-pt2.patch" |
96 |
"${FILESDIR}/${P}-define-P-macro-in-libvbr.patch" |
97 |
"${FILESDIR}/${P}-fix-libmilter-search.patch" |
98 |
) |