Page MenuHome GnuPG
Feed Advanced Search

Jan 23 2024

werner triaged T6955: Auto-switch to 32 bit registry view in GpgRT as Normal priority.
Jan 23 2024, 1:18 PM · Feature Request, Windows 64, gpgrt

Jan 22 2024

werner triaged T6954: Add wipememory function to gpgrt as Normal priority.
Jan 22 2024, 11:04 AM · gnupg26, gpgrt, Feature Request

Jan 16 2024

werner added a comment to T6737: libgpg-error: String filter should *NOT* be called with non-nul-terminated string.

Alright.

Jan 16 2024, 10:42 AM · gpgrt, Bug Report
gniibe changed the status of T6737: libgpg-error: String filter should *NOT* be called with non-nul-terminated string from Open to Testing.

Push the change as rE4a9def77488f: estream: Fix call to string filter for estream-printf..

Jan 16 2024, 6:54 AM · gpgrt, Bug Report
gniibe added a comment to T6737: libgpg-error: String filter should *NOT* be called with non-nul-terminated string.

I see your point: allocating STRINGBUF to make sure nul-terminated string.
The code itself doesn't work well in a test case of tests/t-prinntf.c, because it assumes string filter should be called with NULL for string.

Jan 16 2024, 5:58 AM · gpgrt, Bug Report

Jan 15 2024

werner changed the status of T6737: libgpg-error: String filter should *NOT* be called with non-nul-terminated string from Testing to Open.
Jan 15 2024, 12:25 PM · gpgrt, Bug Report
werner added a comment to T6737: libgpg-error: String filter should *NOT* be called with non-nul-terminated string.

Like this:

@@ -1196,10 +1196,25 @@ pr_string (estream_printf_out_t outfnc, void *outfncarg,
    future, when breaking API/ABI is OK, we can change signature of
    gpgrt_string_filter_t to have another argument for precision.  */
   int allow_non_nul_string = (arg->precision >= 0);
+  char *stringbuf = NULL;
Jan 15 2024, 12:25 PM · gpgrt, Bug Report
werner added a comment to T6737: libgpg-error: String filter should *NOT* be called with non-nul-terminated string.

We could also pass a nul terminated copy to the filter function in pr_string.

Jan 15 2024, 12:14 PM · gpgrt, Bug Report

Dec 27 2023

gniibe changed the status of T6737: libgpg-error: String filter should *NOT* be called with non-nul-terminated string from Open to Testing.
Dec 27 2023, 1:26 AM · gpgrt, Bug Report

Nov 15 2023

gniibe changed the status of T6674: doc: U+2010 HYPHEN vs. U+002D HYPHEN-MINUS for man pages from Open to Testing.

@item handling with @table has been pushed.

Nov 15 2023, 6:40 AM · gpgrt

Nov 14 2023

gniibe added a comment to T6674: doc: U+2010 HYPHEN vs. U+002D HYPHEN-MINUS for man pages.

I learned about how @item is handled by TeX. By @table command, user specifies how to handle the item line. In the case of GnuPG, it is like:

@table @gnupgtabopt
@item --version
...
@item --help

(Emacs uses @table @samp, while GCC uses @table @gcctabopt.)
And @gnupgtabopt is a macro which is expanded to @code{\body\}

Nov 14 2023, 7:16 AM · gpgrt

Nov 8 2023

gniibe added a comment to T6674: doc: U+2010 HYPHEN vs. U+002D HYPHEN-MINUS for man pages.

Possible approach for source texinfo files and yat2m would be:

Nov 8 2023, 2:03 AM · gpgrt

Nov 2 2023

gniibe added a comment to T6746: yat2man: Support -- and ---.

I found a regression for @item --version; It emits \[en]version for roff.

Nov 2 2023, 6:52 AM · gpgrt
gniibe changed the status of T6746: yat2man: Support -- and --- from Open to Testing.

Pushed my fix to support them.

Nov 2 2023, 6:26 AM · gpgrt
gniibe changed the status of T6746: yat2man: Support -- and ---, a subtask of T6674: doc: U+2010 HYPHEN vs. U+002D HYPHEN-MINUS for man pages, from Open to Testing.
Nov 2 2023, 6:26 AM · gpgrt

Oct 5 2023

gniibe triaged T6746: yat2man: Support -- and --- as Wishlist priority.
Oct 5 2023, 7:03 AM · gpgrt

Sep 30 2023

werner triaged T6737: libgpg-error: String filter should *NOT* be called with non-nul-terminated string as Normal priority.

I guess we should add an extended API to set the filter.

Sep 30 2023, 2:08 PM · gpgrt, Bug Report

Sep 27 2023

gniibe updated the task description for T6737: libgpg-error: String filter should *NOT* be called with non-nul-terminated string.
Sep 27 2023, 3:55 AM · gpgrt, Bug Report
gniibe claimed T6737: libgpg-error: String filter should *NOT* be called with non-nul-terminated string.
Sep 27 2023, 3:54 AM · gpgrt, Bug Report

Sep 26 2023

werner triaged T6735: Implement _IOLBF for estream as Normal priority.
Sep 26 2023, 9:24 AM · Bug Report, gpgrt

Aug 31 2023

werner added a comment to T6674: doc: U+2010 HYPHEN vs. U+002D HYPHEN-MINUS for man pages.

I guess we should follow the GNU standards and provide only info files ;-)

