Merge branch 'master' into staging
... to include a security mass rebuild.
This commit is contained in:
commit
753c18edce
@ -9,6 +9,20 @@ stdenv.mkDerivation {
|
|||||||
sha256 = "18qz9qfwrkakmazdlwxvjmw8p76g70n3faikwvdwznns1agw9hki";
|
sha256 = "18qz9qfwrkakmazdlwxvjmw8p76g70n3faikwvdwznns1agw9hki";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
prePatch = let
|
||||||
|
# https://lwn.net/Vulnerabilities/714581/
|
||||||
|
debian = fetchurl {
|
||||||
|
url = "http://http.debian.net/debian/pool/main/libe/libevent/"
|
||||||
|
+ "libevent_2.0.21-stable-3.debian.tar.xz";
|
||||||
|
sha256 = "0b2syswiq3cvfbdvi4lbca15c31lilxnahax4a4b4qxi5fcab7h5";
|
||||||
|
};
|
||||||
|
in ''
|
||||||
|
tar xf '${debian}'
|
||||||
|
patches="$patches $(cat debian/patches/series | grep -v '^$\|^#' \
|
||||||
|
| grep -v '^20d6d445.patch' \
|
||||||
|
| grep -v '^dh-autoreconf' | sed 's|^|debian/patches/|')"
|
||||||
|
'';
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
outputBin = "dev";
|
outputBin = "dev";
|
||||||
|
|
||||||
|
@ -1,30 +1,24 @@
|
|||||||
{ lib, stdenv, fetchgit, fetchpatch, pythonPackages, docutils
|
{ lib, stdenv, fetchgit, fetchpatch, python3, docutils
|
||||||
, acl, binutils, bzip2, cbfstool, cdrkit, colord, cpio, diffutils, e2fsprogs, file, fpc, gettext, ghc
|
, acl, binutils, bzip2, cbfstool, cdrkit, colord, cpio, diffutils, e2fsprogs, file, fpc, gettext, ghc
|
||||||
, gnupg1, gzip, jdk, libcaca, mono, pdftk, poppler_utils, sng, sqlite, squashfsTools, unzip, vim, xz
|
, gnupg1, gzip, jdk, libcaca, mono, pdftk, poppler_utils, sng, sqlite, squashfsTools, unzip, vim, xz
|
||||||
, colordiff
|
, colordiff
|
||||||
, enableBloat ? false
|
, enableBloat ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
pythonPackages.buildPythonApplication rec {
|
python3.pkgs.buildPythonApplication rec {
|
||||||
name = "diffoscope-${version}";
|
pname = "diffoscope";
|
||||||
version = "63";
|
name = "${pname}-${version}";
|
||||||
|
version = "77";
|
||||||
namePrefix = "";
|
|
||||||
|
|
||||||
src = fetchgit {
|
src = fetchgit {
|
||||||
url = "git://anonscm.debian.org/reproducible/diffoscope.git";
|
url = "git://anonscm.debian.org/reproducible/diffoscope.git";
|
||||||
rev = "refs/tags/${version}";
|
rev = "refs/tags/${version}";
|
||||||
sha256 = "018c0xcgf6pgq493dib29pfyqpj7vb93a6qfmdh790fpxa2j1zyd";
|
sha256 = "0l5q24sqb88qkz62cz85bq65myfqig3z3m1lj2s92hdlqip9946b";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches =
|
patches =
|
||||||
[ # Ignore different link counts.
|
[ # Ignore different link counts.
|
||||||
./ignore_links.patch
|
./ignore_links.patch
|
||||||
|
|
||||||
# Our Glibc doesn't have the C.UTF-8 locale yet
|
|
||||||
# (https://sourceware.org/glibc/wiki/Proposals/C.UTF-8), so use
|
|
||||||
# en_US.UTF-8 instead.
|
|
||||||
./locale.patch
|
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
@ -35,7 +29,7 @@ pythonPackages.buildPythonApplication rec {
|
|||||||
# Still missing these tools: enjarify, otool & lipo (maybe OS X only), showttf
|
# Still missing these tools: enjarify, otool & lipo (maybe OS X only), showttf
|
||||||
# Also these libraries: python3-guestfs
|
# Also these libraries: python3-guestfs
|
||||||
# FIXME: move xxd into a separate package so we don't have to pull in all of vim.
|
# FIXME: move xxd into a separate package so we don't have to pull in all of vim.
|
||||||
propagatedBuildInputs = (with pythonPackages; [ debian libarchive-c python_magic tlsh rpm ]) ++
|
propagatedBuildInputs = (with python3.pkgs; [ debian libarchive-c python_magic tlsh rpm ]) ++
|
||||||
map lib.getBin ([ acl binutils bzip2 cbfstool cdrkit cpio diffutils e2fsprogs file gettext
|
map lib.getBin ([ acl binutils bzip2 cbfstool cdrkit cpio diffutils e2fsprogs file gettext
|
||||||
gzip libcaca poppler_utils sng sqlite squashfsTools unzip vim xz colordiff
|
gzip libcaca poppler_utils sng sqlite squashfsTools unzip vim xz colordiff
|
||||||
] ++ lib.optionals enableBloat [ colord fpc ghc gnupg1 jdk mono pdftk ]);
|
] ++ lib.optionals enableBloat [ colord fpc ghc gnupg1 jdk mono pdftk ]);
|
||||||
|
@ -1448,7 +1448,6 @@ with pkgs;
|
|||||||
|
|
||||||
diffoscope = callPackage ../tools/misc/diffoscope {
|
diffoscope = callPackage ../tools/misc/diffoscope {
|
||||||
jdk = jdk7;
|
jdk = jdk7;
|
||||||
pythonPackages = python3Packages;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
diffstat = callPackage ../tools/text/diffstat { };
|
diffstat = callPackage ../tools/text/diffstat { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user