Here's a major update to gnupg-2.4.2.  Changelog for 2.4.X:
https://dev.gnupg.org/source/gnupg/browse/STABLE-BRANCH-2-4/NEWS

Ports-wise:
- use gmake so that the build system doesn't try to foolishly rebuild
  the .info files.  Our old makeinfo was already too old to
  support --css-ref=..., it's now too old to grok the newer .texi files
  in this release.  And I'd rather avoid a dep on print/texinfo for
  something that doesn't need to be rebuilt.
- tests print gpgscm crap about unportable uses of /proc/self/something,
  but seem to cope.
- the agent/protect.c patch needs refreshing, now this code path only
  uses OCB.  Patch mechanically adapted.

Tests (and oks) welcome.


Index: Makefile
===================================================================
RCS file: /cvs/ports/security/gnupg/Makefile,v
retrieving revision 1.133
diff -u -p -r1.133 Makefile
--- Makefile    13 Apr 2023 12:29:15 -0000      1.133
+++ Makefile    3 Jul 2023 22:44:31 -0000
@@ -2,7 +2,7 @@ PORTROACH =     limitw:1,even
 
 COMMENT =      GNU privacy guard - a free PGP replacement
 
-DISTNAME =     gnupg-2.2.41
+DISTNAME =     gnupg-2.4.2
 
 CATEGORIES =   security
 
@@ -23,6 +23,7 @@ EXTRACT_SUFX =                .tar.bz2
 FLAVORS =              ldap
 FLAVOR ?=
 
+USE_GMAKE =            Yes
 LIB_DEPENDS =          archivers/bzip2 \
                        databases/sqlite3 \
                        devel/gettext,-runtime \
Index: distinfo
===================================================================
RCS file: /cvs/ports/security/gnupg/distinfo,v
retrieving revision 1.42
diff -u -p -r1.42 distinfo
--- distinfo    13 Apr 2023 12:29:15 -0000      1.42
+++ distinfo    3 Jul 2023 22:44:31 -0000
@@ -1,2 +1,2 @@
-SHA256 (gnupg-2.2.41.tar.bz2) = E/MpEAel6FRvy3vAxmEM5EqqmzmVBZ1PgUW6Cf1b4+E=
-SIZE (gnupg-2.2.41.tar.bz2) = 7313746
+SHA256 (gnupg-2.4.2.tar.bz2) = l+tH34rlo/90T4aABaCQ2lq0XLSO6YNtv17nOaTlz0k=
+SIZE (gnupg-2.4.2.tar.bz2) = 7346587
Index: patches/patch-agent_protect_c
===================================================================
RCS file: /cvs/ports/security/gnupg/patches/patch-agent_protect_c,v
retrieving revision 1.2
diff -u -p -r1.2 patch-agent_protect_c
--- patches/patch-agent_protect_c       11 Mar 2022 19:53:24 -0000      1.2
+++ patches/patch-agent_protect_c       3 Jul 2023 22:44:31 -0000
@@ -1,7 +1,7 @@
 Index: agent/protect.c
 --- agent/protect.c.orig
 +++ agent/protect.c
