Created attachment 889518 [details, diff] Patch against the ebuild to make it work properly when ROOT is set net-mail/courier-imap-5.2.6-r1 fails to find ${D}${ROOT}/usr/lib64/courier-imap when running fperms in postinst, however ${ROOT} is handled by portage and the ebuild in this case doesn't have to treat it specially. I forgot to keep the build.log. If you need it let me know.
Comment on attachment 889518 [details, diff] Patch against the ebuild to make it work properly when ROOT is set fperms always operates on ${D}, so your patch is not valid. The fperms call should be replaced with chmod.
Created attachment 889555 [details] build.log without the patch
(In reply to Mike Gilbert from comment #1) > fperms always operates on ${D}, so your patch is not valid. ${D} isn't the problem. ${ROOT} is. I've attached the build.log so you can see the problem yourself.
Created attachment 889556 [details, diff] Use chmod instead of fperms Now I got it. There were two problems in the ebuild and I fixed the wrong one.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3dd8f6d3273f503c1f3c3e19eb58217ea04114b2 commit 3dd8f6d3273f503c1f3c3e19eb58217ea04114b2 Author: Alfredo Tupone <tupone@gentoo.org> AuthorDate: 2024-05-21 06:30:43 +0000 Commit: Alfredo Tupone <tupone@gentoo.org> CommitDate: 2024-05-21 06:31:39 +0000 net-mail/courier-imap: use chmod instead of fperms Closes: https://bugs.gentoo.org/928635 Signed-off-by: Alfredo Tupone <tupone@gentoo.org> net-mail/courier-imap/courier-imap-5.1.2-r1.ebuild | 2 +- net-mail/courier-imap/courier-imap-5.2.6-r1.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)