Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 404391 - mail-mta/postfix uses overly specific name for .keep file, breaking merge with pkgcore
Summary: mail-mta/postfix uses overly specific name for .keep file, breaking merge wit...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-18 14:25 UTC by Marien Zwart (RETIRED)
Modified: 2012-02-18 19:40 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marien Zwart (RETIRED) gentoo-dev 2012-02-18 14:25:07 UTC
mail-mta/postfix (multiple versions) do:

keepdir /var/lib/postfix
fowners postfix:postfix /var/lib/postfix
fowners postfix:postfix /var/lib/postfix/.keep_${CATEGORY}_${PN}-${SLOT}

but the exact name of the .keep file is an implementation detail of keepdir, confirmed by pms 4:

> Creates a directory as for dodir, and an empty file whose name starts with 
> .keep in that directory to ensure that the directory does not get removed by 
> the package manager should it be empty at any point.

pkgcore generates a file with a different name (just .keep, currently), causing fowners to fail:

chown: cannot access `/var/tmp/portage/mail-mta/postfix-2.8.7/image//var/lib/postfix/.keep_mail-mta_postfix-0': No such file or directory

Please consider changing the fowners call to target /var/lib/postfix/.keep*, to match the "starts with .keep" from pms and make the ebuilds work with pkgcore.
Comment 1 Eray Aslan gentoo-dev 2012-02-18 19:40:45 UTC
+*postfix-2.10_pre20120218 (18 Feb 2012)
+*postfix-2.9.1 (18 Feb 2012)
+
+  18 Feb 2012; Eray Aslan <eras@gentoo.org> +postfix-2.9.1.ebuild,
+  -postfix-2.10_pre20120202.ebuild, +postfix-2.10_pre20120218.ebuild:
+  version bump. fown any and all .keep files - bug #404391
+