Discussion:
[ANNOUNCEMENT] Updated cygwin package: gnupg-1.4.2.1-1
Volker Quetschke
2006-02-26 16:30:41 UTC
Permalink
gnupg-1.4.2.1-1 has been uploaded to cygwin.com


DESCRIPTION
===========
GNU Privacy Guard is GNU's tool for secure communication and data
storage. It can be used to encrypt data and to create digital
signatures. GnuPG is a complete and free replacement for PGP. It
includes an advanced key management facility and is compliant with
the proposed OpenPGP Internet standard as described in RFC 2440.

Primary source for information for gnupg is at http://www.gnupg.org


NEWS
====
* New upstream release.


LEGAL ISSUES
============
Some countries have regulations on the use of cryptographics systems;
It may be unlawful to use GnuPG in these countries. Please visit
http://www.gnupg.org/legal.html
for more informations concerning this topic.


NOTES
=====

You find build instructions for a windows native executable (MinGW)
after unpacking the source (see gnupg-1.4.2.1.README for details) in:
/usr/src/gnupg-1.4.2.1/CYGWIN-PATCHES/gnupg.MinGW.README

The source package contains the original's package detached gpg
signature by the author and detached signatures of the patch file
and the build/packaging script signed by the cygwin package maintainer
of gnupg.


UPDATE
======
To update your installation, click on the "Install Cygwin now" link on
the http://cygwin.com/ web page. This downloads setup.exe to your
system. Save it and run setup, answer the questions and pick up
the above mentioned package from the 'Utils' category.


DOWNLOAD:
=========
Note that downloads from sources.redhat.com (aka cygwin.com) aren't
allowed due to bandwidth limitations. This means that you will need
to find a mirror which has this update, please choose the one nearest to
you: http://cygwin.com/mirrors.html


QUESTIONS:
==========
If you want to make a point or ask a question the Cygwin mailing
list is the appropriate place.


CYGWIN-ANNOUNCE UNSUBSCRIBE INFO:
=================================
To unsubscribe to the cygwin-announce mailing list, look at the
"List-Unsubscribe: " tag in the email header of this message. Send
email to the address specified there. It will be in the format:

cygwin-announce-unsubscribe-YOU=***@cygwin.com


If you need more information on unsubscribing, start reading here:

http://sources.redhat.com/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at this URL.
--
PGP/GPG key (ID: 0x9F8A785D) available from wwwkeys.de.pgp.net
key-fingerprint 550D F17E B082 A3E9 F913 9E53 3D35 C9BA 9F8A 785D
Sven Köhler
2006-02-26 18:55:57 UTC
Permalink
Hi,

the new version doesn't work with enigmail.

I'm using Thunderbird + enigmail + cygwin's gnupg.
If i now try to refresh the keys i get the following error:

A Dialog opens, with the title:
gpgkeys_hkp.exe - component not found

The Dialog contains the text:
The application could not be started, because cygwin1.dll could not be
found. Reinstalling the application could solve the problem.


Well, i translated from german, so perhaps it doesn't sound familiar.

With the previous version, there were no problems! (i only updated
gnupg, nothing else!)


Greetings
Sven
René Berber
2006-02-26 19:20:41 UTC
Permalink
Post by Sven Köhler
the new version doesn't work with enigmail.
I'm using Thunderbird + enigmail + cygwin's gnupg.
gpgkeys_hkp.exe - component not found
This version of gpg should have hardcoded the location of all the gpgkeys
programs, which are in /usr/sbin.
Post by Sven Köhler
The application could not be started, because cygwin1.dll could not be
found. Reinstalling the application could solve the problem.
Well, i translated from german, so perhaps it doesn't sound familiar.
With the previous version, there were no problems! (i only updated
gnupg, nothing else!)
I just installed the new version so I'm not sure if it works, but the exact
problem you describe existed with the old version (1.4.1), perhaps you changed
something in Thunderbird configuration... my solution before was to compile
myself version 1.4.2.

