update script to work rebased on cvs.openbsd.org

ok bcook@
This commit is contained in:
Bob Beck 2014-07-10 07:36:19 -06:00
parent 2b6dbc39ef
commit 985fdadd45
3 changed files with 26 additions and 17 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "openbsd"]
path = openbsd
url = /cvs.b/libressl/openbsd

1
openbsd Submodule

@ -0,0 +1 @@
Subproject commit 04628d3339049b85971a4ac25f97534f414ee10d

View File

@ -2,16 +2,20 @@
set -e
# resync this library with the upstream project, remove old submodule dirs
if [ -d openbsd ]; then
git submodule init
git submodule update
rm -fr *-openbsd
else
git submodule add /cvs.b/libressl/openbsd
git submodule update
fi
libssl_src=openbsd/libssl
libssl_regress=openbsd/libssl-regress
libc_src=openbsd/libc
libc_regress=openbsd/libc-regress
libcrypto_src=openbsd/libcrypto
libcrypto_regress=openbsd/libcrypto-regress
libssl_src=openbsd/src/lib/libssl
libssl_regress=openbsd/src/regress/lib/libssl
libc_src=openbsd/src/lib/libc
libc_regress=openbsd/src/regress/lib/libc
libcrypto_src=openbsd/src/lib/libcrypto
libcrypto_regress=openbsd/src/regress/lib/libcrypto
source $libssl_src/ssl/shlib_version
libssl_version=$major:$minor:0
@ -320,17 +324,18 @@ echo "EXTRA_DIST += testssl ca.pem server.pem" >> tests/Makefile.am
done
)
#XXX fix this in a header and remove it.
# remove unsupported __bounded__ attributes
bounded_excludes=(
include/openssl/bio.h
include/openssl/buffer.h
include/openssl/md5.h
include/openssl/sha.h
crypto/chacha/chacha-merged.c
)
for i in "${bounded_excludes[@]}"; do
sed -ie 's/__attribute__.*((__bounded__.*/;/' $i
done
#bounded_excludes=(
# include/openssl/bio.h
# include/openssl/buffer.h
# include/openssl/md5.h
# include/openssl/sha.h
# crypto/chacha/chacha-merged.c
# )
#for i in "${bounded_excludes[@]}"; do
# sed -ie 's/__attribute__.*((__bounded__.*/;/' $i
#done
(cd ssl
sed -e "s/libssl-version/${libssl_version}/" Makefile.am.tpl > Makefile.am