Bug 213887 - net/openntpd openntpd-6.0p1_1,2 can not be built without SSL support
Summary: net/openntpd openntpd-6.0p1_1,2 can not be built without SSL support
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: Christian Weisgerber
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-29 15:25 UTC by Simeon Simeonov
Modified: 2018-01-16 18:51 UTC (History)
2 users (show)

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


Attachments
"Working" Makefile (1.48 KB, text/plain)
2016-10-29 15:25 UTC, Simeon Simeonov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simeon Simeonov 2016-10-29 15:25:13 UTC
Created attachment 176279 [details]
"Working" Makefile

openntpd-6.0p1_1,2 is forcing the installation of libressl and that is in conflict with the installed security/openssl port.

Previously I had selected to disable RSSL (SSL support).
That option is now removed.
Comment 1 Walter Schwarzenfeld freebsd_triage 2018-01-14 00:25:18 UTC
Maintainer feedback?
Comment 2 Christian Weisgerber freebsd_committer freebsd_triage 2018-01-14 23:01:49 UTC
Building net/openntpd does not force the installation of libressl.

If libressl is not the default SSL library, then the openntpd build recurses into the libressl directory, runs the build there, and grabs the libraries from there for static linking, without ever installing libressl. This is specifically done to circumvent openssl vs libressl conflicts.

Only if you use portmaster is libressl indeed installed when building/updating openntpd. However, that is a bug in portmaster, which fails to handle path:dir:target dependencies.
Comment 3 commit-hook freebsd_committer freebsd_triage 2018-01-16 18:50:08 UTC
A commit references this bug:

Author: se
Date: Tue Jan 16 18:49:39 UTC 2018
New revision: 459202
URL: https://svnweb.freebsd.org/changeset/ports/459202

Log:
  Add support for dependencies specified with a non-standard make target.

  This is required for e.g. net/openntpd, which links against static libressl
  libraries in that port's staging area.

  In case of a port that is not fully installed, there is no clean phase for
  the dependency's port directory. The dependency tracking does not maintain
  the necessary state to perform this cleanup when the depending port is
  finished.

  PR:		213887
  Reported by:	blackmore@pichove.org (Simeon Simeonov)
  Approved by:	antoine (implicit)

Changes:
  head/ports-mgmt/portmaster/Makefile
  head/ports-mgmt/portmaster/files/patch-portmaster
Comment 4 Stefan Eßer freebsd_committer freebsd_triage 2018-01-16 18:51:47 UTC
Please test this version and re-open the PR, if the solution does not work for you or if it has undesirable side-effects.