Aug 31 2023, 8:31 AM · gpgrt
gniibe added a comment to T6674: doc: U+2010 HYPHEN vs. U+002D HYPHEN-MINUS for man pages.

Other problems of yat2m transformation:
https://bugs.debian.org/1050886

Aug 31 2023, 1:49 AM · gpgrt

Aug 28 2023

werner moved T6421: Improve error message if no reset code (PUK) is set from WiP to Backlog on the gnupg22 board.

Not easy do decide whether something is a PIN or a PUK and we will need to check a lot of places. So, not now.

Aug 28 2023, 5:07 PM · gnupg26, Feature Request, gpgrt

Aug 25 2023

werner claimed T6421: Improve error message if no reset code (PUK) is set.
Aug 25 2023, 4:05 PM · gnupg26, Feature Request, gpgrt

Aug 22 2023

gniibe added a comment to T6674: doc: U+2010 HYPHEN vs. U+002D HYPHEN-MINUS for man pages.

I found a troff reference: https://www.quut.com/berlin/ms/troff.html

Aug 22 2023, 8:36 AM · gpgrt
gniibe added a comment to T6674: doc: U+2010 HYPHEN vs. U+002D HYPHEN-MINUS for man pages.

Ideally, we should change the source document to use @minus{} for a minus sign, and keep - only when it means a hyphen. But we cannot do that blindly; We need to handle it with care, in a way of case by case (Texinfo manual suggests no use of @minus{} with @code or @example, but it is needed for groff man pages in many cases).... We would need to consider each occurrence of - in our document. That's too much (if it were me to fix).

Aug 22 2023, 3:49 AM · gpgrt
gniibe triaged T6674: doc: U+2010 HYPHEN vs. U+002D HYPHEN-MINUS for man pages as Wishlist priority.
Aug 22 2023, 3:32 AM · gpgrt

Aug 18 2023

gniibe added a comment to T6619: How to maintain our local libtool patch.

Pushed the change to:

  • libgpg-error
  • libassuan master
  • libgcrypt master
  • ntbtls
  • npth
  • libksba
  • gpgme
  • scute
Aug 18 2023, 2:13 AM · gpgrt, Bug Report

Aug 16 2023

dkg added a comment to T4961: ship gpgrt.pc.

It looks to me like it's marginally more common to *not* use the lib prefix for pkgconfig files:

Aug 16 2023, 12:01 AM · Feature Request, gpgrt

Aug 14 2023

pert added a comment to T4961: ship gpgrt.pc.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Aug 14 2023, 8:42 AM · Feature Request, gpgrt

Aug 7 2023

gniibe added a parent task for T6619: How to maintain our local libtool patch: T6484: dll: 64-bit different name for libgcrypt, libksba, ntbtls, and gpgme.
Aug 7 2023, 4:40 AM · gpgrt, Bug Report

