Merge branch 'staging-next'

This round is without the systemd CVE,
as we don't have binaries for that yet.
BTW, I just ignore darwin binaries these days,
as I'd have to wait for weeks for them.
This commit is contained in:
Vladimír Čunát
2019-02-20 09:38:45 +01:00
340 changed files with 8459 additions and 2626 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
patchPhase =
'' for i in `find cnee/test -name \*.sh`
do
sed -i "$i" -e's|/bin/bash|/bin/sh|g ; s|/usr/bin/env bash|/bin/sh|g'
sed -i "$i" -e's|/bin/bash|${stdenv.shell}|g ; s|/usr/bin/env bash|${stdenv.shell}|g'
done
'';
@@ -10,6 +10,7 @@ stdenv.mkDerivation rec {
script = substituteAll {
src = ./rpmextract.sh;
inherit rpm cpio;
inherit (stdenv) shell;
};
meta = with stdenv.lib; {
@@ -1,4 +1,4 @@
#!/bin/sh -e
#!@shell@ -e
if [ "$1" = "" ]; then
echo "usage: rpmextract package_name..." 1>&2
@@ -0,0 +1,35 @@
--- unzip60/list.c
+++ unzip60/list.c
@@ -97,7 +97,7 @@ int list_files(__G) /* return PK-type
{
int do_this_file=FALSE, cfactor, error, error_in_archive=PK_COOL;
#ifndef WINDLL
- char sgn, cfactorstr[10];
+ char sgn, cfactorstr[1+10+1+1]; /* <sgn><int>%NUL */
int longhdr=(uO.vflag>1);
#endif
int date_format;
@@ -389,9 +389,9 @@ int list_files(__G) /* return PK-type
}
#else /* !WINDLL */
if (cfactor == 100)
- sprintf(cfactorstr, LoadFarString(CompFactor100));
+ snprintf(cfactorstr, sizeof(cfactorstr), LoadFarString(CompFactor100));
else
- sprintf(cfactorstr, LoadFarString(CompFactorStr), sgn, cfactor);
+ snprintf(cfactorstr, sizeof(cfactorstr), LoadFarString(CompFactorStr), sgn, cfactor);
if (longhdr)
Info(slide, 0, ((char *)slide, LoadFarString(LongHdrStats),
FmZofft(G.crec.ucsize, "8", "u"), methbuf,
@@ -471,9 +471,9 @@ int list_files(__G) /* return PK-type
#else /* !WINDLL */
if (cfactor == 100)
- sprintf(cfactorstr, LoadFarString(CompFactor100));
+ snprintf(cfactorstr, sizeof(cfactorstr), LoadFarString(CompFactor100));
else
- sprintf(cfactorstr, LoadFarString(CompFactorStr), sgn, cfactor);
+ snprintf(cfactorstr, sizeof(cfactorstr), LoadFarString(CompFactorStr), sgn, cfactor);
if (longhdr) {
Info(slide, 0, ((char *)slide, LoadFarString(LongFileTrailer),
FmZofft(tot_ucsize, "8", "u"), FmZofft(tot_csize, "8", "u"),
+1
View File
@@ -24,6 +24,7 @@ stdenv.mkDerivation {
./CVE-2015-7697.diff
./CVE-2014-9913.patch
./CVE-2016-9844.patch
./CVE-2018-18384.patch
./dont-hardcode-cc.patch
] ++ stdenv.lib.optional enableNLS
(fetchurl {
+1 -1
View File
@@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
cp ./libflockit.so $out/lib
(cat <<EOI
#!/bin/sh
#!${stdenv.shell}
env LD_PRELOAD="$out/lib/libflockit.so" FLOCKIT_FILE_PREFIX=\$1 \''${@:2}
EOI
) > $out/bin/flockit
+1 -1
View File
@@ -9,7 +9,7 @@
# known impurity: test cases seem to bu using /tmp/storeBackup.lock ..
let dummyMount = writeScriptBin "mount" "#!/bin/sh";
let dummyMount = writeScriptBin "mount" "#!${stdenv.shell}";
in
stdenv.mkDerivation rec {
+1 -1
View File
@@ -48,7 +48,7 @@ stdenv.mkDerivation rec {
homepage = http://e2fsprogs.sourceforge.net/;
description = "Tools for creating and checking ext2/ext3/ext4 filesystems";
license = licenses.gpl2;
platforms = platforms.linux;
platforms = platforms.unix;
maintainers = [ maintainers.eelco ];
};
}
+1 -1
View File
@@ -18,7 +18,7 @@ in stdenv.mkDerivation {
mkdir -p "$out/bin";
mkdir -p "$out/share";
install -D -m444 -t "$out/share" *.jar
echo "#!/bin/sh" > "$out/bin/briss"
echo "#!${stdenv.shell}" > "$out/bin/briss"
echo "${jre}/bin/java -Xms128m -Xmx1024m -cp \"$out/share/\" -jar \"$out/share/briss-${version}.jar\"" >> "$out/bin/briss"
chmod +x "$out/bin/briss"
'';
+19 -1
View File
@@ -2,12 +2,26 @@
{ stdenv, fetchFromGitLab, autoreconfHook, pkgconfig, cairo, expat, flex
, fontconfig, gd, gettext, gts, libdevil, libjpeg, libpng, libtool, pango
, yacc, xorg ? null, ApplicationServices ? null }:
, yacc, fetchpatch, xorg ? null, ApplicationServices ? null }:
assert stdenv.isDarwin -> ApplicationServices != null;
let
inherit (stdenv.lib) optionals optionalString;
raw_patch =
# https://gitlab.com/graphviz/graphviz/issues/1367 CVE-2018-10196
fetchpatch {
name = "CVE-2018-10196.patch";
url = https://gitlab.com/graphviz/graphviz/uploads/30f8f0b00e357c112ac35fb20241604a/p.diff;
sha256 = "074qx6ch9blrnlilmz7p96fkiz2va84x2fbqdza5k4808rngirc7";
excludes = ["tests/*"]; # we don't run them and they don't apply
};
# the patch needs a small adaption for older versions
patch = if stdenv.lib.versionAtLeast version "2.37" then raw_patch else
stdenv.mkDerivation {
inherit (raw_patch) name;
buildCommand = "sed s/dot_root/agroot/g ${raw_patch} > $out";
};
in
stdenv.mkDerivation rec {
@@ -37,6 +51,10 @@ stdenv.mkDerivation rec {
"--with-ltdl-include=${libtool}/include"
] ++ stdenv.lib.optional (xorg == null) [ "--without-x" ];
patches = [
patch
];
postPatch = ''
for f in $(find . -name Makefile.in); do
substituteInPlace $f --replace "-lstdc++" "-lc++"
+1 -1
View File
@@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
preInstall = ''
mkdir "$TMP/bin"
for i in chown chgrp; do
echo '#!/bin/sh' >> "$TMP/bin/$i"
echo '#!${stdenv.shell}' >> "$TMP/bin/$i"
chmod +x "$TMP/bin/$i"
PATH="$TMP/bin:$PATH"
done
+1 -1
View File
@@ -20,6 +20,6 @@ stdenv.mkDerivation rec {
homepage = http://sng.sourceforge.net/;
license = licenses.zlib;
maintainers = [ maintainers.dezgeg ];
platforms = platforms.linux;
platforms = platforms.unix;
};
}
+2 -1
View File
@@ -26,8 +26,9 @@ stdenv.mkDerivation rec {
patches = optional stdenv.hostPlatform.isCygwin ./coreutils-8.23-4.cygwin.patch;
postPatch = ''
# The test tends to fail on btrfs and maybe other unusual filesystems.
# The test tends to fail on btrfs,f2fs and maybe other unusual filesystems.
sed '2i echo Skipping dd sparse test && exit 0' -i ./tests/dd/sparse.sh
sed '2i echo Skipping du threshold test && exit 0' -i ./tests/du/threshold.sh
sed '2i echo Skipping cp sparse test && exit 0' -i ./tests/cp/sparse.sh
sed '2i echo Skipping rm deep-2 test && exit 0' -i ./tests/rm/deep-2.sh
sed '2i echo Skipping du long-from-unreadable test && exit 0' -i ./tests/du/long-from-unreadable.sh
+1 -1
View File
@@ -47,7 +47,7 @@ buildGoPackage rec {
cp -R $src/shell $bin/share/fzf
cat <<SCRIPT > $bin/bin/fzf-share
#!/bin/sh
#!${stdenv.shell}
# Run this script to find the fzf shared folder where all the shell
# integration scripts are living.
echo $bin/share/fzf
+1 -1
View File
@@ -64,7 +64,7 @@ stdenv.mkDerivation rec {
preConfigure =
'' for i in "tests/util/"*.in
do
sed -i "$i" -e's|/bin/bash|/bin/sh|g'
sed -i "$i" -e's|/bin/bash|${stdenv.shell}|g'
done
# Apparently, the QEMU executable is no longer called
+1 -1
View File
@@ -54,7 +54,7 @@ stdenv.mkDerivation rec {
preConfigure =
'' for i in "tests/util/"*.in
do
sed -i "$i" -e's|/bin/bash|/bin/sh|g'
sed -i "$i" -e's|/bin/bash|${stdenv.shell}|g'
done
# Apparently, the QEMU executable is no longer called
+4 -6
View File
@@ -1,11 +1,9 @@
{ stdenv, fetchFromGitHub, meson, ninja, pkgconfig, cmake, vala_0_40, python3, gnome3, gtk3, granite, gobject-introspection, desktop-file-utils, wrapGAppsHook }:
{ stdenv, fetchFromGitHub, meson, ninja, pkgconfig, cmake, pantheon, python3, gnome3, gtk3, gobject-introspection, desktop-file-utils, wrapGAppsHook }:
stdenv.mkDerivation rec {
pname = "hashit";
version = "1.0.0";
name = "${pname}-${version}";
src = fetchFromGitHub {
owner = "artemanufrij";
repo = pname;
@@ -20,14 +18,14 @@ stdenv.mkDerivation rec {
ninja
pkgconfig
python3
vala_0_40 # should be `elementary.vala` when elementary attribute set is merged
pantheon.vala
wrapGAppsHook
];
buildInputs = [
gnome3.defaultIconTheme # should be `elementary.defaultIconTheme`when elementary attribute set is merged
pantheon.elementary-icon-theme
gnome3.libgee
granite
pantheon.granite
gtk3
];
+1 -1
View File
@@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
NIX_LDFLAGS = [ "-lX11" ];
patchPhase = ''
cd src
substituteInPlace config --replace /bin/bash /bin/sh
substituteInPlace config --replace /bin/bash ${stdenv.shell}
mkdir -p $out
export NIX_LDFLAGS="$NIX_LDFLAGS -rpath ${libX11}/lib"
'';
+1 -1
View File
@@ -78,7 +78,7 @@ stdenv.mkDerivation {
# wants to write temporary files there. So create a temporary
# to run from and symlink the runtime files to it.
wrapperScript = writeScript "xfstests-check" ''
#!/bin/sh
#!${stdenv.shell}
set -e
export RESULT_BASE="$(pwd)/results"
+1 -1
View File
@@ -49,7 +49,7 @@ in stdenv.mkDerivation {
installPhase = ''
mkdir -p $out/bin
cat >$out/bin/airfield <<EOF
#!${stdenv.shell}/bin/sh
#!${stdenv.shell}
${nodejs}/bin/node ${src}/airfield.js
EOF
'';
+1 -1
View File
@@ -33,6 +33,6 @@ stdenv.mkDerivation rec {
homepage = http://www.tcpdump.org/;
license = "BSD-style";
maintainers = with stdenv.lib.maintainers; [ jgeerds ];
platforms = stdenv.lib.platforms.linux;
platforms = stdenv.lib.platforms.unix;
};
}
+1 -1
View File
@@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
mkdir -p "$out/share"
tar xvf "ZAP_${version}_Linux.tar.gz" -C "$out/share/"
mkdir -p "$out/bin"
echo "#!/bin/sh" > "$out/bin/zap"
echo "#!${stdenv.shell}" > "$out/bin/zap"
echo \"$out/share/ZAP_${version}/zap.sh\" >> "$out/bin/zap"
chmod +x "$out/bin/zap"
'';
+11 -3
View File
@@ -3,7 +3,8 @@
, gtk3, nssTools, pcsclite
, libxml2, libproxy
, openssl, curl
, makeWrapper }:
, makeWrapper
, substituteAll }:
stdenv.mkDerivation rec {
name = "eid-mw-${version}";
@@ -32,8 +33,15 @@ stdenv.mkDerivation rec {
configureFlags = [ "--enable-dialogs=yes" ];
postInstall = ''
install -D ${./eid-nssdb.in} $out/bin/eid-nssdb
postInstall =
let
eid-nssdb-in = substituteAll {
inherit (stdenv) shell;
src = ./eid-nssdb.in;
};
in
''
install -D ${eid-nssdb-in} $out/bin/eid-nssdb
substituteInPlace $out/bin/eid-nssdb \
--replace "modutil" "${nssTools}/bin/modutil"
+1 -1
View File
@@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
'';
homepage = http://www.mew.org/~kazu/proj/pgpdump/en/;
license = licenses.bsd3;
platforms = platforms.linux;
platforms = platforms.unix;
maintainers = with maintainers; [ primeos ];
};
}
+6 -5
View File
@@ -1,14 +1,14 @@
{ stdenv, fetchFromGitHub, which }:
stdenv.mkDerivation rec {
version = "1.3.6";
version = "1.3.8";
name = "rhash-${version}";
src = fetchFromGitHub {
owner = "rhash";
repo = "RHash";
rev = "v${version}";
sha256 = "1c8gngjj34ylx1f56hjbvml22bif0bx1b88dx2cyxbix8praxqh7";
sha256 = "0i00wl63hn80g0s9gdi772gchbghwgkvn4nbb5227y2wwy30yyi2";
};
nativeBuildInputs = [ which ];
@@ -16,10 +16,11 @@ stdenv.mkDerivation rec {
# configure script is not autotools-based, doesn't support these options
configurePlatforms = [ ];
doCheck = false; # fails
doCheck = true;
installTargets = [ "install" "install-lib-shared" "install-lib-so-link" ];
postInstall = "make -C librhash install-headers";
checkTarget = "test-full";
installTargets = [ "install" "install-lib-shared" "install-lib-so-link" "install-lib-headers" ];
meta = with stdenv.lib; {
homepage = http://rhash.anz.ru;
-2
View File
@@ -1,5 +1,3 @@
#!/bin/sh
# Prepare a makefile specifying the appropriate output directories.
#
# Written by Ludovic Courtès <ludo@gnu.org>.
@@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
# change sudoers dir from /var/google-sudoers.d to /run/google-sudoers.d (managed through systemd-tmpfiles)
substituteInPlace pam_module/pam_oslogin_admin.cc --replace /var/google-sudoers.d /run/google-sudoers.d
# fix "User foo not allowed because shell /bin/bash does not exist"
substituteInPlace utils/oslogin_utils.cc --replace /bin/bash /bin/sh
substituteInPlace utils/oslogin_utils.cc --replace /bin/bash ${stdenv.shell}
'';
buildInputs = [ curl.dev pam ];