Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant