mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
coreutils: Make it build on OSX 10.0.8
Take patch from: https://lists.gnu.org/archive/html/bug-coreutils/2013-01/msg00119.html
This commit is contained in:
parent
35cd18503e
commit
c183c7b3ec
@ -14,6 +14,8 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1rx9x3fp848w4nny7irdkcpkan9fcx24d99v5dkwgkyq7wc76f5d";
|
||||
};
|
||||
|
||||
patches = [ ./stpncpy.patch ];
|
||||
|
||||
nativeBuildInputs = [ perl ];
|
||||
buildInputs = [ gmp ]
|
||||
++ stdenv.lib.optional aclSupport acl
|
||||
|
11
pkgs/tools/misc/coreutils/stpncpy.patch
Normal file
11
pkgs/tools/misc/coreutils/stpncpy.patch
Normal file
@ -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;
|
Loading…
Reference in New Issue
Block a user