mail-filter/opendkim: add a TODO question about a sed line.
authorMichael Orlitzky <mjo@gentoo.org>
Wed, 27 Mar 2019 16:19:56 +0000 (12:19 -0400)
committerMichael Orlitzky <mjo@gentoo.org>
Wed, 27 Mar 2019 17:18:08 +0000 (13:18 -0400)
There's a sed line in src_prepare that messes with some *.lua test
files. I've changed the action of that script to use "${T}" rather
than "/tmp" for security reasons... but I'm unable to figure out when
those test files are actuallty used. So, I've left a TODO comment to
figure it out in the future (or maybe just delete that sed line
entirely).

Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11

mail-filter/opendkim/opendkim-2.10.3-r7.ebuild

index 28700f349638cfd85b3880b9598c8b4e7c0335b4..9a16abcce519c8c83d37e824e5ce9aa8b512bbb6 100644 (file)
@@ -66,8 +66,8 @@ src_prepare() {
        sed -i -e 's:dist_doc_DATA:dist_html_DATA:' libopendkim/docs/Makefile.am \
                || die
 
-       sed -e '/sock.*mt.getcwd/s:mt.getcwd():"/tmp":' \
-               -e '/sock.*mt.getcwd/s:mt.getcwd():"/proc/self/cwd":' \
+       # TODO: what purpose does this serve, do the tests even get run?
+       sed -e "/sock.*mt.getcwd/s:mt.getcwd():${T}:" \
                -i opendkim/tests/*.lua || die
 
        eautoreconf