View previous topic :: View next topic |
Author |
Message |
jimcarhart n00b
Joined: 24 Oct 2019 Posts: 3
|
Posted: Thu Oct 24, 2019 2:39 pm Post subject: [solved] net-mail/mailbase collision |
|
|
For the recent upgrade of mailbase (from 1.1 to 1.5-r1), I get a collision on /var/mail
Code: | emerge mailbase
Calculating dependencies... done!
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) net-mail/mailbase-1.5-r1::gentoo
Unable to unshare: EINVAL
Unable to unshare: EINVAL
Unable to unshare: EINVAL
>>> Unpacking source...
>>> Source unpacked in /var/tmp/portage/net-mail/mailbase-1.5-r1/work
Unable to unshare: EINVAL
>>> Preparing source in /var/tmp/portage/net-mail/mailbase-1.5-r1/work ...
>>> Source prepared.
Unable to unshare: EINVAL
>>> Configuring source in /var/tmp/portage/net-mail/mailbase-1.5-r1/work ...
>>> Source configured.
Unable to unshare: EINVAL
>>> Compiling source in /var/tmp/portage/net-mail/mailbase-1.5-r1/work ...
>>> Source compiled.
Unable to unshare: EINVAL
>>> Test phase [not enabled]: net-mail/mailbase-1.5-r1
Unable to unshare: EINVAL
>>> Install net-mail/mailbase-1.5-r1 into /var/tmp/portage/net-mail/mailbase-1.5-r1/image
>>> Completed installing net-mail/mailbase-1.5-r1 into /var/tmp/portage/net-mail/mailbase-1.5-r1/image
* Final size of build directory: 4 KiB
* Final size of installed tree: 64 KiB
>>> Installing (1 of 1) net-mail/mailbase-1.5-r1::gentoo
Unable to unshare: EINVAL
* Package 'net-mail/mailbase-1.5-r1' has one or more collisions between
* symlinks and directories, which is explicitly forbidden by PMS section
* 13.4 (see bug #326685):
*
* /var/mail
*
* This package will overwrite one or more files that may belong to other
* packages (see list below). Add either "collision-protect" or "protect-
* owned" to FEATURES in make.conf if you would like the merge to abort
* in cases like this. See the make.conf man page for more information
* about these features. You can use a command such as `portageq owners /
* <filename>` to identify the installed package that owns a file. If
* portageq reports that only one package owns a file then do NOT file a
* bug report. A bug report is only useful if it identifies at least two
* or more packages that are known to install the same file(s). If a
* collision occurs and you can not explain where the file came from then
* you should simply ignore the collision since there is not enough
* information to determine if a real problem exists. Please do NOT file
* a bug report at https://bugs.gentoo.org/ unless you report exactly
* which two packages install the same file(s). See
* https://wiki.gentoo.org/wiki/Knowledge_Base:Blockers for tips on how
* to solve the problem. And once again, please do NOT file a bug report
* unless you have completely understood the above message.
*
* Detected file collision(s):
*
* /var/mail
*
* Searching all installed packages for file collisions...
*
* Press Ctrl-C to Stop
*
* None of the installed packages claim the file(s).
*
* Package 'net-mail/mailbase-1.5-r1' NOT merged since it has one or more
* collisions between symlinks and directories, which is explicitly
* forbidden by PMS section 13.4 (see bug #326685). If necessary, refer
* to your elog messages for the whole content of the above message.
>>> Failed to install net-mail/mailbase-1.5-r1, Log file:
|
Okay, fine let me utilize "-collision-protect and -protect-owned" in FEATURES to force it;
Code: | FEATURES="-collision-protect -protect-owned" emerge mailbase |
Yep I get the same collision issue, same if I use the FEATURES in make.conf.
Code: | emerge -pv mailbase
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ] net-mail/mailbase-1.5-r1::gentoo USE="pam" 0 KiB
Total: 1 package (1 new), Size of downloads: 0 KiB |
Last edited by jimcarhart on Wed Oct 30, 2019 9:02 pm; edited 1 time in total |
|
Back to top |
|
|
jimcarhart n00b
Joined: 24 Oct 2019 Posts: 3
|
Posted: Thu Oct 24, 2019 2:53 pm Post subject: |
|
|
FWIW this is a mailhub box with its own /var/mail partition and /var/spool/mail linked to it, i.e.
Code: | df -k /var/mail
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/bootvg-varmail 10321208 154976 9641944 2% /var/mail |
and the links as follows;
Code: | ls -al /var/spool/mail
lrwxrwxrwx 1 root root 9 Jul 26 2011 /var/spool/mail -> /var/mail |
Maybe that is it. |
|
Back to top |
|
|
jimcarhart n00b
Joined: 24 Oct 2019 Posts: 3
|
Posted: Wed Oct 30, 2019 9:02 pm Post subject: |
|
|
Solved by moving /var/mail partition to /var/spool/mail, setting a hard link from /var/mail -> /var/spool/mail.
All this done with sendmail, etc (anything accessing /var/mail) down.
Then the;
Code: | FEATURES="-collision-protect -protect-owned" emerge mailbase |
Works. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|