You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Benedikt Ritter (JIRA)" <ji...@apache.org> on 2016/11/26 09:11:59 UTC

[jira] [Commented] (CRYPTO-132) Instructions in BUILDING.txt don't work on MacOS

    [ https://issues.apache.org/jira/browse/CRYPTO-132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15697605#comment-15697605 ] 

Benedikt Ritter commented on CRYPTO-132:
----------------------------------------

More information on this issue:

{code}
~/w/a/c/commons-crypto git:(master) > brew info openssl101
homebrew/versions/openssl101: stable 1.0.1u (bottled) [keg-only]
SSL/TLS cryptography library
https://openssl.org
/usr/local/Cellar/openssl101/1.0.1s (1,281 files, 10.6M)
  Poured from bottle on 2016-05-08 at 14:17:54
/usr/local/Cellar/openssl101/1.0.1t (1,289 files, 10.6M)
  Poured from bottle on 2016-05-09 at 21:10:57
/usr/local/Cellar/openssl101/1.0.1t_1 (1,289 files, 10.6M)
  Poured from bottle on 2016-05-25 at 21:29:23
/usr/local/Cellar/openssl101/1.0.1u (1,293 files, 10.7M)
  Poured from bottle on 2016-10-11 at 16:12:46
From: https://github.com/Homebrew/homebrew-versions/blob/master/openssl101.rb
==> Dependencies
Build: makedepend ✔
==> Options
--universal
	Build a universal binary
--without-test
	Skip build-time tests (not recommended)
==> Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
  /usr/local/etc/openssl/certs

and run
  /usr/local/opt/openssl101/bin/c_rehash

This formula is keg-only, which means it was not symlinked into /usr/local.

Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/openssl101/lib
    CPPFLAGS: -I/usr/local/opt/openssl101/include
    PKG_CONFIG_PATH: /usr/local/opt/openssl101/lib/pkgconfig
{code}

> Instructions in BUILDING.txt don't work on MacOS
> ------------------------------------------------
>
>                 Key: CRYPTO-132
>                 URL: https://issues.apache.org/jira/browse/CRYPTO-132
>             Project: Commons Crypto
>          Issue Type: Bug
>          Components: Build
>            Reporter: Benedikt Ritter
>
> When using HomeBrew to link openssl with the --force, HomeBrew refuses to do this, indicating that our docs are not following best practices:
> {code}
> ~/w/a/c/commons-crypto git:(upstream ⚡ CRYPTO-131) 1A > brew link openssl --force
> Warning: Refusing to link: openssl
> Linking keg-only openssl means you may end up linking against the insecure,
> deprecated system OpenSSL while using the headers from Homebrew's openssl.
> Instead, pass the full include/library paths to your compiler e.g.:
>   -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib
> {code}
> Adapt the build so that it is no longer necessary to use link --force on MacOs



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)