Skip to content

Commit 084aed3

Browse files
committed
Merge branch 'saper_gnupg-2.4.0-update_reduce_size_some_more' into HEAD
2 parents 96f379d + a5e62ef commit 084aed3

13 files changed

+69
-70
lines changed

initrd/bin/oem-factory-reset

+2-7
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,10 @@ gpg_key_reset()
128128
echo ${ADMIN_PIN_DEF}
129129
echo ${USER_PIN_DEF}
130130
echo 0
131-
echo y
132131
echo ${GPG_USER_NAME}
133132
echo ${GPG_USER_MAIL}
134133
echo ${GPG_USER_COMMENT}
134+
echo ${USER_PIN_DEF}
135135
} | gpg --command-fd=0 --status-fd=2 --pinentry-mode=loopback --card-edit \
136136
> /tmp/gpg_card_edit_output 2>&1
137137
if [ $? -ne 0 ]; then
@@ -508,13 +508,8 @@ if [ "$prompt_output" == "y" \
508508
echo -e "We will generate a GnuPG (PGP) keypair identifiable with the following text form:"
509509
echo -e "Real Name (Comment) [email protected]"
510510

511-
echo -e "\nEnter your Real Name (At least 5 characters long):"
511+
echo -e "\nEnter your Real Name (Optional):"
512512
read -r GPG_USER_NAME
513-
while [[ ${#GPG_USER_NAME} -lt 5 ]]; do
514-
{
515-
echo -e "\nEnter your Real Name (At least 5 characters long):"
516-
read -r GPG_USER_NAME
517-
};done
518513

519514
echo -e "\nEnter your [email protected]:"
520515
read -r GPG_USER_MAIL

initrd/etc/distro/gpg-agent.conf

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
disable-scdaemon

modules/gpg2

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
modules-$(CONFIG_GPG2) += gpg2
22

3-
gpg2_version := 2.2.21
3+
gpg2_version := 2.4.0
44
gpg2_dir := gnupg-$(gpg2_version)
55
gpg2_tar := gnupg-$(gpg2_version).tar.bz2
66
gpg2_url := https://www.gnupg.org/ftp/gcrypt/gnupg/$(gpg2_tar)
7-
gpg2_hash := 61e83278fb5fa7336658a8b73ab26f379d41275bb1c7c6e694dd9f9a6e8e76ec
7+
gpg2_hash := 1d79158dd01d992431dd2e3facb89fdac97127f89784ea2cb610c600fb0c1483
88

99
# For reproducibility reasons we have to override the exec_prefix
1010
# and datarootdir on the configure line so that the Makefiles will
@@ -41,6 +41,8 @@ gpg2_configure := \
4141
--disable-wks-tools \
4242
--disable-gnutls \
4343
--disable-dirmngr \
44+
--disable-ntbtls \
45+
--disable-libdns \
4446
--disable-zip \
4547
--disable-sqlite \
4648
--disable-gpgsm \

modules/libassuan

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
modules-$(CONFIG_GPG2) += libassuan
22

3-
libassuan_version := 2.5.3
3+
libassuan_version := 2.5.5
44
libassuan_dir := libassuan-$(libassuan_version)
55
libassuan_tar := libassuan-$(libassuan_version).tar.bz2
66
libassuan_url := https://gnupg.org/ftp/gcrypt/libassuan/$(libassuan_tar)
7-
libassuan_hash := 91bcb0403866b4e7c4bc1cc52ed4c364a9b5414b3994f718c70303f7f765e702
7+
libassuan_hash := 8e8c2fcc982f9ca67dcbb1d95e2dc746b1739a4668bc20b3a3c5be632edb34e4
88

99
libassuan_configure := \
1010
CFLAGS="-Os" \
@@ -13,7 +13,7 @@ libassuan_configure := \
1313
--host $(MUSL_ARCH)-linux-musl \
1414
--prefix "/" \
1515
--disable-static \
16-
--disable-debug \
16+
--disable-doc \
1717
--with-gpg-error-prefix="$(INSTALL)" \
1818

1919
libassuan_target := $(MAKE_JOBS) \

modules/libgcrypt

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
modules-$(CONFIG_GPG2) += libgcrypt
22

3-
libgcrypt_version := 1.8.6
3+
libgcrypt_version := 1.10.1
44
libgcrypt_dir := libgcrypt-$(libgcrypt_version)
55
libgcrypt_tar := libgcrypt-$(libgcrypt_version).tar.bz2
66
libgcrypt_url := https://gnupg.org/ftp/gcrypt/libgcrypt/$(libgcrypt_tar)
7-
libgcrypt_hash := 0cba2700617b99fc33864a0c16b1fa7fdf9781d9ed3509f5d767178e5fd7b975
7+
libgcrypt_hash := ef14ae546b0084cd84259f61a55e07a38c3b53afc0f546bffcef2f01baffe9de
88

99
libgcrypt_configure := \
1010
$(CROSS_TOOLS) \
@@ -15,6 +15,7 @@ libgcrypt_configure := \
1515
--disable-static \
1616
--with-gpg-error-prefix="$(INSTALL)" \
1717
--disable-asm \
18+
--disable-doc \
1819

1920
libgcrypt_target := $(MAKE_JOBS) \
2021
DESTDIR="$(INSTALL)" \

modules/libgpg-error

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
modules-$(CONFIG_GPG2) += libgpg-error
22

3-
libgpg-error_version := 1.37
3+
libgpg-error_version := 1.46
44
libgpg-error_dir := libgpg-error-$(libgpg-error_version)
55
libgpg-error_tar := libgpg-error-$(libgpg-error_version).tar.bz2
66
libgpg-error_url := https://gnupg.org/ftp/gcrypt/libgpg-error/$(libgpg-error_tar)
7-
libgpg-error_hash := b32d6ff72a73cf79797f7f2d039e95e9c6f92f0c1450215410840ab62aea9763
7+
libgpg-error_hash := b7e11a64246bbe5ef37748de43b245abd72cfcd53c9ae5e7fc5ca59f1c81268d
88

99
libgpg-error_configure := \
1010
$(CROSS_TOOLS) \
@@ -17,6 +17,7 @@ libgpg-error_configure := \
1717
--disable-languages \
1818
--disable-doc \
1919
--disable-tests \
20+
--enable-install-gpg-error-config \
2021

2122
libgpg-error_target := $(MAKE_JOBS) \
2223
DESTDIR="$(INSTALL)" \

modules/libksba

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
modules-$(CONFIG_GPG2) += libksba
22

3-
libksba_version := 1.4.0
3+
libksba_version := 1.6.3
44
libksba_dir := libksba-$(libksba_version)
55
libksba_tar := libksba-$(libksba_version).tar.bz2
66
libksba_url := https://gnupg.org/ftp/gcrypt/libksba/$(libksba_tar)
7-
libksba_hash := bfe6a8e91ff0f54d8a329514db406667000cb207238eded49b599761bfca41b6
7+
libksba_hash := 3f72c68db30971ebbf14367527719423f0a4d5f8103fc9f4a1c01a9fa440de5c
88

99
libksba_configure := \
1010
$(CROSS_TOOLS) \

patches/gpg2-2.2.21.patch

-27
This file was deleted.

patches/gpg2-2.4.0.patch

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
diff -u --recursive gnupg-2.4.0/configure gnupg-2.4.0/configure
2+
--- gnupg-2.4.0/configure 2016-08-17 09:20:25.000000000 -0400
3+
+++ gnupg-2.4.0/configure 2018-01-20 16:55:14.502067084 -0500
4+
@@ -572,7 +572,7 @@
5+
ac_clean_files=
6+
ac_config_libobj_dir=.
7+
LIBOBJS=
8+
-cross_compiling=no
9+
+cross_compiling=yes
10+
subdirs=
11+
MFLAGS=
12+
MAKEFLAGS=
13+
--- gnupg-2.4.0/common/ttyio.c.orig 2023-03-24 02:37:40.384435064 +0100
14+
+++ gnupg-2.4.0/common/ttyio.c 2023-03-24 02:38:21.825961221 +0100
15+
@@ -186,7 +186,7 @@
16+
SetConsoleMode (con.out, DEF_OUTMODE);
17+
18+
#else /* Unix */
19+
- ttyfp = batchmode? stderr : fopen (tty_get_ttyname (), "r+");
20+
+ ttyfp = stderr;
21+
if (!ttyfp)
22+
{
23+
log_error ("cannot open '%s': %s\n", tty_get_ttyname (), strerror(errno));

patches/libassuan-2.5.3.patch renamed to patches/libassuan-2.5.5.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
diff -u -r libassuan-2.5.1-clean/configure libassuan-2.5.1/configure
2-
--- libassuan-2.5.1-clean/configure 2017-12-07 06:55:50.000000000 -0800
3-
+++ libassuan-2.5.1/configure 2020-01-12 13:39:50.655638965 -0800
1+
diff -u -r libassuan-2.5.5-clean/configure libassuan-2.5.5/configure
2+
--- libassuan-2.5.5-clean/configure 2017-12-07 06:55:50.000000000 -0800
3+
+++ libassuan-2.5.5/configure 2020-01-12 13:39:50.655638965 -0800
44
@@ -10781,7 +10781,7 @@
55
version_type=linux # correct to gnu/linux during the next big refactor
66
need_lib_prefix=no

patches/libgcrypt-1.8.6.patch renamed to patches/libgcrypt-1.10.1.patch

+22-19
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
diff -u -r libgcrypt-1.8.3-clean/configure libgcrypt-1.8.3/configure
2-
--- libgcrypt-1.8.3-clean/configure 2018-06-13 00:39:33.000000000 -0700
3-
+++ libgcrypt-1.8.3/configure 2020-01-12 13:32:34.840010800 -0800
1+
diff -u -r libgcrypt-1.8.10-clean/configure libgcrypt-1.8.10/configure
2+
--- libgcrypt-1.8.10-clean/configure 2018-06-13 00:39:33.000000000 -0700
3+
+++ libgcrypt-1.8.10/configure 2020-01-12 13:32:34.840010800 -0800
44
@@ -11292,7 +11292,7 @@
55
version_type=linux # correct to gnu/linux during the next big refactor
66
need_lib_prefix=no
@@ -174,19 +174,22 @@ diff -u -r libgcrypt-1.8.3-clean/configure libgcrypt-1.8.3/configure
174174

175175
# Compile-time system search path for libraries.
176176
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
177-
diff --git a/random/jitterentropy-base-user.h b/random/jitterentropy-base-user.h
178-
index 75dd768..8a8dbd5 100644
179-
--- a/random/jitterentropy-base-user.h
180-
+++ b/random/jitterentropy-base-user.h
181-
@@ -86,9 +86,9 @@ jent_get_nstime(u64 *out)
182-
* not rely on that extra little entropy. */
183-
if (!clock_gettime (CLOCK_REALTIME, &tv))
184-
{
185-
- tmp = time.tv_sec;
186-
+ tmp = tv.tv_sec;
187-
tmp = tmp << 32;
188-
- tmp = tmp | time.tv_nsec;
189-
+ tmp = tmp | tv.tv_nsec;
190-
}
191-
else
192-
tmp = 0;
177+
--- libgcrypt-1.10.1/Makefile.in.orig 2023-03-27 09:35:30.902000000 -0400
178+
+++ libgcrypt-1.10.1/Makefile.in 2023-03-27 09:37:17.803000000 -0400
179+
@@ -417,12 +417,12 @@
180+
GITLOG_TO_CHANGELOG = gitlog-to-changelog
181+
@BUILD_DOC_FALSE@doc =
182+
@BUILD_DOC_TRUE@doc = doc
183+
-DIST_SUBDIRS = m4 compat mpi cipher random src doc tests
184+
-SUBDIRS = compat mpi cipher random src $(doc) tests
185+
+DIST_SUBDIRS = m4 compat mpi cipher random src doc
186+
+SUBDIRS = compat mpi cipher random src $(doc)
187+
EXTRA_DIST = autogen.sh autogen.rc README.GIT LICENSES \
188+
ChangeLog-2011 build-aux/ChangeLog-2011 doc/ChangeLog-2011 \
189+
m4/ChangeLog-2011 cipher/ChangeLog-2011 src/ChangeLog-2011 \
190+
- random/ChangeLog-2011 tests/ChangeLog-2011 mpi/ChangeLog-2011 \
191+
+ random/ChangeLog-2011 mpi/ChangeLog-2011 \
192+
build-aux/git-log-footer build-aux/git-log-fix VERSION
193+
194+
DISTCLEANFILES =
195+
File renamed without changes.

patches/libksba-1.4.0.patch renamed to patches/libksba-1.6.3.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
diff -u -r libksba-1.3.5-clean/configure libksba-1.3.5/configure
2-
--- libksba-1.3.5-clean/configure 2016-08-22 02:56:54.000000000 -0700
3-
+++ libksba-1.3.5/configure 2020-01-12 13:34:53.557259138 -0800
1+
diff -u -r libksba-1.4.0-clean/configure libksba-1.4.0/configure
2+
--- libksba-1.4.0-clean/configure 2016-08-22 02:56:54.000000000 -0700
3+
+++ libksba-1.4.0/configure 2020-01-12 13:34:53.557259138 -0800
44
@@ -10734,7 +10734,7 @@
55
version_type=linux # correct to gnu/linux during the next big refactor
66
need_lib_prefix=no

0 commit comments

Comments
 (0)