diff options
author | Brent Cook <busterb@gmail.com> | 2014-07-10 19:41:42 -0500 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2014-07-10 19:43:04 -0500 |
commit | faaf265e849078c99fa701facf8952a5a18e12fd (patch) | |
tree | bed0cd49d8c6b74aaa3f20f2747cb138ca6aa29f /update.sh | |
parent | 2ce79c599beb6cb083893ee1052043ff34d9a27e (diff) | |
download | portable-faaf265e849078c99fa701facf8952a5a18e12fd.tar.gz portable-faaf265e849078c99fa701facf8952a5a18e12fd.tar.bz2 portable-faaf265e849078c99fa701facf8952a5a18e12fd.zip |
build fixes and simplifications
switch from submodules to plain-old-clones
remove broken biotest for now
ok beck@
Diffstat (limited to 'update.sh')
-rwxr-xr-x | update.sh | 37 |
1 files changed, 13 insertions, 24 deletions
@@ -3,15 +3,15 @@ set -e | |||
3 | 3 | ||
4 | # resync this library with the upstream project, remove old submodule dirs | 4 | # resync this library with the upstream project, remove old submodule dirs |
5 | if [ -d openbsd ]; then | 5 | if [ -d openbsd ]; then |
6 | git submodule init | 6 | (cd openbsd |
7 | git submodule update | 7 | git co master |
8 | git pull) | ||
8 | else | 9 | else |
9 | if [ -z "$LIBRESSL_GIT" ]; then | 10 | if [ -z "$LIBRESSL_GIT" ]; then |
10 | git submodule add https://github.com/libressl-portable/openbsd.git | 11 | git clone https://github.com/libressl-portable/openbsd.git |
11 | else | 12 | else |
12 | git submodule add $LIBRESSL_GIT/openbsd | 13 | git clone $LIBRESSL_GIT/openbsd |
13 | git submodule update | 14 | fi |
14 | fi | ||
15 | fi | 15 | fi |
16 | 16 | ||
17 | libssl_src=openbsd/src/lib/libssl | 17 | libssl_src=openbsd/src/lib/libssl |
@@ -292,7 +292,7 @@ for i in ssl/ssltest.c ssl/testssl certs/ca.pem certs/server.pem; do | |||
292 | done | 292 | done |
293 | 293 | ||
294 | # do not directly run all test programs | 294 | # do not directly run all test programs |
295 | test_excludes=(aeadtest evptest pq_test ssltest arc4randomforktest) | 295 | test_excludes=(biotest aeadtest evptest pq_test ssltest arc4randomforktest) |
296 | (cd tests | 296 | (cd tests |
297 | cp Makefile.am.tpl Makefile.am | 297 | cp Makefile.am.tpl Makefile.am |
298 | 298 | ||
@@ -313,8 +313,10 @@ cp $libcrypto_regress/aead/aeadtests.txt tests | |||
313 | cp $libcrypto_regress/pqueue/expected.txt tests/pq_expected.txt | 313 | cp $libcrypto_regress/pqueue/expected.txt tests/pq_expected.txt |
314 | chmod 755 tests/testssl | 314 | chmod 755 tests/testssl |
315 | for i in "${test_excludes[@]}"; do | 315 | for i in "${test_excludes[@]}"; do |
316 | echo "TESTS += ${i}.sh" >> tests/Makefile.am | 316 | if [ -e tests/${i}.sh ]; then |
317 | echo "EXTRA_DIST += ${i}.sh" >> tests/Makefile.am | 317 | echo "TESTS += ${i}.sh" >> tests/Makefile.am |
318 | echo "EXTRA_DIST += ${i}.sh" >> tests/Makefile.am | ||
319 | fi | ||
318 | done | 320 | done |
319 | echo "EXTRA_DIST += aeadtests.txt" >> tests/Makefile.am | 321 | echo "EXTRA_DIST += aeadtests.txt" >> tests/Makefile.am |
320 | echo "EXTRA_DIST += evptests.txt" >> tests/Makefile.am | 322 | echo "EXTRA_DIST += evptests.txt" >> tests/Makefile.am |
@@ -328,19 +330,6 @@ echo "EXTRA_DIST += testssl ca.pem server.pem" >> tests/Makefile.am | |||
328 | done | 330 | done |
329 | ) | 331 | ) |
330 | 332 | ||
331 | #XXX fix this in a header and remove it. | ||
332 | # remove unsupported __bounded__ attributes | ||
333 | #bounded_excludes=( | ||
334 | # include/openssl/bio.h | ||
335 | # include/openssl/buffer.h | ||
336 | # include/openssl/md5.h | ||
337 | # include/openssl/sha.h | ||
338 | # crypto/chacha/chacha-merged.c | ||
339 | # ) | ||
340 | #for i in "${bounded_excludes[@]}"; do | ||
341 | # sed -ie 's/__attribute__.*((__bounded__.*/;/' $i | ||
342 | #done | ||
343 | |||
344 | (cd ssl | 333 | (cd ssl |
345 | sed -e "s/libssl-version/${libssl_version}/" Makefile.am.tpl > Makefile.am | 334 | sed -e "s/libssl-version/${libssl_version}/" Makefile.am.tpl > Makefile.am |
346 | for i in `ls -1 *.c|sort`; do | 335 | for i in `ls -1 *.c|sort`; do |