Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 678762

Summary: net-mail/courier-imap: hard-coded paths in unit files broken with SYMLINK_LIB=no
Product: Gentoo Linux Reporter: Thomas Kemmer <thomas>
Component: Current packagesAssignee: Tupone Alfredo <tupone>
Status: RESOLVED FIXED    
Severity: normal CC: mgorny, treecleaner
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 506276    
Attachments: emerge --info

Description Thomas Kemmer 2019-02-25 16:52:09 UTC
Created attachment 566418 [details]
emerge --info

All three unit files installed by courier-imap (from FILESDIR), namely
 * courier-authdaemond.service
 * courier-imapd-ssl.service
 * courier-imapd.service
contain hard-coded paths to /usr/lib/. After SYMLINK_LIB=no conversion none of the corresponding services starts properly. I fixed this issue on my machine by modifying the paths manually (/usr/lib{=>64}/...) in the unit files.

courier-authdaemond:
Feb 25 17:00:36 eradan systemd[430]: courier-imapd-ssl.service: Failed to execute command: No such file or directory
Feb 25 17:00:36 eradan systemd[430]: courier-imapd-ssl.service: Failed at step EXEC spawning /usr/lib/courier-imap/gentoo-imapd-ssl.rc: No such file or directory

courier-imapd:
Feb 25 17:00:36 eradan systemd[435]: courier-imapd.service: Failed to execute command: No such file or directory
Feb 25 17:00:36 eradan systemd[435]: courier-imapd.service: Failed at step EXEC spawning /usr/lib/courier-imap/gentoo-imapd.rc: No such file or directory
Comment 1 Larry the Git Cow gentoo-dev 2019-07-02 07:27:32 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04434151ae097d3153723b8086dd345dc76ed5b3

commit 04434151ae097d3153723b8086dd345dc76ed5b3
Author:     Tupone Alfredo <tupone@gentoo.org>
AuthorDate: 2019-07-02 07:27:09 +0000
Commit:     Tupone Alfredo <tupone@gentoo.org>
CommitDate: 2019-07-02 07:27:09 +0000

    net-mail/courier-imap: Fix systemd files
    
    Closes: https://bugs.gentoo.org/678762
    Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
    Package-Manager: Portage-2.3.66, Repoman-2.3.11

 net-mail/courier-imap/courier-imap-5.0.7.ebuild | 13 ++++++++++---
 net-mail/courier-imap/metadata.xml              |  5 ++++-
 2 files changed, 14 insertions(+), 4 deletions(-)