Skip to content

Commit e93476e

Browse files
committed
Remove gpgme and assuan
These two dependencies are used by metalink only. In fact, after metalink is being removed, gpgme is disabled automatically.
1 parent 4e3c8f9 commit e93476e

2 files changed

Lines changed: 8 additions & 106 deletions

File tree

‎build-x86.sh‎

Lines changed: 4 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -258,53 +258,6 @@ if [ ! -f "$INSTALL_PATH"/lib/libgpg-error.a ]; then
258258
cd ..
259259
fi
260260
# -----------------------------------------------------------------------------
261-
# build assuan
262-
# -----------------------------------------------------------------------------
263-
if [ ! -f "$INSTALL_PATH"/lib/libassuan.a ]; then
264-
wget -nc https://gnupg.org/ftp/gcrypt/libassuan/libassuan-3.0.2.tar.bz2
265-
tar -xf libassuan-3.0.2.tar.bz2
266-
cd libassuan-3.0.2 || exit
267-
./configure \
268-
--host=$WGET_MINGW_HOST \
269-
--disable-shared \
270-
--prefix="$INSTALL_PATH" \
271-
--enable-static \
272-
--disable-doc \
273-
--with-libgpg-error-prefix="$INSTALL_PATH"
274-
(($? != 0)) && { printf '%s\n' "[assuan] configure failed"; exit 1; }
275-
make -j $CORE
276-
(($? != 0)) && { printf '%s\n' "[assuan] make failed"; exit 1; }
277-
make install
278-
(($? != 0)) && { printf '%s\n' "[assuan] make install"; exit 1; }
279-
cd ..
280-
fi
281-
# -----------------------------------------------------------------------------
282-
# build gpgme
283-
# -----------------------------------------------------------------------------
284-
if [ ! -f "$INSTALL_PATH"/lib/libgpgme.a ]; then
285-
wget -nc https://gnupg.org/ftp/gcrypt/gpgme/gpgme-2.0.1.tar.bz2
286-
tar -xf gpgme-2.0.1.tar.bz2
287-
cd gpgme-2.0.1 || exit
288-
./configure \
289-
--host=$WGET_MINGW_HOST \
290-
--disable-shared \
291-
--prefix="$INSTALL_PATH" \
292-
--enable-static \
293-
--with-libgpg-error-prefix="$INSTALL_PATH" \
294-
--disable-gpg-test \
295-
--disable-g13-test \
296-
--disable-gpgsm-test \
297-
--disable-gpgconf-test \
298-
--disable-glibtest \
299-
--with-libassuan-prefix="$INSTALL_PATH"
300-
(($? != 0)) && { printf '%s\n' "[gpgme] configure failed"; exit 1; }
301-
make -j $CORE
302-
(($? != 0)) && { printf '%s\n' "[gpgme] make failed"; exit 1; }
303-
make install
304-
(($? != 0)) && { printf '%s\n' "[gpgme] make install"; exit 1; }
305-
cd ..
306-
fi
307-
# -----------------------------------------------------------------------------
308261
# build zlib
309262
# -----------------------------------------------------------------------------
310263
if [ ! -f "$INSTALL_PATH"/lib/libz.a ]; then
@@ -358,7 +311,7 @@ CFLAGS="-I$INSTALL_PATH/include -D_WIN32_WINNT=0x601 -DGNUTLS_INTERNAL_BUILD=1 -
358311
CARES_LIBS="-L$INSTALL_PATH/lib -lcares" \
359312
PCRE2_CFLAGS=$CFLAGS \
360313
PCRE2_LIBS="-L$INSTALL_PATH/lib -lpcre2-8" \
361-
LIBS="-L$INSTALL_PATH/lib -lbcrypt -lhogweed -lnettle -lgmp -ltasn1 -lidn2 -lpsl -liphlpapi -lcares -lunistring -liconv -lpcre2-8 -lgpgme -lassuan -lgpg-error -lz -lcrypt32 -lpthread" \
314+
LIBS="-L$INSTALL_PATH/lib -lbcrypt -lhogweed -lnettle -lgmp -ltasn1 -lidn2 -lpsl -liphlpapi -lcares -lunistring -liconv -lpcre2-8 -lgpg-error -lz -lcrypt32 -lpthread" \
362315
./configure \
363316
--host=$WGET_MINGW_HOST \
364317
--prefix="$INSTALL_PATH" \
@@ -370,8 +323,7 @@ CFLAGS="-I$INSTALL_PATH/include -D_WIN32_WINNT=0x601 -DGNUTLS_INTERNAL_BUILD=1 -
370323
--with-included-libunistring \
371324
--with-libidn \
372325
--with-cares \
373-
--with-libpsl \
374-
--with-gpgme-prefix="$INSTALL_PATH"
326+
--with-libpsl
375327
(($? != 0)) && { printf '%s\n' "[wget gnutls] configure failed"; exit 1; }
376328
make clean
377329
make -j $CORE
@@ -397,7 +349,7 @@ CFLAGS="-I$INSTALL_PATH/include -D_WIN32_WINNT=0x601 -DCARES_STATICLIB=1 -DPCRE2
397349
CARES_LIBS="-L$INSTALL_PATH/lib -lcares" \
398350
PCRE2_CFLAGS=$CFLAGS \
399351
PCRE2_LIBS="-L$INSTALL_PATH/lib -lpcre2-8" \
400-
LIBS="-L$INSTALL_PATH/lib -lbcrypt -lws2_32 -lidn2 -lpsl -liphlpapi -lcares -lunistring -liconv -lpcre2-8 -lgpgme -lassuan -lgpg-error -lcrypto -lssl -lz -lcrypt32" \
352+
LIBS="-L$INSTALL_PATH/lib -lbcrypt -lws2_32 -lidn2 -lpsl -liphlpapi -lcares -lunistring -liconv -lpcre2-8 -lgpg-error -lcrypto -lssl -lz -lcrypt32" \
401353
./configure \
402354
--host=$WGET_MINGW_HOST \
403355
--prefix="$INSTALL_PATH" \
@@ -410,8 +362,7 @@ CFLAGS="-I$INSTALL_PATH/include -D_WIN32_WINNT=0x601 -DCARES_STATICLIB=1 -DPCRE2
410362
--with-libidn \
411363
--with-cares \
412364
--with-libpsl \
413-
--with-openssl \
414-
--with-gpgme-prefix="$INSTALL_PATH"
365+
--with-openssl
415366
(($? != 0)) && { printf '%s\n' "[wget openssl] configure failed"; exit 1; }
416367
make -j $CORE
417368
(($? != 0)) && { printf '%s\n' "[wget openssl] make failed"; exit 1; }

