Bug 238378 - net-mgmt/net-snmp: Fix build on 12.0 with openssl 1.0
Summary: net-mgmt/net-snmp: Fix build on 12.0 with openssl 1.0
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Ryan Steinmetz
Depends on:
Reported: 2019-06-07 09:54 UTC by Luca Pizzamiglio
Modified: 2019-07-10 09:08 UTC (History)
0 users

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

The fixing patch (723 bytes, patch)
2019-06-07 09:54 UTC, Luca Pizzamiglio
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Luca Pizzamiglio freebsd_committer 2019-06-07 09:54:13 UTC
Created attachment 204870 [details]
The fixing patch

When building net-snmp on FreeBSD 12.0, but with ssl=openssl the build fail.
This combination is not managed by the Makefile.

This patch fix the build in several cases (I tested almost every combination in my poudriere instance) and I think it's more appropriate:
* remove the hardcoded "/usr/" path for openssl, but using the OPENSSL_BASE variable
* apply the openssl111 patch only with the combination os version>12 and ssl=base
Comment 1 Luca Pizzamiglio freebsd_committer 2019-07-10 09:08:19 UTC
fluffy@ committed basically the same patch after maintainer timeout