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 _svSE.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 _LCALL to C in the environment before spawning rpm.
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 _svSE.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 _LCALL to C in the environment before spawning rpm.