Bug 210028 - [patch] mail/spamd: use USE_OPENSSL to link against correct libcrypto
Summary: [patch] mail/spamd: use USE_OPENSSL to link against correct libcrypto
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: Olli Hauer
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2016-06-04 17:03 UTC by Adam Weinberger
Modified: 2016-06-12 19:05 UTC (History)
0 users

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


Attachments
USE_OPENSSL for spamd (1.82 KB, patch)
2016-06-04 17:03 UTC, Adam Weinberger
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Weinberger freebsd_committer freebsd_triage 2016-06-04 17:03:50 UTC
Created attachment 171016 [details]
USE_OPENSSL for spamd

spamd links against libcrypto, but without using USE_OPENSSL
it can't link against the preferred SSL implementation. The
attached patch fixes this, and bumps PORTREVISION for the
dependency change.

before:
root@lockup:~ # ldd /usr/local/libexec/spamd
        libcrypto.so.7 => /lib/libcrypto.so.7 (0x800829000)
after:
root@lockup:~ # ldd /usr/local/libexec/spamd
        libcrypto.so.37 => /usr/local/lib/libcrypto.so.37 (0x80082b000)

The attached patch also includes a couple Makefile tweaks. The
bsd.port.options.mk is converted to bsd.port.pre.mk because of
USE_OPENSSL, and the PLIST_SUB stuff that's no longer used is
removed. Also, the "${INSTALL} -d" is changed to ${MKDIR} so
that it's consistent with the ${MKDIR} below it.
Comment 1 commit-hook freebsd_committer freebsd_triage 2016-06-12 17:58:18 UTC
A commit references this bug:

Author: ohauer
Date: Sun Jun 12 17:57:38 UTC 2016
New revision: 416816
URL: https://svnweb.freebsd.org/changeset/ports/416816

Log:
  - allow build with openssl / libressl from ports
  - convert PLIST_SUB into SUB_LIST
  - bump PORTREVISION
  - small Makefile tweaks

  PR:		210028
  Submitted by:	adamw@

Changes:
  head/mail/spamd/Makefile
Comment 2 Olli Hauer freebsd_committer freebsd_triage 2016-06-12 19:05:42 UTC
Committed, Thanks!