You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.
When signing RPMs, an expect script is created to talk to the rpm command. This script assumes the messages from rpm are in English. When building in e.g. the sv_SE.utf8 locale, the build will hang waiting for “Enter pass phrase” which never comes.
Personally, I feel expect is a bit of an overkill here. In similar situation, I have used a bash script to do it, where I simply used echo and piped the result into rpm, with a setsid added to avoid rpm reopening the tty. That script relied on the exit status of rpm to know if it succeeded or not.
That seemed to work fine for us. If you do want to use expect, however, I would suggest you add a line to set LC_ALL to C in the environment before spawning rpm.
The text was updated successfully, but these errors were encountered:
When signing RPMs, an expect script is created to talk to the rpm command. This script assumes the messages from rpm are in English. When building in e.g. the sv_SE.utf8 locale, the build will hang waiting for “Enter pass phrase” which never comes.
Personally, I feel expect is a bit of an overkill here. In similar situation, I have used a bash script to do it, where I simply used echo and piped the result into rpm, with a setsid added to avoid rpm reopening the tty. That script relied on the exit status of rpm to know if it succeeded or not.
That seemed to work fine for us. If you do want to use expect, however, I would suggest you add a line to set LC_ALL to C in the environment before spawning rpm.
The text was updated successfully, but these errors were encountered: