Bug 215047 - www/uwsgi: Support OpenSSL properly
Summary: www/uwsgi: Support OpenSSL properly
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Dmitry Sivachenko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-04 17:18 UTC by Melvyn Sopacua
Modified: 2016-12-13 11:31 UTC (History)
0 users

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


Attachments
Fix uwsgi compile/link with SSL (557 bytes, patch)
2016-12-05 11:22 UTC, Melvyn Sopacua
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Melvyn Sopacua 2016-12-04 17:18:30 UTC
Following up on github bug #1395:

The uwsgi port isn't setup to work with SSL correctly. If two API-incompatible versions are installed (in base and from ports) linking/building goes rather badly.
To prepare uwsgi for building against other SSL libraries, I'd appreciate the following patch to the Makefile:

--- www/uwsgi/Makefile.orig
+++ www/uwsgi/Makefile
@@ -12,7 +12,7 @@ COMMENT= Developer-friendly WSGI server which uses uwsgi proto
 LICENSE=   GPLv2
 LICENSE_FILE= ${WRKSRC}/LICENSE

-USES=      python
+USES=      python ssl
 USE_PYTHON=   distutils
 USE_RC_SUBR=  uwsgi

@@ -43,6 +43,8 @@ O_XML=      libxml2
 O_XML=     false
 .endif

+CFLAGS+=   -I${OPENSSLINC}
+LDFLAGS+=  ${OPENSSL_LDFLAGS}
 MAKE_ENV+= CPUCOUNT=${MAKE_JOBS_NUMBER} UWSGI_EMBED_PLUGINS=cgi

 PYSETUP=         uwsgiconfig.py
Comment 1 Melvyn Sopacua 2016-12-05 11:22:04 UTC
Created attachment 177685 [details]
Fix uwsgi compile/link with SSL

Was in a hurry, here's a proper patch.
Comment 2 commit-hook freebsd_committer freebsd_triage 2016-12-13 11:31:21 UTC
A commit references this bug:

Author: demon
Date: Tue Dec 13 11:30:52 UTC 2016
New revision: 428478
URL: https://svnweb.freebsd.org/changeset/ports/428478

Log:
  Correct OpenSSL support.

  PR:		215047
  Submitted by:	Melvyn Sopacua <m.r.sopacua@gmail.com>

Changes:
  head/www/uwsgi/Makefile
Comment 3 Dmitry Sivachenko freebsd_committer freebsd_triage 2016-12-13 11:31:41 UTC
Thanks!