Bug 200557

Summary: [patch] make www/links1 obey WITH_OPENSSL_PORT=yes
Product: Ports & Packages Reporter: Don Lewis <truckman>
Component: Individual Port(s)Assignee: Dmitry Sivachenko <demon>
Status: Closed FIXED    
Severity: Affects Only Me Keywords: patch
Priority: --- Flags: bugzilla: maintainer-feedback? (demon)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch to make www/links1 obey WITH_OPENSSL_PORT=yes none

Description Don Lewis freebsd_committer freebsd_triage 2015-05-31 22:43:15 UTC
Created attachment 157317 [details]
patch to make www/links1 obey WITH_OPENSSL_PORT=yes

If www/links1 is built with WITH_OPENSSL_PORT=yes in /etc/make.conf, the package says that it depends on OPENSSL_PORT, but the links executable is actually linked to libcrypto.so and libssl.so from base.

Before patch:

% ldd /usr/local/bin/links
/usr/local/bin/links:
	libssl.so.6 => /usr/lib/libssl.so.6 (0x33d2b000)
	libcrypto.so.6 => /lib/libcrypto.so.6 (0x33d77000)
	libz.so.5 => /lib/libz.so.5 (0x33ed3000)
	libc.so.7 => /lib/libc.so.7 (0x33ee5000)

After patch:

% ldd /usr/local/bin/links
/usr/local/bin/links:
	libssl.so.8 => /usr/local/lib/libssl.so.8 (0x33d2b000)
	libcrypto.so.8 => /usr/local/lib/libcrypto.so.8 (0x33d8d000)
	libz.so.5 => /lib/libz.so.5 (0x33f1b000)
	libc.so.7 => /lib/libc.so.7 (0x33f2d000)
	libthr.so.3 => /lib/libthr.so.3 (0x34049000)
Comment 1 Dmitry Sivachenko freebsd_committer freebsd_triage 2015-06-01 12:31:23 UTC
Looks fine, please commit.

Thanks!
Comment 2 commit-hook freebsd_committer freebsd_triage 2015-06-01 18:02:21 UTC
A commit references this bug:

Author: truckman
Date: Mon Jun  1 18:01:55 UTC 2015
New revision: 388242
URL: https://svnweb.freebsd.org/changeset/ports/388242

Log:
  Obey WITH_OPENSSL_PORT=yes and actually link to the ports openssl library.

  PR:		200557
  Approved by:	demon (maintainer)

Changes:
  head/www/links1/Makefile