From 58e41d137f5bc0aff6351d08f1e0ffaceb0d790c Mon Sep 17 00:00:00 2001 From: Bryce Davis Date: Wed, 20 Jan 2016 11:03:44 -0500 Subject: [PATCH] Fix building of libp11 Instead of having a bootstrap script, libp11 requires autoconf to be run manually to generate the configure script. --- build-cac-enabled-git | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/build-cac-enabled-git b/build-cac-enabled-git index 2cd177b..feaf162 100755 --- a/build-cac-enabled-git +++ b/build-cac-enabled-git @@ -667,7 +667,15 @@ build_opensc() { # Caveat: If we don't set PKG_CONFIG_PATH, the libp11 we're about to build won't be found in subsequent build steps. export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig fi - local libs=(libp11 engine_pkcs11 OpenSC) + + # As of 20 JAN 2016 the libp11 git repo does not include a bootstrap script, but requires + # autoconf to be run. + # TODO: Watch for libp11 updates + pushd "libp11" + autoconf -vfi && ./configure && make && $Make_install + popd + + local libs=(engine_pkcs11 OpenSC) for d in "${libs[@]}"; do pushd "$d" # TODO: Make sure error handled as desired (with effective popd).