-@@ -563,24 +563,47 @@ do_encryption (const unsigned char *hashbegin, size_t 
+@@ -513,24 +513,47 @@ do_encryption (const unsigned char *hashbegin, size_t 
       and dummy values as placeholders.  */
    {
      char countbuf[35];
@@ -14,7 +14,7 @@ Index: agent/protect.c
 -       (int)strlen (modestr), modestr,
 -       &saltpos,
 -       (unsigned int)strlen (countbuf), countbuf,
--       use_ocb? 12 : blklen, &ivpos, use_ocb? 12 : blklen, "",
+-       12, &ivpos, 12, "",
 -       enclen, &encpos, enclen, "");
 +
 +#define FMT1  "(9:protected%d:%s((4:sha18:"
@@ -27,12 +27,12 @@ Index: agent/protect.c
 +    saltpos = strlen(p1);
 +
 +    p2 = xtryasprintf (FMT2, (unsigned int)strlen (countbuf), countbuf,
-+       use_ocb? 12 : blklen);
++       12);
 +    if (!p2)
 +      goto fail;
 +    ivpos = saltpos + strlen(p2);
 +
-+    p3 = xtryasprintf (FMT3, use_ocb? 12 : blklen, "", enclen);
++    p3 = xtryasprintf (FMT3, 12, "", enclen);
 +    if (!p3)
 +      goto fail;
 +    encpos = ivpos + strlen(p3);
Index: patches/patch-doc_Makefile_in
===================================================================
RCS file: /cvs/ports/security/gnupg/patches/patch-doc_Makefile_in,v
retrieving revision 1.13
diff -u -p -r1.13 patch-doc_Makefile_in
--- patches/patch-doc_Makefile_in       30 Aug 2022 17:27:32 -0000      1.13
+++ patches/patch-doc_Makefile_in       3 Jul 2023 22:44:31 -0000
@@ -1,15 +0,0 @@
-
-Don't use --css-ref (not supported by base texinfo)
-
-Index: doc/Makefile.in
---- doc/Makefile.in.orig
-+++ doc/Makefile.in
-@@ -527,7 +527,7 @@ gnupg_TEXINFOS = \
-       howtos.texi howto-create-a-server-cert.texi
- 
- DVIPS = TEXINPUTS="$(srcdir)$(PATH_SEPARATOR)$$TEXINPUTS" dvips
--AM_MAKEINFOFLAGS = -I $(srcdir) --css-ref=/share/site.css
-+AM_MAKEINFOFLAGS = -I $(srcdir)
- YAT2M_OPTIONS = -I $(srcdir) \
-         --release "GnuPG @PACKAGE_VERSION@" --source "GNU Privacy Guard 2.2"
- 
Index: patches/patch-g10_keylist_c
===================================================================
RCS file: /cvs/ports/security/gnupg/patches/patch-g10_keylist_c,v
retrieving revision 1.2
diff -u -p -r1.2 patch-g10_keylist_c
--- patches/patch-g10_keylist_c 11 Mar 2022 19:53:24 -0000      1.2
+++ patches/patch-g10_keylist_c 3 Jul 2023 22:44:31 -0000
@@ -1,7 +1,7 @@
 Index: g10/keylist.c
 --- g10/keylist.c.orig
 +++ g10/keylist.c
-@@ -255,12 +255,11 @@ print_card_key_info (estream_t fp, kbnode_t keyblock)
+@@ -329,12 +329,11 @@ print_card_key_info (estream_t fp, kbnode_t keyblock)
            else
              s2k_char = '#';  /* Key not found.  */
  
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/security/gnupg/pkg/PLIST,v
retrieving revision 1.37
diff -u -p -r1.37 PLIST
--- pkg/PLIST   30 Aug 2022 17:27:32 -0000      1.37
+++ pkg/PLIST   3 Jul 2023 22:44:31 -0000
@@ -5,7 +5,9 @@
 @bin bin/dirmngr-client
 @bin bin/gpg
 @bin bin/gpg-agent
+@bin bin/gpg-card
 @bin bin/gpg-connect-agent
+@bin bin/gpg-wks-client
 @bin bin/gpg-wks-server
 @bin bin/gpgconf
 @bin bin/gpgparsemail
@@ -17,13 +19,17 @@
 @bin bin/kbxutil
 @bin bin/watchgnupg
 @info info/gnupg.info
+@bin libexec/gpg-auth
 @bin libexec/gpg-check-pattern
+@bin libexec/gpg-pair-tool
 @bin libexec/gpg-preset-passphrase
 @bin libexec/gpg-protect-tool
-@bin libexec/gpg-wks-client
+libexec/gpg-wks-client
+@bin libexec/keyboxd
 @bin libexec/scdaemon
 @man man/man1/dirmngr-client.1
 @man man/man1/gpg-agent.1
+@man man/man1/gpg-card.1
 @man man/man1/gpg-check-pattern.1
 @man man/man1/gpg-connect-agent.1
 @man man/man1/gpg-preset-passphrase.1
@@ -53,13 +59,12 @@ share/doc/gnupg/OpenPGP
 share/doc/gnupg/README
 share/doc/gnupg/TRANSLATE
 share/doc/gnupg/examples/
-share/doc/gnupg/examples/Automatic.prf
 share/doc/gnupg/examples/README
-share/doc/gnupg/examples/VS-NfD.prf
-share/doc/gnupg/examples/debug.prf
+share/doc/gnupg/examples/common.conf
 share/doc/gnupg/examples/gpgconf.conf
 share/doc/gnupg/examples/gpgconf.rnames
 share/doc/gnupg/examples/pwpattern.list
+share/doc/gnupg/examples/qualified.txt
 share/doc/gnupg/examples/scd-event
 share/doc/gnupg/examples/trustlist.txt
 share/doc/pkg-readmes/${PKGSTEM}

-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply via email to