Aug 2 2023

gniibe updated the task description for T6619: How to maintain our local libtool patch.
Aug 2 2023, 3:55 AM · gpgrt, Bug Report
gniibe added a comment to T6619: How to maintain our local libtool patch.

I pushed the commit: rE64532db11fcd: build: New configure option --with-libtool-modification.

Aug 2 2023, 3:53 AM · gpgrt, Bug Report

Jul 28 2023

gniibe changed the status of T6619: How to maintain our local libtool patch from Open to Testing.

Pushed the change to libgpg-error.

Jul 28 2023, 6:36 AM · gpgrt, Bug Report

Jul 27 2023

werner added a comment to T6619: How to maintain our local libtool patch.

That assumes that libtool won't change substantially as it did several times in the past and broke our cross compiling stuff. But as long as we keep the ltmain.sh in our repo and tarball the patch is okay because it better documents the chnages.

Jul 27 2023, 12:07 PM · gpgrt, Bug Report
gniibe added a comment to T6619: How to maintain our local libtool patch.

I learned that AC_CONFIG_COMMANDS macro can be used to improve the case of config.status.

Jul 27 2023, 9:53 AM · gpgrt, Bug Report
gniibe claimed T6619: How to maintain our local libtool patch.

How about the change like:

Jul 27 2023, 9:52 AM · gpgrt, Bug Report
gniibe created T6619: How to maintain our local libtool patch.
Jul 27 2023, 9:51 AM · gpgrt, Bug Report

Jul 24 2023

taichi added a comment to T6595: libgpg-error: build failure on Windows.

I have built it according to the method described here.
(https://wiki.documentfoundation.org/Development/BuildingOnWindows)

Jul 24 2023, 1:41 PM · Cygwin, gpgrt, Bug Report
taichi added a comment to T6595: libgpg-error: build failure on Windows.
Jul 24 2023, 10:17 AM · Cygwin, gpgrt, Bug Report
werner triaged T6595: libgpg-error: build failure on Windows as Low priority.

I wonder why you mention Visual Studio and Cygwin? Either it is Cygwin or a native Windows build.

Jul 24 2023, 9:56 AM · Cygwin, gpgrt, Bug Report

Jul 13 2023

taichi created T6595: libgpg-error: build failure on Windows.
Jul 13 2023, 6:31 PM · Cygwin, gpgrt, Bug Report

Jun 2 2023

werner edited projects for T3164: The argument parser does not detect invalid integers, added: gpgrt, Bug Report; removed common.
Jun 2 2023, 11:52 AM · Bug Report, gpgrt

May 26 2023

werner moved T6421: Improve error message if no reset code (PUK) is set from Backlog to Done on the gpgrt board.
May 26 2023, 5:19 PM · gnupg26, Feature Request, gpgrt

May 12 2023

gniibe added a comment to T6275: gnupg26: Improve gnupg_spawn_process function.

Pushed to GnuPG master. Let us test. For my machine of Debian GNU/Linux, Wine emulation (Windows 32-bit, Windows 64-bit), make check goes all well.
After confirming the implementation, I'd like to put it into gpgrt.

May 12 2023, 1:50 AM · gnupg, libassuan, gpgrt

May 1 2023

gniibe closed T6264: gpgrt-config: Support multilib MinGW-w64 as Resolved.
May 1 2023, 5:06 AM · toolchain, gpgrt

Apr 27 2023

gniibe added a comment to T4945: Windows builds use "winepath" when it is available.

I learned that Unix build environment needs Wine emulation (with winepath) for MinGW host (when uninstalled executable should run correctly).
https://www.gnu.org/software/libtool/manual/html_node/File-name-conversion.html

Apr 27 2023, 8:46 AM · gpgrt

Apr 13 2023

gniibe closed T6204: gpgme:python Fix setup.py, using pkg-config (not deprecated gpg-error-config and gpgme-config), a subtask of T5683: Deprecation of gpg-error-config, as Resolved.
Apr 13 2023, 3:10 AM · gpgrt

Apr 10 2023

gniibe closed T6315: libgpg-error: argparse: empty header doesn't work well as Resolved.

Fixed in 1.47.

Apr 10 2023, 7:21 AM · Bug Report, gpgrt
gniibe closed T6257: Without gpg-error-config installed (libgpg-error-1.46) libgcrypt-1.10.1 does not configure as Resolved.
Apr 10 2023, 7:17 AM · MacOS, libgcrypt, gpgrt
gniibe added a comment to T6257: Without gpg-error-config installed (libgpg-error-1.46) libgcrypt-1.10.1 does not configure.

Fixed in libgcrypt 1.10.2.

Apr 10 2023, 7:17 AM · MacOS, libgcrypt, gpgrt
gniibe closed T6288: Document gpgrt-config in detail or improve it to support simple invocation as Resolved.

Fixed in libgpg-error 1.47.

Apr 10 2023, 6:41 AM · gpgrt, Bug Report

Apr 7 2023

gniibe closed T6388: libgcrypt: gpgrt-config not found in $PREFIX if there are no less-preferred options found via $CC as Resolved.

Fixed in 1.10.2.

Apr 7 2023, 2:16 AM · gpgrt, patch, libgcrypt, Bug Report

Apr 6 2023

acollier added a comment to T6388: libgcrypt: gpgrt-config not found in $PREFIX if there are no less-preferred options found via $CC .

Thank you for the bug report.

I see your problem. We need to improve the patch, as we cannot use Bash-only feature in configure.
[...]
That is, prefer possible_libdir1 when not used. Please test this.

Apr 6 2023, 5:45 PM · gpgrt, patch, libgcrypt, Bug Report
werner closed T6231: Release Libgpg-error 1.47 as Resolved.
Apr 6 2023, 10:45 AM · Release Info, gpgrt
werner triaged T6441: Release libgpg-error 1.48 as Low priority.
Apr 6 2023, 10:34 AM · gpgrt, Release Info
werner added a comment to T6421: Improve error message if no reset code (PUK) is set.

I'll add new error codes to gpgrt

Apr 6 2023, 10:05 AM · gnupg26, Feature Request, gpgrt

Apr 4 2023

werner triaged T6438: Manual of gpgrt is missing on gnupg.org as Normal priority.

Any volunteers to write a manual? ;-)

