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

Bug 922161

Summary: net-mail/courier-imap-5.2.6-r1 /usr/bin/maildirkw : No such file or directory
Product: Gentoo Linux Reporter: Charles Nérot <charles>
Component: Current packagesAssignee: Tupone Alfredo <tupone>
Status: RESOLVED FIXED    
Severity: normal CC: adamcarter3, charles, floppym, gentoobugzilla, leonchik1976
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge --info
emerge -pqv
environment

Description Charles Nérot 2024-01-15 10:29:55 UTC
Created attachment 882320 [details]
build.log

Hello,

On ~amd64 I have trouble to upgrade from courier-imap-5.2.6 to courier-imap-5.2.6-r1

courier-imap-5.2.6 emerge  fine
courier-imap-5.2.6-r1 failed with this error

rm: cannot remove '/var/tmp/portage/net-mail/courier-imap-5.2.6-r1/image/usr/bin/maildirkw': No such file or directory
 * ERROR: net-mail/courier-imap-5.2.6-r1::gentoo failed (install phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 136:  Called src_install
 *   environment, line 1272:  Called die
 * The specific snippet of code:
 *       rm "${D}"/usr/bin/maildirkw || die;
Comment 1 Charles Nérot 2024-01-15 10:30:28 UTC
Created attachment 882321 [details]
emerge --info
Comment 2 Charles Nérot 2024-01-15 10:30:52 UTC
Created attachment 882322 [details]
emerge -pqv
Comment 3 Charles Nérot 2024-01-15 10:31:16 UTC
Created attachment 882323 [details]
environment
Comment 4 A Blamey 2024-01-15 10:52:30 UTC
I'm seeing the same error on my ~amd64 / merged-usr / openrc system.

The log shows that maildirkw in installed in <installimage>/usr/sbin , but the ebuild looks to remove it from <installimage>/usr/bin .  Not sure if this being a merged-usr system affects this or not.
Comment 5 Leonid Kopylov 2024-01-15 13:52:49 UTC
same error on arm64 also
Comment 6 Charles Nérot 2024-01-15 14:19:20 UTC
(In reply to A Blamey from comment #4)
> I'm seeing the same error on my ~amd64 / merged-usr / openrc system.
> 
> The log shows that maildirkw in installed in <installimage>/usr/sbin , but
> the ebuild looks to remove it from <installimage>/usr/bin .  Not sure if
> this being a merged-usr system affects this or not.

My system is also ~amd64 / merged-usr / openrc system.
Comment 7 Adam Carter 2024-01-16 12:05:17 UTC
Not sure if this is related but some time back i had install failures on courier-imap-5.2.6-r1 due to file clashes. 
# qfile /usr/bin/maildirkw
net-mail/courier-common: /usr/bin/maildirkw

Is there some confusion as to which package out of courier-common and courier-imap owns this file? (IIRC there were two other files that also clashed).

Now i get the 'rm: cannot remove...' issue.
System is ~amd64 / merged-usr / systemd.
Comment 8 Larry the Git Cow gentoo-dev 2024-01-17 21:53:33 UTC
The bug has been closed via the following commit(s):

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

commit 82babf6be0f73dff3549571d67d83cddc008f398
Author:     Alfredo Tupone <tupone@gentoo.org>
AuthorDate: 2024-01-17 21:52:10 +0000
Commit:     Alfredo Tupone <tupone@gentoo.org>
CommitDate: 2024-01-17 21:53:08 +0000

    net-mail/courier-imap: package install in sbin
    
    Closes: https://bugs.gentoo.org/922161
    Signed-off-by: Alfredo Tupone <tupone@gentoo.org>

 net-mail/courier-imap/courier-imap-5.2.6-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)