Skip to content

Commit

Permalink
gnupg: 2.1.22 -> 2.1.23
Browse files Browse the repository at this point in the history
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
  • Loading branch information
lsix authored and globin committed Aug 11, 2017
1 parent d8f08bb commit e34ce9d
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 23 deletions.
4 changes: 2 additions & 2 deletions pkgs/applications/misc/gpg-mdp/default.nix
Expand Up @@ -19,11 +19,11 @@ in stdenv.mkDerivation {
--replace "alias echo=/bin/echo" ""
substituteInPlace ./src/config.c \
--replace "/usr/bin/gpg" "${gnupg}/bin/gpg2" \
--replace "/usr/bin/gpg" "${gnupg}/bin/gpg" \
--replace "/usr/bin/vi" "vi"
substituteInPlace ./mdp.1 \
--replace "/usr/bin/gpg" "${gnupg}/bin/gpg2"
--replace "/usr/bin/gpg" "${gnupg}/bin/gpg"
'';
# we add symlinks to the binary and man page with the name 'gpg-mdp', in case
# the completely unrelated program also named 'mdp' is already installed.
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/networking/browsers/firefox-bin/update.nix
Expand Up @@ -22,7 +22,7 @@ in writeScript "update-${name}" ''
pushd ${basePath}
HOME=`mktemp -d`
cat ${./firefox.key} | gpg2 --import
cat ${./firefox.key} | gpg --import
tmpfile=`mktemp`
url=${baseUrl}
Expand All @@ -47,7 +47,7 @@ in writeScript "update-${name}" ''
curl --silent -o $HOME/shasums "$url$version/SHA512SUMS"
curl --silent -o $HOME/shasums.asc "$url$version/SHA512SUMS.asc"
gpgv2 --keyring=$HOME/.gnupg/pubring.kbx $HOME/shasums.asc $HOME/shasums
gpgv --keyring=$HOME/.gnupg/pubring.kbx $HOME/shasums.asc $HOME/shasums
# this is a list of sha512 and tarballs for both arches
shasums=`cat $HOME/shasums`
Expand Down
8 changes: 4 additions & 4 deletions pkgs/applications/networking/mailreaders/notmuch/default.nix
Expand Up @@ -48,11 +48,11 @@ stdenv.mkDerivation rec {
find test -type f -exec \
sed -i \
-e "1s|#!/usr/bin/env bash|#!${bash}/bin/bash|" \
-e "s|gpg |${gnupg}/bin/gpg2 |" \
-e "s| gpg| ${gnupg}/bin/gpg2|" \
-e "s|gpg |${gnupg}/bin/gpg |" \
-e "s| gpg| ${gnupg}/bin/gpg|" \
-e "s|gpgsm |${gnupg}/bin/gpgsm |" \
-e "s| gpgsm| ${gnupg}/bin/gpgsm|" \
-e "s|crypto.gpg_path=gpg|crypto.gpg_path=${gnupg}/bin/gpg2|" \
-e "s|crypto.gpg_path=gpg|crypto.gpg_path=${gnupg}/bin/gpg|" \
"{}" ";"
for src in \
Expand All @@ -61,7 +61,7 @@ stdenv.mkDerivation rec {
emacs/notmuch-crypto.el
do
substituteInPlace "$src" \
--replace \"gpg\" \"${gnupg}/bin/gpg2\"
--replace \"gpg\" \"${gnupg}/bin/gpg\"
done
'';

Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/ruby-modules/gem-config/default.nix
Expand Up @@ -242,7 +242,7 @@ in
substituteInPlace lib/sup/crypto.rb \
--replace 'which gpg2' \
'${which}/bin/which gpg2'
'${which}/bin/which gpg'
'';
};

Expand Down
3 changes: 1 addition & 2 deletions pkgs/os-specific/linux/tomb/default.nix
Expand Up @@ -28,8 +28,7 @@ stdenv.mkDerivation rec {
install -Dm755 tomb $out/bin/tomb
install -Dm644 doc/tomb.1 $out/share/man/man1/tomb.1
# it works fine with gnupg v2, but it looks for an executable named gpg
ln -s ${gnupg}/bin/gpg2 $out/bin/gpg
ln -s ${gnupg}/bin/gpg $out/bin/gpg
wrapProgram $out/bin/tomb \
--prefix PATH : $out/bin:${lib.makeBinPath [ cryptsetup gettext pinentry ]}
Expand Down
4 changes: 2 additions & 2 deletions pkgs/tools/misc/debian-devscripts/default.nix
Expand Up @@ -27,10 +27,10 @@ in stdenv.mkDerivation rec {
mkdir -p "$tgtpy"
export PYTHONPATH="$PYTHONPATH''${PYTHONPATH:+:}$tgtpy"
find po4a scripts -type f -exec sed -r \
-e "s@/usr/bin/gpg(2|)@${gnupg}/bin/gpg2@g" \
-e "s@/usr/bin/gpg(2|)@${gnupg}/bin/gpg@g" \
-e "s@/usr/(s|)bin/sendmail@${sendmailPath}@g" \
-e "s@/usr/bin/diff@${diffutils}/bin/diff@g" \
-e "s@/usr/bin/gpgv(2|)@${gnupg}/bin/gpgv2@g" \
-e "s@/usr/bin/gpgv(2|)@${gnupg}/bin/gpgv@g" \
-e "s@(command -v|/usr/bin/)curl@${curl.bin}/bin/curl@g" \
-i {} +
sed -e "s@/usr/share/sgml/[^ ]*/manpages/docbook.xsl@${docbook_xsl}/xml/xsl/docbook/manpages/docbook.xsl@" -i scripts/Makefile
Expand Down
2 changes: 1 addition & 1 deletion pkgs/tools/misc/pipelight/default.nix
Expand Up @@ -30,7 +30,7 @@ in stdenv.mkDerivation rec {
--prefix=$out \
--moz-plugin-path=$out/${mozillaPluginPath} \
--wine-path=${wine_custom} \
--gpg-exec=${gnupg}/bin/gpg2 \
--gpg-exec=${gnupg}/bin/gpg \
--bash-interp=${bash}/bin/bash \
--downloader=${curl.bin}/bin/curl
$configureFlags
Expand Down
2 changes: 1 addition & 1 deletion pkgs/tools/misc/pipelight/pipelight.patch
Expand Up @@ -62,7 +62,7 @@ diff -urN pipelight.old/configure pipelight.new/configure
- gpg_exec="/usr/bin/gpg"
-fi
+bash_interp=bash
+gpg_exec=gpg2
+gpg_exec=gpg
moz_plugin_path=""
gcc_runtime_dlls=""
so_mode="0644"
Expand Down
4 changes: 0 additions & 4 deletions pkgs/tools/security/gnupg/1compat.nix
Expand Up @@ -12,10 +12,6 @@ stdenv.mkDerivation {
${coreutils}/bin/rm $out/bin
${coreutils}/bin/mkdir -p $out/bin
${coreutils}/bin/ln -s "${gnupg}/bin/"* $out/bin
# Add gpg->gpg2 and gpgv->gpgv2 symlinks
${coreutils}/bin/ln -s gpg2 $out/bin/gpg
${coreutils}/bin/ln -s gpgv2 $out/bin/gpgv
'';

meta = gnupg.meta // {
Expand Down
4 changes: 2 additions & 2 deletions pkgs/tools/security/gnupg/21.nix
Expand Up @@ -15,11 +15,11 @@ assert guiSupport -> pinentry != null;
stdenv.mkDerivation rec {
name = "gnupg-${version}";

version = "2.1.22";
version = "2.1.23";

src = fetchurl {
url = "mirror://gnupg/gnupg/${name}.tar.bz2";
sha256 = "1msazgy1q1pp7y2xr46z0il4pfzmzgzkp7v0hv5cz4hvkspnywa6";
sha256 = "0xqd5nm4j3w9lwk35vg57gl2i8bfkmx7d24i44gkbscm2lwpci59";
};

buildInputs = [
Expand Down
2 changes: 1 addition & 1 deletion pkgs/tools/security/gnupg/gpgkey2ssh-20.patch
Expand Up @@ -7,7 +7,7 @@ index 903fb5b..d5611dc 100644

ret = asprintf (&command,
- "gpg --list-keys --with-colons --with-key-data '%s'",
+ "@out@/bin/gpg2 --list-keys --with-colons --with-key-data '%s'",
+ "@out@/bin/gpg --list-keys --with-colons --with-key-data '%s'",
keyid);
assert (ret > 0);

Expand Down
2 changes: 1 addition & 1 deletion pkgs/tools/security/pius/default.nix
Expand Up @@ -13,7 +13,7 @@ stdenv.mkDerivation {
buildInputs = [ python ];

patchPhase = ''
sed -i "pius" -e's|/usr/bin/gpg|${gnupg}/bin/gpg2|g'
sed -i "pius" -e's|/usr/bin/gpg|${gnupg}/bin/gpg|g'
'';

dontBuild = true;
Expand Down

0 comments on commit e34ce9d

Please sign in to comment.