Apr 4 2023, 4:45 PM · Documentation, Feature Request, gpgrt
ikloecker added a comment to T6438: Manual of gpgrt is missing on gnupg.org.

The reason may be the following text/comment I found in gpgrt.texi:

This manual documents the Libgpg-error library application programming
interface (API). The goal is to that all functions and data types
provided by the library are explained. However, for now this is only
a stub and not very useful.

Apr 4 2023, 11:25 AM · Documentation, Feature Request, gpgrt
ikloecker created T6438: Manual of gpgrt is missing on gnupg.org.
Apr 4 2023, 11:22 AM · Documentation, Feature Request, gpgrt

Mar 28 2023

werner triaged T6421: Improve error message if no reset code (PUK) is set as Normal priority.
Mar 28 2023, 5:08 PM · gnupg26, Feature Request, gpgrt

Mar 25 2023

gniibe added a comment to T6388: libgcrypt: gpgrt-config not found in $PREFIX if there are no less-preferred options found via $CC .

@tlaurion Thank you for the report, but your particular problem is irrelevant to this ticket.
I lightly looked the log and noticed that the cross build would have some confusions for pkg-config, however, that's not our problem but yours.
For the particular failures in your build, the issues look like a problem of musl linker. It seems that it requires all dependency of libraries to be used, even if an executable doesn't use a library directly.
If it is the case, we need a patch... something like:

Mar 25 2023, 2:59 AM · gpgrt, patch, libgcrypt, Bug Report

Mar 24 2023

tlaurion added a comment to T6388: libgcrypt: gpgrt-config not found in $PREFIX if there are no less-preferred options found via $CC .

@gniibe
Trying to crosscompile newer 2.4 gpg toolstack from Heads OSF under PR https://github.com/osresearch/heads/pull/1350

