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

Bug 745453

Summary: mail-mta/postfix: RDEPEND on acct-user/postfix, etc. should be a DEPEND
Product: Gentoo Linux Reporter: Gary Wong <gtw>
Component: Current packagesAssignee: Eray Aslan <eras>
Status: RESOLVED FIXED    
Severity: minor CC: jstein, williamh
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch against postfix-3.6_pre20200830.ebuild

Description Gary Wong 2020-09-29 15:55:11 UTC
Created attachment 663160 [details, diff]
Patch against postfix-3.6_pre20200830.ebuild

mail-mta/postfix lists a few acct-*/* in RDEPEND, and needs the corresponding users/groups in fowners calls in src_install().

The trouble is that EAPI 7 PMS Section 8 states only BDEPEND and DEPEND dependencies are guaranteed at src_install() time, and so it's possible to attempt src_install when the postfix user and group do not exist.

For instance, trying to build a postfix binpkg with:

    emerge -o --onlydeps-with-rdeps=n mail-mta/postfix && emerge -B mail-mta/postfix

fails in the final src_install().

The attached patch (moving acct-*/* from RDEPEND to DEPEND) resolves the problem.
Comment 1 Larry the Git Cow gentoo-dev 2020-10-08 06:05:47 UTC
The bug has been closed via the following commit(s):

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

commit 31a36ad9dffb5965120f142c5b8eba9fe1eb3d3c
Author:     Eray Aslan <eras@gentoo.org>
AuthorDate: 2020-10-08 06:04:51 +0000
Commit:     Eray Aslan <eras@gentoo.org>
CommitDate: 2020-10-08 06:04:51 +0000

    mail-mta/postfix: bump to 3.6_pre20201003
    
    fix DEPEND for new installs. thanks to Gary Wong
    Closes: https://bugs.gentoo.org/745453
    Package-Manager: Portage-3.0.8, Repoman-3.0.1
    Signed-off-by: Eray Aslan <eras@gentoo.org>

 mail-mta/postfix/Manifest                                     |  2 +-
 ...-3.6_pre20200925.ebuild => postfix-3.6_pre20201003.ebuild} | 11 ++++++-----
 2 files changed, 7 insertions(+), 6 deletions(-)