sharutils: 4.11.1 -> 4.15.2 (#24305)

This commit is contained in:
ndowens 2017-04-01 04:29:55 -05:00 committed by Vladimír Čunát
parent b83d2970f2
commit d455cdd34b
1 changed files with 8 additions and 14 deletions

View File

@ -1,23 +1,17 @@
{ stdenv, fetchurl, gettext, coreutils }: { stdenv, fetchurl, gettext, coreutils }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "sharutils-4.11.1"; name = "sharutils-4.15.2";
src = fetchurl { src = fetchurl {
url = "mirror://gnu/sharutils/${name}.tar.bz2"; url = "mirror://gnu/sharutils/${name}.tar.xz";
sha256 = "1mallg1gprimlggdisfzdmh1xi676jsfdlfyvanlcw72ny8fsj3g"; sha256 = "16isapn8f39lnffc3dp4dan05b7x6mnc76v6q5nn8ysxvvvwy19b";
}; };
hardeningDisable = [ "format" ]; 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. # GNU Gettext is needed on non-GNU platforms.
buildInputs = [ gettext coreutils ]; buildInputs = [ coreutils gettext ];
doCheck = true; doCheck = true;
@ -25,7 +19,7 @@ stdenv.mkDerivation rec {
patches = [ ./sharutils-4.11.1-cross-binary-mode-popen.patch ]; patches = [ ./sharutils-4.11.1-cross-binary-mode-popen.patch ];
}; };
meta = { meta = with stdenv.lib; {
description = "Tools for remote synchronization and `shell archives'"; description = "Tools for remote synchronization and `shell archives'";
longDescription = longDescription =
'' GNU shar makes so-called shell archives out of many files, preparing '' GNU shar makes so-called shell archives out of many files, preparing
@ -44,8 +38,8 @@ stdenv.mkDerivation rec {
concatenated shell archives. concatenated shell archives.
''; '';
homepage = http://www.gnu.org/software/sharutils/; homepage = http://www.gnu.org/software/sharutils/;
license = stdenv.lib.licenses.gpl3Plus; license = licenses.gpl3Plus;
maintainers = [ ]; maintainers = [ maintainers.ndowens ];
platforms = stdenv.lib.platforms.all; platforms = platforms.all;
}; };
} }