Mar 24 2023, 9:24 PM · gpgrt, patch, libgcrypt, Bug Report
werner added a comment to T6421: Improve error message if no reset code (PUK) is set.

FWIW, some cards don't have PUKs but two PINs which are able to unblock reciprocal.

Mar 24 2023, 9:17 AM · gnupg26, Feature Request, gpgrt
ebo added a comment to T6421: Improve error message if no reset code (PUK) is set.

Should we also differentiate between wrong PUK and no PUK set?

Mar 24 2023, 8:18 AM · gnupg26, Feature Request, gpgrt
gniibe added a project to T6421: Improve error message if no reset code (PUK) is set: gpgrt.

Having GPG_ERR_BAD_PUK makes sense. So, I added a tag for gpg-error.

Mar 24 2023, 5:10 AM · gnupg26, Feature Request, gpgrt

Mar 23 2023

gniibe changed the status of T6388: libgcrypt: gpgrt-config not found in $PREFIX if there are no less-preferred options found via $CC from Open to Testing.

Fixed in master (of libgpg-error).
Pushed the change to libgcrypt (master and 1.10 branch).

Mar 23 2023, 6:51 AM · gpgrt, patch, libgcrypt, Bug Report

Jan 6 2023

gniibe added projects to T6288: Document gpgrt-config in detail or improve it to support simple invocation: Bug Report, gpgrt.
Jan 6 2023, 1:32 AM · gpgrt, Bug Report

Dec 22 2022

gniibe changed the status of T6315: libgpg-error: argparse: empty header doesn't work well from Open to Testing.

Ah, I had not done git pull for a week, and I didn't realize your patch.

Dec 22 2022, 12:51 AM · Bug Report, gpgrt

Dec 21 2022

werner added a comment to T6315: libgpg-error: argparse: empty header doesn't work well.

I pushed a similar fix last week: rE885a287a57cf060b4c
and gnupg has a hack to fix it for oler libgpg-error versions.

Dec 21 2022, 12:04 PM · Bug Report, gpgrt
gniibe added a project to T6315: libgpg-error: argparse: empty header doesn't work well: Bug Report.
Dec 21 2022, 3:07 AM · Bug Report, gpgrt
gniibe added a comment to T6315: libgpg-error: argparse: empty header doesn't work well.

Something like this should fix the behavior:

