Re: Fedora 22: cannot use rpmsign in script - problem with pinentry-gtk-2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 02 Jun 2015 09:27:16 +0200, Pavel Lisý wrote:

> Hello
> 
> I've used rpmsign in script for long time. I worked fine. After upgrade to
> Fedora 22 (from Fedora 20) something changed
> 
> This script:
> ------------- cut ------------------
> export LANG=cs_CZ.UTF-8
> if [ -n "$PASSPHRASE" ] ; then
> /usr/bin/expect -f - << EOF
> spawn rpmsign --addsign $RPMS_TO_SIGN
> match_max 100000
> fork
> expect "Vložte heslovou frázi: "
> send -- "${PASSPHRASE}\r"
> expect eof
> EOF
> else
>    echo "Set PASSPHRASE variable first"
> fi
> ------------- cut ------------------
> 
> is starting now pinentry-gtk-2 and forces me to put passphrase to modal
> window. 

Cannot confirm.

> Is any possibility how to disable this behaviour? Whatever I've found
> through google didn't work for me.
> 
> Do you use rpmsign in script?

Expect or PyExpect used to be an option, yes, if you like storing the
passphrase somewhere.

Alternatively, you can redefine %{__gpg_sign_cmd} to your own invocation
of "gpg" when running rpm --addsign. That way you can add GPG options such
as --batch --use-agent and spare yourself the Expect script as you then can
use GPG Agent.
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux