use git for all gnupg dependencies (#2894)

This commit is contained in:
Catena cyber 2019-09-27 17:06:01 +02:00 committed by jonathanmetzman
parent ad07d59f4b
commit 0c09c35920
2 changed files with 21 additions and 22 deletions

View File

@ -16,14 +16,13 @@
FROM gcr.io/oss-fuzz-base/base-builder
MAINTAINER p.antoine@catenacyber.fr
RUN apt-get update && apt-get install -y make autoconf automake libtool gettext bzip2 gnupg
RUN apt-get update && apt-get install -y make autoconf automake libtool gettext bzip2 gnupg bison flex
#wait for zesty, or backport ?
RUN curl -O https://www.gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-1.32.tar.bz2
RUN curl -O https://www.gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.8.2.tar.bz2
RUN curl -O https://www.gnupg.org/ftp/gcrypt/libassuan/libassuan-2.5.1.tar.bz2
RUN curl -O https://www.gnupg.org/ftp/gcrypt/libksba/libksba-1.3.5.tar.bz2
RUN curl -O https://www.gnupg.org/ftp/gcrypt/npth/npth-1.5.tar.bz2
RUN git clone --depth 1 git://git.gnupg.org/libgpg-error.git libgpg-error
RUN git clone --depth 1 git://git.gnupg.org/libgcrypt.git libgcrypt
RUN git clone --depth 1 git://git.gnupg.org/libassuan.git libassuan
RUN git clone --depth 1 git://git.gnupg.org/libksba.git libksba
RUN git clone --depth 1 git://git.gnupg.org/npth.git npth
RUN git clone --depth 1 git://git.gnupg.org/gnupg.git gnupg

View File

@ -17,33 +17,33 @@
#compile and link statically dependencies
cd ..
tar -xvf libgpg-error-1.32.tar.bz2
cd libgpg-error-1.32
./configure --enable-static --disable-shared
cd libgpg-error
./autogen.sh
./configure --disable-doc --enable-static --disable-shared
make
make install
cd ..
tar -xvf libgcrypt-1.8.2.tar.bz2
cd libgcrypt-1.8.2
./configure --enable-static --disable-shared
cd libgcrypt
./autogen.sh
./configure --disable-doc --enable-static --disable-shared
make
make install
cd ..
tar -xvf libassuan-2.5.1.tar.bz2
cd libassuan-2.5.1
./configure --enable-static --disable-shared
cd libassuan
./autogen.sh
./configure --disable-doc --enable-static --disable-shared
make
make install
cd ..
tar -xvf libksba-1.3.5.tar.bz2
cd libksba-1.3.5
./configure --enable-static --disable-shared
cd libksba
./autogen.sh
./configure --disable-doc --enable-static --disable-shared
make
make install
cd ..
tar -xvf npth-1.5.tar.bz2
cd npth-1.5
./configure --enable-static --disable-shared
cd npth
./autogen.sh
./configure --disable-doc --enable-static --disable-shared
make
make install
cd ..