Bug 179508 - news/nzbget - configure is unable to locate base openssl headers and libs
Summary: news/nzbget - configure is unable to locate base openssl headers and libs
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: William Grzybowski
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-12 10:50 UTC by Nicolas Raspail
Modified: 2013-06-26 23:00 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Raspail 2013-06-12 10:50:02 UTC
	If I want to use the OpenSSL options, the configure script failed because it cannont find the openssl headers and lib with pkg-config :
checking for openssl... configure: error: Package requirements (openssl) were not met:

Package openssl was not found in the pkg-config search path.
Perhaps you should add the directory containing `openssl.pc'
to the PKG_CONFIG_PATH environment variable
Package 'openssl', required by 'world', not found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables openssl_CFLAGS
and openssl_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

I'm using openssl from base system

Fix: 

Replace the line CONFIGURE_ARGS+= --with-tlslib=OpenSSL with CONFIGURE_ARGS+= --with-tlslib=OpenSSL --with-openssl-includes=/usr/include/openssl --with-openssl-libraries=/usr/lib/openssl
How-To-Repeat: 	Try to install nzbget 10.2 with OpenSSL enable
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-06-12 10:50:14 UTC
Maintainer of news/nzbget,

Please note that PR ports/179508 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/179508

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2013-06-12 10:50:15 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 William Grzybowski freebsd_committer freebsd_triage 2013-06-12 15:59:02 UTC
Responsible Changed
From-To: freebsd-ports-bugs->wg

I'll take it.
Comment 4 dfilter service freebsd_committer freebsd_triage 2013-06-26 22:54:03 UTC
Author: wg
Date: Wed Jun 26 21:53:51 2013
New Revision: 321819
URL: http://svnweb.freebsd.org/changeset/ports/321819

Log:
  news/nzbget: fix build with openssl
  
  - Fix build with OpenSSL, path to base lib
  
  PR:		ports/179508
  Submitted by:	Nicolas Raspail <nicolas@whisperingvault.net>
  Approved by:	maintainer (timeout)

Modified:
  head/news/nzbget/Makefile

Modified: head/news/nzbget/Makefile
==============================================================================
--- head/news/nzbget/Makefile	Wed Jun 26 21:18:53 2013	(r321818)
+++ head/news/nzbget/Makefile	Wed Jun 26 21:53:51 2013	(r321819)
@@ -39,7 +39,10 @@ OPTIONS_DEFAULT=	PAR GNUTLS
 .endif
 
 .if ${PORT_OPTIONS:MOPENSSL}
- CONFIGURE_ARGS+= --with-tlslib=OpenSSL
+ USE_OPENSSL=	yes
+ CONFIGURE_ARGS+= --with-tlslib=OpenSSL \
+		--with-openssl-includes=${OPENSSLINC} \
+		--with-openssl-libraries=${OPENSSLLIB}
 .endif
 
 .if ${PORT_OPTIONS:MGNUTLS}
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 5 William Grzybowski freebsd_committer freebsd_triage 2013-06-26 22:58:52 UTC
State Changed
From-To: feedback->closed

Committed, with minor changes. Thanks!