summary refs log tree commit diff
path: root/pkgs/os-specific/linux/splashutils
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2007-02-06 22:08:13 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2007-02-06 22:08:13 +0000
commit2fab5f01e3c1d92287e8ab2d2bd0fd47db856756 (patch)
tree2a61b78d2c68c0a0da6d91ba3aef16f2ebb45fc4 /pkgs/os-specific/linux/splashutils
parentb29ff1281b74fec74236cb88286daec53a626557 (diff)
downloadnixpkgs-2fab5f01e3c1d92287e8ab2d2bd0fd47db856756.tar
nixpkgs-2fab5f01e3c1d92287e8ab2d2bd0fd47db856756.tar.gz
nixpkgs-2fab5f01e3c1d92287e8ab2d2bd0fd47db856756.tar.bz2
nixpkgs-2fab5f01e3c1d92287e8ab2d2bd0fd47db856756.tar.lz
nixpkgs-2fab5f01e3c1d92287e8ab2d2bd0fd47db856756.tar.xz
nixpkgs-2fab5f01e3c1d92287e8ab2d2bd0fd47db856756.tar.zst
nixpkgs-2fab5f01e3c1d92287e8ab2d2bd0fd47db856756.zip
* Borrowed a patch from Gentoo to get splashutils to work on x86_64.
* Latest klibc.

svn path=/nixpkgs/trunk/; revision=7871
Diffstat (limited to 'pkgs/os-specific/linux/splashutils')
-rw-r--r--pkgs/os-specific/linux/splashutils/default.nix7
-rw-r--r--pkgs/os-specific/linux/splashutils/fdset.patch20
2 files changed, 26 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/splashutils/default.nix b/pkgs/os-specific/linux/splashutils/default.nix
index 3c1f0efb835..ba38825c006 100644
--- a/pkgs/os-specific/linux/splashutils/default.nix
+++ b/pkgs/os-specific/linux/splashutils/default.nix
@@ -6,7 +6,12 @@ stdenv.mkDerivation {
     url = http://dev.gentoo.org/~spock/projects/splashutils/archive/splashutils-1.3.tar.bz2;
     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];
   
diff --git a/pkgs/os-specific/linux/splashutils/fdset.patch b/pkgs/os-specific/linux/splashutils/fdset.patch
new file mode 100644
index 00000000000..44c61339c45
--- /dev/null
+++ b/pkgs/os-specific/linux/splashutils/fdset.patch
@@ -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>