diff --git a/pkgs/os-specific/linux/dietlibc/default.nix b/pkgs/os-specific/linux/dietlibc/default.nix index 4a575c73f21d..633bd40749da 100644 --- a/pkgs/os-specific/linux/dietlibc/default.nix +++ b/pkgs/os-specific/linux/dietlibc/default.nix @@ -28,5 +28,10 @@ stdenv.mkDerivation { # from 0.31 CVS. ./dns64.patch + # Get lseek64 working on x86_64. From + # http://svn.annvix.org/cgi-bin/viewvc.cgi/packages/releases/2.0-CURRENT/dietlibc/SOURCES + ./x86_64-lseek64.patch + #./x86_64-stat64.patch + ]; } diff --git a/pkgs/os-specific/linux/dietlibc/x86_64-lseek64.patch b/pkgs/os-specific/linux/dietlibc/x86_64-lseek64.patch new file mode 100644 index 000000000000..47187a310d2c --- /dev/null +++ b/pkgs/os-specific/linux/dietlibc/x86_64-lseek64.patch @@ -0,0 +1,6 @@ +--- dietlibc-0.27/x86_64/lseek64.S.x86_64-lseek64 2005-03-29 08:46:09.074515293 -0500 ++++ dietlibc-0.27/x86_64/lseek64.S 2005-03-29 08:46:09.074515293 -0500 +@@ -0,0 +1,3 @@ ++#include "syscalls.h" ++ ++syscall_weak(lseek,lseek64,__libc_lseek64) diff --git a/pkgs/os-specific/linux/e2fsprogs/default.nix b/pkgs/os-specific/linux/e2fsprogs/default.nix index da9ed73e2b9f..732abc52ef09 100644 --- a/pkgs/os-specific/linux/e2fsprogs/default.nix +++ b/pkgs/os-specific/linux/e2fsprogs/default.nix @@ -15,5 +15,5 @@ stdenv.mkDerivation { preInstall = "installFlagsArray=('LN=ln -s')"; postInstall = "make install-libs"; NIX_CFLAGS_COMPILE = - if stdenv ? isDietLibC then "-UHAVE_SYS_PRCTL_H" else ""; + if stdenv ? isDietLibC then "-UHAVE_SYS_PRCTL_H -DHAVE_LSEEK64_PROTOTYPE=1 -Dstat64=stat" else ""; }