Page MenuHome GnuPG

gpgrtProject
ActivePublic

Members

  • This project does not have any members.
  • View All

Watchers

  • This project does not have any watchers.
  • View All

Recent Activity

Tue, Dec 6

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

Thanks !

Tue, Dec 6, 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

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

Sat, Nov 26

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

Fri, Nov 18

gniibe added a comment to T6275: gnupg: 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

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

Wed, Nov 16

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.

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

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

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

Tue, Nov 15

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.

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

Mon, Nov 14

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.

Mon, Nov 14, 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:

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

Thu, Nov 10

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.

Thu, Nov 10, 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
gniibe added a comment to T6257: Without gpg-error-config installed (libgpg-error-1.46) libgcrypt-1.10.1 does not configure.

Thank you for the information.

Oct 24 2022, 5:06 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.

Actually, it looks as if libgpg-error-1.46 already has that fix.

Oct 24 2022, 5:03 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.

Thank you for your quick reply.

Oct 24 2022, 4:51 AM · MacOS, libgcrypt, gpgrt
gniibe removed a project from T5010: gpgrt-config: Bug for handling Requires: Restricted Project.
Oct 24 2022, 4:48 AM · gpgrt
gniibe removed a project from T5595: gpgrt-config doesn't work well with PKG_CONFIG_LIBDIR="" and setting PKG_CONFIG_PATH: Restricted Project.
Oct 24 2022, 4:47 AM · gpgrt
debohman added a comment to T6257: Without gpg-error-config installed (libgpg-error-1.46) libgcrypt-1.10.1 does not configure.

Yes, it is on macOS.

Oct 24 2022, 4:41 AM · MacOS, libgcrypt, gpgrt
gniibe claimed T6257: Without gpg-error-config installed (libgpg-error-1.46) libgcrypt-1.10.1 does not configure.

From the information in gpg-error.pc, I think it's on macOS.

Oct 24 2022, 4:35 AM · MacOS, libgcrypt, gpgrt

Oct 21 2022

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

I see. I understand the use cases for POSIX to keep some file descriptors.

Oct 21 2022, 8:41 AM · gnupg, libassuan, gpgrt

Oct 20 2022

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

without this list we don't have an option to keep file descriptors open; its not just stderr but for example log files and descriptors which pare passed by other meands than libassuan functions.

Oct 20 2022, 1:52 PM · gnupg, libassuan, gpgrt
gniibe added a comment to T6249: gpgrt: spawn functions.
  • assuan_pipe_connect and internal _assuan_spawn
Oct 20 2022, 8:13 AM · gnupg, libassuan, gpgrt

Oct 19 2022

gniibe triaged T6249: gpgrt: spawn functions as Normal priority.
Oct 19 2022, 3:12 AM · gnupg, libassuan, gpgrt

Oct 17 2022

gniibe claimed T6241: cross-compile fails after commit 745d333cf7b5b6fee62e3b26c8a2ccc004e017da.

Thank you for your report. IIUC, your log is the build log of GnuPG 2.2, so, I put the tag "gnupg (gpg22)".

Oct 17 2022, 3:22 AM · workaround, gnupg (gpg22), gpgrt, Bug Report

Oct 16 2022

hydra3333 created T6241: cross-compile fails after commit 745d333cf7b5b6fee62e3b26c8a2ccc004e017da.
Oct 16 2022, 6:47 AM · workaround, gnupg (gpg22), gpgrt, Bug Report

Oct 11 2022

gniibe closed T5769: fix typo in autogen.sh as Resolved.

Fixed in libgpg-error 1.46 and pinentry 1.2.1.

Oct 11 2022, 8:28 AM · Documentation, gpgrt

Oct 7 2022

werner closed T6136: build failure with slibtool - error: undefined symbol: QGpgME::RevokeKeyJob::staticMetaObject as Resolved.
Oct 7 2022, 11:41 AM · gpgrt, gpgme, Bug Report
werner closed T5683: Deprecation of gpg-error-config as Resolved.
Oct 7 2022, 11:41 AM · gpgrt
werner closed T5912: libgpg-error: Drop WindowsCE support as Resolved.
Oct 7 2022, 11:40 AM · gpgrt
werner closed T5890: EOPNOTSUPP is not defined in mingw.org's MinGW, fails compilation of libgpg-error-1.44 as Resolved.
Oct 7 2022, 11:40 AM · gpgrt, Bug Report
werner closed T5922: libgpg-error: gpgrt_log_get_fd always returns -1 even if it's not tcp/socket. as Resolved.
Oct 7 2022, 11:39 AM · Bug Report, gpgrt
werner closed T6112: libgpg-error,w32: bidirectional Pipe support for estream as Resolved.
Oct 7 2022, 11:39 AM · Windows, gpgrt, Bug Report
werner closed T5923: Release Libgpg-error 1.46 as Resolved.
Oct 7 2022, 11:39 AM · Release Info, gpgrt
werner triaged T6231: Release Libgpg-error 1.47 as Low priority.
Oct 7 2022, 10:23 AM · Release Info, gpgrt

Sep 22 2022

werner changed the status of T5683: Deprecation of gpg-error-config from Open to Testing.
Sep 22 2022, 11:02 AM · gpgrt
werner changed the status of T5922: libgpg-error: gpgrt_log_get_fd always returns -1 even if it's not tcp/socket. from Open to Testing.
Sep 22 2022, 11:01 AM · Bug Report, gpgrt
werner changed the status of T5748: Adding poll/ppoll to NPTH, a subtask of T2385: support more than 1024 fds., from Open to Testing.
Sep 22 2022, 10:58 AM · gpgrt, Feature Request, gpgme