Commit de28becd authored by Jérome Perrin's avatar Jérome Perrin

component/openssl: run test suite at compile time

this depends on perl Text::Template module
parent d7d7a3bd
...@@ -8,7 +8,7 @@ extends = ...@@ -8,7 +8,7 @@ extends =
../ca-certificates/buildout.cfg ../ca-certificates/buildout.cfg
../coreutils/buildout.cfg ../coreutils/buildout.cfg
../patch/buildout.cfg ../patch/buildout.cfg
../perl/buildout.cfg ../perl-Text-Template/buildout.cfg
../zlib/buildout.cfg ../zlib/buildout.cfg
parts = parts =
...@@ -37,13 +37,14 @@ configure-options = ...@@ -37,13 +37,14 @@ configure-options =
make-options = make-options =
SHARED_LDFLAGS='-Wl,-rpath=${:location}/lib -Wl,-rpath=${zlib:location}/lib' SHARED_LDFLAGS='-Wl,-rpath=${:location}/lib -Wl,-rpath=${zlib:location}/lib'
make-targets = make-targets =
install_sw install_ssldirs && test install_sw install_ssldirs &&
rm -f ${:certs}/* && rm -f ${:certs}/* &&
for i in ${ca-certificates:location}/certs/*/*.crt; do for i in ${ca-certificates:location}/certs/*/*.crt; do
ln -sv $i ${:certs}/`${:location}/bin/openssl x509 -hash -noout -in $i`.0 ln -sv $i ${:certs}/`${:location}/bin/openssl x509 -hash -noout -in $i`.0
; done ; done
environment = environment =
PERL=${perl:location}/bin/perl PERL=${perl-Text-Template:perl-bin}
[openssl-output] [openssl-output]
# Shared binary location to ease migration # Shared binary location to ease migration
...@@ -80,9 +81,9 @@ configure-options = ...@@ -80,9 +81,9 @@ configure-options =
make-options = make-options =
SHARED_LDFLAGS='-Wl,-rpath=${:location}/lib -Wl,-rpath=${zlib:location}/lib' SHARED_LDFLAGS='-Wl,-rpath=${:location}/lib -Wl,-rpath=${zlib:location}/lib'
make-targets = make-targets =
install_sw && x=${:location}/etc/ssl/certs && rm -f $x/* && test install_sw && x=${:location}/etc/ssl/certs && rm -f $x/* &&
for i in ${ca-certificates:location}/certs/*/*.crt; do for i in ${ca-certificates:location}/certs/*/*.crt; do
ln -sfv $i $x/`${:location}/bin/openssl x509 -hash -noout -in $i`.0 ln -sfv $i $x/`${:location}/bin/openssl x509 -hash -noout -in $i`.0
; done ; done
environment = environment =
PERL=${perl:location}/bin/perl PERL=${perl-Text-Template:perl-bin}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment