Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 706092 - =net-mail/courier-imap-4.18.2 - dangling symlink in /usr/lib64/courier-imap/courierlogger
Summary: =net-mail/courier-imap-4.18.2 - dangling symlink in /usr/lib64/courier-imap/c...
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: 2020-01-22 12:20 UTC by Jaco Kroon
Modified: 2020-01-22 20:28 UTC (History)
0 users

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 Jaco Kroon 2020-01-22 12:20:52 UTC
courier-imap installs a symlink into /usr/lib64/courier-imap pointing to ../../usr/sbin/courierlogger which is dangling due to ../../ pointing to /usr.

arthur /usr/lib64/courier-imap # ls -lah /usr/lib64/courier-imap/courierlogger
lrwxrwxrwx 1 root root 28 Jan 22 13:57 /usr/lib64/courier-imap/courierlogger -> ../../usr/sbin/courierlogger

Simple fix (workaround):

arthur /usr/lib64/courier-imap # ln -sf ../../../usr/sbin/courierlogger .

Alternatively:

arthur /usr/lib64/courier-imap # ln -sf ../../sbin/courierlogger .


Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2020-01-22 12:48:09 UTC
commit e1dea9721c09b6b60ccbe54071247c68cba13389
Author: Tupone Alfredo <tupone@gentoo.org>
Date:   Tue Jan 14 21:11:40 2020 +0100

    net-mail/courier-imap: AbsoluteSymlink fix and rm and old version

    Package-Manager: Portage-2.3.79, Repoman-2.3.16
    Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2020-01-22 12:50:05 UTC
(cont.)
--- a/net-mail/courier-imap/courier-imap-4.18.2.ebuild
+++ b/net-mail/courier-imap/courier-imap-4.18.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2

 EAPI=6
@@ -187,7 +187,7 @@ src_install() {

        dosbin "${FILESDIR}/mkimapdcert" "${FILESDIR}/mkpop3dcert"

-       dosym /usr/sbin/courierlogger "/usr/$(get_libdir)/${PN}/courierlogger"
+       dosym ../../usr/sbin/courierlogger "/usr/$(get_libdir)/${PN}/courierlogger"

        for initd in courier-{imapd,pop3d}{,-ssl} ; do
                sed -e "s:GENTOO_LIBDIR:$(get_libdir):g" \


deviates slightly from how never versions install the symlink:

--- courier-imap-4.18.2.ebuild  2020-01-15 00:40:40.823358726 +0100
+++ courier-imap-5.0.8.ebuild   2020-01-09 10:02:17.352546670 +0100
@@ -187,7 +184,7 @@

        dosbin "${FILESDIR}/mkimapdcert" "${FILESDIR}/mkpop3dcert"

-       dosym ../../usr/sbin/courierlogger "/usr/$(get_libdir)/${PN}/courierlogger"
+       dosym ../../sbin/courierlogger "/usr/$(get_libdir)/${PN}/courierlogger"

        for initd in courier-{imapd,pop3d}{,-ssl} ; do
                sed -e "s:GENTOO_LIBDIR:$(get_libdir):g" \
Comment 3 Larry the Git Cow gentoo-dev 2020-01-22 20:28:31 UTC
The bug has been closed via the following commit(s):

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

commit e9144ca105467c2c292d32e9e2feaeaa06da4698
Author:     Tupone Alfredo <tupone@gentoo.org>
AuthorDate: 2020-01-22 20:28:11 +0000
Commit:     Tupone Alfredo <tupone@gentoo.org>
CommitDate: 2020-01-22 20:28:11 +0000

    net-mail/courier-imap: Fix dangling symlink
    
    Closes: https://bugs.gentoo.org/706092
    Package-Manager: Portage-2.3.79, Repoman-2.3.16
    Signed-off-by: Alfredo Tupone <tupone@gentoo.org>

 net-mail/courier-imap/courier-imap-4.18.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)