Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Nov 2016 12:25:59 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 214568] security/gnupg: gpg-agent and other tools broken with libpgp-error 1.25
Message-ID:  <bug-214568-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214568

            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@FreeBSD.org
          Reporter: cmt@freebsd.org
                CC: novel@FreeBSD.org
             Flags: maintainer-feedback?(kuriyama@FreeBSD.org)
          Assignee: kuriyama@FreeBSD.org

Created attachment 177065
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D177065&action=
=3Dedit
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 "Asserti=
on
failed: (res =3D=3D 0), function enter_npth, file npth.c, line 123". Invest=
igation
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 nee=
ds
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 th=
eir
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=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20
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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-214568-13>