Merge branch 'master' into staging

Mass rebuilds from master (>7k on x86_64-linux).
This commit is contained in:
Vladimír Čunát
2017-06-30 18:15:56 +02:00
204 changed files with 4669 additions and 3203 deletions

View File

@@ -1,11 +1,11 @@
{ fetchurl, stdenv }:
stdenv.mkDerivation rec {
name = "glpk-4.61";
name = "glpk-4.62";
src = fetchurl {
url = "mirror://gnu/glpk/${name}.tar.gz";
sha256 = "1adbvwiaqrv9pql9ry3lhn2vfsxnff2vh4fs477d90kpfx0xwrlq";
sha256 = "0w7s3869ybwyq9a4490dikpib1qp3jnn5nqz1vvwqy1qz3ilnvh9";
};
doCheck = true;

View File

@@ -4,11 +4,11 @@ assert enableCapabilities -> stdenv.isLinux;
stdenv.mkDerivation rec {
name = "libgcrypt-${version}";
version = "1.7.7";
version = "1.7.8";
src = fetchurl {
url = "mirror://gnupg/libgcrypt/${name}.tar.bz2";
sha256 = "16ndaj93asw122mwjz172x2ilpm03w1yp5mqcrp3xslk0yx5xf5r";
sha256 = "16f1rsv4y4w2pk1il2jbcqggsb6mrlfva5vayd205fp68zm7d0ll";
};
outputs = [ "out" "dev" "info" ];

View File

@@ -2,14 +2,14 @@
, fixedPoint ? false, withCustomModes ? true }:
let
version = "1.2";
version = "1.2.1";
in
stdenv.mkDerivation rec {
name = "libopus-${version}";
src = fetchurl {
url = "https://archive.mozilla.org/pub/opus/opus-${version}.tar.gz";
sha256 = "1ad9q2g9vivx409jdsslv1hrh5r616qz2pjm96y8ymsigfl4bnvp";
sha256 = "0ch7yzgg4bn1g36bpjsfrgs4n19c84d7wpdida6yzifrrhwx7byg";
};
outputs = [ "out" "dev" ];

View File

@@ -1,21 +1,18 @@
{ stdenv, fetchFromGitHub, autoreconfHook, perl, zlib, bzip2, popt }:
{ stdenv, fetchFromGitHub, cmake, perl, zlib, bzip2, popt }:
stdenv.mkDerivation rec {
name = "librsync-${version}";
version = "1.0.0";
version = "2.0.0";
src = fetchFromGitHub {
owner = "librsync";
repo = "librsync";
rev = "v${version}";
sha256 = "0rc2pksdd0mhdvk8y1yix71rf19wdx1lb2ryrkhi7vcy240rvgvc";
sha256 = "0yad7nkw6d8j824qkxrj008ak2wq6yw5p894sbhr35yc1wr5mki6";
};
buildInputs = [ autoreconfHook perl zlib bzip2 popt ];
configureFlags = if stdenv.isCygwin then "--enable-static" else "--enable-shared";
CFLAGS = "-std=gnu89";
nativeBuildInputs = [ cmake ];
buildInputs = [ perl zlib bzip2 popt ];
crossAttrs = {
dontStrip = true;

View File

@@ -1,15 +0,0 @@
http://git.savannah.gnu.org/cgit/libunwind.git/commit/?id=396b6c7ab737e2bff244d640601c436a26260ca1
diff --git a/include/dwarf_i.h b/include/dwarf_i.h
index 0e72845..86dcdb8 100644
--- a/include/dwarf_i.h
+++ b/include/dwarf_i.h
@@ -20,7 +20,7 @@
extern const uint8_t dwarf_to_unw_regnum_map[DWARF_REGNUM_MAP_LENGTH];
/* REG is evaluated multiple times; it better be side-effects free! */
# define dwarf_to_unw_regnum(reg) \
- (((reg) <= DWARF_REGNUM_MAP_LENGTH) ? dwarf_to_unw_regnum_map[reg] : 0)
+ (((reg) < DWARF_REGNUM_MAP_LENGTH) ? dwarf_to_unw_regnum_map[reg] : 0)
#endif
#ifdef UNW_LOCAL_ONLY

View File

@@ -1,39 +1,20 @@
{ stdenv, fetchurl, fetchpatch, autoreconfHook, xz }:
stdenv.mkDerivation rec {
name = "libunwind-1.1";
name = "libunwind-${version}";
version = "1.2.1";
src = fetchurl {
url = "mirror://savannah/libunwind/${name}.tar.gz";
sha256 = "16nhx2pahh9d62mvszc88q226q5lwjankij276fxwrm8wb50zzlx";
sha256 = "1jsslwkilwrsj959dc8b479qildawz67r8m4lzxm7glcwa8cngiz";
};
buildInputs = stdenv.lib.optional stdenv.isAarch64 autoreconfHook;
patches = [ ./libunwind-1.1-lzma.patch ./cve-2015-3239.patch
# https://lists.nongnu.org/archive/html/libunwind-devel/2014-04/msg00000.html
(fetchpatch {
url = "https://raw.githubusercontent.com/dropbox/pyston/1b2e676417b0f5f17526ece0ed840aa88c744145/libunwind_patches/0001-Change-the-RBP-validation-heuristic-to-allow-size-0-.patch";
sha256 = "1a0fsgfxmgd218nscswx7pgyb7rcn2gh6566252xhfvzhgn5i4ha";
})
] ++ stdenv.lib.optional stdenv.isAarch64 (fetchpatch {
url = "https://raw.githubusercontent.com/archlinuxarm/PKGBUILDs/77709d1c6d5c39e23c1535b1bd584be1455f2551/extra/libunwind/libunwind-aarch64.patch";
sha256 = "1mpjs8izq9wxiaf5rl4gzaxrkz0s51f9qz5qc5dj72pr84mw50w8";
});
postPatch = ''
sed -i -e '/LIBLZMA/s:-lzma:-llzma:' configure
'';
nativeBuildInputs = [ autoreconfHook ];
outputs = [ "out" "dev" ];
propagatedBuildInputs = [ xz ];
preInstall = ''
mkdir -p "$out/lib"
touch "$out/lib/libunwind-generic.so"
'';
postInstall = ''
find $out -name \*.la | while read file; do
sed -i 's,-llzma,${xz.out}/lib/liblzma.la,' $file
@@ -43,7 +24,8 @@ stdenv.mkDerivation rec {
meta = with stdenv.lib; {
homepage = http://www.nongnu.org/libunwind;
description = "A portable and efficient API to determine the call-chain of a program";
maintainers = with maintainers; [ orivej ];
platforms = platforms.linux;
license = licenses.gpl2;
license = licenses.mit;
};
}

View File

@@ -1,63 +0,0 @@
From 38c349bb000b427c376e756e3ecdb764a2b4d297 Mon Sep 17 00:00:00 2001
From: Mike Frysinger <vapier@gentoo.org>
Date: Sat, 15 Feb 2014 21:00:59 -0500
Subject: [PATCH] link sublibs against liblzma as needed
The coredump/elf32/elf64/elfxx libs use lzma funcs but don't link against
it. This produces sub-shared libs that don't link against lzma and can
make the linker angry due to underlinking like so:
libtool: link: x86_64-pc-linux-gnu-gcc -O2 -march=amdfam10 -pipe -g \
-frecord-gcc-switches -Wimplicit-function-declaration -fexceptions \
-Wall -Wsign-compare -Wl,-O1 -Wl,--hash-style=gnu \
-o .libs/test-coredump-unwind test-coredump-unwind.o \
../src/.libs/libunwind-coredump.so ../src/.libs/libunwind-x86_64.so
../src/.libs/libunwind-coredump.so: error: undefined reference to 'lzma_stream_footer_decode'
../src/.libs/libunwind-coredump.so: error: undefined reference to 'lzma_index_buffer_decode'
../src/.libs/libunwind-coredump.so: error: undefined reference to 'lzma_index_size'
../src/.libs/libunwind-coredump.so: error: undefined reference to 'lzma_index_end'
../src/.libs/libunwind-coredump.so: error: undefined reference to 'lzma_index_uncompressed_size'
../src/.libs/libunwind-coredump.so: error: undefined reference to 'lzma_stream_buffer_decode'
collect2: error: ld returned 1 exit status
So add LIBLZMA to the right LIBADD for each of these libraries.
URL: https://bugs.gentoo.org/444050
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
src/Makefile.am | 4 ++++
1 file changed, 4 insertions(+)
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -169,7 +169,7 @@ libunwind_arm_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
$(libunwind_arm_la_LDFLAGS) $(LDFLAGS) -o $@
@ARCH_ARM_TRUE@am_libunwind_arm_la_rpath = -rpath $(libdir)
-libunwind_coredump_la_LIBADD =
+libunwind_coredump_la_LIBADD = $(LIBLZMA)
am__libunwind_coredump_la_SOURCES_DIST = coredump/_UCD_accessors.c \
coredump/_UCD_create.c coredump/_UCD_destroy.c \
coredump/_UCD_access_mem.c coredump/_UCD_elf_map_image.c \
@@ -214,15 +214,15 @@ am_libunwind_dwarf_local_la_OBJECTS = dwarf/Lexpr.lo dwarf/Lfde.lo \
libunwind_dwarf_local_la_OBJECTS = \
$(am_libunwind_dwarf_local_la_OBJECTS)
@REMOTE_ONLY_FALSE@@USE_DWARF_TRUE@am_libunwind_dwarf_local_la_rpath =
-libunwind_elf32_la_LIBADD =
+libunwind_elf32_la_LIBADD = $(LIBLZMA)
am_libunwind_elf32_la_OBJECTS = elf32.lo
libunwind_elf32_la_OBJECTS = $(am_libunwind_elf32_la_OBJECTS)
@USE_ELF32_TRUE@am_libunwind_elf32_la_rpath =
-libunwind_elf64_la_LIBADD =
+libunwind_elf64_la_LIBADD = $(LIBLZMA)
am_libunwind_elf64_la_OBJECTS = elf64.lo
libunwind_elf64_la_OBJECTS = $(am_libunwind_elf64_la_OBJECTS)
@USE_ELF64_TRUE@am_libunwind_elf64_la_rpath =
-libunwind_elfxx_la_LIBADD =
+libunwind_elfxx_la_LIBADD = $(LIBLZMA)
am_libunwind_elfxx_la_OBJECTS = elfxx.lo
libunwind_elfxx_la_OBJECTS = $(am_libunwind_elfxx_la_OBJECTS)
@USE_ELFXX_TRUE@am_libunwind_elfxx_la_rpath =
--
1.8.5.5

View File

@@ -0,0 +1,34 @@
{ stdenv, fetchurl, file }:
stdenv.mkDerivation rec {
pname = "openpa";
version = "1.0.4";
name = "${pname}-${version}";
src = fetchurl {
url = "https://trac.mpich.org/projects/${pname}/raw-attachment/wiki/Downloads/${name}.tar.gz";
sha256 = "0flyi596hm6fv7xyw2iykx3s65p748s62bf15624xcnwpfrh8ncy";
};
prePatch = ''substituteInPlace configure --replace /usr/bin/file ${file}/bin/file'';
doCheck = true;
meta = {
description = "Atomic primitives for high performance, concurrent software";
homepage = "https://trac.mpich.org/projects/openpa";
license = stdenv.lib.licenses.mit;
maintainers = with stdenv.lib.maintainers; [ leenaars ];
platforms = with stdenv.lib.platforms; linux;
longDescription = ''
OPA (or sometimes OpenPA or Open Portable Atomics) is an
open source library intended to provide a consistent C API for performing
atomic operations on a variety of platforms. The main goal of the project is to
enable the portable usage of atomic operations in concurrent software.
Developers of client software can worry about implementing and improving their
concurrent algorithms instead of fiddling with inline assembly syntax and
learning new assembly dialects in order improve or maintain application
portability.
'';
};
}

View File

@@ -31,7 +31,7 @@ with stdenv.lib;
let
qtCompatVersion = "5.8";
qtCompatVersion = "5.9";
mirror = "http://download.qt.io";
srcs = import ./srcs.nix { inherit fetchurl; inherit mirror; };

View File

@@ -39,7 +39,8 @@ stdenv.mkDerivation rec {
moveToOutput "lib/libinstaller.so.1.0.0" "$out"
'';
meta = (qtbase.meta) // {
meta = {
description = ''Qt installer framework'';
inherit (qtbase.meta) platforms license homepage;
};
}

View File

@@ -1,14 +1,14 @@
{ stdenv, fetchurl, perl }:
let
version = "1.9.9";
version = "2.0.2";
in
stdenv.mkDerivation rec {
name = "uthash-${version}";
src = fetchurl {
url = "https://github.com/troydhanson/uthash/archive/v${version}.tar.gz";
sha256 = "035z3cs5ignywgh4wqxx358a2nhn3lj0x1ifij6vj0yyyhah3wgj";
sha256 = "1la82gdlyl7m8ahdjirigwfh7zjgkc24cvydrqcri0vsvm8iv8rl";
};
dontBuild = false;

View File

@@ -1,4 +1,4 @@
{ stdenv, lib, fetchurl, gyp, readline, python, which, icu, utillinux}:
{ stdenv, lib, fetchurl, gyp, readline, python, which, icu, utillinux, cctools }:
assert readline != null;
@@ -24,9 +24,7 @@ stdenv.mkDerivation rec {
'';
configurePhase = stdenv.lib.optionalString stdenv.isDarwin ''
ln -s /usr/bin/xcodebuild $TMPDIR
ln -s /usr/bin/libtool $TMPDIR
export PATH=$TMPDIR:$PATH
export GYP_DEFINES="mac_deployment_target=$MACOSX_DEPLOYMENT_TARGET"
'' + ''
PYTHONPATH="tools/generate_shim_headers:$PYTHONPATH" \
${gyp}/bin/gyp \
@@ -41,12 +39,16 @@ stdenv.mkDerivation rec {
${lib.optionalString armHardFloat "-Dv8_use_arm_eabi_hardfloat=true"} \
--depth=. -Ibuild/standalone.gypi \
build/all.gyp
'' + stdenv.lib.optionalString stdenv.isDarwin ''
sed -i 's@/usr/bin/env python@${python}/bin/python@g' out/gyp-mac-tool
'';
nativeBuildInputs = [ which ];
buildInputs = [ readline python icu ] ++ lib.optional stdenv.isLinux utillinux;
buildInputs = [ readline python icu ]
++ lib.optional stdenv.isLinux utillinux
++ lib.optional stdenv.isDarwin cctools;
NIX_CFLAGS_COMPILE = "-Wno-error";
NIX_CFLAGS_COMPILE = "-Wno-error -w";
buildFlags = [
"-C out"

View File

@@ -2,13 +2,13 @@
, xf86vidmodeproto , gstreamer, gst-plugins-base, GConf, setfile
, withMesa ? true, mesa_glu ? null, mesa_noglu ? null
, compat24 ? false, compat26 ? true, unicode ? true
, withWebKit ? false, webkitgtk2 ? null
, withWebKit ? false, webkitgtk24x-gtk2 ? null
, AGL ? null, Carbon ? null, Cocoa ? null, Kernel ? null, QTKit ? null
}:
assert withMesa -> mesa_glu != null && mesa_noglu != null;
assert withWebKit -> webkitgtk2 != null;
assert withWebKit -> webkitgtk24x-gtk2 != null;
with stdenv.lib;
@@ -27,7 +27,7 @@ stdenv.mkDerivation {
[ gtk2 libXinerama libSM libXxf86vm xf86vidmodeproto gstreamer
gst-plugins-base GConf ]
++ optional withMesa mesa_glu
++ optional withWebKit webkitgtk2
++ optional withWebKit webkitgtk24x-gtk2
++ optionals stdenv.isDarwin [ setfile Carbon Cocoa Kernel QTKit ];
nativeBuildInputs = [ pkgconfig ];