Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 281189 - file collision between mail-filter/libspf2 and >=dev-perl/Mail-SPF-2.006: /usr/bin/spfquery
Summary: file collision between mail-filter/libspf2 and >=dev-perl/Mail-SPF-2.006: /us...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
: 293973 302883 311303 315391 (view as bug list)
Depends on:
Blocks: 302880
  Show dependency tree
 
Reported: 2009-08-12 08:55 UTC by Marcin Mirosław
Modified: 2024-03-26 14:37 UTC (History)
9 users (show)

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


Attachments
Mail-SPF-Query-BLOCKER.patch (Mail-SPF-Query-BLOCKER.patch,384 bytes, patch)
2009-11-05 07:11 UTC, David Abbott (RETIRED)
Details | Diff
Mail-SPF-2.007.ebuild.diff (Mail-SPF-2.007.ebuild.diff,443 bytes, text/plain)
2010-07-13 01:01 UTC, David Abbott (RETIRED)
Details
Mail-SPF-2.007-r1.ebuild (Mail-SPF-2.007-r1.ebuild,1.02 KB, text/plain)
2010-07-15 21:38 UTC, David Abbott (RETIRED)
Details
Mail-SPF-2.007-r1.ebuild (Mail-SPF-2.007-r1.ebuild,1.03 KB, text/plain)
2010-07-24 21:38 UTC, David Abbott (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Mirosław 2009-08-12 08:55:21 UTC
* Messages for package dev-perl/Mail-SPF-Query-1.999.1:

 * This package will overwrite one or more files that may belong to other
 * packages (see list below). 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 http://bugs.gentoo.org unless you report exactly which
 * two packages install the same file(s). Once again, please do NOT file
 * a bug report unless you have completely understood the above message.
 *
 * package dev-perl/Mail-SPF-Query-1.999.1 NOT merged
 *
 * Detected file collision(s):
 *
 *      /usr/share/man/man1/spfquery.1.bz2
 *      /usr/bin/spfquery
 *
 * Searching all installed packages for file collisions...
 *
 * Press Ctrl-C to Stop
 *
 * dev-perl/Mail-SPF-2.006
 *      /usr/bin/spfquery
 *      /usr/share/man/man1/spfquery.1.bz2
 *
 * Package 'dev-perl/Mail-SPF-Query-1.999.1' NOT merged due to file
 * collisions. If necessary, refer to your elog messages for the whole
 * content of the above message.


Reproducible: Always

Steps to Reproduce:
1.emerge =dev-perl/Mail-SPF-2.006
2.emerge dev-perl/Mail-SPF-Query
3."Detected file collision"



Expected Results:  
emerge  dev-perl/Mail-SPF-Query correctly or  dev-perl/Mail-SPF schould block to install  dev-perl/Mail-SPF-Query
Comment 1 David Abbott (RETIRED) gentoo-dev 2009-11-05 07:11:30 UTC
Created attachment 209303 [details, diff]
Mail-SPF-Query-BLOCKER.patch

add blocker to dev-perl/Mail-SPF ebuild
Comment 2 Torsten Veller (RETIRED) gentoo-dev 2009-11-21 21:14:30 UTC
*** Bug 293973 has been marked as a duplicate of this bug. ***
Comment 3 Torsten Veller (RETIRED) gentoo-dev 2010-01-30 15:28:05 UTC
*** Bug 302883 has been marked as a duplicate of this bug. ***
Comment 4 Patrick Lauer gentoo-dev 2010-02-21 12:28:49 UTC
+  21 Feb 2010; Patrick Lauer <patrick@gentoo.org> Mail-SPF-2.007.ebuild:
+  Adding blocker for #281189

Hope that does it ...
Comment 5 PetaMem R&D 2010-04-07 13:50:28 UTC
Still got this problem.

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

emerge --info


Portage 2.1.8.3 (default/linux/x86/10.0/server, gcc-4.3.3, glibc-2.11-r1, 2.6.30-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r6-i686-QEMU_Virtual_CPU_version_0.12.3-with-gentoo-2.0.1
Timestamp of tree: Wed, 07 Apr 2010 12:45:02 +0000
app-shells/bash:     4.1_p2-r1
dev-lang/python:     2.5.4-r2, 2.6.5-r1, 3.1.2-r1
dev-python/pycrypto: 2.0.1-r8
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.65
sys-devel/automake:  1.9.6-r2, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.3.3-r2, 4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
Comment 6 Torsten Veller (RETIRED) gentoo-dev 2010-04-25 07:59:30 UTC
Not fixed.
Comment 7 Torsten Veller (RETIRED) gentoo-dev 2010-04-25 08:00:05 UTC
*** Bug 311303 has been marked as a duplicate of this bug. ***
Comment 8 Torsten Veller (RETIRED) gentoo-dev 2010-04-25 08:00:19 UTC
*** Bug 315391 has been marked as a duplicate of this bug. ***
Comment 9 David Abbott (RETIRED) gentoo-dev 2010-07-13 01:01:38 UTC
Created attachment 238537 [details]
Mail-SPF-2.007.ebuild.diff

This works but seems there must be a better way of doing this, I am just not experenced enough.
Comment 10 Torsten Veller (RETIRED) gentoo-dev 2010-07-13 08:12:49 UTC
http://tinderbox.x86.dev.gentoo.org/misc/rindex/mail-filter/libspf2
|[B]dev-perl/Mail-SPF-Query-1.999.1
| mail-mta/exim-4.69:spf
| mail-mta/exim-4.69-r3:spf
| mail-mta/exim-4.69-r4:spf
| mail-mta/exim-4.71:spf
| mail-mta/exim-4.72:spf

http://tinderbox.x86.dev.gentoo.org/misc/rindex/dev-perl/Mail-SPF
| mail-filter/assp-1.6.5.0:spf
| mail-filter/spamassassin-3.3.1-r2

I did grep the Sources and it didn't find a match for spfquery.

Can we rename one (or both) of the spfquery files?
Which one?
Comment 11 Fabian Groffen gentoo-dev 2010-07-13 09:15:51 UTC
as far as I know, Exim only uses the library from libspf2, and not the binaries, so it wouldn't be affected by a rename of the binary
Comment 12 David Abbott (RETIRED) gentoo-dev 2010-07-15 21:38:31 UTC
Created attachment 238935 [details]
Mail-SPF-2.007-r1.ebuild

This renames /usr/bin/spfquery to /usr/bin/spf_query
Comment 13 Jochen Schalanda 2010-07-15 21:57:14 UTC
Just a suggestion but wouldn't renaming it to /usr/bin/spfquery.pl make more sense? This way at least it's clear that the script belongs to the Mail-SPF Perl module.

IMHO having /usr/bin/spfquery and /usr/bin/spf_query makes it more abiguous.
Comment 14 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2010-07-15 23:02:12 UTC
(In reply to comment #13)
> Just a suggestion but wouldn't renaming it to /usr/bin/spfquery.pl make more
> sense? This way at least it's clear that the script belongs to the Mail-SPF
> Perl module.

I like this approach, however, the question is "How likely are people going to want/need this?".

you could, alternatively, name it something tragic like Mail-SPF-query, or alternatively, stuff the script in a folder nobody can see (/usr/share or /usr/libexec ) and the people who really care for it can be told 'symlink it somewhere mk?'

( I'm not saying either of these are great ideas, but they may inspire great ideas =) ) 
Comment 15 David Abbott (RETIRED) gentoo-dev 2010-07-24 21:38:33 UTC
Created attachment 240055 [details]
Mail-SPF-2.007-r1.ebuild

After constructive feedback the new bin is /usr/bin/spfquery.pl
thanks
Comment 16 David Abbott (RETIRED) gentoo-dev 2010-07-26 00:07:45 UTC
Currently added to perl-overlay for testing, please test;
http://git.overlays.gentoo.org/gitweb/?p=proj/perl-overlay.git;a=commit;h=16b265d228b2bccf620e529bcdbbae9cce7432d3
thanks
Comment 17 Patryk Rzadzinski 2010-07-29 12:37:38 UTC
Since spamassassin uses Mail-SPF - does the naming change not break it's functionality?
Comment 18 Jochen Schalanda 2010-07-29 12:45:31 UTC
#17: No, SpamAssassin is using Mail::SPF directly. spfquery is just a script providing the functionality of Mail::SPF as a command line interface.
Comment 19 Patryk Rzadzinski 2010-07-29 13:21:57 UTC
Great, I'll test and confirm
Comment 20 Torsten Veller (RETIRED) gentoo-dev 2010-08-15 15:31:28 UTC
Fixed by renaming spfquery to spfquery.pl in dev-perl/Mail-SPF-2.007-r1.
Comment 21 Larry the Git Cow gentoo-dev 2024-03-26 14:37:06 UTC
The bug has been referenced in 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(+)