Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 745453 - mail-mta/postfix: RDEPEND on acct-user/postfix, etc. should be a DEPEND
Summary: mail-mta/postfix: RDEPEND on acct-user/postfix, etc. should be a DEPEND
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal minor (vote)
Assignee: Eray Aslan
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-29 15:55 UTC by Gary Wong
Modified: 2020-10-08 06:05 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch against postfix-3.6_pre20200830.ebuild (postfix-rdepend.patch,798 bytes, patch)
2020-09-29 15:55 UTC, Gary Wong
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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(-)