Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 886179 - dev-perl/Mail-SPF-2.9.0-r3 - file collision with mail-filter/libspf2-1.2.11
Summary: dev-perl/Mail-SPF-2.9.0-r3 - file collision with mail-filter/libspf2-1.2.11
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: usrmerge, usrmerge-fixes
  Show dependency tree
 
Reported: 2022-12-15 21:43 UTC by Toralf Förster
Modified: 2024-03-31 08:16 UTC (History)
5 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.50 KB, text/plain)
2022-12-15 21:43 UTC, Toralf Förster
Details
dev-perl:Mail-SPF-2.9.0-r3:20221215-165129.log (dev-perl:Mail-SPF-2.9.0-r3:20221215-165129.log,10.37 KB, text/plain)
2022-12-15 21:43 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,120.83 KB, text/plain)
2022-12-15 21:43 UTC, Toralf Förster
Details
etc.clang.tar.bz2 (etc.clang.tar.bz2,697 bytes, application/x-bzip)
2022-12-15 21:43 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,7.04 KB, application/x-bzip)
2022-12-15 21:43 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,2.42 KB, application/x-bzip)
2022-12-15 21:43 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-12-15 21:43:21 UTC
 * Press Ctrl-C to Stop
 * 
 * mail-filter/libspf2-1.2.11:0::gentoo
 * 	/usr/bin/spfd
 * 
 * Package 'dev-perl/Mail-SPF-2.9.0-r3' NOT merged due to file

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd_merged_usr-j4-20221214-200004

  -------------------------------------------------------------------

GNUMAKEFLAGS="$GNUMAKEFLAGS --jobserver-style=pipe"
gcc-config -l:
 [1] x86_64-pc-linux-gnu-12 *
clang/llvm (if any):
clang version 15.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/15
15.0.6
Python 3.10.9
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.65.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.5_p8 [openjdk-bin-17]
*)	Eclipse Temurin JDK 8.352_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
  [2]   openjdk-bin-17 

php cli (if any):
  [1]   php7.4 *
  [2]   php8.0
  [3]   php8.2

  HEAD of ::gentoo
commit 6d819ea42a4a04cc7ea22f8b0c8591f765d45c5a
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Dec 15 15:47:03 2022 +0000

    2022-12-15 15:47:02 UTC

emerge -qpvO dev-perl/Mail-SPF
[ebuild  N    ] dev-perl/Mail-SPF-2.9.0-r3  USE="-test"
Comment 1 Toralf Förster gentoo-dev 2022-12-15 21:43:22 UTC
Created attachment 842929 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-12-15 21:43:22 UTC
Created attachment 842931 [details]
dev-perl:Mail-SPF-2.9.0-r3:20221215-165129.log
Comment 3 Toralf Förster gentoo-dev 2022-12-15 21:43:24 UTC
Created attachment 842933 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-12-15 21:43:25 UTC
Created attachment 842935 [details]
etc.clang.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-12-15 21:43:25 UTC
Created attachment 842937 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-12-15 21:43:26 UTC
Created attachment 842939 [details]
logs.tar.bz2
Comment 7 EK 2024-03-25 19:55:40 UTC
New profile 23.0 released. In case of switching to merge-usr setup it's not possible to install dev-perl/Mail-SPF and mail-filter/libspf2 on the same system:

 * Detected file collision(s):
 * 
 * 	/usr/sbin/spfd
 * 
 * Searching all installed packages for file collisions...
 * 
 * Press Ctrl-C to Stop
 * 
 * mail-filter/libspf2-1.2.11:0::gentoo
 * 	/usr/bin/spfd
 * 
 * Package 'dev-perl/Mail-SPF-2.9.0-r3' NOT merged due to file
 * collisions. If necessary, refer to your elog messages for the whole
 * content of the above message.

because /usr/sbin/spfd becomes hardlink to /usr/bin/spfd with merge-usr profile (for instance, default/linux/amd64/23.0/no-multilib/hardened (stable))

This becomes a serious issue.
Comment 8 Petr Vaněk gentoo-dev 2024-03-26 13:10:59 UTC
I think we can solve this one similarly to bug 281189. dev-perl/Mail-SPF has only one revdep, spamassassin, which does not seem to use spfd. I think we can safely rename it to spfd.pl.
Comment 9 Fabian Groffen gentoo-dev 2024-03-26 13:36:21 UTC
That would solve it.  libspf2 has two revdeps: opendmarc and exim, both of which I don't think use spfd (Exim doesn't for sure).  That said, when opendmarc doesn't require it either, we can make libspf2 install spfd via an USE-flag too.
Comment 10 Petr Vaněk gentoo-dev 2024-03-26 13:49:16 UTC
I personally prefer renaming spfd in dev-perl/Mail-SPF to spfd.pl. It is consistent with already renamed spfquery.pl. spamassassin passed successfully tests for me with this change.
Comment 11 Larry the Git Cow gentoo-dev 2024-03-26 14:37:05 UTC
The bug has been closed via the following commit(s):

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

commit b92b177e55830ccd00c72b0ac5acfcebd16ea7d1
Author:     Petr Vaněk <arkamar@gentoo.org>
AuthorDate: 2024-03-26 14:02:54 +0000
Commit:     Petr Vaněk <arkamar@gentoo.org>
CommitDate: 2024-03-26 14:36:12 +0000

    dev-perl/Mail-SPF: rename spfd to spfd.pl
    
    This change is necessary in order to avoid collision with
    mail-filter/libspf2. The change is consistent with already renamed
    spfquery.pl.
    
    Bug: https://bugs.gentoo.org/281189
    Closes: https://bugs.gentoo.org/886179
    Signed-off-by: Petr Vaněk <arkamar@gentoo.org>

 dev-perl/Mail-SPF/Mail-SPF-2.9.0-r4.ebuild | 53 ++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)