Summary: | mail-mta/postfix-3.2.6 tunes special permission on / instead of ${ROOT}/ when installing from binpkg | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Bruno <bonbons> |
Component: | Current packages | Assignee: | Eray Aslan <eras> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | hydrapolic, jstein, net-mail+disabled, williamh |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Bruno
2018-09-02 16:16:14 UTC
This must be due to postfix set-permissions call in pkg_postinst of the postfix-3.2.6 and later ebuilds: # check and fix file permissions "${EROOT}"/usr/sbin/postfix set-permissions 2>/dev/null It seem like calling `postfix set-permissions` with some extra arguments can get things in a better shape. Shouldn't it be called during src_install while setting the various location variables to point to $E? Worst-case running it in pkg_postinst for it to recreate empty directories but then setting paths with proper ${EROOT} prefix. Kind of postfix set-permissions queue_directory=${E}/var/spool/postfix command_directory=${E}/usr/sbin ... Such as to cover all location prefixes from /etc/postfix/postfix-files: $command_directory $config_directory $daemon_directory $data_directory $html_directory $mailq_path $manpage_directory $meta_directory $newaliases_path $queue_directory $readme_directory $sample_directory $sendmail_path $shlib_directory |