spfquery: conflict with libmail-spf-query-perl Debian bug#306875

Bug #79683 reported by Scott Kitterman
2
Affects Status Importance Assigned to Milestone
libspf2 (Debian)
Fix Released
Unknown
libspf2 (Ubuntu)
Fix Released
Low
Daniel T Chen

Bug Description

It's a packaging fix. I'll attach the debdiff as soon as I figure out how...

Revision history for this message
In , Alban browaeys (alban-browaeys) wrote : update email address

submitter 277991 <email address hidden>
submitter 297085 <email address hidden>
submitter 291345 <email address hidden>
submitter 298795 <email address hidden>
submitter 302056 <email address hidden>
submitter 302619 <email address hidden>
submitter 303962 <email address hidden>
submitter 306875 <email address hidden>
submitter 310323 <email address hidden>
submitter 387660 <email address hidden>
submitter 387661 <email address hidden>
submitter 305288 <email address hidden>
submitter 305293 <email address hidden>
submitter 292493 <email address hidden>
submitter 302835 <email address hidden>
submitter 297506 <email address hidden>
submitter 301602 <email address hidden>
submitter 302751 <email address hidden>
submitter 301699 <email address hidden>
submitter 296441 <email address hidden>
submitter 297210 <email address hidden>
submitter 274561 <email address hidden>
submitter 291328 <email address hidden>

Revision history for this message
In , Julian Mehnle (jmehnle) wrote : spfquery: Support for alternatives system

Package: spfquery
Version: 1.2.5-4
Followup-For: Bug #306875

Here's a patch that installs the `spfquery` executable as `spfquery.
libspf2` and adds update-alternatives support for it.

Revision history for this message
In , Julian Mehnle (jmehnle) wrote :

package spfquery
retitle 306875 spfquery: conflict with libmail-spf-query-perl
tags 306875 + patch
thanks

Revision history for this message
Scott Kitterman (kitterman) wrote :

It's a packaging fix. I'll attach the debdiff as soon as I figure out how...

Revision history for this message
Scott Kitterman (kitterman) wrote :
Revision history for this message
Scott Kitterman (kitterman) wrote :

From the upstream bug:

Package: spfquery
Severity: normal

Unpacking spfquery (from .../spfquery_1.2.5-2_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/spfquery_1.2.5-2_i386.deb (--unpack):
 trying to overwrite `/usr/bin/spfquery', which is also in package libmail-spf-query-perl

This perl module is suggested by spamassassin so may be widely used.

Regards
Alban

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.11-rc5
Locale: LANG=fr_FR.UTF-8@euro, LC_CTYPE=fr_FR.UTF-8@euro (charmap=UTF-8)

Versions of packages spfquery depends on:
ii libc6 2.3.5-1 GNU C Library: Shared libraries an
ii libspf2-2 1.2.5-2 Sender Policy Framework library, w

Revision history for this message
Scott Kitterman (kitterman) wrote :

There was a question on IRC about the addition of:

+++ libspf2-1.2.5/src/libspf2/spf_lib_version.h
@@ -0,0 +1,8 @@
+#ifndef INC_SPF_VERSION
+#define INC_SPF_VERSION
+
+#define SPF_LIB_VERSION_MAJOR 1
+#define SPF_LIB_VERSION_MINOR 2
+#define SPF_LIB_VERSION_PATCH 5
+
+#endif

I didn't add it manually. It looks to me like DH added it.

Revision history for this message
Scott Kitterman (kitterman) wrote :

Also, the huge debdiff with the *win* files is because those files have Windows line endings in orig.tar.gz and the get converted to Unix line endings when the package is built. There are no code differences in the files.

Revision history for this message
Scott Kitterman (kitterman) wrote :

Here is the debdiff edited to remove the line ending differences.

Changed in libspf2:
assignee: nobody → ubuntu-kitterman
status: Unconfirmed → In Progress
Revision history for this message
Scott Kitterman (kitterman) wrote :

It turns out my problem was having built the binary first and buggy clean rules. Attached is a sane debdiff that fixes the actual problem this bug is about.

Changed in libspf2:
assignee: ubuntu-kitterman → nobody
status: In Progress → Confirmed
Revision history for this message
Scott Kitterman (kitterman) wrote :

I'm still learning about patching. Here's another try...

This one applied to a clean (plus the patch) source directory with:

apt-get source -d libspf2
dkpg-source -x libspf2_1.2.5-4.dsc
patch --verbose -p0 <libspf2-1.2.5-spfquery-update-alternatives.patch

Subsequently source and binary packages built and installed correctly.

Revision history for this message
Scott Kitterman (kitterman) wrote :

This update has some cosmetic changes from the previous patch. Functionally it's identical.

Changed in libspf2:
status: Unknown → Unconfirmed
Revision history for this message
Daniel T Chen (crimsun) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sat, 20 Jan 2007 10:57:20 -0500
Source: libspf2
Binary: spfquery libspf2-2 libspf2-dev
Architecture: source
Version: 1.2.5-4ubuntu1
Distribution: feisty
Urgency: low
Maintainer: Debian QA Group <email address hidden>
Changed-By: Scott Kitterman <email address hidden>
Description:
 libspf2-2 - Sender Policy Framework library, written in C
 libspf2-dev - Header and development libraries for libspf2
 spfquery - Sender Policy Framework library, written in C