HTH
- --
René Berber
Sven Köhler
2006-02-26 19:43:15 UTC
Permalink
Post by René Berber
Post by Sven Köhler
gpgkeys_hkp.exe - component not found
This version of gpg should have hardcoded the location of all the gpgkeys
programs, which are in /usr/sbin.
The gpgkeys_hkp.exe is found, but the cygwin1.dll is not found according
Post by René Berber
Post by Sven Köhler
The application could not be started, because cygwin1.dll could not be
found. Reinstalling the application could solve the problem.
So gpgkeys_hkp.exe cannot be started, because cygwin1.dll cannot be
found - whatever the reason is.
Post by René Berber
Post by Sven Köhler
Well, i translated from german, so perhaps it doesn't sound familiar.
With the previous version, there were no problems! (i only updated
gnupg, nothing else!)
I just installed the new version so I'm not sure if it works, but the exact
problem you describe existed with the old version (1.4.1), perhaps you changed
something in Thunderbird configuration... my solution before was to compile
myself version 1.4.2.
Just installed gpg-1.4.1-1 again. It works like a charm.
After installing gpg-1.4.2.1-1 again, it does not work.

So it's really "only" the gpg package that makes the difference for me.
Volker Quetschke
2006-02-26 21:06:25 UTC
Permalink
Hi!
Post by Sven Köhler
Post by René Berber
Post by Sven Köhler
gpgkeys_hkp.exe - component not found
This version of gpg should have hardcoded the location of all the gpgkeys
programs, which are in /usr/sbin.
The gpgkeys_hkp.exe is found, but the cygwin1.dll is not found according
Yep, is it in your path?
Post by Sven Köhler
Post by René Berber
Post by Sven Köhler
The application could not be started, because cygwin1.dll could not be
found. Reinstalling the application could solve the problem.
So gpgkeys_hkp.exe cannot be started, because cygwin1.dll cannot be
found - whatever the reason is.
The reason is that "upstream" changed the handling of the helper applications.
Before this version gpg set the path to only the directory that contained
the helper application, adding the /usr/bin unconditionally was the work-around
that the cygwin package used. I doesn't work that way anymore.

(snip)
Post by Sven Köhler
Just installed gpg-1.4.1-1 again. It works like a charm.
After installing gpg-1.4.2.1-1 again, it does not work.
So it's really "only" the gpg package that makes the difference for me.
I will look into the underlying problem but I guess it's a path issue.

Volker
--
PGP/GPG key (ID: 0x9F8A785D) available from wwwkeys.de.pgp.net
key-fingerprint 550D F17E B082 A3E9 F913 9E53 3D35 C9BA 9F8A 785D
Volker Quetschke
2006-02-26 21:33:26 UTC
Permalink
Hi!
Post by Volker Quetschke
Post by Sven Köhler
The gpgkeys_hkp.exe is found, but the cygwin1.dll is not found according
Yep, is it in your path?
No, propably not. I could replicate your problem in a cmd shell with
cygwin1.dll not being in my path.

There are several possibilities to fix this problem:

* Add <path to cygwin1.dll> to PATH.

* Add "--exec-path /bin:/usr/sbin/gnupg" to the gpg command that enigmail
uses.

* Add "exec-path /bin:/usr/sbin/gnupg" to your .gnupg/gpg.conf.

* You use a native W32 version. You can even compile it yourself, see
/usr/share/doc/cygwin/gnupg-1.4.2.1.README. First unpack and patch
the source
$ cd /usr/src ; ./gnupg-1.4.2.1-1.sh prep
and then read /usr/src/gnupg-1.4.2.1/CYGWIN-PATCHES/gnupg.MinGW.README

* I patch the source ...

I would actually like to avoid the last option as this latest version works
as desired in a cygwin environment and I could remove the hack that added
/bin to the exec-path.
Your problem is different, you're using a cygwin program an a native W32
environment and there are enough workarounds.

But as always, PTC! ;)

Volker
--
PGP/GPG key (ID: 0x9F8A785D) available from wwwkeys.de.pgp.net
key-fingerprint 550D F17E B082 A3E9 F913 9E53 3D35 C9BA 9F8A 785D
Sven Köhler
2006-02-27 06:59:06 UTC
Permalink
Post by Volker Quetschke
* Add "--exec-path /bin:/usr/sbin/gnupg" to the gpg command that enigmail
uses.
That sollution works perfectly!
Sven Köhler
2006-02-27 07:18:34 UTC
Permalink
There's possibly another sollution:

Does cygwin support something like LD_RUN_PATH?

Under Linux, you can embed a path into the executable binaries. The
linker then additionally searches that path for libraries. That path is
afaik called LD_RUN_PATH.

So does cygwin support such a thing? I'm almost sure, that windows
doesn't support that, but since the gpgkeys_hkp.exe is excuted by gpg
using cygwin's calls, cygwin might have a look at the
gpgkeys_hkp.exe-file first, and then evaluate the embedded path for
searching the libraries.


Greetings
Sven

Loading...