Skip to content

Commit

Permalink
Revert "gettext: apply patch for CVE 2018-18751 (backport 18.09)"
Browse files Browse the repository at this point in the history
  • Loading branch information
veprbl committed Apr 14, 2019
1 parent 9f76c64 commit cef95ca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 55 deletions.
13 changes: 3 additions & 10 deletions pkgs/development/libraries/gettext/default.nix
@@ -1,4 +1,4 @@
{ stdenv, lib, fetchurl, libiconv, xz, bison, automake115x, autoconf }:
{ stdenv, lib, fetchurl, libiconv, xz }:

stdenv.mkDerivation rec {
name = "gettext-${version}";
Expand All @@ -8,14 +8,7 @@ stdenv.mkDerivation rec {
url = "mirror://gnu/gettext/${name}.tar.gz";
sha256 = "0hsw28f9q9xaggjlsdp2qmbp2rbd1mp0njzan2ld9kiqwkq2m57z";
};
patches = [
./absolute-paths.diff
(fetchurl {
name = "CVE-2018-18751.patch";
url = "https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=patch;h=dce3a16e5e9368245735e29bf498dcd5e3e474a4";
sha256 = "1lpjwwcjr1sb879faj0xyzw02kma0ivab6xwn3qciy13qy6fq5xn";
})
];
patches = [ ./absolute-paths.diff ];

outputs = [ "out" "man" "doc" "info" ];

Expand Down Expand Up @@ -47,7 +40,7 @@ stdenv.mkDerivation rec {
sed -i -e "s/\(libgettextsrc_la_LDFLAGS = \)/\\1..\/gnulib-lib\/libxml_rpl.la /" gettext-tools/src/Makefile.in
'';

nativeBuildInputs = [ xz xz.bin bison automake115x autoconf];
nativeBuildInputs = [ xz xz.bin ];
# HACK, see #10874 (and 14664)
buildInputs = stdenv.lib.optional (!stdenv.isLinux && !stdenv.hostPlatform.isCygwin) libiconv;

Expand Down
43 changes: 0 additions & 43 deletions pkgs/development/tools/misc/automake/automake-1.15.x.nix

This file was deleted.

2 changes: 0 additions & 2 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -8021,8 +8021,6 @@ with pkgs;

automake111x = callPackage ../development/tools/misc/automake/automake-1.11.x.nix { };

automake115x = callPackage ../development/tools/misc/automake/automake-1.15.x.nix { };

automake116x = callPackage ../development/tools/misc/automake/automake-1.16.x.nix { };

automoc4 = callPackage ../development/tools/misc/automoc4 { };
Expand Down

0 comments on commit cef95ca

Please sign in to comment.