Changes:
 libspf2 (1.2.5-4ubuntu1) feisty; urgency=low
 .
   * Changes for update alternatives (Fixes Debian #306875, Ubuntu #79683).
     - debian/control: Updated conflicts and added Section and final newline
     - debian/rules: Rename spfquery for update alternatives
     - debian/spfquery.postinst: Added for update alternatives
     - debian/spfquery.prerm: Added for update alternatives
   * debian/copyright: Updated author e-mail address
   * debian/compat: Added
Files:
 ad36a57914d55a491da9d9d6c351a37b 610 - optional libspf2_1.2.5-4ubuntu1.dsc
 db44a7cdb27e6780f2f8a70f1d37ac70 13337 - optional libspf2_1.2.5-4ubuntu1.diff.gz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFFuY1oe9GwFciKvaMRAkKBAJwOdChYoEXlNqKmpSCN3PoV6TfkwACeILTP
znM+KeTX1E/6dWLc4Rw+gRk=
=aorC
-----END PGP SIGNATURE-----

Changed in libspf2:
assignee: nobody → crimsun
importance: Undecided → Low
status: Confirmed → Fix Committed
Revision history for this message
In , Scott Kitterman (kitterman) wrote : An updated package is available in Ubuntu that fixes this bug
Changed in libspf2:
status: Fix Committed → Fix Released
Revision history for this message
In , Magnus Holmgren (holmgren) wrote : Bug#306875: fixed in libspf2 1.2.5.dfsg-1
Download full text (4.6 KiB)

Source: libspf2
Source-Version: 1.2.5.dfsg-1

We believe that the bug you reported is fixed in the latest version of
libspf2, which is due to be installed in the Debian FTP archive:

libspf2-2_1.2.5.dfsg-1_i386.deb
  to pool/main/libs/libspf2/libspf2-2_1.2.5.dfsg-1_i386.deb
libspf2-dev_1.2.5.dfsg-1_i386.deb
  to pool/main/libs/libspf2/libspf2-dev_1.2.5.dfsg-1_i386.deb
libspf2_1.2.5.dfsg-1.diff.gz
  to pool/main/libs/libspf2/libspf2_1.2.5.dfsg-1.diff.gz
libspf2_1.2.5.dfsg-1.dsc
  to pool/main/libs/libspf2/libspf2_1.2.5.dfsg-1.dsc
libspf2_1.2.5.dfsg.orig.tar.gz
  to pool/main/libs/libspf2/libspf2_1.2.5.dfsg.orig.tar.gz
spfquery_1.2.5.dfsg-1_i386.deb
  to pool/main/libs/libspf2/spfquery_1.2.5.dfsg-1_i386.deb

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Magnus Holmgren <email address hidden> (supplier of updated libspf2 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sat, 24 Mar 2007 14:51:23 +0100
Source: libspf2
Binary: spfquery libspf2-2 libspf2-dev
Architecture: source i386
Version: 1.2.5.dfsg-1
Distribution: unstable
Urgency: low
Maintainer: Magnus Holmgren <email address hidden>
Changed-By: Magnus Holmgren <email address hidden>
Description:
 libspf2-2 - library for validating mail senders with SPF
 libspf2-dev - Header and development libraries for libspf2
 spfquery - query SPF (Sender Policy Framework) to validate mail senders
Closes: 258360 306875 372629 392793 393390 405885 410592
Changes:
 libspf2 (1.2.5.dfsg-1) unstable; urgency=low
 .
   * New maintainer (Closes: #372629).
   * Repacked .orig.tar.gz without non-free IETF Internet Draft (Closes:
     #393390).
   * Merge updates from Ubuntu:
     - Add debian/compat and Build-depend on debhelper >= 5.
     - Add alternatives handling for /usr/bin/spfquery (Closes: #306875).
       - Conflict on libmail-spf-query-perl << 1:1.999.1-3.
       - Add postinst and prerm scripts.
     - debian/copyright: update author address.
     - debian/control: add final newline.
   * debian/control:
     * Change description of spfquery (Closes: #410592).
     * Add homepage to package descriptions.
   * Reduce Debian diff by changing line endings with sed instead.
   * Further reduce Debian diff by eliminating config.sub and config.guess
     from there. Build-depend on autotools-dev to ensure up-to-date
     versions instead.
   * The autogenerated spf_lib_version.h was put in the wrong directory,
     while there was a static spf_lib_version.h in the right directory.
     Fix that with some rules in debian/rules.
   * Use dpatch to manage patches.
   * Apply 20_64bit_types.dpatch to hopefully prevent segfaults on 64-bit
     architectures (Closes: #392793). Thanks to Thomas Jacob, Carsten
     Koch-Mauthe and Herber...

Read more...

Changed in libspf2:
status: Unconfirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.