]> code.ossystems Code Review - openembedded-core.git/commit
gpg_sign: detach_sign: fix gpg > 2.1 STDIN file descriptor
authorIoan-Adrian Ratiu <adrian.ratiu@ni.com>
Thu, 10 Mar 2016 10:02:56 +0000 (12:02 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 11 Mar 2016 16:50:27 +0000 (16:50 +0000)
commit0413bd8e294ca8ac972ac68662b43a981952f5ae
tree1ed0943c34d7b0e5f04289ec215b42849dd73533
parenta40f27aa7802e8a0bd87a5417e35adbface62d05
gpg_sign: detach_sign: fix gpg > 2.1 STDIN file descriptor

Starting from v2.1 passing passwords directly to gpg does not work
anymore [1], instead a loopback interface must be used otherwise
gpg >2.1 will error out with:
"gpg: signing failed: Inappropriate ioctl for device"

gpg <2.1 does not work with the new --pinentry-mode arg and gives an
invalid option error, so we detect what is the running version of gpg
and pass it accordingly.

[1] https://wiki.archlinux.org/index.php/GnuPG#Unattended_passphrase

Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/gpg_sign.py