‎build.sh‎

Lines changed: 4 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -258,53 +258,6 @@ if [ ! -f "$INSTALL_PATH"/lib/libgpg-error.a ]; then
258258
cd ..
259259
fi
260260
# -----------------------------------------------------------------------------
261-
# build assuan
262-
# -----------------------------------------------------------------------------
263-
if [ ! -f "$INSTALL_PATH"/lib/libassuan.a ]; then
264-
wget -nc https://gnupg.org/ftp/gcrypt/libassuan/libassuan-3.0.2.tar.bz2
265-
tar -xf libassuan-3.0.2.tar.bz2
266-
cd libassuan-3.0.2 || exit
267-
./configure \
268-
--host=$WGET_MINGW_HOST \
269-
--disable-shared \
270-
--prefix="$INSTALL_PATH" \
271-
--enable-static \
272-
--disable-doc \
273-
--with-libgpg-error-prefix="$INSTALL_PATH"
274-
(($? != 0)) && { printf '%s\n' "[assuan] configure failed"; exit 1; }
275-
make -j $CORE
276-
(($? != 0)) && { printf '%s\n' "[assuan] make failed"; exit 1; }
277-
make install
278-
(($? != 0)) && { printf '%s\n' "[assuan] make install"; exit 1; }
279-
cd ..
280-
fi
281-
# -----------------------------------------------------------------------------
282-
# build gpgme
283-
# -----------------------------------------------------------------------------
284-
if [ ! -f "$INSTALL_PATH"/lib/libgpgme.a ]; then
285-
wget -nc https://gnupg.org/ftp/gcrypt/gpgme/gpgme-2.0.1.tar.bz2
286-
tar -xf gpgme-2.0.1.tar.bz2
287-
cd gpgme-2.0.1 || exit
288-
./configure \
289-
--host=$WGET_MINGW_HOST \
290-
--disable-shared \
291-
--prefix="$INSTALL_PATH" \
292-
--enable-static \
293-
--with-libgpg-error-prefix="$INSTALL_PATH" \
294-
--disable-gpg-test \
295-
--disable-g13-test \
296-
--disable-gpgsm-test \
297-
--disable-gpgconf-test \
298-
--disable-glibtest \
299-
--with-libassuan-prefix="$INSTALL_PATH"
300-
(($? != 0)) && { printf '%s\n' "[gpgme] configure failed"; exit 1; }
301-
make -j $CORE
302-
(($? != 0)) && { printf '%s\n' "[gpgme] make failed"; exit 1; }
303-
make install
304-
(($? != 0)) && { printf '%s\n' "[gpgme] make install"; exit 1; }
305-
cd ..
306-
fi
307-
# -----------------------------------------------------------------------------
308261
# build zlib
309262
# -----------------------------------------------------------------------------
310263
if [ ! -f "$INSTALL_PATH"/lib/libz.a ]; then
@@ -357,7 +310,7 @@ CFLAGS="-I$INSTALL_PATH/include -DGNUTLS_INTERNAL_BUILD=1 -DCARES_STATICLIB=1 -D
357310
CARES_LIBS="-L$INSTALL_PATH/lib -lcares" \
358311
PCRE2_CFLAGS=$CFLAGS \
359312
PCRE2_LIBS="-L$INSTALL_PATH/lib -lpcre2-8" \
360-
LIBS="-L$INSTALL_PATH/lib -lhogweed -lnettle -lgmp -ltasn1 -lidn2 -lpsl -liphlpapi -lcares -lunistring -liconv -lpcre2-8 -lgpgme -lassuan -lgpg-error -lz -lcrypt32 -lpthread" \
313+
LIBS="-L$INSTALL_PATH/lib -lhogweed -lnettle -lgmp -ltasn1 -lidn2 -lpsl -liphlpapi -lcares -lunistring -liconv -lpcre2-8 -lgpg-error -lz -lcrypt32 -lpthread" \
361314
./configure \
362315
--host=$WGET_MINGW_HOST \
363316
--prefix="$INSTALL_PATH" \
@@ -369,8 +322,7 @@ CFLAGS="-I$INSTALL_PATH/include -DGNUTLS_INTERNAL_BUILD=1 -DCARES_STATICLIB=1 -D
369322
--with-included-libunistring \
370323
--with-libidn \
371324
--with-cares \
372-
--with-libpsl \
373-
--with-gpgme-prefix="$INSTALL_PATH"
325+
--with-libpsl
374326
(($? != 0)) && { printf '%s\n' "[wget gnutls] configure failed"; exit 1; }
375327
make clean
376328
make -j $CORE
@@ -396,7 +348,7 @@ CFLAGS="-I$INSTALL_PATH/include -DCARES_STATICLIB=1 -DPCRE2_STATIC=1 -DNDEBUG -O
396348
CARES_LIBS="-L$INSTALL_PATH/lib -lcares" \
397349
PCRE2_CFLAGS=$CFLAGS \
398350
PCRE2_LIBS="-L$INSTALL_PATH/lib -lpcre2-8" \
399-
LIBS="-L$INSTALL_PATH/lib -L$INSTALL_PATH/lib64 -lidn2 -lpsl -liphlpapi -lcares -lunistring -liconv -lpcre2-8 -lgpgme -lassuan -lgpg-error -lcrypto -lssl -lz -lcrypt32" \
351+
LIBS="-L$INSTALL_PATH/lib -L$INSTALL_PATH/lib64 -lidn2 -lpsl -liphlpapi -lcares -lunistring -liconv -lpcre2-8 -lgpg-error -lcrypto -lssl -lz -lcrypt32" \
400352
./configure \
401353
--host=$WGET_MINGW_HOST \
402354
--prefix="$INSTALL_PATH" \
@@ -409,8 +361,7 @@ CFLAGS="-I$INSTALL_PATH/include -DCARES_STATICLIB=1 -DPCRE2_STATIC=1 -DNDEBUG -O
409361
--with-libidn \
410362
--with-cares \
411363
--with-libpsl \
412-
--with-openssl \
413-
--with-gpgme-prefix="$INSTALL_PATH"
364+
--with-openssl
414365
(($? != 0)) && { printf '%s\n' "[wget openssl] configure failed"; exit 1; }
415366
make -j $CORE
416367
(($? != 0)) && { printf '%s\n' "[wget openssl] make failed"; exit 1; }

0 commit comments

Comments
 (0)