Bug 227860

Summary: net/netatalk3 - build fails with libressl 2.7.x
Product: Ports & Packages Reporter: elij <elij+freebsd>
Component: Individual Port(s)Assignee: Joe Marcus Clarke <marcus>
Status: Closed FIXED    
Severity: Affects Only Me CC: brnrd
Priority: --- Flags: bugzilla: maintainer-feedback? (marcus)
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 226843    
Attachments:
Description Flags
svn diff for net/netatalk3 brnrd: maintainer-approval?

Description elij 2018-04-29 20:46:50 UTC
netatalk3 currently fails to build with libressl > 2.7.0

I believe a change is required to files/patch-etc_uams_openssl__compat.h

Currently:

~~~
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) 
~~~

I think this is appropriate:

~~~
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL)
~~~

Once changed, build is successful for me.
Comment 1 Bernard Spil freebsd_committer freebsd_triage 2018-05-07 18:10:34 UTC
Hi Elij,

Thanks for the notification! I'll be adding this to https://wiki.freebsd.org/LibreSSL/2.7 and test it for inclusion in TrueOS and HardenedBSD ports trees.
Comment 2 Bernard Spil freebsd_committer freebsd_triage 2018-05-07 19:55:15 UTC
Created attachment 193162 [details]
svn diff for net/netatalk3
Comment 3 commit-hook freebsd_committer freebsd_triage 2018-05-11 20:15:21 UTC
A commit references this bug:

Author: marcus
Date: Fri May 11 20:14:55 UTC 2018
New revision: 469690
URL: https://svnweb.freebsd.org/changeset/ports/469690

Log:
  Fix the build with libressl > 2.7.0.

  PR:		227860
  Submitted by:	brnrd

Changes:
  head/net/netatalk3/files/patch-etc_uams_openssl__compat.h
Comment 4 Joe Marcus Clarke freebsd_committer freebsd_triage 2018-05-11 20:15:32 UTC
Committed, thanks!