Created attachment 165535 [details] mail/mutt Makefile patch for GSSAPI Uses system mail/mutt rolls its own GSSAPI handling system, looking for installed libraries, rather than employing the "Uses" knobs (which probably post-date the mutt Port's GSSAPI support). When linking against OpenSSL from Ports, this results in one mutt process pulling in both libcrypto.so.8 from Ports and libcrypto.so.7 from the base system (FreeBSD 10.1), leading to environ corruption problems when running external commands, which complain at startup (libc routines detect the corruption). These look like: sh: environment corrupt; missing value for SOME_VAR and can be seen when, eg, viewing a PGP-signed mail with GnuPG integration turned on. This patch switches mail/mutt to use the GSSAPI "Uses" system, and has been verified to work for me with Heimdal from Ports. I haven't tested the other variants, but they're textbook copy/paste. I previously reported this via mail to the port maintainer on 2015-05-24 (at which time, the maintainer was out-of-office) and haven't chased between then and now.
I will check this soon and will give maintainer feedback. Sorry for the delay. Udo
This does not work for GSSAPI taken from base, so I have to look deeper into that later next week, ...
Created attachment 166102 [details] additional patch The additional patch is necessary to get base config working. Please commit this after the pending PR 205284 has been closed.
@Udo, Can you confirm this change passes QA (portlint, poudriere) on a jail that uses base GSSAPI please
Created attachment 166110 [details] poudriere log Here is a poudriere log as requested.
Thank you!
Created attachment 166225 [details] single patch For your convenience here the patch in one file which should be applicable after PR 205284 has been committed. The poudriere log still applies as nothing has changed.
Please note: new file to be added to the tree: files/patch-m4-gssapi.m4
Testbuilds in all variants done, looks fine.
A commit references this bug: Author: pi Date: Thu Jan 28 11:50:36 UTC 2016 New revision: 407407 URL: https://svnweb.freebsd.org/changeset/ports/407407 Log: mail/mutt: provide options to build with GSSAPI variants The port rolls its own GSSAPI handling system, looking for installed libraries, rather than employing the "Uses" knobs (which probably post-date the mutt Port's GSSAPI support). When linking against OpenSSL from Ports, this results in one mutt process pulling in both libcrypto.so.8 from Ports and libcrypto.so.7 from the base system (FreeBSD 10.1), leading to environ corruption problems when running external commands, which complain at startup (libc routines detect the corruption). These look like: sh: environment corrupt; missing value for SOME_VAR and can be seen when, eg, viewing a PGP-signed mail with GnuPG integration turned on. This patch switches mail/mutt to use the GSSAPI "Uses" system. PR: 206220 Submitted by: Phil Pennock <freebsd@phil.spodhuis.org> Approved by: Udo Schweigert <Udo.Schweigert@siemens.com> (maintainer) Changes: head/mail/mutt/Makefile head/mail/mutt/files/patch-m4-gssapi.m4
A commit references this bug: Author: pi Date: Thu Jan 28 12:11:41 UTC 2016 New revision: 407408 URL: https://svnweb.freebsd.org/changeset/ports/407408 Log: mail/mutt: set GSSAPI default to NONE - this was the old default PR: 206220 Changes: head/mail/mutt/Makefile
Thanks, committed!