[Pkg-gnupg-commit] [gnupg2] 01/01: try to take over win32-gpgv.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Fri Feb 5 20:21:26 UTC 2016


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch debian-win32
in repository gnupg2.

commit 38444ff875ffe9328557daa61214a10efa4e78dc
Author: Daniel Kahn Gillmor <dkg at fifthhorseman.net>
Date:   Fri Feb 5 09:36:31 2016 -0500

    try to take over win32-gpgv.
    
    This changeset doesn't currently work.
    
    The goal is to take over building of the win32 port of gpgv from the
    gnupg 1.4.x packaging.
    
    In practice, i think we're going to need a win32 build of libgpg-error
    and libgcrypt at least.
    
    It's possible that we'll need something to do with iconv also.  note
    that iconv is built into glibc on debian, so if we need iconv for
    win32, we may need to package it separately.
    
    Asking over on gnupg-devel at conference.jabber.gnupg.org, aheinecke
    pointed me to a few different resources for future review:
    
      https://bugs.gnupg.org/gnupg/issue2134 (trouble with iconv on windows)
      https://wiki.gnupg.org/Build2.1_Windows (generic instructions)
      https://build.opensuse.org/package/show/windows:mingw:win32/mingw32-gpg2 (suse packaging)
    
    the current failures happen over not being able to find iconv, though
    we shouldn't need that for gpgv:
    
    > checking if gcc supports -Wpointer-arith... yes
    > configure:
    > ***
    > *** The system does not provide a working iconv function.  Please
    > *** install a suitable library; for example GNU Libiconv which is
    > *** available at:
    > ***   http://ftp.gnu.org/gnu/libiconv/
    > ***
---
 debian/clean              |  1 +
 debian/control            | 17 +++++++++++++++++
 debian/gpgv-win32.install |  1 +
 debian/rules              |  6 ++++++
 4 files changed, 25 insertions(+)

diff --git a/debian/clean b/debian/clean
index fc12542..141cecf 100644
--- a/debian/clean
+++ b/debian/clean
@@ -3,3 +3,4 @@ debian/gpg-check-pattern.1
 po/*.gmo
 po/stamp-po
 build-gpgv-udeb/
+build-gpgv-win32/
diff --git a/debian/control b/debian/control
index 6b131cf..7f7d24e 100644
--- a/debian/control
+++ b/debian/control
@@ -29,6 +29,7 @@ Build-Depends: automake,
                texinfo,
                transfig,
                zlib1g-dev | libz-dev
+Build-Depends-Indep: mingw-w64
 Vcs-Git: https://anonscm.debian.org/git/pkg-gnupg/gnupg2.git
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-gnupg/gnupg2.git
 Homepage: https://www.gnupg.org/
@@ -148,3 +149,19 @@ Description: minimal signature verification tool
  .
  This is GnuPG's signature verification tool, gpgv, packaged in minimal
  form for use in debian-installer.
+
+Package: gpgv-win32
+Architecture: all
+Priority: extra
+Depends: ${misc:Depends}
+Suggests: wine
+Description: GNU privacy guard - signature verification tool (win32 build)
+ GnuPG is GNU's tool for secure communication and data storage.
+ .
+ gpgv is a stripped-down version of gnupg which is only able to check
+ signatures.  It is smaller than the full-blown gnupg and uses a
+ different (and simpler) way to check that the public keys used to
+ make the signature are trustworthy.
+ .
+ This is a win32 version of gpgv.  It's meant to be used by the win32-loader
+ component of Debian-Installer.
diff --git a/debian/gpgv-win32.install b/debian/gpgv-win32.install
new file mode 100644
index 0000000..cf3cd8c
--- /dev/null
+++ b/debian/gpgv-win32.install
@@ -0,0 +1 @@
+build-gpgv-win32/g10/gpgv.exe usr/share/win32
diff --git a/debian/rules b/debian/rules
index ccde094..4132296 100755
--- a/debian/rules
+++ b/debian/rules
@@ -28,6 +28,10 @@ GPGV_UDEB_UNNEEDED = gpgtar bzip2 gpgsm scdaemon dirmngr doc tofu exec ldap gnut
 override_dh_auto_configure:
 	dh_auto_configure --builddirectory=build-gpgv-udeb -- \
 	   	$(foreach x, $(GPGV_UDEB_UNNEEDED), --disable-$(x))
+	DEB_BUILD_MAINT_OPTIONS=$(DEB_BUILD_MAINT_OPTIONS),-relro \
+	    dh_auto_configure --builddirectory=build-gpgv-win32 -- \
+	   	$(foreach x, $(GPGV_UDEB_UNNEEDED), --disable-$(x)) \
+		--host i686-w64-mingw32
 	dh_auto_configure -- --libexecdir=\$${prefix}/lib/gnupg2 \
 		--disable-gpgtar \
 		--enable-symcryptrun --enable-large-secmem
@@ -35,6 +39,8 @@ override_dh_auto_configure:
 override_dh_auto_build:
 	dh_auto_build --builddirectory=build-gpgv-udeb
 	ln build-gpgv-udeb/g10/gpgv2 build-gpgv-udeb/g10/gpgv
+	dh_auto_build --builddirectory=build-gpgv-win32
+	ln build-gpgv-win32/g10/gpgv2.exe build-gpgv-win32/g10/gpgv.exe
 	dh_auto_build
 
 override_dh_shlibdeps:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git



More information about the Pkg-gnupg-commit mailing list