Skip to content

Commit ea47af5

Browse files
committed
opensc: build with OpenPACE
1 parent 1e77a78 commit ea47af5

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

projects/opensc/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
################################################################################
1616

1717
FROM gcr.io/oss-fuzz-base/base-builder
18-
RUN apt-get update && apt-get install -y pcscd libccid libpcsclite-dev libssl-dev libreadline-dev autoconf automake build-essential docbook-xsl xsltproc libtool pkg-config zlib1g-dev
18+
RUN apt-get update && apt-get install -y pcscd libccid libpcsclite-dev libssl-dev libreadline-dev autoconf automake build-essential docbook-xsl xsltproc libtool pkg-config zlib1g-dev help2man gengetopt
1919
RUN git clone --depth 1 --single-branch --branch master https://github.com/OpenSC/OpenSC opensc
2020
WORKDIR opensc
2121
COPY build.sh run_tests.sh $SRC/

projects/opensc/build.sh

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,21 @@
1515
#
1616
################################################################################
1717

18+
# Build OpenPACE
19+
if [ -d "openpace" ]; then
20+
rm -rf "openpace"
21+
fi
22+
git clone https://github.com/frankmorgner/openpace.git
23+
pushd openpace
24+
autoreconf --verbose --install
25+
./configure --enable-static --disable-shared --prefix=/usr
26+
make
27+
make install
28+
popd
29+
1830
./bootstrap
1931
# FIXME FUZZING_LIBS="$LIB_FUZZING_ENGINE" fails with some missing C++ library, I don't know how to fix this
20-
./configure --enable-tests --disable-optimization --disable-shared --disable-pcsc --enable-ctapi --enable-fuzzing FUZZING_LIBS="$LIB_FUZZING_ENGINE"
32+
./configure --disable-optimization --enable-static --disable-shared --disable-pcsc --enable-ctapi --enable-openpace --enable-fuzzing FUZZING_LIBS="$LIB_FUZZING_ENGINE"
2133
make -j4
2234

2335
fuzzerFiles=$(find $SRC/opensc/src/tests/fuzzing/ -name "fuzz_*.c")

0 commit comments

Comments
 (0)