diff options
author | Danie Roux <danie@danieroux.com> | 2013-09-02 18:47:20 +0200 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2013-09-14 14:45:06 +0200 |
commit | c183c7b3ec282c56b3b9943ce0496281f3b15cec (patch) | |
tree | dfe9d73c5d64e80e4fefa533548d3e9cf3c1fe99 /pkgs/tools/misc/coreutils | |
parent | 35cd18503e1c124955629a6071a2899d04f845a1 (diff) | |
download | nixpkgs-c183c7b3ec282c56b3b9943ce0496281f3b15cec.tar nixpkgs-c183c7b3ec282c56b3b9943ce0496281f3b15cec.tar.gz nixpkgs-c183c7b3ec282c56b3b9943ce0496281f3b15cec.tar.bz2 nixpkgs-c183c7b3ec282c56b3b9943ce0496281f3b15cec.tar.lz nixpkgs-c183c7b3ec282c56b3b9943ce0496281f3b15cec.tar.xz nixpkgs-c183c7b3ec282c56b3b9943ce0496281f3b15cec.tar.zst nixpkgs-c183c7b3ec282c56b3b9943ce0496281f3b15cec.zip |
coreutils: Make it build on OSX 10.0.8
Take patch from: https://lists.gnu.org/archive/html/bug-coreutils/2013-01/msg00119.html
Diffstat (limited to 'pkgs/tools/misc/coreutils')
-rw-r--r-- | pkgs/tools/misc/coreutils/8.19.nix | 2 | ||||
-rw-r--r-- | pkgs/tools/misc/coreutils/stpncpy.patch | 11 |
2 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/tools/misc/coreutils/8.19.nix b/pkgs/tools/misc/coreutils/8.19.nix index 23db167f307..59602e69d1d 100644 --- a/pkgs/tools/misc/coreutils/8.19.nix +++ b/pkgs/tools/misc/coreutils/8.19.nix @@ -14,6 +14,8 @@ stdenv.mkDerivation rec { sha256 = "1rx9x3fp848w4nny7irdkcpkan9fcx24d99v5dkwgkyq7wc76f5d"; }; + patches = [ ./stpncpy.patch ]; + nativeBuildInputs = [ perl ]; buildInputs = [ gmp ] ++ stdenv.lib.optional aclSupport acl diff --git a/pkgs/tools/misc/coreutils/stpncpy.patch b/pkgs/tools/misc/coreutils/stpncpy.patch new file mode 100644 index 00000000000..d4a0e0ee0e1 --- /dev/null +++ b/pkgs/tools/misc/coreutils/stpncpy.patch @@ -0,0 +1,11 @@ +--- coreutils-8.19/lib/stpncpy.c.orig 2013-09-02 18:20:00.000000000 +0200 ++++ coreutils-8.19/lib/stpncpy.c 2013-09-02 18:20:31.000000000 +0200 +@@ -31,7 +31,7 @@ + /* Copy no more than N bytes of SRC to DST, returning a pointer past the + last non-NUL byte written into DST. */ + char * +-__stpncpy (char *dest, const char *src, size_t n) ++(__stpncpy) (char *dest, const char *src, size_t n) + { + char c; + char *s = dest; |