Bug 201949 - mail/claws-mail: fix libarchive dependency
Summary: mail/claws-mail: fix libarchive dependency
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Pawel Pekala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-28 18:57 UTC by Tijl Coosemans
Modified: 2015-07-31 21:00 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (pawel)


Attachments
patch (1.59 KB, patch)
2015-07-28 18:57 UTC, Tijl Coosemans
no flags Details | Diff
patch (1.35 KB, patch)
2015-07-28 20:10 UTC, Tijl Coosemans
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tijl Coosemans freebsd_committer 2015-07-28 18:57:10 UTC
Created attachment 159343 [details]
patch

The claws-mail configure script looks for libarchive using AC_SEARCH_LIBS which adds -larchive to the LIBS variable which causes libarchive to be linked into every executable/library/plugin.  The attached patch changes the configure script so it saves/restores LIBS around the libarchive test.  It already does this around the libcrypt test.

The patch also adds USES=libarchive to claws-mail-archiver.

PORTREVISION should be bumped on all mail/claws-mail* ports, but I assume this patch will be included in the update to 3.12.0.
Comment 1 Pawel Pekala freebsd_committer 2015-07-28 19:42:36 UTC
Working on update to 3.12.0 right now, yes. But it seems you've
attached wrong patch?
Comment 2 Tijl Coosemans freebsd_committer 2015-07-28 20:10:55 UTC
Created attachment 159346 [details]
patch

Oh right, that was for another bug.  This should be the right one.
Comment 3 commit-hook freebsd_committer 2015-07-31 20:58:46 UTC
A commit references this bug:

Author: pawel
Date: Fri Jul 31 20:58:12 UTC 2015
New revision: 393374
URL: https://svnweb.freebsd.org/changeset/ports/393374

Log:
  - Update Claws Mail & plugins to version 3.12.0
  - Fetch distfile from project site, SF distribution is postponed till
    situation with site is clear
  - Include configure patch that prevents linking all binaries to libarchive [1]
  - Switch archiver plugin to USES=libarchive [1]
  - Add new Manage Sieve plugin which allows manipulation of IMAP filters
  - Mark gdata plugin as IGNOREd, needs newer version of devel/libgdata
    library, which is not in ports yet

  Release notes: http://claws-mail.org/news.php

  PR:		201949 [1]
  Submitted by:	tijl [1]

Changes:
  head/mail/Makefile
  head/mail/claws-mail/Makefile.claws
  head/mail/claws-mail/distinfo
  head/mail/claws-mail/files/patch-configure
  head/mail/claws-mail/pkg-plist
  head/mail/claws-mail-archiver/Makefile
  head/mail/claws-mail-fetchinfo/pkg-descr
  head/mail/claws-mail-gdata/Makefile
  head/mail/claws-mail-managesieve/
  head/mail/claws-mail-managesieve/Makefile
  head/mail/claws-mail-managesieve/pkg-descr
  head/mail/claws-mail-pdf_viewer/Makefile
Comment 4 Pawel Pekala freebsd_committer 2015-07-31 21:00:03 UTC
Fixed, thanks.