summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Black <dragonheart@gentoo.org>2005-07-02 00:22:34 +0000
committerDaniel Black <dragonheart@gentoo.org>2005-07-02 00:22:34 +0000
commitf3c4b049d8efd465a52e6a0871f2cf960ac4d77b (patch)
tree07bc4f8e1fb307f01a7e60f48b457af516bd6448 /app-crypt/gnupg/files
parentStable on mips (diff)
downloadhistorical-f3c4b049d8efd465a52e6a0871f2cf960ac4d77b.tar.gz
historical-f3c4b049d8efd465a52e6a0871f2cf960ac4d77b.tar.bz2
historical-f3c4b049d8efd465a52e6a0871f2cf960ac4d77b.zip
Crashing selftest fixed thanks to patch from Ben Peddell - bug #80044
Package-Manager: portage-2.0.51.22-r1
Diffstat (limited to 'app-crypt/gnupg/files')
-rw-r--r--app-crypt/gnupg/files/gnupg-1.4.1-selftest.patch28
1 files changed, 28 insertions, 0 deletions
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