aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2019-07-14 10:16:31 +0200
committerThomas Deutschmann <whissi@gentoo.org>2019-07-14 13:58:14 +0200
commit9506c1f4149863dfd1f121d862ec69eeeb65b4a5 (patch)
treed7a153161ec6055594c6d64d141eb33b1670b465 /gen_compile.sh
parentRework --busybox support (diff)
downloadgenkernel-9506c1f4149863dfd1f121d862ec69eeeb65b4a5.tar.gz
genkernel-9506c1f4149863dfd1f121d862ec69eeeb65b4a5.tar.bz2
genkernel-9506c1f4149863dfd1f121d862ec69eeeb65b4a5.zip
Rework --gpg support
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'gen_compile.sh')
-rwxr-xr-xgen_compile.sh46
1 files changed, 0 insertions, 46 deletions
diff --git a/gen_compile.sh b/gen_compile.sh
index 6db08dd..590c26f 100755
--- a/gen_compile.sh
+++ b/gen_compile.sh
@@ -915,52 +915,6 @@ compile_iscsi_isns() {
fi
}
-compile_gpg() {
- if [ -f "${GPG_BINCACHE}" ]
- then
- print_info 1 "$(getIndent 2)gnupg: >> Using cache ..."
- else
- [ ! -f "${GPG_SRCTAR}" ] &&
- gen_die "Could not find gnupg source tarball: ${GPG_SRCTAR}. Please place it there, or place another version, changing /etc/genkernel.conf as necessary!"
- cd "${TEMP}"
- rm -rf "${GPG_DIR}"
- tar -xf "${GPG_SRCTAR}"
- [ ! -d "${GPG_DIR}" ] &&
- gen_die "gnupg directory ${GPG_DIR} invalid"
- cd "${GPG_DIR}"
- apply_patches gnupg ${GPG_VER}
- print_info 1 "$(getIndent 2)gnupg: >> Configuring ..."
- # --enable-minimal works, but it doesn't reduce the command length much.
- # Given its history and the precision this needs, explicit is cleaner.
- LDFLAGS='-static' CFLAGS='-Os' ./configure --prefix=/ \
- --enable-static-rnd=linux --disable-dev-random --disable-asm \
- --disable-selinux-support --disable-gnupg-iconv --disable-card-support \
- --disable-agent-support --disable-bzip2 --disable-exec \
- --disable-photo-viewers --disable-keyserver-helpers --disable-ldap \
- --disable-hkp --disable-finger --disable-generic --disable-mailto \
- --disable-keyserver-path --disable-dns-srv --disable-dns-pka \
- --disable-dns-cert --disable-nls --disable-threads --disable-regex \
- --disable-optimization --with-included-zlib --without-capabilities \
- --without-tar --without-ldap --without-libcurl --without-mailprog \
- --without-libpth-prefix --without-libiconv-prefix --without-libintl-prefix\
- --without-zlib --without-bzip2 --without-libusb --without-readline \
- >> ${LOGFILE} 2>&1 || gen_die 'Configuring gnupg failed!'
- print_info 1 "$(getIndent 2)gnupg: >> Compiling ..."
- compile_generic "" "utils"
- print_info 1 "$(getIndent 2)gnupg: >> Copying to bincache ..."
- [ -f "${TEMP}/${GPG_DIR}/g10/gpg" ] ||
- gen_die 'gnupg executable does not exist!'
- ${UTILS_CROSS_COMPILE}strip "${TEMP}/${GPG_DIR}/g10/gpg" ||
- gen_die 'Could not strip gpg binary!'
- bzip2 -z -c "${TEMP}/${GPG_DIR}/g10/gpg" > "${GPG_BINCACHE}" ||
- gen_die 'Could not copy the gpg binary to the package directory, does the directory exist?'
-
- cd "${TEMP}"
- isTrue "${CMD_DEBUGCLEANUP}" && rm -rf "${GPG_DIR}" > /dev/null
- return 0
- fi
-}
-
determine_busybox_config_file() {
print_info 2 "$(get_indent 3)busybox: >> Checking for suitable busybox configuration ..."