This commit is contained in:
parent
ca710c27a2
commit
21ce789f92
@ -1,7 +1,9 @@
|
|||||||
--- agent/gpg-agent.c
|
Index: agent/gpg-agent.c
|
||||||
|
===================================================================
|
||||||
|
--- agent/gpg-agent.c.orig
|
||||||
+++ agent/gpg-agent.c
|
+++ agent/gpg-agent.c
|
||||||
@@ -789,6 +789,10 @@
|
@@ -874,6 +874,10 @@ main (int argc, char **argv )
|
||||||
int fd_ssh;
|
gnupg_fd_t fd_ssh;
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
|
|
||||||
+ char *tmp1, *tmp;
|
+ char *tmp1, *tmp;
|
||||||
@ -11,7 +13,7 @@
|
|||||||
/* Remove the DISPLAY variable so that a pinentry does not
|
/* Remove the DISPLAY variable so that a pinentry does not
|
||||||
default to a specific display. There is still a default
|
default to a specific display. There is still a default
|
||||||
display when gpg-agent was started using --display or a
|
display when gpg-agent was started using --display or a
|
||||||
@@ -800,16 +804,26 @@
|
@@ -885,16 +889,25 @@ main (int argc, char **argv )
|
||||||
unsetenv ("DISPLAY");
|
unsetenv ("DISPLAY");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -21,23 +23,23 @@
|
|||||||
+ len = strlen(tmp1) + strlen(tmp2) + 10;
|
+ len = strlen(tmp1) + strlen(tmp2) + 10;
|
||||||
+ tmp = malloc(len);
|
+ tmp = malloc(len);
|
||||||
+
|
+
|
||||||
+ snprintf(tmp, len, "%s%s%s", tmp1, tmp1 && strlen(tmp1) > 0 ? "/" : "", tmp2);
|
+ snprintf(tmp, len, "%s%s%s", tmp1, tmp1 && strlen(tmp1) > 0 ? "/" : "", tmp2);
|
||||||
|
|
||||||
/* Create the sockets. */
|
/* Create the sockets. */
|
||||||
socket_name = create_socket_name (standard_socket,
|
socket_name = create_socket_name (use_standard_socket,
|
||||||
"S.gpg-agent",
|
"S.gpg-agent",
|
||||||
- "/tmp/gpg-XXXXXX/S.gpg-agent");
|
- "/tmp/gpg-XXXXXX/S.gpg-agent");
|
||||||
- if (opt.ssh_support)
|
- if (opt.ssh_support)
|
||||||
+ tmp);
|
+ tmp);
|
||||||
+ if (opt.ssh_support) {
|
+ if (opt.ssh_support) {
|
||||||
+ snprintf(tmp, len, "%s%s%s.ssh", tmp1, tmp1 && strlen(tmp1) > 0 ? "/" : "", tmp2);
|
+ snprintf(tmp, len, "%s%s%s.ssh", tmp1, tmp1 && strlen(tmp1) > 0 ? "/" : "", tmp2);
|
||||||
socket_name_ssh = create_socket_name (standard_socket,
|
socket_name_ssh = create_socket_name (use_standard_socket,
|
||||||
"S.gpg-agent.ssh",
|
"S.gpg-agent.ssh",
|
||||||
- "/tmp/gpg-XXXXXX/S.gpg-agent.ssh");
|
- "/tmp/gpg-XXXXXX/S.gpg-agent.ssh");
|
||||||
|
-
|
||||||
+ tmp);
|
+ tmp);
|
||||||
+ }
|
+ }
|
||||||
|
|
||||||
+ free(tmp);
|
+ free(tmp);
|
||||||
fd = create_server_socket (standard_socket, socket_name);
|
fd = create_server_socket (use_standard_socket, socket_name, 0,
|
||||||
|
&socket_nonce);
|
||||||
if (opt.ssh_support)
|
if (opt.ssh_support)
|
||||||
fd_ssh = create_server_socket (standard_socket, socket_name_ssh);
|
|
||||||
|
@ -1,28 +1,34 @@
|
|||||||
--- common/Makefile.am
|
Index: common/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- common/Makefile.am.orig
|
||||||
+++ common/Makefile.am
|
+++ common/Makefile.am
|
||||||
@@ -26,7 +26,7 @@
|
@@ -31,7 +31,7 @@ CLEANFILES = audit-events.h status-codes
|
||||||
|
|
||||||
AM_CPPFLAGS = -I$(top_srcdir)/gl -I$(top_srcdir)/intl
|
AM_CPPFLAGS = -I$(top_srcdir)/gl -I$(top_srcdir)/intl
|
||||||
|
|
||||||
-AM_CFLAGS = $(LIBGCRYPT_CFLAGS) $(KSBA_CFLAGS)
|
-AM_CFLAGS = $(LIBGCRYPT_CFLAGS) $(KSBA_CFLAGS)
|
||||||
+AM_CFLAGS = $(LIBGCRYPT_CFLAGS) $(KSBA_CFLAGS) -fPIC
|
+AM_CFLAGS = $(LIBGCRYPT_CFLAGS) $(KSBA_CFLAGS) -fPIC
|
||||||
|
|
||||||
common_sources = \
|
include $(top_srcdir)/am/cmacros.am
|
||||||
common-defs.h \
|
|
||||||
--- gl/Makefile.am
|
Index: gl/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- gl/Makefile.am.orig
|
||||||
+++ gl/Makefile.am
|
+++ gl/Makefile.am
|
||||||
@@ -13,6 +13,8 @@
|
@@ -13,6 +13,8 @@
|
||||||
|
|
||||||
AUTOMAKE_OPTIONS = 1.5 gnits no-dependencies
|
AUTOMAKE_OPTIONS = 1.5 gnits
|
||||||
|
|
||||||
+AM_CFLAGS = -fPIC
|
+AM_CFLAGS = -fPIC
|
||||||
+
|
+
|
||||||
noinst_LIBRARIES = libgnu.a
|
noinst_LIBRARIES = libgnu.a
|
||||||
|
|
||||||
libgnu_a_SOURCES =
|
libgnu_a_SOURCES =
|
||||||
--- jnlib/Makefile.am
|
Index: jnlib/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- jnlib/Makefile.am.orig
|
||||||
+++ jnlib/Makefile.am
|
+++ jnlib/Makefile.am
|
||||||
@@ -27,7 +27,7 @@
|
@@ -27,7 +27,7 @@ TESTS = $(module_tests)
|
||||||
AM_CPPFLAGS = -I$(top_srcdir)/intl
|
AM_CPPFLAGS = -I$(top_srcdir)/intl
|
||||||
|
|
||||||
# We need libgcrypt because libjnlib-config includes gcrypt.h
|
# We need libgcrypt because libjnlib-config includes gcrypt.h
|
||||||
@ -31,9 +37,11 @@
|
|||||||
|
|
||||||
noinst_LIBRARIES = libjnlib.a
|
noinst_LIBRARIES = libjnlib.a
|
||||||
|
|
||||||
--- tools/Makefile.am
|
Index: tools/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- tools/Makefile.am.orig
|
||||||
+++ tools/Makefile.am
|
+++ tools/Makefile.am
|
||||||
@@ -27,14 +27,14 @@
|
@@ -25,14 +25,14 @@ EXTRA_DIST = \
|
||||||
AM_CPPFLAGS = -I$(top_srcdir)/gl -I$(top_srcdir)/intl -I$(top_srcdir)/common
|
AM_CPPFLAGS = -I$(top_srcdir)/gl -I$(top_srcdir)/intl -I$(top_srcdir)/common
|
||||||
include $(top_srcdir)/am/cmacros.am
|
include $(top_srcdir)/am/cmacros.am
|
||||||
|
|
||||||
@ -51,7 +59,7 @@
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
if BUILD_SYMCRYPTRUN
|
if BUILD_SYMCRYPTRUN
|
||||||
@@ -44,19 +44,19 @@
|
@@ -43,14 +43,14 @@ endif
|
||||||
|
|
||||||
bin_PROGRAMS = gpgconf gpg-connect-agent gpgkey2ssh ${symcryptrun}
|
bin_PROGRAMS = gpgconf gpg-connect-agent gpgkey2ssh ${symcryptrun}
|
||||||
if !HAVE_W32_SYSTEM
|
if !HAVE_W32_SYSTEM
|
||||||
@ -59,16 +67,19 @@
|
|||||||
+bin_PROGRAMS += watchgnupg gpgparsemail gpgsplit
|
+bin_PROGRAMS += watchgnupg gpgparsemail gpgsplit
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if !DISABLE_REGEX
|
||||||
|
libexec_PROGRAMS = gpg-check-pattern
|
||||||
|
endif
|
||||||
|
|
||||||
-noinst_PROGRAMS = clean-sat mk-tdata make-dns-cert gpgsplit
|
-noinst_PROGRAMS = clean-sat mk-tdata make-dns-cert gpgsplit
|
||||||
+noinst_PROGRAMS = clean-sat mk-tdata make-dns-cert
|
+noinst_PROGRAMS = clean-sat mk-tdata make-dns-cert
|
||||||
|
|
||||||
common_libs = $(libcommon) ../jnlib/libjnlib.a ../gl/libgnu.a
|
common_libs = $(libcommon) ../jnlib/libjnlib.a ../gl/libgnu.a
|
||||||
pwquery_libs = ../common/libsimple-pwquery.a
|
pwquery_libs = ../common/libsimple-pwquery.a
|
||||||
|
@@ -59,6 +59,7 @@ gpgsplit_LDADD = $(common_libs) \
|
||||||
gpgsplit_LDADD = $(common_libs) \
|
$(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) \
|
||||||
$(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) \
|
|
||||||
$(ZLIBS) $(LIBINTL) $(LIBICONV)
|
$(ZLIBS) $(LIBINTL) $(LIBICONV)
|
||||||
-
|
|
||||||
+gpgsplit_LDFLAGS = -pie
|
+gpgsplit_LDFLAGS = -pie
|
||||||
gpgconf_SOURCES = gpgconf.c gpgconf.h gpgconf-comp.c no-libgcrypt.c
|
gpgconf_SOURCES = gpgconf.c gpgconf.h gpgconf-comp.c no-libgcrypt.c
|
||||||
|
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:9c5133eb8bee56013c851f9c7da2c4823ac4de8f6b00bd9f9b97a75c8494ad69
|
|
||||||
size 3513529
|
|
3
gnupg-2.0.8.tar.bz2
Normal file
3
gnupg-2.0.8.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:16f310afe4740a26475c7273f585861a4bdefecbde27c214cc30c0db45d26913
|
||||||
|
size 3654523
|
11
gpg2.changes
11
gpg2.changes
@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 8 10:48:30 CET 2008 - sassmann@suse.de
|
||||||
|
|
||||||
|
- update to GnuPG-2.0.8
|
||||||
|
- adapted patches to apply properly
|
||||||
|
* gnupg-1.9.18-tmpdir.diff
|
||||||
|
* gnupg-2.0.4-install_tools.diff
|
||||||
|
- gnupg-2.0.5.fixes-from-svn-20070812.diff commented out,
|
||||||
|
included in upstream 2.0.8
|
||||||
|
- use optflags during build
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Sep 12 22:40:46 CEST 2007 - ltinkl@suse.cz
|
Wed Sep 12 22:40:46 CEST 2007 - ltinkl@suse.cz
|
||||||
|
|
||||||
|
23
gpg2.spec
23
gpg2.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package gpg2 (Version 2.0.5)
|
# spec file for package gpg2 (Version 2.0.8)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
# This file and all modifications and additions to the pristine
|
# This file and all modifications and additions to the pristine
|
||||||
# package are under the same license as the package itself.
|
# package are under the same license as the package itself.
|
||||||
#
|
#
|
||||||
@ -24,9 +24,9 @@ Requires: pinentry, dirmngr
|
|||||||
Provides: newpg gpg = 1.4.7 gnupg = %{version}
|
Provides: newpg gpg = 1.4.7 gnupg = %{version}
|
||||||
Obsoletes: newpg gpg <= 1.4.7
|
Obsoletes: newpg gpg <= 1.4.7
|
||||||
Summary: GnuPG 2
|
Summary: GnuPG 2
|
||||||
Version: 2.0.5
|
Version: 2.0.8
|
||||||
Release: 2
|
Release: 1
|
||||||
Source: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-2.0.5.tar.bz2
|
Source: gnupg-2.0.8.tar.bz2
|
||||||
Patch1: gnupg-2.0.5.fixes-from-svn-20070812.diff
|
Patch1: gnupg-2.0.5.fixes-from-svn-20070812.diff
|
||||||
Patch3: gnupg-2.0.4-oldkey.diff
|
Patch3: gnupg-2.0.4-oldkey.diff
|
||||||
Patch5: gnupg-1.9.22-ccid-driver-fix.diff
|
Patch5: gnupg-1.9.22-ccid-driver-fix.diff
|
||||||
@ -48,7 +48,8 @@ Authors:
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n gnupg-%version
|
%setup -q -n gnupg-%version
|
||||||
%patch1 -p1
|
#%patch1 -p1
|
||||||
|
#included in upstream 2.0.8
|
||||||
%patch3
|
%patch3
|
||||||
%patch5
|
%patch5
|
||||||
%patch6
|
%patch6
|
||||||
@ -63,6 +64,7 @@ sed -i '/AM_GNU_GETTEXT_VERSION/s/0.16.1/0.16/' configure.ac
|
|||||||
autoreconf -fi
|
autoreconf -fi
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
CFLAGS="%{optflags}" \
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=%{_prefix} \
|
--prefix=%{_prefix} \
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
@ -117,7 +119,16 @@ make check
|
|||||||
/usr/sbin/addgnupghome
|
/usr/sbin/addgnupghome
|
||||||
/usr/sbin/applygnupgdefaults
|
/usr/sbin/applygnupgdefaults
|
||||||
/usr/share/gnupg
|
/usr/share/gnupg
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jan 08 2008 - sassmann@suse.de
|
||||||
|
- update to GnuPG-2.0.8
|
||||||
|
- adapted patches to apply properly
|
||||||
|
* gnupg-1.9.18-tmpdir.diff
|
||||||
|
* gnupg-2.0.4-install_tools.diff
|
||||||
|
- gnupg-2.0.5.fixes-from-svn-20070812.diff commented out,
|
||||||
|
included in upstream 2.0.8
|
||||||
|
- use optflags during build
|
||||||
* Wed Sep 12 2007 - ltinkl@suse.cz
|
* Wed Sep 12 2007 - ltinkl@suse.cz
|
||||||
- fix #304749 - gpg2 unable to use old secret key
|
- fix #304749 - gpg2 unable to use old secret key
|
||||||
* Mon Sep 10 2007 - ltinkl@suse.cz
|
* Mon Sep 10 2007 - ltinkl@suse.cz
|
||||||
|
Loading…
Reference in New Issue
Block a user