Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 268820

Summary: sys-power/hibernate-script gpg-agent scriptlet does not work from ACPI event
Product: Gentoo Linux Reporter: Neil Bothwick <neil>
Component: New packagesAssignee: Alon Bar-Lev (RETIRED) <alonbl>
Status: RESOLVED FIXED    
Severity: normal CC: gef.kornflakes
Priority: High    
Version: 2008.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch for ssh_and_gpg_agents scriptlet

Description Neil Bothwick 2009-05-06 15:22:56 UTC
The ssh_and_gpg_agents scriptlet fails on GPG when hibernate is called from an ACPI event, like the power button. It generates a list of PIDs with

ps t - | gawk '/gpg-agent --daemon/ {print $1}'

which also gives the PID of the gawk process. The script then fails when it tries too kill this, now non-existent, PID. This patch alters the script to check that a PID still exists before trying to kill it.
Comment 1 Neil Bothwick 2009-05-06 15:24:28 UTC
Created attachment 190510 [details, diff]
Patch for ssh_and_gpg_agents scriptlet
Comment 2 Gef 2009-09-13 11:15:39 UTC
Should'nt this be reported upstream ? Thanks for the patch.
Comment 3 Neil Bothwick 2011-12-08 19:24:42 UTC
I see that 2.0-r4 has exactly the same problem, fixed by the same patch. I'll try reporting upstream but I thought the protocol was for Gentoo users to file bugs here and devs to pass upstream as appropriate.

Incidentally, I had to modify the ebuild to apply the patch because it does not use epatch_user to apply patches in /etc/portage/patches.
Comment 4 Pacho Ramos gentoo-dev 2012-12-16 14:25:19 UTC
This package is now orphan:
http://my.opera.com/pacho/blog/2012/11/27/about-maintainer-needed
Comment 5 Alon Bar-Lev (RETIRED) gentoo-dev 2013-01-12 17:38:18 UTC
Fixed in hibernate-script-2.0-r6