Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

RPM signing fails in non-English locales #107

Open
goeranu opened this issue Sep 21, 2018 · 0 comments · May be fixed by #127
Open

RPM signing fails in non-English locales #107

goeranu opened this issue Sep 21, 2018 · 0 comments · May be fixed by #127

Comments

@goeranu
Copy link

goeranu commented Sep 21, 2018

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant