Skip to content

Commit

Permalink
Merge pull request #79293 from NixOS/staging-next
Browse files Browse the repository at this point in the history
Staging next (with glibc 2.30)
  • Loading branch information
FRidh authored Feb 9, 2020
2 parents fa74455 + 531a48e commit 3846896
Show file tree
Hide file tree
Showing 80 changed files with 1,042 additions and 802 deletions.
2 changes: 1 addition & 1 deletion pkgs/applications/audio/distrho/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ in stdenv.mkDerivation rec {
runHook postConfigure
'';

patchPhase = ''
postPatch = ''
sed -e "s#@./scripts#sh scripts#" -i Makefile
'';

Expand Down
9 changes: 8 additions & 1 deletion pkgs/applications/misc/gcal/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, ncurses }:
{ stdenv, fetchurl, ncurses, fetchpatch }:

stdenv.mkDerivation rec {
pname = "gcal";
Expand All @@ -9,6 +9,13 @@ stdenv.mkDerivation rec {
sha256 = "1av11zkfirbixn05hyq4xvilin0ncddfjqzc4zd9pviyp506rdci";
};

patches = [
(fetchpatch {
url = "https://src.fedoraproject.org/rpms/gcal/raw/master/f/gcal-glibc-no-libio.patch";
sha256 = "0l4nw9kgzsay32rsdwvs75pbp4fhx6pfm85paynfbd20cdm2n2kv";
})
];

enableParallelBuilding = true;

buildInputs = [ ncurses ];
Expand Down
2 changes: 2 additions & 0 deletions pkgs/applications/misc/spacefm/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ stdenv.mkDerivation rec {
sha256 = "089r6i40lxcwzp60553b18f130asspnzqldlpii53smz52kvpirx";
};

patches = [ ./glibc-fix.patch ];

configureFlags = [
"--with-bash-path=${pkgs.bash}/bin/bash"
];
Expand Down
12 changes: 12 additions & 0 deletions pkgs/applications/misc/spacefm/glibc-fix.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/src/main.c b/src/main.c
index 27f5614..2b45708 100644
--- a/src/main.c
+++ b/src/main.c
@@ -23,6 +23,7 @@
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
+#include <sys/sysmacros.h>

#include <signal.h>

21 changes: 21 additions & 0 deletions pkgs/applications/misc/ssw/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{ stdenv, fetchurl, pkg-config, gtk3 }:

stdenv.mkDerivation rec {
pname = "ssw";
version = "0.3";

src = fetchurl {
url = "https://alpha.gnu.org/gnu/ssw/spread-sheet-widget-${version}.tar.gz";
sha256 = "1h93yyh2by6yrmkwqg38nd5knids05k5nqzcihc1hdwgzg3c4b8y";
};

nativeBuildInputs = [ pkg-config ];
buildInputs = [ gtk3 ];

meta = with stdenv.lib; {
homepage = "https://www.gnu.org/software/ssw/";
license = licenses.gpl3;
description = "GNU Spread Sheet Widget";
platforms = platforms.linux;
};
}
4 changes: 3 additions & 1 deletion pkgs/applications/misc/vit/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{ lib
, python3Packages
, taskwarrior
, glibcLocales
, taskwarrior }:
}:

with python3Packages;

Expand All @@ -21,6 +22,7 @@ buildPythonApplication rec {
tzlocal
urwid
];

checkInputs = [ glibcLocales ];

makeWrapperArgs = [ "--suffix" "PATH" ":" "${taskwarrior}/bin" ];
Expand Down
13 changes: 8 additions & 5 deletions pkgs/applications/science/math/pspp/default.nix
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
{ stdenv, fetchurl, libxml2, readline, zlib, perl, cairo, gtk3, gsl
, pkgconfig, gtksourceview, pango, gettext, dconf
, makeWrapper, gsettings-desktop-schemas, hicolor-icon-theme
, texinfo, ssw
}:

stdenv.mkDerivation rec {
name = "pspp-1.0.1";
pname = "pspp";
version = "1.2.0";

src = fetchurl {
url = "mirror://gnu/pspp/${name}.tar.gz";
sha256 = "1r8smr5057993h90nx0mdnff8nxw9x546zzh6qpy4h3xblp1la5s";
url = "mirror://gnu/pspp/${pname}-${version}.tar.gz";
sha256 = "07pp27zycrb5x927jwaj9r3q7hy915jh51xs85zxby6gfiwl63m5";
};

nativeBuildInputs = [ pkgconfig ];
nativeBuildInputs = [ pkgconfig texinfo ];
buildInputs = [ libxml2 readline zlib perl cairo gtk3 gsl
gtksourceview pango gettext
makeWrapper gsettings-desktop-schemas hicolor-icon-theme ];
makeWrapper gsettings-desktop-schemas hicolor-icon-theme ssw
];

doCheck = false;

Expand Down
5 changes: 4 additions & 1 deletion pkgs/applications/virtualization/xen/4.8.nix
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,10 @@ callPackage (import ./generic.nix (rec {
# Avoid a glibc >= 2.25 deprecation warnings that get fatal via -Werror.
sed 1i'#include <sys/sysmacros.h>' \
-i tools/blktap2/control/tap-ctl-allocate.c \
-i tools/libxl/libxl_device.c
-i tools/libxl/libxl_device.c \
${optionalString withInternalQemu "-i tools/qemu-xen/hw/9pfs/9p.c"}
sed -i -e '/sys\/sysctl\.h/d' tools/blktap2/drivers/block-remus.c
'';

passthru.qemu-system-i386 = if withInternalQemu
Expand Down
1 change: 1 addition & 0 deletions pkgs/development/compilers/mono/4.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ callPackage ./generic.nix ({
version = "4.8.1.0";
sha256 = "1vyvp2g28ihcgxgxr8nhzyzdmzicsh5djzk8dk1hj5p5f2k3ijqq";
enableParallelBuilding = false; # #32386, https://hydra.nixos.org/build/65600645
extraPatches = [ ./mono4-glibc.patch ];
})
3 changes: 2 additions & 1 deletion pkgs/development/compilers/mono/generic.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ stdenv, fetchurl, bison, pkgconfig, glib, gettext, perl, libgdiplus, libX11, callPackage, ncurses, zlib, withLLVM ? false, cacert, Foundation, libobjc, python, version, sha256, autoconf, libtool, automake, cmake, which
, enableParallelBuilding ? true
, srcArchiveSuffix ? "tar.bz2"
, extraPatches ? []
}:

let
Expand Down Expand Up @@ -41,7 +42,7 @@ stdenv.mkDerivation rec {

# We want pkg-config to take priority over the dlls in the Mono framework and the GAC
# because we control pkg-config
patches = [ ./pkgconfig-before-gac.patch ];
patches = [ ./pkgconfig-before-gac.patch ] ++ extraPatches;

# Patch all the necessary scripts. Also, if we're using LLVM, we fix the default
# LLVM path to point into the Mono LLVM build, since it's private anyway.
Expand Down
12 changes: 12 additions & 0 deletions pkgs/development/compilers/mono/mono4-glibc.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/mono/io-layer/processes.c b/mono/io-layer/processes.c
index 53c271a4..84bd3252 100644
--- a/mono/io-layer/processes.c
+++ b/mono/io-layer/processes.c
@@ -19,6 +19,7 @@
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
+#include <sys/sysmacros.h>
#include <unistd.h>
#ifdef HAVE_SIGNAL_H
#include <signal.h>
2 changes: 2 additions & 0 deletions pkgs/development/compilers/wcc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ stdenv.mkDerivation {
postPatch = ''
sed -i src/wsh/include/libwitch/wsh.h src/wsh/scripts/INDEX \
-e "s#/usr/share/wcc#$out/share/wcc#"
sed -i -e '/stropts.h>/d' src/wsh/include/libwitch/wsh.h
'';

installFlags = [ "DESTDIR=$(out)" ];
Expand Down
8 changes: 4 additions & 4 deletions pkgs/development/compilers/z88dk/default.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{ fetchFromGitHub, stdenv, makeWrapper, unzip, libxml2, m4, uthash, which }:

stdenv.mkDerivation rec {
pname = "z88dk";
version = "unstable-2019-05-09";
pname = "z88dk-unstable";
version = "2020-01-27";

src = fetchFromGitHub {
owner = "z88dk";
repo = "z88dk";
rev = "826d68632c3a7c17df88dd2ec54571a6041da69c";
sha256 = "104qgb01sdb97mkcxnq1cdlqi5qvjm4rd9bg5r42pdfz81ss49xj";
rev = "efdd07c2e2229cac7cfef97ec01f478004846e39";
sha256 = "0jcks5ygp256lmzmllffp4yb38cxjgdyqnnimkj4s65095cfasyb";
fetchSubmodules = true;
};

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index c3682b4..16826c6 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -5880,15 +5880,13 @@ error:
#if defined(HAVE_OPENPTY) || defined(HAVE_FORKPTY) || defined(HAVE_DEV_PTMX)
#ifdef HAVE_PTY_H
#include <pty.h>
-#else
+#endif
#ifdef HAVE_LIBUTIL_H
#include <libutil.h>
-#else
+#endif
#ifdef HAVE_UTIL_H
#include <util.h>
-#endif /* HAVE_UTIL_H */
-#endif /* HAVE_LIBUTIL_H */
-#endif /* HAVE_PTY_H */
+#endif
#ifdef HAVE_STROPTS_H
#include <stropts.h>
#endif
5 changes: 1 addition & 4 deletions pkgs/development/interpreters/python/cpython/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,7 @@ in with passthru; stdenv.mkDerivation {
./3.5/ld_library_path.patch
] ++ optionals (isPy37 || isPy38) [
# Fix darwin build https://bugs.python.org/issue34027
(fetchpatch {
url = https://bugs.python.org/file47666/darwin-libutil.patch;
sha256 = "0242gihnw3wfskl4fydp2xanpl8k5q7fj4dp7dbbqf46a4iwdzpa";
})
./3.7/darwin-libutil.patch
] ++ optionals (isPy3k && hasDistutilsCxxPatch) [
# Fix for http://bugs.python.org/issue1222585
# Upstream distutils is calling C compiler to compile C++ code, which
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/libraries/c-blosc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

stdenv.mkDerivation rec {
pname = "c-blosc";
version = "1.17.0";
version = "1.17.1";

src = fetchFromGitHub {
owner = "Blosc";
repo = "c-blosc";
rev = "v${version}";
sha256 = "0c4vh7kyxm57jclk8jlcnc11w7nd2m81qk454gav58aji85w16hg";
sha256 = "1asp3xmbvdnz1mj1pl1ykzz61cybvkxz3cdn43zh1z0x1qlgwm80";
};

buildInputs = [ cmake ];
Expand Down
146 changes: 0 additions & 146 deletions pkgs/development/libraries/glibc/CVE-2018-11236.patch

This file was deleted.

Loading

0 comments on commit 3846896

Please sign in to comment.