git.iko.soy/typeable/nixpkgs
on master help sign in
gnupg: 2.1.22 -> 2.1.23

This release in a RC for gnupg-2.2. The main difference as far as nixpkgs is concerned is that the binary `gpg2` is now called `gpg` and `gpgv2` is called `gpgv`. This update fixed all explicit use of `gpg2` and `gpgv2` across nixpkgs, but there might be some packaged software that internally use `gpg2` not handeled by this commit. See http://lists.gnu.org/archive/html/info-gnu/2017-08/msg00001.html for full release information

commite34ce9d1c551fb43742aada6bb43ccb1a52e64a1 authorLancelot SIX <lsix@lancelotsix.com> dateThu 10 Aug 2017, 11:43 (9 years ago) parentd8f08bb
12 files changed+18−23
pkgs/applications/misc/gpg-mdp/default.nix+2−2 pkgs/applications/networking/browsers/firefox-bin/update.nix+2−2 pkgs/applications/networking/mailreaders/notmuch/default.nix+4−4 pkgs/development/ruby-modules/gem-config/default.nix+1−1 pkgs/os-specific/linux/tomb/default.nix+1−2 pkgs/tools/misc/debian-devscripts/default.nix+2−2 pkgs/tools/misc/pipelight/default.nix+1−1 pkgs/tools/misc/pipelight/pipelight.patch+1−1 pkgs/tools/security/gnupg/1compat.nix−4 pkgs/tools/security/gnupg/21.nix+2−2 pkgs/tools/security/gnupg/gpgkey2ssh-20.patch+1−1 pkgs/tools/security/pius/default.nix+1−1
pkgs/applications/misc/gpg-mdp/default.nix+2−2
@@ -19,11 +19,11 @@ in stdenv.mkDerivation {
1919 --replace "alias echo=/bin/echo" ""
2020
2121 substituteInPlace ./src/config.c \
22− --replace "/usr/bin/gpg" "${gnupg}/bin/gpg2" \
22+ --replace "/usr/bin/gpg" "${gnupg}/bin/gpg" \
2323 --replace "/usr/bin/vi" "vi"
2424
2525 substituteInPlace ./mdp.1 \
26− --replace "/usr/bin/gpg" "${gnupg}/bin/gpg2"
26+ --replace "/usr/bin/gpg" "${gnupg}/bin/gpg"
2727 '';
2828 # we add symlinks to the binary and man page with the name 'gpg-mdp', in case
2929 # the completely unrelated program also named 'mdp' is already installed.
pkgs/applications/networking/browsers/firefox-bin/update.nix+2−2
@@ -22,7 +22,7 @@ in writeScript "update-${name}" ''
2222 pushd ${basePath}
2323
2424 HOME=`mktemp -d`
25− cat ${./firefox.key} | gpg2 --import
25+ cat ${./firefox.key} | gpg --import
2626
2727 tmpfile=`mktemp`
2828 url=${baseUrl}
@@ -47,7 +47,7 @@ in writeScript "update-${name}" ''
4747
4848 curl --silent -o $HOME/shasums "$url$version/SHA512SUMS"
4949 curl --silent -o $HOME/shasums.asc "$url$version/SHA512SUMS.asc"
50− gpgv2 --keyring=$HOME/.gnupg/pubring.kbx $HOME/shasums.asc $HOME/shasums
50+ gpgv --keyring=$HOME/.gnupg/pubring.kbx $HOME/shasums.asc $HOME/shasums
5151
5252 # this is a list of sha512 and tarballs for both arches
5353 shasums=`cat $HOME/shasums`
pkgs/applications/networking/mailreaders/notmuch/default.nix+4−4
@@ -48,11 +48,11 @@ stdenv.mkDerivation rec {
4848 find test -type f -exec \
4949 sed -i \
5050 -e "1s|#!/usr/bin/env bash|#!${bash}/bin/bash|" \
51− -e "s|gpg |${gnupg}/bin/gpg2 |" \
52− -e "s| gpg| ${gnupg}/bin/gpg2|" \
51+ -e "s|gpg |${gnupg}/bin/gpg |" \
52+ -e "s| gpg| ${gnupg}/bin/gpg|" \
5353 -e "s|gpgsm |${gnupg}/bin/gpgsm |" \
5454 -e "s| gpgsm| ${gnupg}/bin/gpgsm|" \
55− -e "s|crypto.gpg_path=gpg|crypto.gpg_path=${gnupg}/bin/gpg2|" \
55+ -e "s|crypto.gpg_path=gpg|crypto.gpg_path=${gnupg}/bin/gpg|" \
5656 "{}" ";"
5757
5858 for src in \
@@ -61,7 +61,7 @@ stdenv.mkDerivation rec {
6161 emacs/notmuch-crypto.el
6262 do
6363 substituteInPlace "$src" \
64− --replace \"gpg\" \"${gnupg}/bin/gpg2\"
64+ --replace \"gpg\" \"${gnupg}/bin/gpg\"
6565 done
6666 '';
6767
pkgs/development/ruby-modules/gem-config/default.nix+1−1
@@ -242,7 +242,7 @@ in
242242
243243 substituteInPlace lib/sup/crypto.rb \
244244 --replace 'which gpg2' \
245− '${which}/bin/which gpg2'
245+ '${which}/bin/which gpg'
246246 '';
247247 };
248248
pkgs/os-specific/linux/tomb/default.nix+1−2
@@ -28,8 +28,7 @@ stdenv.mkDerivation rec {
2828 install -Dm755 tomb $out/bin/tomb
2929 install -Dm644 doc/tomb.1 $out/share/man/man1/tomb.1
3030
31− # it works fine with gnupg v2, but it looks for an executable named gpg
32− ln -s ${gnupg}/bin/gpg2 $out/bin/gpg
31+ ln -s ${gnupg}/bin/gpg $out/bin/gpg
3332
3433 wrapProgram $out/bin/tomb \
3534 --prefix PATH : $out/bin:${lib.makeBinPath [ cryptsetup gettext pinentry ]}
pkgs/tools/misc/debian-devscripts/default.nix+2−2
@@ -27,10 +27,10 @@ in stdenv.mkDerivation rec {
2727 mkdir -p "$tgtpy"
2828 export PYTHONPATH="$PYTHONPATH''${PYTHONPATH:+:}$tgtpy"
2929 find po4a scripts -type f -exec sed -r \
30− -e "s@/usr/bin/gpg(2|)@${gnupg}/bin/gpg2@g" \
30+ -e "s@/usr/bin/gpg(2|)@${gnupg}/bin/gpg@g" \
3131 -e "s@/usr/(s|)bin/sendmail@${sendmailPath}@g" \
3232 -e "s@/usr/bin/diff@${diffutils}/bin/diff@g" \
33− -e "s@/usr/bin/gpgv(2|)@${gnupg}/bin/gpgv2@g" \
33+ -e "s@/usr/bin/gpgv(2|)@${gnupg}/bin/gpgv@g" \
3434 -e "s@(command -v|/usr/bin/)curl@${curl.bin}/bin/curl@g" \
3535 -i {} +
3636 sed -e "s@/usr/share/sgml/[^ ]*/manpages/docbook.xsl@${docbook_xsl}/xml/xsl/docbook/manpages/docbook.xsl@" -i scripts/Makefile
pkgs/tools/misc/pipelight/default.nix+1−1
@@ -30,7 +30,7 @@ in stdenv.mkDerivation rec {
3030 --prefix=$out \
3131 --moz-plugin-path=$out/${mozillaPluginPath} \
3232 --wine-path=${wine_custom} \
33− --gpg-exec=${gnupg}/bin/gpg2 \
33+ --gpg-exec=${gnupg}/bin/gpg \
3434 --bash-interp=${bash}/bin/bash \
3535 --downloader=${curl.bin}/bin/curl
3636 $configureFlags
pkgs/tools/misc/pipelight/pipelight.patch+1−1
@@ -62,7 +62,7 @@ diff -urN pipelight.old/configure pipelight.new/configure
6262- gpg_exec="/usr/bin/gpg"
6363-fi
6464+bash_interp=bash
65−+gpg_exec=gpg2
65++gpg_exec=gpg
6666 moz_plugin_path=""
6767 gcc_runtime_dlls=""
6868 so_mode="0644"
pkgs/tools/security/gnupg/1compat.nix−4
@@ -12,10 +12,6 @@ stdenv.mkDerivation {
1212 ${coreutils}/bin/rm $out/bin
1313 ${coreutils}/bin/mkdir -p $out/bin
1414 ${coreutils}/bin/ln -s "${gnupg}/bin/"* $out/bin
15−
16− # Add gpg->gpg2 and gpgv->gpgv2 symlinks
17− ${coreutils}/bin/ln -s gpg2 $out/bin/gpg
18− ${coreutils}/bin/ln -s gpgv2 $out/bin/gpgv
1915 '';
2016
2117 meta = gnupg.meta // {
pkgs/tools/security/gnupg/21.nix+2−2
@@ -15,11 +15,11 @@ assert guiSupport -> pinentry != null;
1515stdenv.mkDerivation rec {
1616 name = "gnupg-${version}";
1717
18− version = "2.1.22";
18+ version = "2.1.23";
1919
2020 src = fetchurl {
2121 url = "mirror://gnupg/gnupg/${name}.tar.bz2";
22− sha256 = "1msazgy1q1pp7y2xr46z0il4pfzmzgzkp7v0hv5cz4hvkspnywa6";
22+ sha256 = "0xqd5nm4j3w9lwk35vg57gl2i8bfkmx7d24i44gkbscm2lwpci59";
2323 };
2424
2525 buildInputs = [
pkgs/tools/security/gnupg/gpgkey2ssh-20.patch+1−1
@@ -7,7 +7,7 @@ index 903fb5b..d5611dc 100644
77
88 ret = asprintf (&command,
99- "gpg --list-keys --with-colons --with-key-data '%s'",
10−+ "@out@/bin/gpg2 --list-keys --with-colons --with-key-data '%s'",
10++ "@out@/bin/gpg --list-keys --with-colons --with-key-data '%s'",
1111 keyid);
1212 assert (ret > 0);
1313
pkgs/tools/security/pius/default.nix+1−1
@@ -13,7 +13,7 @@ stdenv.mkDerivation {
1313 buildInputs = [ python ];
1414
1515 patchPhase = ''
16− sed -i "pius" -e's|/usr/bin/gpg|${gnupg}/bin/gpg2|g'
16+ sed -i "pius" -e's|/usr/bin/gpg|${gnupg}/bin/gpg|g'
1717 '';
1818
1919 dontBuild = true;