You are not logged in.

#1 2016-07-19 19:15:22

jernst
Member
From: Silicon Valley
Registered: 2014-03-04
Posts: 307

Random gpg signing errors when makepkg

I have a complex build script, which calls makepkg like this:

makepkg -c -d -A --sign --key buildmaster@ubos.net

Most of the time, it works. But sometimes, the package does not end up being signed. I commented-out the &>/dev/null in the gpg signing invocation in makepkg, and it appears that gpg emits the following problem:

gpg: signing failed: Broken pipe
gpg: signing failed: Broken pipe

I can sign from the command-line:

echo foo | gpg --detach-sign --use-agent -u buildmaster@ubos.net --no-armor

which is the same type of invocation I believe.

Anybody ever seen that? There seem to be plenty of reports about broken pipes with gpg, but all about old versions of gpg and none about random errors AFAIK.

Offline

#2 2016-07-19 20:17:57

kwash
Member
Registered: 2015-12-18
Posts: 16

Re: Random gpg signing errors when makepkg

Is this related?
https://wiki.archlinux.org/index.php/ma … passphrase

If yes, there are a couple of forums threads about this.
In my case, the fix provided by the Wiki doesn't fix it (manually start gpg-agent doesn't made any difference for me).

What I did was to make the signature separately after calling makepkg:

$ makepkg
$ gpg --detach-sign --use-agent --no-armor package.pkg.tar.xz

Offline

#3 2016-07-20 02:46:22

jernst
Member
From: Silicon Valley
Registered: 2014-03-04
Posts: 307

Re: Random gpg signing errors when makepkg

May very well be. I'll play around with it and see what happens.

Offline

#4 2016-07-25 16:17:20

jernst
Member
From: Silicon Valley
Registered: 2014-03-04
Posts: 307

Re: Random gpg signing errors when makepkg

This seems more complicated. I just had a build run where some packages got signed and others did not. That seems to rule out the "it's all the chroot's fault" explanation.

Offline

#5 2016-07-26 03:03:16

0strodamus
Member
Registered: 2014-01-22
Posts: 96

Re: Random gpg signing errors when makepkg

Could it be due to the changes to gnupg-2.1.13? See this thread and bug report.


archlinux | OpenRC | TOMOYO Linux | Xfce

"In his house at R'lyeh dead Cthulhu waits dreaming."

Offline

Board footer

Powered by FluxBB