notmuch: update to 0.35.

This commit is contained in:
TROUVERIE Joachim 2022-03-04 17:59:30 +01:00 committed by Đoàn Trần Công Danh
parent faabce77c9
commit 8c1f637c70
4 changed files with 72 additions and 76 deletions

View file

@ -17,13 +17,13 @@ Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
1 file changed, 58 deletions(-) 1 file changed, 58 deletions(-)
diff --git a/configure b/configure diff --git a/configure b/configure
index 7dae745c..99b0c328 100755 index 36f3f606..1bf2097d 100755
--- a/configure --- a/configure
+++ b/configure +++ b/configure
@@ -467,65 +467,7 @@ if pkg-config --exists "gmime-3.0 >= $GMIME_MINVER"; then @@ -492,65 +492,7 @@ if pkg-config --exists "gmime-3.0 >= $GMIME_MINVER"; then
printf "Checking for GMime session key extraction support... " printf "Checking for GMime session key extraction support... "
- cat > _check_session_keys.c <<EOF - cat > _check_session_keys.c <<EOF
-#include <gmime/gmime.h> -#include <gmime/gmime.h>
-#include <stdio.h> -#include <stdio.h>
@ -54,16 +54,16 @@ index 7dae745c..99b0c328 100755
-} -}
-EOF -EOF
- if ! TEMP_GPG=$(mktemp -d "${TMPDIR:-/tmp}/notmuch.XXXXXX"); then - if ! TEMP_GPG=$(mktemp -d "${TMPDIR:-/tmp}/notmuch.XXXXXX"); then
- printf 'No.\nCould not make tempdir for testing session-key support.\n' - printf 'No.\nCould not make tempdir for testing session-key support.\n'
- errors=$((errors + 1)) - errors=$((errors + 1))
- elif ${CC} ${CFLAGS} ${gmime_cflags} _check_session_keys.c ${gmime_ldflags} -o _check_session_keys \ - elif ${CC} ${CFLAGS} ${gmime_cflags} _check_session_keys.c ${gmime_ldflags} -o _check_session_keys \
- && GNUPGHOME=${TEMP_GPG} gpg --batch --quiet --import < "$srcdir"/test/gnupg-secret-key.asc \ - && GNUPGHOME=${TEMP_GPG} gpg --batch --quiet --import < "$srcdir"/test/gnupg-secret-key.asc \
- && SESSION_KEY=$(GNUPGHOME=${TEMP_GPG} ./_check_session_keys) \ - && SESSION_KEY=$(GNUPGHOME=${TEMP_GPG} ./_check_session_keys) \
- && [ $SESSION_KEY = 9:0BACD64099D1468AB07C796F0C0AC4851948A658A15B34E803865E9FC635F2F5 ] - && [ $SESSION_KEY = 9:0BACD64099D1468AB07C796F0C0AC4851948A658A15B34E803865E9FC635F2F5 ]
- then - then
printf "OK.\n" printf "OK.\n"
- else - else
- cat <<EOF - cat <<EOF
-No. -No.
-*** Error: Could not extract session keys from encrypted message. -*** Error: Could not extract session keys from encrypted message.
- -
@ -73,19 +73,18 @@ index 7dae745c..99b0c328 100755
-Please try to rebuild your version of GMime against a more recent -Please try to rebuild your version of GMime against a more recent
-version of GPGME (at least GPGME 1.8.0). -version of GPGME (at least GPGME 1.8.0).
-EOF -EOF
- if command -v gpgme-config >/dev/null; then - if command -v gpgme-config >/dev/null; then
- printf 'Your current GPGME development version is: %s\n' "$(gpgme-config --version)" - printf 'Your current GPGME development version is: %s\n' "$(gpgme-config --version)"
- else - else
- printf 'You do not have the GPGME development libraries installed.\n' - printf 'You do not have the GPGME development libraries installed.\n'
- fi - fi
- errors=$((errors + 1)) - errors=$((errors + 1))
- fi - fi
- if [ -n "$TEMP_GPG" -a -d "$TEMP_GPG" ]; then - if [ -n "$TEMP_GPG" -a -d "$TEMP_GPG" ]; then
- rm -rf "$TEMP_GPG" - rm -rf "$TEMP_GPG"
- fi - fi
# see https://github.com/jstedfast/gmime/pull/90 # see https://github.com/jstedfast/gmime/pull/90
# should be fixed in GMime in 3.2.7, but some distros might patch # should be fixed in GMime in 3.2.7, but some distros might patch
-- --
2.28.0.rc2.21.g5c06d60fc5 2.35.1

