Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save fayland/8768b7d7405bb1de68143b4821fd0791 to your computer and use it in GitHub Desktop.
Save fayland/8768b7d7405bb1de68143b4821fd0791 to your computer and use it in GitHub Desktop.
➜ perl-Crypt-OpenSSL-VerifyX509 git:(master) ✗ gitdiff
diff --git a/Makefile.PL b/Makefile.PL
index c2d26d3..aa85a4e 100755
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -51,9 +51,12 @@ if (-d "/usr/include/openssl") {
} elsif (-d "/usr/local/ssl/include") {
cc_inc_paths('/usr/local/ssl/include');
cc_lib_paths('/usr/local/ssl/lib');
+} elsif (-d "/usr/local/opt/openssl/include") {
+ cc_inc_paths('/usr/local/opt/openssl/include');
+ # cc_lib_paths('/usr/local/opt/openssl/lib');
}
-cc_lib_links('crypto');
+# cc_lib_links('crypto');
cc_optimize_flags('-O3 -Wall -Werror');
requires 'Crypt::OpenSSL::X509';
➜ perl-Crypt-OpenSSL-VerifyX509 git:(master) ✗ perl Makefile.PL
include /Users/fayland/tmp/perl-Crypt-OpenSSL-VerifyX509/inc/Module/Install.pm
/usr/lib/libcrypto.dylib
Use of uninitialized value $_ in concatenation (.) or string at Makefile.PL line 27.
Found `/libcrypto.dylib'.
include inc/Module/Install/Metadata.pm
include inc/Module/Install/Base.pm
include inc/Module/Install/Makefile.pm
include inc/Module/Install/External.pm
include inc/Module/Install/Can.pm
include inc/Module/Install/Compiler.pm
include inc/Module/Install/AuthorRequires.pm
include inc/Module/Install/AuthorTests.pm
include inc/Module/Install/WriteAll.pm
include inc/Module/Install/Win32.pm
include inc/Module/Install/Fetch.pm
Checking if your kit is complete...
Warning: the following files are missing in your kit:
VerifyX509.bs
VerifyX509.c
VerifyX509.o
Please inform the author.
Generating a Unix-style Makefile
Writing Makefile for Crypt::OpenSSL::VerifyX509
Writing MYMETA.yml and MYMETA.json
Writing META.yml
➜ perl-Crypt-OpenSSL-VerifyX509 git:(master) ✗ make
cp VerifyX509.pm blib/lib/Crypt/OpenSSL/VerifyX509.pm
Running Mkbootstrap for VerifyX509 ()
chmod 644 "VerifyX509.bs"
"/Users/fayland/.plenv/versions/5.24.0/bin/perl5.24.0" "-Iinc" -MExtUtils::Command::MM -e 'cp_nonempty' -- VerifyX509.bs blib/arch/auto/Crypt/OpenSSL/VerifyX509/VerifyX509.bs 644
"/Users/fayland/.plenv/versions/5.24.0/bin/perl5.24.0" "-Iinc" "/Users/fayland/.plenv/versions/5.24.0/lib/perl5/5.24.0/ExtUtils/xsubpp" -typemap '/Users/fayland/.plenv/versions/5.24.0/lib/perl5/5.24.0/ExtUtils/typemap' -typemap '/Users/fayland/tmp/perl-Crypt-OpenSSL-VerifyX509/typemap' VerifyX509.xs > VerifyX509.xsc
mv VerifyX509.xsc VerifyX509.c
cc -c -I/usr/local/opt/openssl/include -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -O3 -Wall -Werror -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" "-I/Users/fayland/.plenv/versions/5.24.0/lib/perl5/5.24.0/darwin-2level/CORE" VerifyX509.c
rm -f blib/arch/auto/Crypt/OpenSSL/VerifyX509/VerifyX509.bundle
env MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined dynamic_lookup -L/usr/local/lib -fstack-protector-strong -o blib/arch/auto/Crypt/OpenSSL/VerifyX509/VerifyX509.bundle VerifyX509.o \
\
ld: warning: object file (VerifyX509.o) was built for newer OSX version (10.12) than being linked (10.4)
chmod 755 blib/arch/auto/Crypt/OpenSSL/VerifyX509/VerifyX509.bundle
Manifying 1 pod document
➜ perl-Crypt-OpenSSL-VerifyX509 git:(master) ✗ make test
"/Users/fayland/.plenv/versions/5.24.0/bin/perl5.24.0" "-Iinc" -MExtUtils::Command::MM -e 'cp_nonempty' -- VerifyX509.bs blib/arch/auto/Crypt/OpenSSL/VerifyX509/VerifyX509.bs 644
PERL_DL_NONLAZY=1 "/Users/fayland/.plenv/versions/5.24.0/bin/perl5.24.0" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t t/author/*.t
t/00-basic.t .............. ok
t/01-load-ca.t ............ ok
t/02-verify-good-cert.t ... ok
t/03-verify-bad-cert.t .... ok
t/04-load-broken-cert.t ... ok
t/05-verify-not-a-cert.t .. ok
t/author/notabs.t ......... ok
t/author/pod.t ............ ok
t/author/podcoverage.t .... ok
All tests successful.
Files=9, Tests=24, 1 wallclock secs ( 0.04 usr 0.02 sys + 0.39 cusr 0.07 csys = 0.52 CPU)
Result: PASS
➜ perl-Crypt-OpenSSL-VerifyX509 git:(master) ✗
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment