Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 699342 - >=net-mail/courier-imap-5.0.7 USE=gnutls - /usr/sbin/mkdhparams: line 65: /usr/local/bin/certtool: No such file or directory
Summary: >=net-mail/courier-imap-5.0.7 USE=gnutls - /usr/sbin/mkdhparams: line 65: /us...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Tupone Alfredo
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-04 22:21 UTC by BobbyK
Modified: 2019-11-07 00:12 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description BobbyK 2019-11-04 22:21:55 UTC
The recent stabilization of net-mail/courier-imap-5.0.7 results in a monthly cron error arising from bug 517682's "[i]nstall [of] a monthly cron job for dhparams" and the 5.0.7's version of this file including a reference to the non-existent /usr/local/bin/certtool:

# grep -n -B3 -A3 local /usr/sbin/mkdhparams
62-     BITS=high
63-    fi
64-
65:    /usr/local/bin/certtool --generate-dh-params --sec-param $BITS >$TLS_DHPARAMS.tmp
66-    mv -f $TLS_DHPARAMS.tmp $TLS_DHPARAMS
67-fi

It seems that ssl implementation may be an issue, my USEs on net-mail/courier-imap are:

[ebuild   R    ] net-mail/courier-imap-5.0.7::gentoo  USE="berkdb fam gdbm gnutls ipv6 -debug -libressl (-selinux) -trashquota" 0 KiB


Reproducible: Always

Steps to Reproduce:
1.Install net-mail/courier-imap
2. wait
3. 
Actual Results:  
when monthly cron job runs note error "/usr/sbin/mkdhparams: line 65: /usr/local/bin/certtool: No such file or directory"

Expected Results:  
No error
Comment 1 Tupone Alfredo gentoo-dev 2019-11-06 07:12:06 UTC
Could you please rebuild gnutls with USE=tools and the courier-imap.
Report the result so I can fix it
Comment 2 Larry the Git Cow gentoo-dev 2019-11-06 19:27:45 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=309fee1b3d402bbf7506610e1737d955d3fa9e89

commit 309fee1b3d402bbf7506610e1737d955d3fa9e89
Author:     Tupone Alfredo <tupone@gentoo.org>
AuthorDate: 2019-11-06 19:27:24 +0000
Commit:     Tupone Alfredo <tupone@gentoo.org>
CommitDate: 2019-11-06 19:27:24 +0000

    net-mail/courier-imap: add tools to gnutls dependency
    
    Closes: https://bugs.gentoo.org/699342
    Package-Manager: Portage-2.3.76, Repoman-2.3.16
    Signed-off-by: Alfredo Tupone <tupone@gentoo.org>

 net-mail/courier-imap/courier-imap-5.0.7.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 3 BobbyK 2019-11-07 00:12:32 UTC
Rebuilt gnutls with USE=tools and then emerged courier-imap - /usr/sbin/mkdhparams now runs w/o errors.

# grep -n -B3 -A3 certtool /usr/sbin/mkdhparams
62-     BITS=high
63-    fi
64-
65:    /usr/bin/certtool --generate-dh-params --sec-param $BITS >$TLS_DHPARAMS.tmp
66-    mv -f $TLS_DHPARAMS.tmp $TLS_DHPARAMS
67-fi

Many thanks.