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
This commit is contained in:
parent
d8f08bb088
commit
e34ce9d1c5
@ -19,11 +19,11 @@ in stdenv.mkDerivation {
|
|||||||
--replace "alias echo=/bin/echo" ""
|
--replace "alias echo=/bin/echo" ""
|
||||||
|
|
||||||
substituteInPlace ./src/config.c \
|
substituteInPlace ./src/config.c \
|
||||||
--replace "/usr/bin/gpg" "${gnupg}/bin/gpg2" \
|
--replace "/usr/bin/gpg" "${gnupg}/bin/gpg" \
|
||||||
--replace "/usr/bin/vi" "vi"
|
--replace "/usr/bin/vi" "vi"
|
||||||
|
|
||||||
substituteInPlace ./mdp.1 \
|
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
|
# 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.
|
# the completely unrelated program also named 'mdp' is already installed.
|
||||||
|
@ -22,7 +22,7 @@ in writeScript "update-${name}" ''
|
|||||||
pushd ${basePath}
|
pushd ${basePath}
|
||||||
|
|
||||||
HOME=`mktemp -d`
|
HOME=`mktemp -d`
|
||||||
cat ${./firefox.key} | gpg2 --import
|
cat ${./firefox.key} | gpg --import
|
||||||
|
|
||||||
tmpfile=`mktemp`
|
tmpfile=`mktemp`
|
||||||
url=${baseUrl}
|
url=${baseUrl}
|
||||||
@ -47,7 +47,7 @@ in writeScript "update-${name}" ''
|
|||||||
|
|
||||||
curl --silent -o $HOME/shasums "$url$version/SHA512SUMS"
|
curl --silent -o $HOME/shasums "$url$version/SHA512SUMS"
|
||||||
curl --silent -o $HOME/shasums.asc "$url$version/SHA512SUMS.asc"
|
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
|
# this is a list of sha512 and tarballs for both arches
|
||||||
shasums=`cat $HOME/shasums`
|
shasums=`cat $HOME/shasums`
|
||||||
|
@ -48,11 +48,11 @@ stdenv.mkDerivation rec {
|
|||||||
find test -type f -exec \
|
find test -type f -exec \
|
||||||
sed -i \
|
sed -i \
|
||||||
-e "1s|#!/usr/bin/env bash|#!${bash}/bin/bash|" \
|
-e "1s|#!/usr/bin/env bash|#!${bash}/bin/bash|" \
|
||||||
-e "s|gpg |${gnupg}/bin/gpg2 |" \
|
-e "s|gpg |${gnupg}/bin/gpg |" \
|
||||||
-e "s| gpg| ${gnupg}/bin/gpg2|" \
|
-e "s| gpg| ${gnupg}/bin/gpg|" \
|
||||||
-e "s|gpgsm |${gnupg}/bin/gpgsm |" \
|
-e "s|gpgsm |${gnupg}/bin/gpgsm |" \
|
||||||
-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 \
|
for src in \
|
||||||
@ -61,7 +61,7 @@ stdenv.mkDerivation rec {
|
|||||||
emacs/notmuch-crypto.el
|
emacs/notmuch-crypto.el
|
||||||
do
|
do
|
||||||
substituteInPlace "$src" \
|
substituteInPlace "$src" \
|
||||||
--replace \"gpg\" \"${gnupg}/bin/gpg2\"
|
--replace \"gpg\" \"${gnupg}/bin/gpg\"
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -242,7 +242,7 @@ in
|
|||||||
|
|
||||||
substituteInPlace lib/sup/crypto.rb \
|
substituteInPlace lib/sup/crypto.rb \
|
||||||
--replace 'which gpg2' \
|
--replace 'which gpg2' \
|
||||||
'${which}/bin/which gpg2'
|
'${which}/bin/which gpg'
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -28,8 +28,7 @@ stdenv.mkDerivation rec {
|
|||||||
install -Dm755 tomb $out/bin/tomb
|
install -Dm755 tomb $out/bin/tomb
|
||||||
install -Dm644 doc/tomb.1 $out/share/man/man1/tomb.1
|
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/gpg $out/bin/gpg
|
||||||
ln -s ${gnupg}/bin/gpg2 $out/bin/gpg
|
|
||||||
|
|
||||||
wrapProgram $out/bin/tomb \
|
wrapProgram $out/bin/tomb \
|
||||||
--prefix PATH : $out/bin:${lib.makeBinPath [ cryptsetup gettext pinentry ]}
|
--prefix PATH : $out/bin:${lib.makeBinPath [ cryptsetup gettext pinentry ]}
|
||||||
|
@ -27,10 +27,10 @@ in stdenv.mkDerivation rec {
|
|||||||
mkdir -p "$tgtpy"
|
mkdir -p "$tgtpy"
|
||||||
export PYTHONPATH="$PYTHONPATH''${PYTHONPATH:+:}$tgtpy"
|
export PYTHONPATH="$PYTHONPATH''${PYTHONPATH:+:}$tgtpy"
|
||||||
find po4a scripts -type f -exec sed -r \
|
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/(s|)bin/sendmail@${sendmailPath}@g" \
|
||||||
-e "s@/usr/bin/diff@${diffutils}/bin/diff@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" \
|
-e "s@(command -v|/usr/bin/)curl@${curl.bin}/bin/curl@g" \
|
||||||
-i {} +
|
-i {} +
|
||||||
sed -e "s@/usr/share/sgml/[^ ]*/manpages/docbook.xsl@${docbook_xsl}/xml/xsl/docbook/manpages/docbook.xsl@" -i scripts/Makefile
|
sed -e "s@/usr/share/sgml/[^ ]*/manpages/docbook.xsl@${docbook_xsl}/xml/xsl/docbook/manpages/docbook.xsl@" -i scripts/Makefile
|
||||||
|
@ -30,7 +30,7 @@ in stdenv.mkDerivation rec {
|
|||||||
--prefix=$out \
|
--prefix=$out \
|
||||||
--moz-plugin-path=$out/${mozillaPluginPath} \
|
--moz-plugin-path=$out/${mozillaPluginPath} \
|
||||||
--wine-path=${wine_custom} \
|
--wine-path=${wine_custom} \
|
||||||
--gpg-exec=${gnupg}/bin/gpg2 \
|
--gpg-exec=${gnupg}/bin/gpg \
|
||||||
--bash-interp=${bash}/bin/bash \
|
--bash-interp=${bash}/bin/bash \
|
||||||
--downloader=${curl.bin}/bin/curl
|
--downloader=${curl.bin}/bin/curl
|
||||||
$configureFlags
|
$configureFlags
|
||||||
|
@ -62,7 +62,7 @@ diff -urN pipelight.old/configure pipelight.new/configure
|
|||||||
- gpg_exec="/usr/bin/gpg"
|
- gpg_exec="/usr/bin/gpg"
|
||||||
-fi
|
-fi
|
||||||
+bash_interp=bash
|
+bash_interp=bash
|
||||||
+gpg_exec=gpg2
|
+gpg_exec=gpg
|
||||||
moz_plugin_path=""
|
moz_plugin_path=""
|
||||||
gcc_runtime_dlls=""
|
gcc_runtime_dlls=""
|
||||||
so_mode="0644"
|
so_mode="0644"
|
||||||
|
@ -12,10 +12,6 @@ stdenv.mkDerivation {
|
|||||||
${coreutils}/bin/rm $out/bin
|
${coreutils}/bin/rm $out/bin
|
||||||
${coreutils}/bin/mkdir -p $out/bin
|
${coreutils}/bin/mkdir -p $out/bin
|
||||||
${coreutils}/bin/ln -s "${gnupg}/bin/"* $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 // {
|
meta = gnupg.meta // {
|
||||||
|
@ -15,11 +15,11 @@ assert guiSupport -> pinentry != null;
|
|||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "gnupg-${version}";
|
name = "gnupg-${version}";
|
||||||
|
|
||||||
version = "2.1.22";
|
version = "2.1.23";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnupg/gnupg/${name}.tar.bz2";
|
url = "mirror://gnupg/gnupg/${name}.tar.bz2";
|
||||||
sha256 = "1msazgy1q1pp7y2xr46z0il4pfzmzgzkp7v0hv5cz4hvkspnywa6";
|
sha256 = "0xqd5nm4j3w9lwk35vg57gl2i8bfkmx7d24i44gkbscm2lwpci59";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
@ -7,7 +7,7 @@ index 903fb5b..d5611dc 100644
|
|||||||
|
|
||||||
ret = asprintf (&command,
|
ret = asprintf (&command,
|
||||||
- "gpg --list-keys --with-colons --with-key-data '%s'",
|
- "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);
|
keyid);
|
||||||
assert (ret > 0);
|
assert (ret > 0);
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ stdenv.mkDerivation {
|
|||||||
buildInputs = [ python ];
|
buildInputs = [ python ];
|
||||||
|
|
||||||
patchPhase = ''
|
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;
|
dontBuild = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user