* Borrowed a patch from Gentoo to get splashutils to work on x86_64.
* Latest klibc. svn path=/nixpkgs/trunk/; revision=7871
This commit is contained in:
parent
b29ff1281b
commit
2fab5f01e3
@ -3,11 +3,11 @@
|
|||||||
assert stdenv.isLinux;
|
assert stdenv.isLinux;
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "klibc-1.4";
|
name = "klibc-1.4.33";
|
||||||
builder = ./builder.sh;
|
builder = ./builder.sh;
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = http://www.kernel.org/pub/linux/libs/klibc/klibc-1.4.tar.bz2;
|
url = http://www.kernel.org/pub/linux/libs/klibc/Testing/klibc-1.4.33.tar.bz2;
|
||||||
md5 = "f4e0e17fc660e59c39e448fe1d827d36";
|
sha256 = "1831bphb4z1x8vkhqmvxkb617pb4dixq33bm0nc6qrxrwix0ylag";
|
||||||
};
|
};
|
||||||
inherit kernel;
|
inherit kernel;
|
||||||
buildInputs = [perl bison mktemp];
|
buildInputs = [perl bison mktemp];
|
||||||
|
@ -6,7 +6,12 @@ stdenv.mkDerivation {
|
|||||||
url = http://dev.gentoo.org/~spock/projects/splashutils/archive/splashutils-1.3.tar.bz2;
|
url = http://dev.gentoo.org/~spock/projects/splashutils/archive/splashutils-1.3.tar.bz2;
|
||||||
md5 = "c7c92b98e34b860511aa57bd29d62f76";
|
md5 = "c7c92b98e34b860511aa57bd29d62f76";
|
||||||
};
|
};
|
||||||
patches = [./purity.patch ./no-fbsplash.patch];
|
patches = [
|
||||||
|
./purity.patch
|
||||||
|
./no-fbsplash.patch
|
||||||
|
# Borrowed from http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/media-gfx/splashutils/files/splashutils-1.3-fdset.patch?rev=1.1.
|
||||||
|
./fdset.patch
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = [klibc zlib libjpeg];
|
buildInputs = [klibc zlib libjpeg];
|
||||||
|
|
||||||
|
20
pkgs/os-specific/linux/splashutils/fdset.patch
Normal file
20
pkgs/os-specific/linux/splashutils/fdset.patch
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
diff --git a/core/render.c b/core/render.c
|
||||||
|
index 290ea97..47319a8 100644
|
||||||
|
--- a/render.c
|
||||||
|
+++ b/render.c
|
||||||
|
@@ -9,8 +9,15 @@
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
+/*
|
||||||
|
+ * HACK WARNING:
|
||||||
|
+ * This is necessary to get FD_SET and FD_ZERO on platforms other than x86.
|
||||||
|
+ */
|
||||||
|
+
|
||||||
|
#ifdef TARGET_KERNEL
|
||||||
|
+#define __KERNEL__
|
||||||
|
#include <linux/posix_types.h>
|
||||||
|
+#undef __KERNEL__
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <stdio.h>
|
Loading…
x
Reference in New Issue
Block a user