From f3c4b049d8efd465a52e6a0871f2cf960ac4d77b Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Sat, 2 Jul 2005 00:22:34 +0000 Subject: Crashing selftest fixed thanks to patch from Ben Peddell - bug #80044 Package-Manager: portage-2.0.51.22-r1 --- app-crypt/gnupg/files/gnupg-1.4.1-selftest.patch | 28 ++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 app-crypt/gnupg/files/gnupg-1.4.1-selftest.patch (limited to 'app-crypt/gnupg/files') diff --git a/app-crypt/gnupg/files/gnupg-1.4.1-selftest.patch b/app-crypt/gnupg/files/gnupg-1.4.1-selftest.patch new file mode 100644 index 000000000000..4ae2d70b8d44 --- /dev/null +++ b/app-crypt/gnupg/files/gnupg-1.4.1-selftest.patch @@ -0,0 +1,28 @@ +--- gnupg-1.4.1/g10/openfile.c.orig 2004-10-14 17:11:56.000000000 +1000 ++++ gnupg-1.4.1/g10/openfile.c 2005-06-28 22:27:52.611861217 +1000 +@@ -392,8 +392,10 @@ + * To cope with HOME, we do compare only the suffix if we see that + * the default homedir does start with a tilde. + */ ++#ifndef ENABLE_SELINUX_HACKS + if( opt.dry_run || opt.no_homedir_creation ) + return; ++#endif + + if ( ( *defhome == '~' + && ( strlen(fname) >= strlen (defhome+1) +--- gnupg-1.4.1/checks/Makefile.in.orig 2005-03-16 01:52:20.000000000 +1000 ++++ gnupg-1.4.1/checks/Makefile.in 2005-06-29 00:04:24.613682330 +1000 +@@ -516,9 +516,11 @@ + + ./gpg_dearmor: + echo '#!/bin/sh' >./gpg_dearmor +- echo "../g10/gpg --no-options --no-greeting \ ++ echo "../g10/gpg --no-options --no-greeting --homedir . \ + --no-secmem-warning --batch --dearmor" >>./gpg_dearmor + chmod 755 ./gpg_dearmor ++ if test ! -f ./pubring.gpg; then touch -t 197001020000 ./pubring.gpg; fi ++ if test ! -f ./secring.gpg; then touch -t 197001020000 ./secring.gpg; fi + + ./pubring.gpg: $(srcdir)/pubring.asc $(srcdir)/pubdemo.asc ./gpg_dearmor + ./gpg_dearmor > ./pubring.gpg < $(srcdir)/pubring.asc -- cgit v1.2.3-65-gdbad