Closed sakarlsson closed 9 years ago
Thanks for the report and patch.
Can you share some info about:
The escaping seems to have been introduced in @88016585a271dc2ae29259156d97952a42d297da @dantran any memory of why this was added?
Sorry for the missing info. We run on RedHat 6.6. rpm and rpm-build is version 4.8.0. Shell is bash 4.1.2. - invoked as /bin/sh by maven (according to an strace of the maven run)
@sakarlsson please folow instructsions under src/it/rpm-sign-with-keyname-lookup to see it sees your error? ( without yr fix)
The rpm-sign-with-keyname-lookup test does not execute the problematic code because the passphrase is set. To repeat the problem:
cd target/it/rpm-sign-with-keyname-lookup
grep -v passphrase settings.xml > settings2.xml
mvn -s settings2.xml verify -DdisableSigning=false -Dgpg.homedir=../../test-classes/gnupg -Ptestkey
@sakarlsson so you have no passphase for your gpgkey? your fix passes all IT tests?
will commit your patch
patch applied at a632a5a. Thanks
@sakarlsson please test latest 2.1.4-SNAPSHOT
Yes, it works like a charm. Many thanks!
With keyname set RPMHelper.java will call rpmbuild with some extra arguments for _gpg_name and optionally _gpg_path. However the argument passing seems wrong, causing rpmbuild to complain with:
This cured my issue:
(Which is also consistent with the handling of "--define _topdir ..")