[Bug 214568] security/gnupg: gpg-agent and other tools broken with libpgp-error 1.25

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Nov 16 12:26:00 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214568

            Bug ID: 214568
           Summary: security/gnupg: gpg-agent and other tools broken with
                    libpgp-error 1.25
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: kuriyama at FreeBSD.org
          Reporter: cmt at freebsd.org
                CC: novel at FreeBSD.org
             Flags: maintainer-feedback?(kuriyama at FreeBSD.org)
          Assignee: kuriyama at FreeBSD.org

Created attachment 177065
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=177065&action=edit
fix initialisation order

After yesterday's update to libgpg-error 1.25 (ports r426175) gpg-agent (and
scdaemon, dirmngr and possibly more) abort on startup with message "Assertion
failed: (res == 0), function enter_npth, file npth.c, line 123". Investigation
shows that the cause of this is a wrong order of initialisation of npth and
libgpg-error - since the update, libgpg-error calls out to npth so npth needs
to be initialised before libgpg-error.

Upstream gnupg has fixed this in the upcoming 2.1.16 - but there was a lot of
shuffling in the initialisation routines, which makes a direct import of their
fix into our port about impossible. Upstream has been notified (or will be,
once the mail makes it through greylisting).

Attached patch does the naive thing and just moves the npth-initialisation up
in the affected core (and drags the patch-doc-Makefile.in into makepatch
format).
Please note added patch files:

M       security/gnupg/Makefile                                                
A       security/gnupg/files/patch-agent_gpg-agent.c
A       security/gnupg/files/patch-dirmngr_dirmngr.c
M       security/gnupg/files/patch-doc-Makefile.in
A       security/gnupg/files/patch-g13_g13.c
A       security/gnupg/files/patch-scd_scdaemon.c

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list