diff --git a/src/argparse.c b/src/argparse.c
index ef0c161..403c4a7 100644
--- a/src/argparse.c
+++ b/src/argparse.c
@@ -3000,7 +3000,13 @@ show_help (opttable_t *opts, unsigned int nopts, unsigned int flags)
         writestrings (0, "Options:", "\n", NULL);
       for (i=0; i < nopts; i++ )
         {
-          s = map_fixed_string (_( opts[ordtbl[i]].description ));
+          if ((opts[ordtbl[i]].flags & ARGPARSE_OPT_HEADER)
+              && opts[ordtbl[i]].description
+              && !*opts[ordtbl[i]].description)
+            /* It's empty header.  */
+            s = opts[ordtbl[i]].description;
+          else
+            s = map_fixed_string (_( opts[ordtbl[i]].description ));
           if ( s && *s== '@' && !s[1] ) /* Hide this line.  */
             continue;
           if ( s && (opts[ordtbl[i]].flags & ARGPARSE_OPT_HEADER))
Dec 21 2022, 3:07 AM · Bug Report, gpgrt
gniibe created T6315: libgpg-error: argparse: empty header doesn't work well.
Dec 21 2022, 1:51 AM · Bug Report, gpgrt

Dec 12 2022

gniibe changed the status of T6257: Without gpg-error-config installed (libgpg-error-1.46) libgcrypt-1.10.1 does not configure from Open to Testing.
Dec 12 2022, 9:29 AM · MacOS, libgcrypt, gpgrt
gniibe changed the status of T6264: gpgrt-config: Support multilib MinGW-w64 from Open to Testing.

AFAIU, gpgrt-config works well now for the multilib MinGW target.

Dec 12 2022, 9:25 AM · toolchain, gpgrt

Dec 6 2022

hydra3333 added a comment to T6241: cross-compile fails after commit 745d333cf7b5b6fee62e3b26c8a2ccc004e017da.

Thanks !

Dec 6 2022, 10:11 AM · workaround, gnupg (gpg22), gpgrt, Bug Report
werner closed T6241: cross-compile fails after commit 745d333cf7b5b6fee62e3b26c8a2ccc004e017da as Resolved.

A real fix will be in the next gpgrt release

Dec 6 2022, 9:29 AM · workaround, gnupg (gpg22), gpgrt, Bug Report

Nov 26 2022

gniibe changed the status of T6249: gpgrt: spawn functions from Testing to Open.
Nov 26 2022, 3:26 AM · gnupg, libassuan, gpgrt

Nov 18 2022

gniibe added a comment to T6275: gnupg26: Improve gnupg_spawn_process function.

On Windows, closing/inheriting handles is different to POSIX.
https://devblogs.microsoft.com/oldnewthing/20111216-00/?p=8873
https://devblogs.microsoft.com/oldnewthing/20130426-00/?p=4543
https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-createprocessw
https://learn.microsoft.com/en-us/windows/win32/api/winbase/ns-winbase-startupinfoexw
https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-initializeprocthreadattributelist
https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-updateprocthreadattribute
https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-deleteprocthreadattributelist

Nov 18 2022, 6:33 AM · gnupg, libassuan, gpgrt

Nov 16 2022

werner added a comment to T6249: gpgrt: spawn functions.

We should consider to break the Assuan API maybe we can do that without too many problems for the current use cases.

Nov 16 2022, 9:18 AM · gnupg, libassuan, gpgrt
gniibe added a comment to T6275: gnupg26: Improve gnupg_spawn_process function.

I'm going to use gnupg_process_* prefix for the functions.

Nov 16 2022, 8:20 AM · gnupg, libassuan, gpgrt
gniibe triaged T6275: gnupg26: Improve gnupg_spawn_process function as Normal priority.
Nov 16 2022, 8:18 AM · gnupg, libassuan, gpgrt

Nov 15 2022

gniibe added a comment to T6249: gpgrt: spawn functions.

Last two points are for future changes of assuan internal; For the case of controlling fds in detail, it is possible to use spawn callback controlling fds by the routine and let no-touching (inherit) by the spawn function.

Nov 15 2022, 1:45 AM · gnupg, libassuan, gpgrt

Nov 14 2022

werner added a comment to T6249: gpgrt: spawn functions.

I don't understand the last two points: This is only about the three standard descriptors but how shall we supply more descriptors? At least in GPGME we definitely need more.

Nov 14 2022, 7:12 AM · gnupg, libassuan, gpgrt
gniibe added a comment to T6249: gpgrt: spawn functions.

Evaluating again, I'd like to change spawn functions like this one in libgpg-error:

Nov 14 2022, 6:52 AM · gnupg, libassuan, gpgrt

Nov 10 2022

gniibe added a comment to T6249: gpgrt: spawn functions.

Examining again, I realized that the current spawn API (not published yet, only available in libgpg-error master) is not that useful in general (or difficult to use), while it works somehow.

Nov 10 2022, 5:59 AM · gnupg, libassuan, gpgrt

Nov 8 2022

gniibe added a comment to T6249: gpgrt: spawn functions.

Here is the change of GnuPG to use new spawn functions from libgpg-error:

Nov 8 2022, 7:36 AM · gnupg, libassuan, gpgrt

Nov 7 2022

gniibe changed the status of T6249: gpgrt: spawn functions from Open to Testing.
Nov 7 2022, 6:11 AM · gnupg, libassuan, gpgrt

Nov 4 2022

werner added projects to T6264: gpgrt-config: Support multilib MinGW-w64: gpgrt, toolchain.
Nov 4 2022, 1:39 PM · toolchain, gpgrt
gniibe added a comment to T6249: gpgrt: spawn functions.

For the spawn_cb, I reconsider. Having three calls complicates use, and it is actually not needed. In the case of pthread_atfork, it is needed, because fork may be used deeply in some functions. In our use cases of spawn function, prepare part of the callback can be called before calling spawn, and parent part of the callback can be called after calling spawn.

Nov 4 2022, 6:49 AM · gnupg, libassuan, gpgrt
gniibe added a comment to T6249: gpgrt: spawn functions.

I decide use of pid_t, as there are different semantics between POSIX and Windows, *and* there is a problem of MinGW-w64. I introduce gpgrt_process_t, instead.

Nov 4 2022, 6:45 AM · gnupg, libassuan, gpgrt

Oct 31 2022

gniibe added a comment to T6249: gpgrt: spawn functions.

Another thing when we define a type which represents process.
For pid_t, MinGW-w64 has a bug: https://bugzilla.redhat.com/show_bug.cgi?id=1397787 (or https://sourceforge.net/p/mingw-w64/mailman/mingw-w64-public/thread/1456671365-21759-1-git-send-email-sw%40weilnetz.de/).
(1) GetCurrentProcessId always returns 32-bit (DWORD), so, it can be represented in 32-bit (although DWORD is unsigned).
(2) POSIX requires pid_t should be signed integer https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_types.h.html
(3) Original MinGW defines pid_t as int (in include/sys/type.h by _pid_t). (checked in mingwrt-5.4.2)

Oct 31 2022, 5:56 AM · gnupg, libassuan, gpgrt

Oct 27 2022

gniibe added a comment to T6249: gpgrt: spawn functions.

@werner - having another argument might be useful. Indeed, pthread_atfork has three callback functions as its arguments (prepare, parent, and child).

Oct 27 2022, 10:12 AM · gnupg, libassuan, gpgrt
werner added a comment to T6249: gpgrt: spawn functions.

I general I agree.

Oct 27 2022, 8:44 AM · gnupg, libassuan, gpgrt
gniibe added a comment to T6249: gpgrt: spawn functions.

To have clear semantics, I propose a change to gpgrt_spawn_process_fd (calling SPAWN_CB, instead of AFTER_FORK_CB, and give it return value), and exporting gpgrt_close_all_fds to users.

Oct 27 2022, 7:55 AM · gnupg, libassuan, gpgrt
gniibe added a comment to T6249: gpgrt: spawn functions.

By the commit rE43c1e85fe29a: spawn: Expose spawn functions., spawn functions are exposed now. The API is compatible to the one of internal functions in GnuPG master (2.3).
Semantics is not well-defined portably for:

  • gpgrt_spawn_process: EXCEPT only makes sense in POSIX. User could expect that the API does closing all fds except fds specified by EXCEPT in POSIX.
  • gpgrt_spawn_process_fd: AFTER_FORK_CB only makes sense in POSIX. User could specify the callback so that it can control sigmask, envvar, open/close/dup-ing file descriptors, making sure releasing some resources beforehand, etc.
Oct 27 2022, 4:11 AM · gnupg, libassuan, gpgrt

Oct 24 2022

debohman added a comment to T6257: Without gpg-error-config installed (libgpg-error-1.46) libgcrypt-1.10.1 does not configure.

Thank you. I am glad that it is already resolved.

Oct 24 2022, 6:40 AM · MacOS, libgcrypt, gpgrt
gniibe triaged T6257: Without gpg-error-config installed (libgpg-error-1.46) libgcrypt-1.10.1 does not configure as Normal priority.
Oct 24 2022, 6:37 AM · MacOS, libgcrypt, gpgrt
gniibe added a comment to T6257: Without gpg-error-config installed (libgpg-error-1.46) libgcrypt-1.10.1 does not configure.

Will this be in the next release of libgcrypt?

Oct 24 2022, 6:17 AM · MacOS, libgcrypt, gpgrt
debohman added a comment to T6257: Without gpg-error-config installed (libgpg-error-1.46) libgcrypt-1.10.1 does not configure.

Okay. So, I removed gpg-error-config, updated libgcrypt/m4/gpg-error.m4, and then rebuilt configure. And, gcrypt configures and builds.

Oct 24 2022, 5:33 AM · MacOS, libgcrypt, gpgrt