git.iko.soy/typeable/nixpkgs
on master help sign in
Merge branch 'staging'; security /cc #21642
commit07bf828bd96591b302bd0a05edee48d2f4834efb authorVladimír Čunát <vcunat@gmail.com> dateFri 6 Jan 2017, 16:32 (10 years ago) parent99c8e8ed442a0f
41 files changed+261−183
pkgs/applications/misc/pcmanx-gtk2/default.nix+1−1 pkgs/applications/networking/browsers/firefox/default.nix+1−1 pkgs/applications/networking/mailreaders/thunderbird/default.nix+7 pkgs/applications/office/zim/default.nix+5−4 pkgs/applications/science/misc/root/default.nix+2−6 pkgs/applications/science/misc/root/sw_vers.patch+2−2 pkgs/development/compilers/llvm/3.7/libc++/default.nix+4−1 pkgs/development/compilers/llvm/3.7/libc++/r242056.patch+16 pkgs/development/interpreters/python/cpython/2.7/default.nix+5−1 pkgs/development/interpreters/python/cpython/3.3/default.nix+5−1 pkgs/development/interpreters/python/cpython/3.4/default.nix+5−1 pkgs/development/interpreters/python/cpython/3.5/default.nix+5−1 pkgs/development/interpreters/python/cpython/3.6/default.nix+5−1 pkgs/development/interpreters/python/pypy/2.7/default.nix+2−1 pkgs/development/interpreters/python/wrap-python.nix+1−1 pkgs/development/libraries/fontconfig-ultimate/default.nix−2 pkgs/development/libraries/soundtouch/default.nix+1−1 pkgs/development/libraries/tix/default.nix+55 pkgs/development/libraries/tk/generic.nix+1 pkgs/development/libraries/zimlib/default.nix+1−1 pkgs/development/tools/misc/gnum4/default.nix+3−3 pkgs/development/tools/parsing/flex/2.6.1.nix+37 pkgs/development/tools/parsing/flex/default.nix+4−3 pkgs/misc/emulators/wine/base.nix+3−2 pkgs/misc/themes/orion/default.nix−1 pkgs/os-specific/linux/libsepol/default.nix−4 pkgs/shells/bash/4.3.nix−118 pkgs/shells/bash/4.4.nix+19−10 pkgs/shells/bash/bash-4.3-patches.nix+2 pkgs/shells/bash/bash-4.4-patches.nix+5 pkgs/stdenv/linux/make-bootstrap-tools-cross.nix+2−1 pkgs/stdenv/linux/make-bootstrap-tools.nix+2−1 pkgs/tools/misc/coreutils/default.nix+3−2 pkgs/tools/misc/grub/2.0x.nix+3 pkgs/tools/networking/unbound/default.nix+2−2 pkgs/tools/networking/unbound/python.nix+2−2 pkgs/tools/text/gnused/422.nix+31 pkgs/tools/text/gnused/default.nix+9−5 pkgs/tools/text/zimreader/default.nix+1−1 pkgs/tools/text/zimwriterfs/default.nix+1−1 pkgs/top-level/all-packages.nix+8−1
pkgs/applications/misc/pcmanx-gtk2/default.nix+1−1
@@ -9,7 +9,7 @@ stdenv.mkDerivation {
99
1010 buildInputs = [ gtk2 libXft intltool automake115x autoconf libtool pkgconfig ];
1111
12− preConfigurePhases = ''
12+ preConfigure = ''
1313 ./autogen.sh
1414 '';
1515
pkgs/applications/networking/browsers/firefox/default.nix+1−1
@@ -44,7 +44,7 @@ common = { pname, version, sha512, updateScript }: stdenv.mkDerivation rec {
4444 ++ lib.optional enableGTK3 gtk3
4545 ++ lib.optionals (!passthru.ffmpegSupport) [ gstreamer gst_plugins_base ];
4646
47− nativeBuildInputs = [autoconf213 which];
47+ nativeBuildInputs = [ autoconf213 which gnused ];
4848
4949 configureFlags =
5050 [ "--enable-application=browser"
pkgs/applications/networking/mailreaders/thunderbird/default.nix+7
@@ -25,6 +25,13 @@ stdenv.mkDerivation rec {
2525 sha512 = "1f4579ac37b8ab98c91fe2e3e6742ba1b005ca9346d23f467d19e6af45eb457cab749bf91ed2a79f2058bd66f54da661da3ea5d5786f8c4b472d8a2a6c34db4b";
2626 };
2727
28+ # New sed no longer tolerates this mistake.
29+ postPatch = ''
30+ for f in mozilla/{js/src,}/configure; do
31+ substituteInPlace "$f" --replace '[:space:]*' '[[:space:]]*'
32+ done
33+ '';
34+
2835 buildInputs = # from firefox30Pkgs.xulrunner, without gstreamer and libvpx
2936 [ pkgconfig which libpng gtk2 perl zip libIDL libjpeg zlib bzip2
3037 python2 dbus dbus_glib pango freetype fontconfig xorg.libXi
pkgs/applications/office/zim/default.nix+5−4
@@ -30,12 +30,13 @@ pythonPackages.buildPythonApplication rec {
3030 export makeWrapperArgs="--prefix XDG_DATA_DIRS : $out/share --argv0 $out/bin/.zim-wrapped"
3131 '';
3232
33− postFixup = ''
34− substituteInPlace $out/bin/.zim-wrapped \
35− --replace "sys.argv[0] = 'zim'" "sys.argv[0] = '$out/bin/zim'"
33+ # RuntimeError: could not create GtkClipboard object
34+ doCheck = false;
35+
36+ checkPhase = ''
37+ python test.py
3638 '';
3739
38− doCheck = true;
3940
4041 meta = {
4142 description = "A desktop wiki";
pkgs/applications/science/misc/root/default.nix+2−6
@@ -3,11 +3,11 @@
33
44stdenv.mkDerivation rec {
55 name = "root-${version}";
6− version = "6.04.18";
6+ version = "6.08.02";
77
88 src = fetchurl {
99 url = "https://root.cern.ch/download/root_v${version}.source.tar.gz";
10− sha256 = "00f3v3l8nimfkcxpn9qpyh3h23na0mi4wkds2y5gwqh8wh3jryq9";
10+ sha256 = "0530v1r4rvds52hgb13f00l3phhn76z6vii550mwv8bj3sl5070k";
1111 };
1212
1313 buildInputs = [ cmake pcre pkgconfig python2 zlib lzma gsl ]
@@ -16,10 +16,6 @@ stdenv.mkDerivation rec {
1616 ;
1717
1818 patches = [
19− (fetchpatch {
20− url = "https://github.com/root-mirror/root/commit/ee9964210c56e7c1868618a4434c5340fef38fe4.patch";
21− sha256 = "186i7ni75yvjydy6lpmaplqxfb5z2019bgpbhff1n6zn2qlrff2r";
22− })
2319 ./sw_vers.patch
2420
2521 # this prevents thisroot.sh from setting $p, which interferes with stdenv setup
pkgs/applications/science/misc/root/sw_vers.patch+2−2
@@ -42,12 +42,12 @@ diff --git a/cmake/modules/SetUpMacOS.cmake b/cmake/modules/SetUpMacOS.cmake
4242@@ -38,27 +24,6 @@ if (CMAKE_SYSTEM_NAME MATCHES Darwin)
4343 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m64")
4444 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m64")
45− SET(CMAKE_FORTRAN_FLAGS "${CMAKE_FORTRAN_FLAGS} -m64")
45+ SET(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -m64")
4646- else(${SYSCTL_OUTPUT} MATCHES 64)
4747- MESSAGE(STATUS "Found a 32bit system")
4848- SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32")
4949- SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m32")
50−- SET(CMAKE_FORTRAN_FLAGS "${CMAKE_FORTRAN_FLAGS} -m32")
50+- SET(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -m32")
5151- endif(${SYSCTL_OUTPUT} MATCHES 64)
5252- endif()
5353-
pkgs/development/compilers/llvm/3.7/libc++/default.nix+4−1
@@ -14,7 +14,10 @@ stdenv.mkDerivation rec {
1414 cmakeFlagsArray=($cmakeFlagsArray -DLIBCXX_CXX_ABI_INCLUDE_PATHS="$NIX_BUILD_TOP/libcxxabi-${version}.src/include")
1515 '';
1616
17− patches = [ ./darwin.patch ];
17+ patches = [
18+ ./darwin.patch
19+ ./r242056.patch
20+ ];
1821
1922 buildInputs = [ cmake libcxxabi ] ++ lib.optional stdenv.isDarwin fixDarwinDylibNames;
2023
pkgs/development/compilers/llvm/3.7/libc++/r242056.patchnew file+16
@@ -0,0 +1,16 @@
1+--- a/include/string 2015/07/13 20:04:56 242056
2++++ b/include/string 2015/07/18 20:40:46 242623
3+@@ -1936,7 +1936,12 @@
4+ template <class _CharT, class _Traits, class _Allocator>
5+ inline _LIBCPP_INLINE_VISIBILITY
6+ basic_string<_CharT, _Traits, _Allocator>::basic_string(const allocator_type& __a)
7+- : __r_(__a)
8++#if _LIBCPP_STD_VER <= 14
9++ _NOEXCEPT_(is_nothrow_copy_constructible<allocator_type>::value)
10++#else
11++ _NOEXCEPT
12++#endif
13++: __r_(__a)
14+ {
15+ #if _LIBCPP_DEBUG_LEVEL >= 2
16+ __get_db()->__insert_c(this);
pkgs/development/interpreters/python/cpython/2.7/default.nix+5−1
@@ -6,7 +6,7 @@
66, openssl
77, readline
88, sqlite
9−, tcl ? null, tk ? null, xlibsWrapper ? null, libX11 ? null, x11Support ? false
9+, tcl ? null, tk ? null, tix ? null, xlibsWrapper ? null, libX11 ? null, x11Support ? false
1010, zlib
1111, callPackage
1212, self
@@ -150,6 +150,10 @@ in stdenv.mkDerivation {
150150
151151 setupHook = ./setup-hook.sh;
152152
153+ postPatch = optionalString (x11Support && (tix != null)) ''
154+ substituteInPlace "Lib/lib-tk/Tix.py" --replace "os.environ.get('TIX_LIBRARY')" "os.environ.get('TIX_LIBRARY') or '${tix}/lib'"
155+ '';
156+
153157 postInstall =
154158 ''
155159 # needed for some packages, especially packages that backport
pkgs/development/interpreters/python/cpython/3.3/default.nix+5−1
@@ -6,7 +6,7 @@
66, openssl
77, readline
88, sqlite
9−, tcl ? null, tk ? null, libX11 ? null, xproto ? null, x11Support ? false
9+, tcl ? null, tk ? null, tix ? null, libX11 ? null, xproto ? null, x11Support ? false
1010, zlib
1111, callPackage
1212, self
@@ -50,6 +50,10 @@ in stdenv.mkDerivation {
5050
5151 NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lgcc_s";
5252
53+ postPatch = optionalString (x11Support && (tix != null)) ''
54+ substituteInPlace "Lib/tkinter/tix.py" --replace "os.environ.get('TIX_LIBRARY')" "os.environ.get('TIX_LIBRARY') or '${tix}/lib'"
55+ '';
56+
5357 preConfigure = ''
5458 for i in /usr /sw /opt /pkg; do # improve purity
5559 substituteInPlace ./setup.py --replace $i /no-such-path
pkgs/development/interpreters/python/cpython/3.4/default.nix+5−1
@@ -6,7 +6,7 @@
66, openssl
77, readline
88, sqlite
9−, tcl ? null, tk ? null, libX11 ? null, xproto ? null, x11Support ? false
9+, tcl ? null, tk ? null, tix ? null, libX11 ? null, xproto ? null, x11Support ? false
1010, zlib
1111, callPackage
1212, self
@@ -55,6 +55,10 @@ in stdenv.mkDerivation {
5555 substituteInPlace configure --replace '-Wl,-stack_size,1000000' ' '
5656 '';
5757
58+ postPatch = optionalString (x11Support && (tix != null)) ''
59+ substituteInPlace "Lib/tkinter/tix.py" --replace "os.environ.get('TIX_LIBRARY')" "os.environ.get('TIX_LIBRARY') or '${tix}/lib'"
60+ '';
61+
5862 preConfigure = ''
5963 for i in /usr /sw /opt /pkg; do # improve purity
6064 substituteInPlace ./setup.py --replace $i /no-such-path
pkgs/development/interpreters/python/cpython/3.5/default.nix+5−1
@@ -6,7 +6,7 @@
66, openssl
77, readline
88, sqlite
9−, tcl ? null, tk ? null, libX11 ? null, xproto ? null, x11Support ? false
9+, tcl ? null, tk ? null, tix ? null, libX11 ? null, xproto ? null, x11Support ? false
1010, zlib
1111, callPackage
1212, self
@@ -55,6 +55,10 @@ in stdenv.mkDerivation {
5555 substituteInPlace configure --replace '-Wl,-stack_size,1000000' ' '
5656 '';
5757
58+ postPatch = optionalString (x11Support && (tix != null)) ''
59+ substituteInPlace "Lib/tkinter/tix.py" --replace "os.environ.get('TIX_LIBRARY')" "os.environ.get('TIX_LIBRARY') or '${tix}/lib'"
60+ '';
61+
5862 preConfigure = ''
5963 for i in /usr /sw /opt /pkg; do # improve purity
6064 substituteInPlace ./setup.py --replace $i /no-such-path
pkgs/development/interpreters/python/cpython/3.6/default.nix+5−1
@@ -7,7 +7,7 @@
77, openssl
88, readline
99, sqlite
10−, tcl ? null, tk ? null, libX11 ? null, xproto ? null, x11Support ? false
10+, tcl ? null, tk ? null, tix ? null, libX11 ? null, xproto ? null, x11Support ? false
1111, zlib
1212, callPackage
1313, self
@@ -55,6 +55,10 @@ in stdenv.mkDerivation {
5555 substituteInPlace configure --replace '-Wl,-stack_size,1000000' ' '
5656 '';
5757
58+ postPatch = optionalString (x11Support && (tix != null)) ''
59+ substituteInPlace "Lib/tkinter/tix.py" --replace "os.environ.get('TIX_LIBRARY')" "os.environ.get('TIX_LIBRARY') or '${tix}/lib'"
60+ '';
61+
5862 preConfigure = ''
5963 for i in /usr /sw /opt /pkg; do # improve purity
6064 substituteInPlace ./setup.py --replace $i /no-such-path
pkgs/development/interpreters/python/pypy/2.7/default.nix+2−1
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, zlib ? null, zlibSupport ? true, bzip2, pkgconfig, libffi
2−, sqlite, openssl, ncurses, python, expat, tcl, tk, xlibsWrapper, libX11
2+, sqlite, openssl, ncurses, python, expat, tcl, tk, tix, xlibsWrapper, libX11
33, makeWrapper, callPackage, self, gdbm, db
44# For the Python package set
55, pkgs, packageOverrides ? (self: super: {})
@@ -35,6 +35,7 @@ let
3535 };
3636 in ''
3737 patch lib-python/2.7/test/test_pyexpat.py < '${expatch}'
38+ substituteInPlace "lib-python/2.7/lib-tk/Tix.py" --replace "os.environ.get('TIX_LIBRARY')" "os.environ.get('TIX_LIBRARY') or '${tix}/lib'"
3839 '';
3940
4041 buildInputs = [ bzip2 openssl pkgconfig python libffi ncurses expat sqlite tk tcl xlibsWrapper libX11 makeWrapper gdbm db ]
pkgs/development/interpreters/python/wrap-python.nix+1−1
@@ -35,7 +35,7 @@ makeSetupHook {
3535 import sys
3636 import site
3737 import functools
38− sys.argv[0] = '"'$(basename "$f")'"'
38+ sys.argv[0] = '"'$(readlink -f "$f")'"'
3939 functools.reduce(lambda k, p: site.addsitedir(p, k), ['"$([ -n "$program_PYTHONPATH" ] && (echo "'$program_PYTHONPATH'" | sed "s|:|','|g") || true)"'], site._init_pathinfo())
4040 '';
4141
pkgs/development/libraries/fontconfig-ultimate/default.nix−2
@@ -11,8 +11,6 @@ stdenv.mkDerivation {
1111 owner = "bohoomil";
1212 };
1313
14− phases = "$prePhases unpackPhase installPhase $postPhases";
15−
1614 installPhase = ''
1715 mkdir -p $out/etc/fonts/conf.d
1816 cp conf.d.infinality/*.conf $out/etc/fonts/conf.d
pkgs/development/libraries/soundtouch/default.nix+1−1
@@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
1010
1111 buildInputs = [ autoconf automake libtool ];
1212
13− preConfigurePhases = "./bootstrap";
13+ preConfigure = "./bootstrap";
1414
1515 meta = {
1616 description = "A program and library for changing the tempo, pitch and playback rate of audio";
pkgs/development/libraries/tix/default.nixnew file+55
@@ -0,0 +1,55 @@
1+{ stdenv, fetchurl, tcl, tk, fetchpatch } :
2+
3+stdenv.mkDerivation rec {
4+ version = "8.4.3";
5+ name = "tix-${version}";
6+ src = fetchurl {
7+ url = "mirror://sourceforge/tix/tix/8.4.3/Tix8.4.3-src.tar.gz";
8+ sha256 = "1jq3dkyk9mqkj4cg7mdk5r0cclqsby9l2b7wrysi0zk5yw7h8bsn";
9+ };
10+ patches = [
11+ (fetchpatch {
12+ name = "tix-8.4.3-tcl8.5.patch";
13+ url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/dev-tcltk/tix/files/tix-8.4.3-tcl8.5.patch?id=56bd759df1d0c750a065b8c845e93d5dfa6b549d";
14+ sha256 = "0wzqmcxxq0rqpnjgxz10spw92yhfygnlwv0h8pcx2ycnqiljz6vj";
15+ })
16+ ] ++ stdenv.lib.optional (tcl.release == "8.6")
17+ (fetchpatch {
18+ name = "tix-8.4.3-tcl8.6.patch";
19+ url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/dev-tcltk/tix/files/tix-8.4.3-tcl8.6.patch?id=56bd759df1d0c750a065b8c845e93d5dfa6b549d";
20+ sha256 = "1jaz0l22xj7x1k4rb9ia6i1psnbwk4pblgq4gfvya7gg7fbb7r36";
21+ })
22+ ;
23+ buildInputs = [ tcl tk ];
24+ # the configure script expects to find the location of the sources of
25+ # tcl and tk in {tcl,tk}Config.sh
26+ # In fact, it only needs some private headers. We copy them in
27+ # the private_headers folders and trick the configure script into believing
28+ # the sources are here.
29+ preConfigure = ''
30+ mkdir -p private_headers/generic
31+ < ${tcl}/lib/tclConfig.sh sed "s@TCL_SRC_DIR=.*@TCL_SRC_DIR=private_headers@" > tclConfig.sh
32+ < ${tk}/lib/tkConfig.sh sed "s@TK_SRC_DIR=.*@TK_SRC_DIR=private_headers@" > tkConfig.sh
33+ for i in ${tcl}/include/* ${tk.dev}/include/*; do
34+ ln -s $i private_headers/generic;
35+ done;
36+ '';
37+ configureFlags = ''
38+ --with-tclinclude=${tcl}/include
39+ --with-tclconfig=.
40+ --with-tkinclude=${tk.dev}/include
41+ --with-tkconfig=.
42+ --libdir=''${prefix}/lib
43+ '';
44+
45+ meta = with stdenv.lib; {
46+ description = "A widget library for Tcl/Tk";
47+ homepage = http://tix.sourceforge.net/;
48+ platforms = platforms.all;
49+ license = with licenses; [
50+ bsd2 # tix
51+ gpl2 # patches from portage
52+ ];
53+ };
54+}
55+
pkgs/development/libraries/tk/generic.nix+1
@@ -16,6 +16,7 @@ stdenv.mkDerivation {
1616
1717 postInstall = ''
1818 ln -s $out/bin/wish* $out/bin/wish
19+ cp ../{unix,generic}/*.h $out/include
1920 '';
2021
2122 configureFlags = [
pkgs/development/libraries/zimlib/default.nix+1−1
@@ -10,7 +10,7 @@ stdenv.mkDerivation {
1010 };
1111 buildInputs = [ automake autoconf libtool lzma ];
1212 setSourceRoot = "cd openzim-*/zimlib; export sourceRoot=`pwd`";
13− preConfigurePhases = [ "./autogen.sh" ];
13+ preConfigure = "./autogen.sh";
1414
1515 meta = {
1616 description = "Library for reading and writing ZIM files (file format for storing Web content offline)";
pkgs/development/tools/misc/gnum4/default.nix+3−3
@@ -1,11 +1,11 @@
11{ stdenv, fetchurl }:
22
33stdenv.mkDerivation rec {
4− name = "gnum4-1.4.17";
4+ name = "gnum4-1.4.18";
55
66 src = fetchurl {
7− url = "mirror://gnu/m4/m4-1.4.17.tar.bz2";
8− sha256 = "0w0da1chh12mczxa5lnwzjk9czi3dq6gnnndbpa6w4rj76b1yklf";
7+ url = "mirror://gnu/m4/m4-1.4.18.tar.bz2";
8+ sha256 = "1xkwwq0sgv05cla0g0a01yzhk0wpsn9y40w9kh9miiiv0imxfh36";
99 };
1010
1111 doCheck = false;
pkgs/development/tools/parsing/flex/2.6.1.nixnew file+37
@@ -0,0 +1,37 @@
1+{ stdenv, fetchurl, bison, m4 }:
2+
3+stdenv.mkDerivation rec {
4+ name = "flex-2.6.1";
5+
6+ src = fetchurl {
7+ url = "https://github.com/westes/flex/releases/download/v2.6.1/flex-2.6.1.tar.gz";
8+ sha256 = "0fy14c35yz2m1n1m4f02by3501fn0cca37zn7jp8lpp4b3kgjhrw";
9+ };
10+
11+ buildInputs = [ bison ];
12+
13+ propagatedNativeBuildInputs = [ m4 ];
14+
15+ postConfigure = stdenv.lib.optionalString (stdenv.isDarwin || stdenv.isCygwin) ''
16+ sed -i Makefile -e 's/-no-undefined//;'
17+ '';
18+
19+ crossAttrs = {
20+
21+ # disable tests which can't run on build machine
22+ postPatch = ''
23+ substituteInPlace Makefile.in --replace "tests" " ";
24+ '';
25+
26+ preConfigure = ''
27+ export ac_cv_func_malloc_0_nonnull=yes
28+ export ac_cv_func_realloc_0_nonnull=yes
29+ '';
30+ };
31+
32+ meta = {
33+ homepage = https://github.com/westes/flex;
34+ description = "A fast lexical analyser generator";
35+ platforms = stdenv.lib.platforms.unix;
36+ };
37+}
pkgs/development/tools/parsing/flex/default.nix+4−3
@@ -1,11 +1,12 @@
11{ stdenv, fetchurl, bison, m4 }:
22
33stdenv.mkDerivation rec {
4− name = "flex-2.6.1";
4+ name = "flex-${version}";
5+ version = "2.6.3";
56
67 src = fetchurl {
7− url = "https://github.com/westes/flex/releases/download/v2.6.1/flex-2.6.1.tar.gz";
8− sha256 = "0fy14c35yz2m1n1m4f02by3501fn0cca37zn7jp8lpp4b3kgjhrw";
8+ url = "https://github.com/westes/flex/releases/download/v${version}/flex-${version}.tar.gz";
9+ sha256 = "1an2cn2z85mkpgqcinh1fhhcd7993qm2lil1yxic8iz76ci79ck8";
910 };
1011
1112 buildInputs = [ bison ];
pkgs/misc/emulators/wine/base.nix+3−2
@@ -1,6 +1,7 @@
11{ stdenv, lib, pkgArches,
22 name, version, src, monos, geckos, platforms,
3− pkgconfig, fontforge, makeWrapper, flex, bison,
3+ # flex 2.6.3 causes: undefined reference to `yywrap'
4+ pkgconfig, fontforge, makeWrapper, flex_2_6_1, bison,
45 supportFlags,
56 buildScript ? null, configureFlags ? ""
67}:
@@ -16,7 +17,7 @@ stdenv.mkDerivation ((lib.optionalAttrs (! isNull buildScript) {
1617 inherit name src configureFlags;
1718
1819 nativeBuildInputs = [
19− pkgconfig fontforge makeWrapper flex bison
20+ pkgconfig fontforge makeWrapper flex_2_6_1 bison
2021 ];
2122
2223 buildInputs = toBuildInputs pkgArches (with supportFlags; (pkgs:
pkgs/misc/themes/orion/default.nix−1
@@ -11,7 +11,6 @@ stdenv.mkDerivation {
1111
1212 propagatedUserEnvPkgs = [ gtk-engine-murrine ];
1313
14− phases = "$prePhases unpackPhase installPhase fixupPhase $postPhases";
1514 installPhase = ''
1615 mkdir -p $out/share/themes/orion
1716 cp -r gtk-2.0 gtk-3.0 metacity-1 openbox-3 xfwm4 $out/share/themes/orion
pkgs/os-specific/linux/libsepol/default.nix−4
@@ -13,10 +13,6 @@ stdenv.mkDerivation rec {
1313
1414 nativeBuildInputs = [ flex ];
1515
16− # Temporary work-around for problems after flex security update:
17− # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=835542
18− NIX_CFLAGS_COMPILE = "-Wno-error=sign-compare";
19−
2016 preBuild = ''
2117 makeFlagsArray+=("PREFIX=$out")
2218 makeFlagsArray+=("DESTDIR=$out")
pkgs/shells/bash/4.3.nixdeleted−118
@@ -1,118 +0,0 @@
1−{ stdenv, fetchurl, readline ? null, interactive ? false, texinfo ? null, binutils ? null, bison }:
2−
3−assert interactive -> readline != null;
4−assert stdenv.isDarwin -> binutils != null;
5−
6−let
7− version = "4.3";
8− realName = "bash-${version}";
9− shortName = "bash43";
10− baseConfigureFlags = if interactive then "--with-installed-readline" else "--disable-readline";
11− sha256 = "1m14s1f61mf6bijfibcjm9y6pkyvz6gibyl8p4hxq90fisi8gimg";
12−
13− inherit (stdenv.lib) optional optionalString;
14−in
15−
16−stdenv.mkDerivation rec {
17− name = "${realName}-p${toString (builtins.length patches)}";
18−
19− src = fetchurl {
20− url = "mirror://gnu/bash/${realName}.tar.gz";
21− inherit sha256;
22− };
23−
24− hardeningDisable = [ "format" ];
25−
26− outputs = [ "out" "doc" "info" ];
27−
28− # the man pages are small and useful enough
29− outputMan = if interactive then "out" else null;
30−
31− NIX_CFLAGS_COMPILE = ''
32− -DSYS_BASHRC="/etc/bashrc"
33− -DSYS_BASH_LOGOUT="/etc/bash_logout"
34− -DDEFAULT_PATH_VALUE="/no-such-path"
35− -DSTANDARD_UTILS_PATH="/no-such-path"
36− -DNON_INTERACTIVE_LOGIN_SHELLS
37− -DSSH_SOURCE_BASHRC
38− '';
39−
40− patchFlags = "-p0";
41−
42− patches =
43− (let
44− patch = nr: sha256:
45− fetchurl {
46− url = "mirror://gnu/bash/${realName}-patches/${shortName}-${nr}";
47− inherit sha256;
48− };
49− in
50− import ./bash-4.3-patches.nix patch)
51− ++ optional stdenv.isCygwin ./cygwin-bash-4.3.33-1.src.patch;
52−
53− crossAttrs = {
54− configureFlags = baseConfigureFlags +
55− " bash_cv_job_control_missing=nomissing bash_cv_sys_named_pipes=nomissing" +
56− optionalString stdenv.isCygwin ''
57− --without-libintl-prefix --without-libiconv-prefix
58− --with-installed-readline
59− bash_cv_dev_stdin=present
60− bash_cv_dev_fd=standard
61− bash_cv_termcap_lib=libncurses
62− '';
63− };
64−
65− configureFlags = baseConfigureFlags;
66−
67− # Note: Bison is needed because the patches above modify parse.y.
68− nativeBuildInputs = [bison]
69− ++ optional (texinfo != null) texinfo
70− ++ optional interactive readline
71− ++ optional stdenv.isDarwin binutils;
72−
73− # Bash randomly fails to build because of a recursive invocation to
74− # build `version.h'.
75− enableParallelBuilding = false;
76−
77− postInstall = ''
78− ln -s bash "$out/bin/sh"
79− '';
80−
81− postFixup = if interactive
82− then ''
83− substituteInPlace "$out/bin/bashbug" \
84− --replace '${stdenv.shell}' "$out/bin/bash"
85− ''
86− # most space is taken by locale data
87− else ''
88− rm -r "$out/share" "$out/bin/bashbug"
89− '';
90−
91− meta = with stdenv.lib; {
92− homepage = http://www.gnu.org/software/bash/;
93− description =
94− "GNU Bourne-Again Shell, the de facto standard shell on Linux" +
95− (if interactive then " (for interactive use)" else "");
96−
97− longDescription = ''
98− Bash is the shell, or command language interpreter, that will
99− appear in the GNU operating system. Bash is an sh-compatible
100− shell that incorporates useful features from the Korn shell
101− (ksh) and C shell (csh). It is intended to conform to the IEEE
102− POSIX P1003.2/ISO 9945.2 Shell and Tools standard. It offers
103− functional improvements over sh for both programming and
104− interactive use. In addition, most sh scripts can be run by
105− Bash without modification.
106− '';
107−
108− license = licenses.gpl3Plus;
109−
110− platforms = platforms.all;
111−
112− maintainers = [ maintainers.peti ];
113− };
114−
115− passthru = {
116− shellPath = "/bin/bash";
117− };
118−}
pkgs/shells/bash/4.4.nix+19−10
@@ -12,11 +12,21 @@ let
1212 baseConfigureFlags = if interactive then "--with-installed-readline" else "--disable-readline";
1313 sha256 = "1jyz6snd63xjn6skk7za6psgidsd53k05cr3lksqybi0q6936syq";
1414
15+ upstreamPatches =
16+ let
17+ patch = nr: sha256:
18+ fetchurl {
19+ url = "mirror://gnu/bash/${realName}-patches/${shortName}-${nr}";
20+ inherit sha256;
21+ };
22+ in
23+ import ./bash-4.4-patches.nix patch;
24+
1525 inherit (stdenv.lib) optional optionalString;
1626in
1727
1828stdenv.mkDerivation rec {
19− name = "${realName}-p${toString (builtins.length patches)}";
29+ name = "${realName}-p${toString (builtins.length upstreamPatches)}";
2030
2131 src = fetchurl {
2232 url = "mirror://gnu/bash/${realName}.tar.gz";
@@ -41,15 +51,14 @@ stdenv.mkDerivation rec {
4151
4252 patchFlags = "-p0";
4353
44− patches =
45− (let
46− patch = nr: sha256:
47− fetchurl {
48− url = "mirror://gnu/bash/${realName}-patches/${shortName}-${nr}";
49− inherit sha256;
50− };
51− in
52− import ./bash-4.4-patches.nix patch)
54+ patches = upstreamPatches
55+ ++ [ (fetchurl {
56+ # https://security.gentoo.org/glsa/201701-02
57+ url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/app-shells"
58+ + "/bash/files/bash-4.4-popd-offset-overflow.patch"
59+ + "?id=1bf1ceeb04a2f57e1e5e1636a8c288c4d0db6682";
60+ sha256 = "02n08lw5spvsc2b1bll0gr6mg4qxcg7pzfjkw7ji5w7bjcikccbm";
61+ }) ]
5362 ++ optional stdenv.isCygwin ./cygwin-bash-4.3.33-1.src.patch;
5463
5564 crossAttrs = {
pkgs/shells/bash/bash-4.3-patches.nix+2
@@ -47,4 +47,6 @@ patch: [
4747(patch "044" "16bzaq9fs2kaw2n2k6vvljkjw5k5kx06isnq8hxkfrxz60384f4k")
4848(patch "045" "08q02mj9imp2njpgm6f5q5m61i7qzp33rbxxzarixalyisbw6vms")
4949(patch "046" "13v8dymwj83wcvrfayjqrs5kqar05bcj4zpiacrjkkchnsk5dd5k")
50+(patch "047" "0jkwqviwkqdc13wv3q0g0kapjr68ggs1xzhqy696pfkqgvg4i4n6")
51+(patch "048" "18nzlk1idwkq0xd54s83lx8kam8kcvz7yc0mw6hnq2ax3i2ib0jv")
5052]
pkgs/shells/bash/bash-4.4-patches.nix+5
@@ -1,4 +1,9 @@
11# Automatically generated by `update-patch-set.sh'; do not edit.
22
33patch: [
4+(patch "001" "03vzy7qwjdd5qvl3ydg99naazas2qmyd0yhnrflgjbbm64axja1y")
5+(patch "002" "0lrwq6vyqism3yqv9s7kzaf3dsl4q5w9r5svcqz279qp7qca083h")
6+(patch "003" "1chqww2rj6g42b8s60q5zlzy0jzp684jkpsbrbfy1vzxja8mmpsi")
7+(patch "004" "1cy8abf96hkrjhw921ndr0shlcnc52bg45rn6xri4v5clhq0l25d")
8+(patch "005" "0a8515kyk4zsgmvlqvlganjfr7pq0j6kzpr4d6xx02kpbdr4n7i2")
49]
pkgs/stdenv/linux/make-bootstrap-tools-cross.nix+2−1
@@ -87,8 +87,9 @@ rec {
8787
8888
8989 coreutilsMinimal = (pkgs.coreutils.override (args: {
90− # We want coreutils without ACL support.
90+ # We want coreutils without ACL/attr support.
9191 aclSupport = false;
92+ attrSupport = false;
9293 # Our tooling currently can't handle scripts in bin/, only ELFs and symlinks.
9394 singleBinary = "symlinks";
9495 })).crossDrv;
pkgs/stdenv/linux/make-bootstrap-tools.nix+2−1
@@ -6,8 +6,9 @@ rec {
66
77
88 coreutilsMinimal = coreutils.override (args: {
9− # We want coreutils without ACL support.
9+ # We want coreutils without ACL/attr support.
1010 aclSupport = false;
11+ attrSupport = false;
1112 # Our tooling currently can't handle scripts in bin/, only ELFs and symlinks.
1213 singleBinary = "symlinks";
1314 });
pkgs/tools/misc/coreutils/default.nix+3−2
@@ -1,5 +1,6 @@
11{ lib, stdenv, fetchurl, perl, xz, gmp ? null
22, aclSupport ? false, acl ? null
3+, attrSupport ? false, attr ? null
34, selinuxSupport? false, libselinux ? null, libsepol ? null
45, autoconf, automake114x, texinfo
56, withPrefix ? false
@@ -44,12 +45,14 @@ let
4445
4546 buildInputs = [ gmp ]
4647 ++ optional aclSupport acl
48+ ++ optional attrSupport attr
4749 ++ optionals stdenv.isCygwin [ autoconf automake114x texinfo ] # due to patch
4850 ++ optionals selinuxSupport [ libselinux libsepol ];
4951
5052 crossAttrs = {
5153 buildInputs = [ gmp.crossDrv ]
5254 ++ optional aclSupport acl.crossDrv
55+ ++ optional attrSupport attr.crossDrv
5356 ++ optionals selinuxSupport [ libselinux.crossDrv libsepol.crossDrv ]
5457 ++ optional (stdenv.ccCross.libc ? libiconv)
5558 stdenv.ccCross.libc.libiconv.crossDrv;
@@ -90,8 +93,6 @@ let
9093
9194 makeFlags = optionalString stdenv.isDarwin "CFLAGS=-D_FORTIFY_SOURCE=0";
9295
93− postFixup = ""; # FIXME: remove on next mass rebuild
94−
9596 meta = {
9697 homepage = http://www.gnu.org/software/coreutils/;
9798 description = "The basic file, shell and text manipulation utilities of the GNU operating system";
pkgs/tools/misc/grub/2.0x.nix+3
@@ -54,6 +54,9 @@ stdenv.mkDerivation rec {
5454
5555 hardeningDisable = [ "all" ];
5656
57+ # Work around a bug in the generated flex lexer (upstream flex bug?)
58+ NIX_CFLAGS_COMPILE = "-Wno-error";
59+
5760 preConfigure =
5861 '' for i in "tests/util/"*.in
5962 do
pkgs/tools/networking/unbound/default.nix+2−2
@@ -2,11 +2,11 @@
22
33stdenv.mkDerivation rec {
44 name = "unbound-${version}";
5− version = "1.5.10";
5+ version = "1.6.0";
66
77 src = fetchurl {
88 url = "http://unbound.net/downloads/${name}.tar.gz";
9− sha256 = "11lli8jgq4n917gcx6nw728g1hqc2lszwlxa5mdb78m2ri7qp6x3";
9+ sha256 = "1dzsxyp34ianp08wk4vf13qzl5ss5rr9v1p8zr1aggfywrsbhzbb";
1010 };
1111
1212 outputs = [ "out" "lib" "man" ]; # "dev" would only split ~20 kB
pkgs/tools/networking/unbound/python.nix+2−2
@@ -5,11 +5,11 @@ let
55in stdenv.mkDerivation rec {
66 pname = "pyunbound";
77 name = "${pname}-${version}";
8− version = "1.5.9";
8+ version = "1.6.0";
99
1010 src = fetchurl {
1111 url = "http://unbound.net/downloads/unbound-${version}.tar.gz";
12− sha256 = "01328cfac99ab5b8c47115151896a244979e442e284eb962c0ea84b7782b6990";
12+ sha256 = "1dzsxyp34ianp08wk4vf13qzl5ss5rr9v1p8zr1aggfywrsbhzbb";
1313 };
1414
1515 buildInputs = [ openssl expat libevent swig python ];
pkgs/tools/text/gnused/422.nixnew file+31
@@ -0,0 +1,31 @@
1+{ stdenv, fetchurl }:
2+
3+stdenv.mkDerivation {
4+ name = "gnused-4.2.2";
5+
6+ src = fetchurl {
7+ url = mirror://gnu/sed/sed-4.2.2.tar.bz2;
8+ sha256 = "f048d1838da284c8bc9753e4506b85a1e0cc1ea8999d36f6995bcb9460cddbd7";
9+ };
10+
11+ outputs = [ "out" "info" ];
12+
13+ meta = {
14+ homepage = http://www.gnu.org/software/sed/;
15+ description = "GNU sed, a batch stream editor";
16+
17+ longDescription = ''
18+ Sed (stream editor) isn't really a true text editor or text
19+ processor. Instead, it is used to filter text, i.e., it takes
20+ text input and performs some operation (or set of operations) on
21+ it and outputs the modified text. Sed is typically used for
22+ extracting part of a file using pattern matching or substituting
23+ multiple occurrences of a string within a file.
24+ '';
25+
26+ license = stdenv.lib.licenses.gpl3Plus;
27+
28+ platforms = stdenv.lib.platforms.all;
29+ maintainers = [ ];
30+ };
31+}
pkgs/tools/text/gnused/default.nix+9−5
@@ -1,15 +1,19 @@
1−{ stdenv, fetchurl }:
1+{ stdenv, fetchurl, perl }:
22
3−stdenv.mkDerivation {
4− name = "gnused-4.2.2";
3+stdenv.mkDerivation rec {
4+ name = "gnused-${version}";
5+ version = "4.3";
56
67 src = fetchurl {
7− url = mirror://gnu/sed/sed-4.2.2.tar.bz2;
8− sha256 = "f048d1838da284c8bc9753e4506b85a1e0cc1ea8999d36f6995bcb9460cddbd7";
8+ url = "mirror://gnu/sed/sed-${version}.tar.xz";
9+ sha256 = "1anhdgah8h423hlmn9hwzxzr7hjbqjm6hxq3z1p7p7nf8640vhj7";
910 };
1011
1112 outputs = [ "out" "info" ];
1213
14+ nativeBuildInputs = [ perl ];
15+ preConfigure = "patchShebangs ./build-aux/help2man";
16+
1317 meta = {
1418 homepage = http://www.gnu.org/software/sed/;
1519 description = "GNU sed, a batch stream editor";
pkgs/tools/text/zimreader/default.nix+1−1
@@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
2424 enableParallelBuilding = true;
2525 buildInputs = [ automake autoconf libtool zimlib cxxtools tntnet ];
2626 setSourceRoot = "cd openzim-*/zimreader; export sourceRoot=`pwd`";
27− preConfigurePhases = [ "./autogen.sh" ];
27+ preConfigure = "./autogen.sh";
2828
2929 meta = {
3030 description = "A tool to serve ZIM files using HTTP";
pkgs/tools/text/zimwriterfs/default.nix+1−1
@@ -12,7 +12,7 @@ stdenv.mkDerivation {
1212
1313 buildInputs = [ automake autoconf libtool lzma pkgconfig zimlib file zlib ];
1414 setSourceRoot = "cd openzim-*/zimwriterfs; export sourceRoot=`pwd`";
15− preConfigurePhases = [ "./autogen.sh" ];
15+ preConfigure = "./autogen.sh";
1616
1717 meta = {
1818 description = "A console tool to create ZIM files";
pkgs/top-level/all-packages.nix+8−1
@@ -1277,6 +1277,7 @@ in
12771277
12781278 coreutils = callPackage ../tools/misc/coreutils {
12791279 aclSupport = stdenv.isLinux;
1280+ attrSupport = stdenv.isLinux;
12801281 };
12811282
12821283 coreutils-prefixed = coreutils.override { withPrefix = true; singleBinary = false; };
@@ -1932,6 +1933,8 @@ in
19321933 gnuplot_aquaterm = gnuplot.override { aquaterm = true; };
19331934
19341935 gnused = callPackage ../tools/text/gnused { };
1936+ # This is an easy work-around for [:space:] problems.
1937+ gnused_422 = callPackage ../tools/text/gnused/422.nix { };
19351938
19361939 gnutar = callPackage ../tools/archivers/gnutar { };
19371940
@@ -4540,7 +4543,7 @@ in
45404543
45414544 ### SHELLS
45424545
4543− bash = lowPrio (callPackage ../shells/bash/4.3.nix {
4546+ bash = lowPrio (callPackage ../shells/bash/4.4.nix {
45444547 texinfo = null;
45454548 interactive = stdenv.isCygwin; # patch for cygwin requires readline support
45464549 });
@@ -6270,6 +6273,7 @@ in
62706273 jdepend = callPackage ../development/tools/analysis/jdepend { };
62716274
62726275 flex_2_5_35 = callPackage ../development/tools/parsing/flex/2.5.35.nix { };
6276+ flex_2_6_1 = callPackage ../development/tools/parsing/flex/2.6.1.nix { };
62736277 flex = callPackage ../development/tools/parsing/flex/default.nix { };
62746278
62756279 flexcpp = callPackage ../development/tools/parsing/flexc++ { };
@@ -9536,6 +9540,8 @@ in
95369540
95379541 tivodecode = callPackage ../applications/video/tivodecode { };
95389542
9543+ tix = callPackage ../development/libraries/tix { };
9544+
95399545 tk = tk-8_6;
95409546
95419547 tk-8_6 = callPackage ../development/libraries/tk/8.6.nix { };
@@ -13216,6 +13222,7 @@ in
1321613222 libpng = libpng_apng;
1321713223 enableGTK3 = false;
1321813224 python = python2;
13225+ gnused = gnused_422;
1321913226 }) firefox-unwrapped firefox-esr-unwrapped;
1322013227
1322113228 firefox = wrapFirefox firefox-unwrapped { };