View file

@ -11,18 +11,17 @@ The problem has been fixed with gmime 3.2.7 already.
Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com> Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
--- ---
configure | 70 ------------------------------------------------------- configure | 69 -------------------------------------------------------
1 file changed, 70 deletions(-) 1 file changed, 69 deletions(-)
diff --git a/configure b/configure diff --git a/configure b/configure
index 99b0c328..ef602d10 100755 index 36f3f606..fd23aa67 100755
--- a/configure --- a/configure
+++ b/configure +++ b/configure
@@ -472,78 +472,8 @@ if pkg-config --exists "gmime-3.0 >= $GMIME_MINVER"; then @@ -556,77 +556,8 @@ EOF
# see https://github.com/jstedfast/gmime/pull/90
# should be fixed in GMime in 3.2.7, but some distros might patch # should be fixed in GMime in 3.2.7, but some distros might patch
printf "Checking for GMime X.509 certificate validity... " printf "Checking for GMime X.509 certificate validity... "
-
- cat > _check_x509_validity.c <<EOF - cat > _check_x509_validity.c <<EOF
-#include <stdio.h> -#include <stdio.h>
-#include <gmime/gmime.h> -#include <gmime/gmime.h>
@ -63,40 +62,39 @@ index 99b0c328..ef602d10 100755
-} -}
-EOF -EOF
- if ! TEMP_GPG=$(mktemp -d "${TMPDIR:-/tmp}/notmuch.XXXXXX"); then - if ! TEMP_GPG=$(mktemp -d "${TMPDIR:-/tmp}/notmuch.XXXXXX"); then
- printf 'No.\nCould not make tempdir for testing X.509 certificate validity support.\n' - printf 'No.\nCould not make tempdir for testing X.509 certificate validity support.\n'
- errors=$((errors + 1)) - errors=$((errors + 1))
- elif ${CC} ${CFLAGS} ${gmime_cflags} _check_x509_validity.c ${gmime_ldflags} -o _check_x509_validity \ - elif ${CC} ${CFLAGS} ${gmime_cflags} _check_x509_validity.c ${gmime_ldflags} -o _check_x509_validity \
- && echo disable-crl-checks > "$TEMP_GPG/gpgsm.conf" \ - && echo disable-crl-checks > "$TEMP_GPG/gpgsm.conf" \
- && echo "4D:E0:FF:63:C0:E9:EC:01:29:11:C8:7A:EE:DA:3A:9A:7F:6E:C1:0D S" >> "$TEMP_GPG/trustlist.txt" \ - && echo "4D:E0:FF:63:C0:E9:EC:01:29:11:C8:7A:EE:DA:3A:9A:7F:6E:C1:0D S" >> "$TEMP_GPG/trustlist.txt" \
- && GNUPGHOME=${TEMP_GPG} gpgsm --batch --quiet --import < "$srcdir"/test/smime/ca.crt - && GNUPGHOME=${TEMP_GPG} gpgsm --batch --quiet --import < "$srcdir"/test/smime/ca.crt
- then - then
- if GNUPGHOME=${TEMP_GPG} ./_check_x509_validity; then - if GNUPGHOME=${TEMP_GPG} ./_check_x509_validity; then
gmime_x509_cert_validity=1 gmime_x509_cert_validity=1
printf "Yes.\n" printf "Yes.\n"
- else - else
- gmime_x509_cert_validity=0 - gmime_x509_cert_validity=0
- printf "No.\n" - printf "No.\n"
- if pkg-config --exists "gmime-3.0 >= 3.2.7"; then - if pkg-config --exists "gmime-3.0 >= 3.2.7"; then
- cat <<EOF - cat <<EOF
-*** Error: GMime fails to calculate X.509 certificate validity, and -*** Error: GMime fails to calculate X.509 certificate validity, and
-is later than 3.2.7, which should have fixed this issue. -is later than 3.2.7, which should have fixed this issue.
- -
-Please follow up on https://github.com/jstedfast/gmime/pull/90 with -Please follow up on https://github.com/jstedfast/gmime/pull/90 with
-more details. -more details.
-EOF -EOF
- errors=$((errors + 1)) - errors=$((errors + 1))
- fi - fi
- fi - fi
- else - else
- printf 'No.\nFailed to set up gpgsm for testing X.509 certificate validity support.\n' - printf 'No.\nFailed to set up gpgsm for testing X.509 certificate validity support.\n'
- errors=$((errors + 1)) - errors=$((errors + 1))
- fi - fi
- if [ -n "$TEMP_GPG" -a -d "$TEMP_GPG" ]; then - if [ -n "$TEMP_GPG" -a -d "$TEMP_GPG" ]; then
- rm -rf "$TEMP_GPG" - rm -rf "$TEMP_GPG"
- fi - fi
# see https://dev.gnupg.org/T3464 # see https://dev.gnupg.org/T3464
# there are problems verifying signatures when decrypting with session keys with GPGME 1.13.0 and 1.13.1 # there are problems verifying signatures when decrypting with session keys with GPGME 1.13.0 and 1.13.1
-- --
2.28.0.rc2.21.g5c06d60fc5 2.35.1

