-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test suite hangs with gnupg 2.0 #3
Comments
I forget to say, I haven't found any explanation in the diff between versions 1.3.6 and 1.4.0RC1 :( |
I'm actually using fedora. Have you tried to compile with:
By default it will use gpg2 which is not supported atm. |
anyway I will take a look why it hangs as it should be exactly the same as 1.3.6. The only point of this release is to support PHP 7 and possibly fix some compilation issue from the previous version. All improvements and test fixes (more rewrite probably as they are dependent and not really good) will go to 1.5 |
Yes, as I said, no problem with gnupg 1 ;) The issue in only on RHEL which only have gpg2 (/usr/bin/gpg is a symlink to gpg2), but can be reproduced on Fedora <= 22
And the reason why this extension is not (yet) part of official fedora / EPEL repository ;) |
FYI, here is the minimal C app I use to reproduce the hang issue (could be simpler) To reproduce the hang, with gnupg 2.0, and without tty of X display
|
Nice. That's very helpful. Thanks. Will hopefully find some time to look into it later |
Sorry about the noise... this is not a regression. After digging for hour... 1.3.6 also hangs in some case. php run-tests.php ... => fails Perhaps a simple note in the README about "gnupg 2 not supported" is enough. FYI, php-pecl-gnupg is now available in my repository, and use gnupg1 (I have finally choose to build a RPM of gnupg 1.4.20 which can be installed beside system gnupg 2.x) |
Thanks. I have updated README and set milestone for this to 1.5 to make sure it won't hang there. |
This same test (meaning encrypting and then decrypting with a key that has a passphrase) is part of my test suite here: https://github.com/travisghansen/phpgpg It works for me on both Arch with
And centos7 php and pals installed form @remicollet 's repo. Not sure if I've got something messed up on my test but it appears clean. |
Fixed since 1.5.0RC1 |
On RHEL / CentOS we only have gnupg v2 (no gnupg v1)
With version 1.3.6 the test suite have lot of failure (everywhere the passphrase is needed, I'm working on this issue).
With version 1.4.0RC1 the test suite simply hangs (in tests/gnupg_oo_encrypt.phpt)
Fails on Fedora 22 (gpgme 1.4.3, gnupg 2.1.11)
Hangs on Fedora 21 (gpgme 1.4.3, gnupg 2.0.29)
Hangs on RHEL 7 (gpgme 1.3.2, gnupg 2.0.22)
So I really think this is related to gnupg version 2.0 vs 2.1
Failure seems acceptable, when hang doesn't.
The text was updated successfully, but these errors were encountered: