From 37794d7101539369af0cf6c1330ac5d6cf947abd Mon Sep 17 00:00:00 2001 From: Lancelot SIX Date: Mon, 13 Mar 2017 09:20:47 +0100 Subject: [PATCH 01/19] gdbm: 1.12 -> 1.13 See http://lists.gnu.org/archive/html/info-gnu/2017-03/msg00005.html for release anouncement --- pkgs/development/libraries/gdbm/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/gdbm/default.nix b/pkgs/development/libraries/gdbm/default.nix index 71b65131015a..de77b4c99b8b 100644 --- a/pkgs/development/libraries/gdbm/default.nix +++ b/pkgs/development/libraries/gdbm/default.nix @@ -1,11 +1,11 @@ { stdenv, fetchurl }: stdenv.mkDerivation rec { - name = "gdbm-1.12"; + name = "gdbm-1.13"; src = fetchurl { url = "mirror://gnu/gdbm/${name}.tar.gz"; - sha256 = "1smwz4x5qa4js0zf1w3asq6z7mh20zlgwbh2bk5dczw6xrk22yyr"; + sha256 = "0lx201q20dvc70f8a3c9s7s18z15inlxvbffph97ngvrgnyjq9cx"; }; doCheck = true; From b83d2970f27116bfdd14eb8c21425457a251c725 Mon Sep 17 00:00:00 2001 From: ndowens Date: Sat, 1 Apr 2017 04:06:20 -0500 Subject: [PATCH 02/19] pkgconfig: 0.29 -> 0.29.1 (#24394) --- .../tools/misc/pkgconfig/default.nix | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/pkgs/development/tools/misc/pkgconfig/default.nix b/pkgs/development/tools/misc/pkgconfig/default.nix index d0e63469987b..7b7bbc279aa2 100644 --- a/pkgs/development/tools/misc/pkgconfig/default.nix +++ b/pkgs/development/tools/misc/pkgconfig/default.nix @@ -1,10 +1,9 @@ {stdenv, fetchurl, automake, libiconv, vanilla ? false }: -let - inherit (stdenv.lib) optional; -in +with stdenv.lib; + stdenv.mkDerivation rec { - name = "pkg-config-0.29"; +name = "pkg-config-0.29.1"; setupHook = ./setup-hook.sh; @@ -13,26 +12,26 @@ stdenv.mkDerivation rec { "https://pkgconfig.freedesktop.org/releases/${name}.tar.gz" "http://fossies.org/linux/misc/${name}.tar.gz" ]; - sha256 = "0sq09a39wj4cxf8l2jvkq067g08ywfma4v6nhprnf351s82pfl68"; + sha256 = "00dh1jn8rbppmgbhhgqhmbh3c58b0gccy39rsjdlcma50sg3rd5y"; }; # Process Requires.private properly, see # http://bugs.freedesktop.org/show_bug.cgi?id=4738. patches = optional (!vanilla) ./requires-private.patch ++ optional stdenv.isCygwin ./2.36.3-not-win32.patch; - preConfigure = stdenv.lib.optionalString (stdenv.system == "mips64el-linux") + preConfigure = optionalString (stdenv.system == "mips64el-linux") ''cp -v ${automake}/share/automake*/config.{sub,guess} .''; - buildInputs = stdenv.lib.optional (stdenv.isCygwin || stdenv.isDarwin || stdenv.isSunOS) libiconv; + buildInputs = optional (stdenv.isCygwin || stdenv.isDarwin || stdenv.isSunOS) libiconv; configureFlags = [ "--with-internal-glib" ] - ++ stdenv.lib.optional (stdenv.isSunOS) [ "--with-libiconv=gnu" "--with-system-library-path" "--with-system-include-path" "CFLAGS=-DENABLE_NLS" ]; + ++ optional (stdenv.isSunOS) [ "--with-libiconv=gnu" "--with-system-library-path" "--with-system-include-path" "CFLAGS=-DENABLE_NLS" ]; postInstall = ''rm "$out"/bin/*-pkg-config''; # clean the duplicate file meta = { description = "A tool that allows packages to find out information about other packages"; homepage = http://pkg-config.freedesktop.org/wiki/; - platforms = stdenv.lib.platforms.all; + platforms = platforms.all; }; } From d455cdd34bb80afa7225c2da25b760bd4d5e7a02 Mon Sep 17 00:00:00 2001 From: ndowens Date: Sat, 1 Apr 2017 04:29:55 -0500 Subject: [PATCH 03/19] sharutils: 4.11.1 -> 4.15.2 (#24305) --- pkgs/tools/archivers/sharutils/default.nix | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/pkgs/tools/archivers/sharutils/default.nix b/pkgs/tools/archivers/sharutils/default.nix index 41043cda5b65..77ab8a1cb033 100644 --- a/pkgs/tools/archivers/sharutils/default.nix +++ b/pkgs/tools/archivers/sharutils/default.nix @@ -1,23 +1,17 @@ { stdenv, fetchurl, gettext, coreutils }: stdenv.mkDerivation rec { - name = "sharutils-4.11.1"; + name = "sharutils-4.15.2"; src = fetchurl { - url = "mirror://gnu/sharutils/${name}.tar.bz2"; - sha256 = "1mallg1gprimlggdisfzdmh1xi676jsfdlfyvanlcw72ny8fsj3g"; + url = "mirror://gnu/sharutils/${name}.tar.xz"; + sha256 = "16isapn8f39lnffc3dp4dan05b7x6mnc76v6q5nn8ysxvvvwy19b"; }; hardeningDisable = [ "format" ]; - preConfigure = '' - # Fix for building on Glibc 2.16. Won't be needed once the - # gnulib in sharutils is updated. - sed -i ${stdenv.lib.optionalString (stdenv.isOpenBSD && stdenv.cc.nativeTools) "''"} '/gets is a security hole/d' lib/stdio.in.h - ''; - # GNU Gettext is needed on non-GNU platforms. - buildInputs = [ gettext coreutils ]; + buildInputs = [ coreutils gettext ]; doCheck = true; @@ -25,7 +19,7 @@ stdenv.mkDerivation rec { patches = [ ./sharutils-4.11.1-cross-binary-mode-popen.patch ]; }; - meta = { + meta = with stdenv.lib; { description = "Tools for remote synchronization and `shell archives'"; longDescription = '' GNU shar makes so-called shell archives out of many files, preparing @@ -44,8 +38,8 @@ stdenv.mkDerivation rec { concatenated shell archives. ''; homepage = http://www.gnu.org/software/sharutils/; - license = stdenv.lib.licenses.gpl3Plus; - maintainers = [ ]; - platforms = stdenv.lib.platforms.all; + license = licenses.gpl3Plus; + maintainers = [ maintainers.ndowens ]; + platforms = platforms.all; }; } From 249b34aadca7038207492f29142a3456d0cecec3 Mon Sep 17 00:00:00 2001 From: Johannes Bornhold Date: Sat, 1 Apr 2017 12:19:53 +0200 Subject: [PATCH 04/19] python: Move catch_conflicts.py into subdirectory (#23600) Python does add the script's directory into "sys.path". For the case of "catch_conflicts.py" this means "/nix/store" is added to "sys.path". This can result in very long delays if the store contains a lot of entries. (moved from master commit 76213d102c1eaa91e733b326d9d312b60103d88a) --- .../interpreters/python/catch_conflicts/README.md | 13 +++++++++++++ .../python/{ => catch_conflicts}/catch_conflicts.py | 0 .../interpreters/python/mk-python-derivation.nix | 9 ++++----- 3 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 pkgs/development/interpreters/python/catch_conflicts/README.md rename pkgs/development/interpreters/python/{ => catch_conflicts}/catch_conflicts.py (100%) diff --git a/pkgs/development/interpreters/python/catch_conflicts/README.md b/pkgs/development/interpreters/python/catch_conflicts/README.md new file mode 100644 index 000000000000..d144b80e3385 --- /dev/null +++ b/pkgs/development/interpreters/python/catch_conflicts/README.md @@ -0,0 +1,13 @@ + + +catch_conflicts.py +================== + +The file catch_conflicts.py is in a subdirectory because, if it isn't, the +/nix/store/ directory is added to sys.path causing a delay when building. + +Pointers: + +- https://docs.python.org/3/library/sys.html#sys.path + +- https://github.com/NixOS/nixpkgs/pull/23600 diff --git a/pkgs/development/interpreters/python/catch_conflicts.py b/pkgs/development/interpreters/python/catch_conflicts/catch_conflicts.py similarity index 100% rename from pkgs/development/interpreters/python/catch_conflicts.py rename to pkgs/development/interpreters/python/catch_conflicts/catch_conflicts.py diff --git a/pkgs/development/interpreters/python/mk-python-derivation.nix b/pkgs/development/interpreters/python/mk-python-derivation.nix index f30bd175daac..5d710fcad882 100644 --- a/pkgs/development/interpreters/python/mk-python-derivation.nix +++ b/pkgs/development/interpreters/python/mk-python-derivation.nix @@ -79,9 +79,10 @@ python.stdenv.mkDerivation (builtins.removeAttrs attrs ["disabled"] // { postFixup = '' wrapPythonPrograms '' + lib.optionalString catchConflicts '' - # check if we have two packages with the same name in closure and fail - # this shouldn't happen, something went wrong with dependencies specs - ${python.interpreter} ${./catch_conflicts.py} + # Check if we have two packages with the same name in the closure and fail. + # If this happens, something went wrong with the dependencies specs. + # Intentionally kept in a subdirectory, see catch_conflicts/README.md. + ${python.interpreter} ${./catch_conflicts}/catch_conflicts.py '' + attrs.postFixup or ''''; passthru = { @@ -98,5 +99,3 @@ python.stdenv.mkDerivation (builtins.removeAttrs attrs ["disabled"] // { isBuildPythonPackage = python.meta.platforms; }; }) - - From e109faa401e2892a6189ae1987ebcad18db3621f Mon Sep 17 00:00:00 2001 From: ndowens Date: Sat, 1 Apr 2017 05:26:36 -0500 Subject: [PATCH 05/19] libgudev: 230 -> 231 (#23965) --- pkgs/development/libraries/libgudev/default.nix | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/pkgs/development/libraries/libgudev/default.nix b/pkgs/development/libraries/libgudev/default.nix index e751c6ee6c04..4407a5e611af 100644 --- a/pkgs/development/libraries/libgudev/default.nix +++ b/pkgs/development/libraries/libgudev/default.nix @@ -1,21 +1,20 @@ -{ lib, stdenv, fetchurl, pkgconfig, udev, glib }: - -let version = "230"; in +{ stdenv, fetchurl, pkgconfig, udev, glib }: stdenv.mkDerivation rec { name = "libgudev-${version}"; + version = "231"; src = fetchurl { url = "https://download.gnome.org/sources/libgudev/${version}/${name}.tar.xz"; - sha256 = "a2e77faced0c66d7498403adefcc0707105e03db71a2b2abd620025b86347c18"; + sha256 = "15iz0qp57qy5pjrblsn36l0chlncqggqsg8h8i8c71499afzj7iv"; }; buildInputs = [ pkgconfig udev glib ]; - meta = { + meta = with stdenv.lib; { homepage = https://wiki.gnome.org/Projects/libgudev; - maintainers = [ lib.maintainers.eelco ]; - platforms = lib.platforms.linux; - license = lib.licenses.lgpl2Plus; + maintainers = [ maintainers.eelco ]; + platforms = platforms.linux; + license = licenses.lgpl2Plus; }; } From af098ff18e0080303bd6867898e4c7f118fb313a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Sat, 1 Apr 2017 13:24:10 +0200 Subject: [PATCH 06/19] libgudev: fix build after update #23965 I somehow missed this error. --- pkgs/development/libraries/libgudev/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/libraries/libgudev/default.nix b/pkgs/development/libraries/libgudev/default.nix index 4407a5e611af..5b29c23fa6e5 100644 --- a/pkgs/development/libraries/libgudev/default.nix +++ b/pkgs/development/libraries/libgudev/default.nix @@ -11,6 +11,9 @@ stdenv.mkDerivation rec { buildInputs = [ pkgconfig udev glib ]; + # There's a dependency cycle with umockdev and the tests fail to LD_PRELOAD anyway. + configureFlags = [ "--disable-umockdev" ]; + meta = with stdenv.lib; { homepage = https://wiki.gnome.org/Projects/libgudev; maintainers = [ maintainers.eelco ]; From 6c153c55c3aeaa5978950d79f60efb5a03030a52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Sat, 1 Apr 2017 12:39:58 +0200 Subject: [PATCH 07/19] gtk3: maintenance 3.22.8 -> 3.22.11 --- pkgs/development/libraries/gtk+/3.x.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/gtk+/3.x.nix b/pkgs/development/libraries/gtk+/3.x.nix index 10f012943017..aa8957b2c7da 100644 --- a/pkgs/development/libraries/gtk+/3.x.nix +++ b/pkgs/development/libraries/gtk+/3.x.nix @@ -13,7 +13,7 @@ with stdenv.lib; let ver_maj = "3.22"; - ver_min = "8"; + ver_min = "11"; version = "${ver_maj}.${ver_min}"; in stdenv.mkDerivation rec { @@ -21,7 +21,7 @@ stdenv.mkDerivation rec { src = fetchurl { url = "mirror://gnome/sources/gtk+/${ver_maj}/gtk+-${version}.tar.xz"; - sha256 = "c7254a88df5c17e9609cee9e848c3d0104512707edad4c3b4f256b131f8d3af1"; + sha256 = "db440670cb6f3c098b076df3735fbc4e69359bd605385e87c90ee48344a804ca"; }; outputs = [ "out" "dev" ]; From ae08fdd84e29f02c589a0b4831f4559eb6a5a933 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Sat, 1 Apr 2017 12:49:03 +0200 Subject: [PATCH 08/19] pango: maintenance 1.40.3 -> 1.40.4 --- pkgs/development/libraries/pango/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/pango/default.nix b/pkgs/development/libraries/pango/default.nix index b90ff39dc1f7..91f065fa0ebb 100644 --- a/pkgs/development/libraries/pango/default.nix +++ b/pkgs/development/libraries/pango/default.nix @@ -6,14 +6,14 @@ with stdenv.lib; let ver_maj = "1.40"; - ver_min = "3"; + ver_min = "4"; in stdenv.mkDerivation rec { name = "pango-${ver_maj}.${ver_min}"; src = fetchurl { url = "mirror://gnome/sources/pango/${ver_maj}/${name}.tar.xz"; - sha256 = "abba8b5ce728520c3a0f1535eab19eac3c14aeef7faa5aded90017ceac2711d3"; + sha256 = "f8fdc5fc66356dc4edf915048cceeee065a0e0cb70b3b2598f62bda320129a3e"; }; outputs = [ "bin" "dev" "out" "devdoc" ]; From ae58febf70b56f409ed91d58a32bfeaf783ae922 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Sat, 1 Apr 2017 12:50:47 +0200 Subject: [PATCH 09/19] gdk-pixbuf: maintenance 2.36.5 -> 2.36.6 --- pkgs/development/libraries/gdk-pixbuf/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/gdk-pixbuf/default.nix b/pkgs/development/libraries/gdk-pixbuf/default.nix index af4bfc0709e1..f40ebf00590a 100644 --- a/pkgs/development/libraries/gdk-pixbuf/default.nix +++ b/pkgs/development/libraries/gdk-pixbuf/default.nix @@ -3,14 +3,14 @@ let ver_maj = "2.36"; - ver_min = "5"; + ver_min = "6"; in stdenv.mkDerivation rec { name = "gdk-pixbuf-${ver_maj}.${ver_min}"; src = fetchurl { url = "mirror://gnome/sources/gdk-pixbuf/${ver_maj}/${name}.tar.xz"; - sha256 = "7ace06170291a1f21771552768bace072ecdea9bd4a02f7658939b9a314c40fc"; + sha256 = "455eb90c09ed1b71f95f3ebfe1c904c206727e0eeb34fc94e5aaf944663a820c"; }; outputs = [ "out" "dev" "devdoc" ]; From 0062dd2f14526107bce0d78f39eea18f705fc2bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Sat, 1 Apr 2017 12:56:27 +0200 Subject: [PATCH 10/19] pciutils: 3.5.2 -> 3.5.4 The patch was integrated upstream. --- pkgs/tools/system/pciutils/default.nix | 6 ++---- pkgs/tools/system/pciutils/module-dir.diff | 23 ---------------------- 2 files changed, 2 insertions(+), 27 deletions(-) delete mode 100644 pkgs/tools/system/pciutils/module-dir.diff diff --git a/pkgs/tools/system/pciutils/default.nix b/pkgs/tools/system/pciutils/default.nix index dd1070495786..998a3bdf6d1d 100644 --- a/pkgs/tools/system/pciutils/default.nix +++ b/pkgs/tools/system/pciutils/default.nix @@ -1,15 +1,13 @@ { stdenv, fetchurl, pkgconfig, zlib, kmod, which }: stdenv.mkDerivation rec { - name = "pciutils-3.5.2"; # with database from 2016-10 + name = "pciutils-3.5.4"; # with database from 2017-02 src = fetchurl { url = "mirror://kernel/software/utils/pciutils/${name}.tar.xz"; - sha256 = "1z2y4f3cyvm7a0dyan0n6jpb3p9pvh35lrim0058slj0kwd1969s"; + sha256 = "0rpy7kkb2y89wmbcbfjjjxsk2x89v5xxhxib4vpl131ip5m3qab4"; }; - patches = [ ./module-dir.diff ]; - buildInputs = [ pkgconfig zlib kmod which ]; makeFlags = "SHARED=yes PREFIX=\${out}"; diff --git a/pkgs/tools/system/pciutils/module-dir.diff b/pkgs/tools/system/pciutils/module-dir.diff deleted file mode 100644 index ea38b115b248..000000000000 --- a/pkgs/tools/system/pciutils/module-dir.diff +++ /dev/null @@ -1,23 +0,0 @@ -Don't override libkmod's way of finding modules. - -(We override that behavior in nixpkgs to fit nixos.) - -diff --git a/ls-kernel.c b/ls-kernel.c -index 78b70f1..ecacd0e 100644 ---- a/ls-kernel.c -+++ b/ls-kernel.c -@@ -29,13 +29,7 @@ show_kernel_init(void) - if (show_kernel_inited >= 0) - return show_kernel_inited; - -- struct utsname uts; -- if (uname(&uts) < 0) -- die("uname() failed: %m"); -- char *name = alloca(64 + strlen(uts.release)); -- sprintf(name, "/lib/modules/%s", uts.release); -- -- kmod_ctx = kmod_new(name, NULL); -+ kmod_ctx = kmod_new(NULL, NULL); - if (!kmod_ctx) - { - fprintf(stderr, "lspci: Unable to initialize libkmod context\n"); From d55727c7a5f2151f77495f56f9b78a3688d346e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Sat, 1 Apr 2017 13:00:00 +0200 Subject: [PATCH 11/19] at-spi2-core: maintenance 2.22.0 -> 2.22.1 --- pkgs/development/libraries/at-spi2-core/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/at-spi2-core/default.nix b/pkgs/development/libraries/at-spi2-core/default.nix index 3562969f6c95..85ab3f35fe7f 100644 --- a/pkgs/development/libraries/at-spi2-core/default.nix +++ b/pkgs/development/libraries/at-spi2-core/default.nix @@ -3,13 +3,13 @@ stdenv.mkDerivation rec { versionMajor = "2.22"; - versionMinor = "0"; + versionMinor = "1"; moduleName = "at-spi2-core"; name = "${moduleName}-${versionMajor}.${versionMinor}"; src = fetchurl { url = "mirror://gnome/sources/${moduleName}/${versionMajor}/${name}.tar.xz"; - sha256 = "415ea3af21318308798e098be8b3a17b2f0cf2fe16cecde5ad840cf4e0f2c80a"; + sha256 = "6f8f39f091bfe2c57870cb8bfbb02edac4fc85cda69665e6967937daf7201c42"; }; outputs = [ "out" "dev" ]; From 6230bfa123ee48e6eb62d3033f928edce9c13b82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Sat, 1 Apr 2017 13:27:39 +0200 Subject: [PATCH 12/19] libpng: 1.6.28 -> 1.6.29 --- pkgs/development/libraries/libpng/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libpng/default.nix b/pkgs/development/libraries/libpng/default.nix index 545c58f976e9..92e0fa339b24 100644 --- a/pkgs/development/libraries/libpng/default.nix +++ b/pkgs/development/libraries/libpng/default.nix @@ -3,10 +3,10 @@ assert zlib != null; let - version = "1.6.28"; + version = "1.6.29"; patchVersion = "1.6.26"; # patchVersion = version; - sha256 = "0ylgyx93hnk38haqrh8prd3ax5ngzwvjqw5cxw7p9nxmwsfyrlyq"; + sha256 = "0fgjqp7x6jynacmqh6dj72cn6nnf6yxjfqqqfsxrx0pyx22bcia2"; patch_src = fetchurl { url = "mirror://sourceforge/libpng-apng/libpng-${patchVersion}-apng.patch.gz"; sha256 = "0b6p2k4afvhk1svargpllcvhxb4g3p857wkqk85cks0yv42ckph1"; From 8eab29e26fe3531bda8c291c84ce4747fa69ae10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Sat, 1 Apr 2017 11:14:07 +0200 Subject: [PATCH 13/19] nss: 3.28.3 -> 3.30 (close #24508) --- pkgs/development/libraries/nss/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/nss/default.nix b/pkgs/development/libraries/nss/default.nix index e378c5b8a8aa..396d795c5a42 100644 --- a/pkgs/development/libraries/nss/default.nix +++ b/pkgs/development/libraries/nss/default.nix @@ -9,11 +9,11 @@ let in stdenv.mkDerivation rec { name = "nss-${version}"; - version = "3.28.3"; + version = "3.30"; src = fetchurl { - url = "mirror://mozilla/security/nss/releases/NSS_3_28_3_RTM/src/${name}.tar.gz"; - sha256 = "1wrx2ig6yvgywjs25hzy4szgml21hwhd7ds0ghyfybhkiq7lyg6x"; + url = "mirror://mozilla/security/nss/releases/NSS_3_30_RTM/src/${name}.tar.gz"; + sha256 = "a8c0000dae5e992f6563972e26dbfefc50d006dd845c43b8ca24ea50169ff3a9"; }; buildInputs = [ perl zlib sqlite ]; From 1a46368a60f128b7bd11a83a78f5b37857e0210f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Sat, 1 Apr 2017 13:40:40 +0200 Subject: [PATCH 14/19] ffmpeg(3): 3.1 -> 3.2 According to ABI report https://abi-laboratory.pro/tracker/timeline/ffmpeg/ I see only one removed function and one removed field - both should be detected during compile-time. The rest are changes that don't matter when everything rebuilds. --- pkgs/top-level/all-packages.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e403f303d126..f0047cc44262 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7372,7 +7372,7 @@ with pkgs; ffmpeg_0 = ffmpeg_0_10; ffmpeg_1 = ffmpeg_1_2; ffmpeg_2 = ffmpeg_2_8; - ffmpeg_3 = ffmpeg_3_1; + ffmpeg_3 = ffmpeg_3_2; ffmpeg = ffmpeg_3; ffmpeg-full = callPackage ../development/libraries/ffmpeg-full { @@ -14424,10 +14424,7 @@ with pkgs; lxdvdrip = callPackage ../applications/video/lxdvdrip { }; - handbrake = callPackage ../applications/video/handbrake { - # TODO: remove when 3.2 becomes default - ffmpeg = ffmpeg_3_2; - }; + handbrake = callPackage ../applications/video/handbrake { }; lilyterm = callPackage ../applications/misc/lilyterm { inherit (gnome2) vte; From 1a805c4c6380ce9e5920e1fe1da58a7d3644a95c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Sat, 1 Apr 2017 14:48:29 +0200 Subject: [PATCH 15/19] libdrm: 2.4.75 -> 2.4.76 --- pkgs/development/libraries/libdrm/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libdrm/default.nix b/pkgs/development/libraries/libdrm/default.nix index 3dfbdd7040f2..82681a6d05e7 100644 --- a/pkgs/development/libraries/libdrm/default.nix +++ b/pkgs/development/libraries/libdrm/default.nix @@ -1,11 +1,11 @@ { stdenv, fetchurl, pkgconfig, libpthreadstubs, libpciaccess, valgrind }: stdenv.mkDerivation rec { - name = "libdrm-2.4.75"; + name = "libdrm-2.4.76"; src = fetchurl { url = "http://dri.freedesktop.org/libdrm/${name}.tar.bz2"; - sha256 = "2d5a500eef412cc287d12268eed79d571e262d4957a2ec9258073f305985054f"; + sha256 = "7cdfb83ea77def453299dd95332aa9257c9f3534ff5844f5c0ce87265c275f3a"; }; outputs = [ "out" "dev" ]; From 969849acf876bb4e40d6fc7f488757886fe84ea9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Mon, 3 Apr 2017 11:24:50 +0200 Subject: [PATCH 16/19] mesa: maintenance 17.0.2 -> 17.0.3 --- pkgs/development/libraries/mesa/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/mesa/default.nix b/pkgs/development/libraries/mesa/default.nix index ea8bd57766bf..5fbd6552b4c4 100644 --- a/pkgs/development/libraries/mesa/default.nix +++ b/pkgs/development/libraries/mesa/default.nix @@ -67,7 +67,7 @@ let in let - version = "17.0.2"; + version = "17.0.3"; branch = head (splitString "." version); driverLink = "/run/opengl-driver" + optionalString stdenv.isi686 "-32"; in @@ -82,7 +82,7 @@ stdenv.mkDerivation { "ftp://ftp.freedesktop.org/pub/mesa/older-versions/${branch}.x/${version}/mesa-${version}.tar.xz" "https://launchpad.net/mesa/trunk/${version}/+download/mesa-${version}.tar.xz" ]; - sha256 = "f8f191f909e01e65de38d5bdea5fb057f21649a3aed20948be02348e77a689d4"; + sha256 = "ca646f5075a002d60ef9123c8a4331cede155c01712ef945a65c59a5e69fe7ed"; }; prePatch = "patchShebangs ."; From d42dccf0290a377f06833108c5c2533feacca003 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Thu, 6 Apr 2017 00:08:04 +0200 Subject: [PATCH 17/19] pkgconfig: 0.29.1 -> 0.29.2 --- pkgs/development/tools/misc/pkgconfig/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/misc/pkgconfig/default.nix b/pkgs/development/tools/misc/pkgconfig/default.nix index 7b7bbc279aa2..10358df69c22 100644 --- a/pkgs/development/tools/misc/pkgconfig/default.nix +++ b/pkgs/development/tools/misc/pkgconfig/default.nix @@ -3,7 +3,7 @@ with stdenv.lib; stdenv.mkDerivation rec { -name = "pkg-config-0.29.1"; + name = "pkg-config-0.29.2"; setupHook = ./setup-hook.sh; @@ -12,7 +12,7 @@ name = "pkg-config-0.29.1"; "https://pkgconfig.freedesktop.org/releases/${name}.tar.gz" "http://fossies.org/linux/misc/${name}.tar.gz" ]; - sha256 = "00dh1jn8rbppmgbhhgqhmbh3c58b0gccy39rsjdlcma50sg3rd5y"; + sha256 = "14fmwzki1rlz8bs2p810lk6jqdxsk966d8drgsjmi54cd00rrikg"; }; # Process Requires.private properly, see # http://bugs.freedesktop.org/show_bug.cgi?id=4738. From b9e558597de13a044f2f9c00cc8c29d3cce1e55d Mon Sep 17 00:00:00 2001 From: Dan Peebles Date: Sat, 18 Mar 2017 16:48:27 -0400 Subject: [PATCH 18/19] stdenv-darwin: bump to use LLVM 4.0 & new bootstrap tools --- pkgs/development/compilers/llvm/4/default.nix | 4 ++-- pkgs/stdenv/darwin/default.nix | 24 ++++++++++--------- pkgs/top-level/all-packages.nix | 18 +++++++------- 3 files changed, 24 insertions(+), 22 deletions(-) diff --git a/pkgs/development/compilers/llvm/4/default.nix b/pkgs/development/compilers/llvm/4/default.nix index 999ff858d020..4be621adb5cf 100644 --- a/pkgs/development/compilers/llvm/4/default.nix +++ b/pkgs/development/compilers/llvm/4/default.nix @@ -1,6 +1,6 @@ -{ newScope, stdenv, isl, fetchurl, overrideCC, wrapCC, darwin, ccWrapperFun }: +{ newScope, stdenv, cmake, libxml2, python2, isl, fetchurl, overrideCC, wrapCC, darwin, ccWrapperFun }: let - callPackage = newScope (self // { inherit stdenv isl release_version version fetch; }); + callPackage = newScope (self // { inherit stdenv cmake libxml2 python2 isl release_version version fetch; }); release_version = "4.0.0"; version = release_version; # differentiating these is important for rc's diff --git a/pkgs/stdenv/darwin/default.nix b/pkgs/stdenv/darwin/default.nix index e647c81890e1..e80c54e02182 100644 --- a/pkgs/stdenv/darwin/default.nix +++ b/pkgs/stdenv/darwin/default.nix @@ -4,15 +4,15 @@ # Allow passing in bootstrap files directly so we can test the stdenv bootstrap process when changing the bootstrap tools , bootstrapFiles ? let fetch = { file, sha256, executable ? true }: import { - url = "http://tarballs.nixos.org/stdenv-darwin/x86_64/33f59c9d11b8d5014dfd18cc11a425f6393c884a/${file}"; + url = "http://tarballs.nixos.org/stdenv-darwin/x86_64/c4effbe806be9a0a3727fdbbc9a5e28149347532/${file}"; inherit (localSystem) system; inherit sha256 executable; }; in { - sh = fetch { file = "sh"; sha256 = "1rx4kg6358xdj05z0m139a0zn4f4zfmq4n4vimlmnwyfiyn4x7wk"; }; - bzip2 = fetch { file = "bzip2"; sha256 = "104qnhzk79vkbp2yi0kci6lszgfppvrwk3rgxhry842ly1xz2r7l"; }; - mkdir = fetch { file = "mkdir"; sha256 = "0d91c19xjzmqisncvldv79d7ddzai9l7vcmajhwlwwv74g6da5yl"; }; - cpio = fetch { file = "cpio"; sha256 = "0lw057bmcqls96j0gv1n3mgl66q31mba7i413cbkkaf0rfzz3dxj"; }; - tarball = fetch { file = "bootstrap-tools.cpio.bz2"; sha256 = "13ihbj002pis3fgy1d9c4fi7flca21z9brjsjkklm82h5b4nlwxl"; executable = false; }; + sh = fetch { file = "sh"; sha256 = "1b9r3dksj907bpxp589yhc4217cas73vni8sng4r57f04ydjcinr"; }; + bzip2 = fetch { file = "bzip2"; sha256 = "1wm28jgap4cbr8hf4ambg6h9flr2b4mcbh7fw20i0l51v6n8igky"; }; + mkdir = fetch { file = "mkdir"; sha256 = "0jc32mzx2whhx2xh70grvvgz4jj26118p9yxmhjqcysagc0k7y66"; }; + cpio = fetch { file = "cpio"; sha256 = "0x5dcczkzn0g8yb4pah449jmgy3nmpzrqy4s480grcx05b6v6hkp"; }; + tarball = fetch { file = "bootstrap-tools.cpio.bz2"; sha256 = "0ifdc8bwxdhmpbhx2vd3lwjg71gqm6pi5mfm0fkcsbqavl8hd8hz"; executable = false; }; } }: @@ -301,7 +301,7 @@ in rec { allowedRequisites = (with pkgs; [ xz.out xz.bin libcxx libcxxabi icu.out gmp.out gnumake findutils bzip2.out - bzip2.bin llvmPackages.llvm zlib.out zlib.dev libffi.out coreutils ed diffutils gnutar + bzip2.bin llvmPackages.llvm llvmPackages.llvm.lib zlib.out zlib.dev libffi.out coreutils ed diffutils gnutar gzip ncurses.out ncurses.dev ncurses.man gnused bash gawk gnugrep llvmPackages.clang-unwrapped patch pcre.out binutils-raw.out binutils-raw.dev binutils gettext @@ -309,10 +309,12 @@ in rec { dyld Libsystem CF cctools libiconv locale ]); - overrides = self: super: persistent4 prevStage self super // { - clang = cc; - inherit cc; - }; + overrides = self: super: + let persistent = persistent4 prevStage self super; in persistent // { + clang = cc; + llvmPackages = persistent.llvmPackages // { clang = cc; }; + inherit cc; + }; }; stagesDarwin = [ diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index cb41a4bb4748..86320f815ac3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5421,7 +5421,7 @@ with pkgs; llvm_34 = llvmPackages_34.llvm; llvmPackages = recurseIntoAttrs - (if stdenv.isDarwin then llvmPackages_37 else llvmPackages_39); + (if stdenv.isDarwin then llvmPackages_4 else llvmPackages_39); llvmPackagesSelf = llvmPackages_34.override { stdenv = libcxxStdenv; @@ -5435,13 +5435,9 @@ with pkgs; isl = isl_0_14; }; - llvmPackages_37 = callPackage ../development/compilers/llvm/3.7 ({ + llvmPackages_37 = callPackage ../development/compilers/llvm/3.7 { inherit (stdenvAdapters) overrideCC; - } // stdenv.lib.optionalAttrs stdenv.isDarwin { - cmake = cmake.override { isBootstrap = true; useSharedLibraries = false; }; - libxml2 = libxml2.override { pythonSupport = false; }; - python2 = callPackage ../development/interpreters/python/cpython/2.7/boot.nix { inherit (darwin) CF configd; }; - }); + }; llvmPackages_38 = callPackage ../development/compilers/llvm/3.8 { inherit (stdenvAdapters) overrideCC; @@ -5451,9 +5447,13 @@ with pkgs; inherit (stdenvAdapters) overrideCC; }; - llvmPackages_4 = callPackage ../development/compilers/llvm/4 { + llvmPackages_4 = callPackage ../development/compilers/llvm/4 ({ inherit (stdenvAdapters) overrideCC; - }; + } // stdenv.lib.optionalAttrs stdenv.isDarwin { + cmake = cmake.override { isBootstrap = true; useSharedLibraries = false; }; + libxml2 = libxml2.override { pythonSupport = false; }; + python2 = callPackage ../development/interpreters/python/cpython/2.7/boot.nix { inherit (darwin) CF configd; }; + }); manticore = callPackage ../development/compilers/manticore { }; From 9ae3f39e8ec9d27e23e3dd8453181da833a4cc32 Mon Sep 17 00:00:00 2001 From: Dan Peebles Date: Fri, 7 Apr 2017 16:51:23 -0400 Subject: [PATCH 19/19] p7zip: fix purity on Darwin This should (I hope) get Hydra to build it. Fixes #24714 --- pkgs/tools/archivers/p7zip/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/tools/archivers/p7zip/default.nix b/pkgs/tools/archivers/p7zip/default.nix index 2b61b5b2679f..8e9db09147ed 100644 --- a/pkgs/tools/archivers/p7zip/default.nix +++ b/pkgs/tools/archivers/p7zip/default.nix @@ -16,6 +16,14 @@ stdenv.mkDerivation rec { }) ]; + # Default makefile is full of impurities on Darwin. The patch doesn't hurt Linux so I'm leaving it unconditional + postPatch = '' + sed -i '/CC=\/usr/d' makefile.macosx_llvm_64bits + + # I think this is a typo and should be CXX? Either way let's kill it + sed -i '/XX=\/usr/d' makefile.macosx_llvm_64bits + ''; + preConfigure = '' makeFlagsArray=(DEST_HOME=$out) buildFlags=all3