Gentoo Archives: gentoo-commits

From: Michael Orlitzky <mjo@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-filter/opendkim/
Date: Mon, 28 Dec 2020 19:12:28
Message-Id: 1609182535.6f8585de7ea586a36cbc06530346f855540d25e0.mjo@gentoo
1 commit: 6f8585de7ea586a36cbc06530346f855540d25e0
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 28 19:08:38 2020 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 28 19:08:55 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f8585de
7
8 mail-filter/opendkim: new revision to disable parallel tests.
9
10 The test suite for OpenDKIM currently relies on two "setup" and
11 "cleanup" tests being run at the beginning/end of the test suite,
12 respectively. But when the test suite is run in parallel, that's not
13 always guaranteed. This new revision runs the test suite sequentially
14 to avoid the problem, which has been reported upstream. The credit
15 for this goes to klondike, who was able to determine the root cause of
16 the heisenbug.
17
18 In the process, a minor security vulnerability (insecure /tmp path)
19 was also reported upstream and fixed in the ebuild.
20
21 Closes: https://bugs.gentoo.org/745969
22 Package-Manager: Portage-3.0.9, Repoman-3.0.2
23 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
24
25 ...ndkim-2.10.3-r25.ebuild => opendkim-2.10.3-r26.ebuild} | 15 +++++++++++++++
26 1 file changed, 15 insertions(+)
27
28 diff --git a/mail-filter/opendkim/opendkim-2.10.3-r25.ebuild b/mail-filter/opendkim/opendkim-2.10.3-r26.ebuild
29 similarity index 93%
30 rename from mail-filter/opendkim/opendkim-2.10.3-r25.ebuild
31 rename to mail-filter/opendkim/opendkim-2.10.3-r26.ebuild
32 index b105074a89a..5aad117eed3 100644
33 --- a/mail-filter/opendkim/opendkim-2.10.3-r25.ebuild
34 +++ b/mail-filter/opendkim/opendkim-2.10.3-r26.ebuild
35 @@ -68,6 +68,15 @@ src_prepare() {
36 sed -e 's:dist_doc_DATA:dist_html_DATA:' \
37 -i libopendkim/docs/Makefile.am \
38 || die
39 +
40 + # The existing hard-coded path under /tmp is vulnerable to exploits
41 + # since (for example) a user can create a symlink there to a file
42 + # that portage will clobber. Reported upstream at,
43 + #
44 + # https://github.com/trusteddomainproject/OpenDKIM/issues/113
45 + #
46 + sed -e "s:/tmp:${T}:" -i libopendkim/tests/t-testdata.h || die
47 +
48 eautoreconf
49 }
50
51 @@ -121,6 +130,12 @@ src_compile() {
52 emake runstatedir=/run
53 }
54
55 +src_test() {
56 + # Needed for now due to the expected sequencing of the setup/cleanup
57 + # tests, https://github.com/trusteddomainproject/OpenDKIM/issues/110
58 + emake -j1 check
59 +}
60 +
61 src_install() {
62 default
63 find "${D}" -name '*.la' -type f -delete || die