View file

@ -18,10 +18,10 @@ Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
1 file changed, 66 deletions(-) 1 file changed, 66 deletions(-)
diff --git a/configure b/configure diff --git a/configure b/configure
index ef602d10..204d46d9 100755 index 36f3f606..cd99bf4a 100755
--- a/configure --- a/configure
+++ b/configure +++ b/configure
@@ -478,74 +478,8 @@ if pkg-config --exists "gmime-3.0 >= $GMIME_MINVER"; then @@ -631,74 +631,8 @@ EOF
# see https://dev.gnupg.org/T3464 # see https://dev.gnupg.org/T3464
# there are problems verifying signatures when decrypting with session keys with GPGME 1.13.0 and 1.13.1 # there are problems verifying signatures when decrypting with session keys with GPGME 1.13.0 and 1.13.1
printf "Checking signature verification when decrypting using session keys... " printf "Checking signature verification when decrypting using session keys... "
@ -67,35 +67,34 @@ index ef602d10..204d46d9 100755
-} -}
-EOF -EOF
- if ! TEMP_GPG=$(mktemp -d "${TMPDIR:-/tmp}/notmuch.XXXXXX"); then - if ! TEMP_GPG=$(mktemp -d "${TMPDIR:-/tmp}/notmuch.XXXXXX"); then
- printf 'No.\nCould not make tempdir for testing signature verification when decrypting with session keys.\n' - printf 'No.\nCould not make tempdir for testing signature verification when decrypting with session keys.\n'
- errors=$((errors + 1)) - errors=$((errors + 1))
- elif ${CC} ${CFLAGS} ${gmime_cflags} _verify_sig_with_session_key.c ${gmime_ldflags} -o _verify_sig_with_session_key \ - elif ${CC} ${CFLAGS} ${gmime_cflags} _verify_sig_with_session_key.c ${gmime_ldflags} -o _verify_sig_with_session_key \
- && GNUPGHOME=${TEMP_GPG} gpg --batch --quiet --import < "$srcdir"/test/gnupg-secret-key.asc \ - && GNUPGHOME=${TEMP_GPG} gpg --batch --quiet --import < "$srcdir"/test/gnupg-secret-key.asc \
- && rm -f ${TEMP_GPG}/private-keys-v1.d/*.key - && rm -f ${TEMP_GPG}/private-keys-v1.d/*.key
- then - then
- if GNUPGHOME=${TEMP_GPG} ./_verify_sig_with_session_key; then - if GNUPGHOME=${TEMP_GPG} ./_verify_sig_with_session_key; then
gmime_verify_with_session_key=1 gmime_verify_with_session_key=1
printf "Yes.\n" printf "Yes.\n"
- else - else
- gmime_verify_with_session_key=0 - gmime_verify_with_session_key=0
- printf "No.\n" - printf "No.\n"
- cat <<EOF - cat <<EOF
-*** Error: GMime fails to verify signatures when decrypting with a session key. -*** Error: GMime fails to verify signatures when decrypting with a session key.
- -
-This is most likely due to a buggy version of GPGME, which should be fixed in 1.13.2 or later. -This is most likely due to a buggy version of GPGME, which should be fixed in 1.13.2 or later.
-See https://dev.gnupg.org/T3464 for more details. -See https://dev.gnupg.org/T3464 for more details.
-EOF -EOF
- fi - fi
- else - else
- printf 'No.\nFailed to set up gpg for testing signature verification while decrypting with a session key.\n' - printf 'No.\nFailed to set up gpg for testing signature verification while decrypting with a session key.\n'
- errors=$((errors + 1)) - errors=$((errors + 1))
- fi - fi
- if [ -n "$TEMP_GPG" -a -d "$TEMP_GPG" ]; then - if [ -n "$TEMP_GPG" -a -d "$TEMP_GPG" ]; then
- rm -rf "$TEMP_GPG" - rm -rf "$TEMP_GPG"
- fi - fi
else else
have_gmime=0 have_gmime=0
printf "No.\n" printf "No.\n"
-- --
2.28.0.rc2.21.g5c06d60fc5 2.35.1

View file

@ -1,7 +1,7 @@
# Template file for 'notmuch' # Template file for 'notmuch'
pkgname=notmuch pkgname=notmuch
version=0.32.2 version=0.35
revision=4 revision=1
build_style=configure build_style=configure
configure_args="--prefix=/usr configure_args="--prefix=/usr
--emacslispdir=/usr/share/emacs/site-lisp/notmuch --emacslispdir=/usr/share/emacs/site-lisp/notmuch
@ -14,12 +14,12 @@ depends="gmime3>=3.2.7"
checkdepends="python3-pytest mdocml dtach gdb tar xz xapian-core checkdepends="python3-pytest mdocml dtach gdb tar xz xapian-core
openssl" openssl"
short_desc="Thread-based email index, search, and tagging" short_desc="Thread-based email index, search, and tagging"
maintainer="Jan S. <jan.schreib@gmail.com>" maintainer="Joachim T. <jtrouverie@joakode.fr>"
license="GPL-3.0-or-later" license="GPL-3.0-or-later"
homepage="https://notmuchmail.org" homepage="https://notmuchmail.org"
distfiles="https://notmuchmail.org/releases/notmuch-${version}.tar.xz distfiles="https://notmuchmail.org/releases/notmuch-${version}.tar.xz
https://notmuchmail.org/releases/test-databases/database-v1.tar.xz" https://notmuchmail.org/releases/test-databases/database-v1.tar.xz"
checksum="8e0a7eb8ff2e6011ef48b2bf11d79b9c4bb74511cfe2987758b64898c2a2ded7 checksum="a831c414c4f20a6cae3a580793c855102d3295080f000eb3832b77226a40ac39
4299e051b10e1fa7b33ea2862790a09ebfe96859681804e5251e130f800e69d2" 4299e051b10e1fa7b33ea2862790a09ebfe96859681804e5251e130f800e69d2"
skip_extraction="database-v1.tar.xz" skip_extraction="database-v1.tar.xz"
replaces="notmuch-emacs>=0" replaces="notmuch-emacs>=0"
@ -56,7 +56,7 @@ do_check() {
# we don't ship python-cffi # we don't ship python-cffi
NOTMUCH_SKIP_TESTS+=" libconfig python-cffi" NOTMUCH_SKIP_TESTS+=" libconfig python-cffi"
if [ $(id -u) = 0 ]; then if [ $(id -u) = 0 ]; then
NOTMUCH_SKIP_TESTS+=" new.36 tagging.25" NOTMUCH_SKIP_TESTS+=" new.36 new.39 tagging.25"
fi fi
export NOTMUCH_SKIP_TESTS export NOTMUCH_SKIP_TESTS
make test make test