Skip to content

Commit c22e804

Browse files
committed
gpg bin specify
1 parent bf29217 commit c22e804

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎packaging/linux/docker_build.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ gpg_tempfile="$gpg_tempdir/code_signing_key"
5757
gpg --export-secret-key --armor "$code_signing_fingerprint" > "$gpg_tempfile"
5858

5959
# Make sure the Docker image is built.
60-
image=keybase_packaging_v43
60+
image=keybase_packaging_v44
6161
if [ -z "$(sudo docker images -q "$image")" ] ; then
6262
echo "Docker image '$image' not yet built. Building..."
6363
sudo docker build -t "$image" "$clientdir/packaging/linux"

‎packaging/linux/rpm/layout_repo.sh‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,16 @@ for arch in x86_64 ; do
7070
# The `setsid` and `/dev/null` bits are both required to suppress the no-op
7171
# password prompt that appears despite the agent configs.
7272
echo "Signing '$rpmcopy'..."
73+
echo "Signing '$rpmcopy'...1.. $(which gpg) $(which gpg1)"
7374
setsid -w rpm \
7475
--define "_gpg_name $code_signing_fingerprint" \
7576
--define '_signature gpg' \
77+
--define '_gpgbin /usr/bin/gpg1' \
7678
--define '__gpg_check_password_cmd /bin/true' \
7779
--define '__gpg_sign_cmd %{__gpg} gpg --batch --no-verbose --no-armor --use-agent --no-secmem-warning -u "%{_gpg_name}" -sbo %{__signature_filename} %{__plaintext_filename}' \
7880
--addsign "$rpmcopy" < /dev/null
7981

8082
echo "Signing '$rpmcopy'...2"
81-
echo "Signing '$rpmcopy'...2.. $(which gpg) $(which gpg1)"
8283
# Add a standalone signature file, for user convenience. Other packaging
8384
# steps will pick this up and copy it around.
8485
/usr/bin/gpg --detach-sign --armor --use-agent --local-user "$code_signing_fingerprint" \

0 commit comments

Comments
 (0)