Author: eelco
Date: Thu Dec 23 11:40:11 2010
New Revision: 25250
URL: https://svn.nixos.org/websvn/nix/?rev=25250&sc=1
Log:
* Fix "Unknown HZ value" warnings.
Added:
nixpkgs/branches/stdenv-updates/pkgs/os-specific/linux/procps/linux-ver-init.patch
Deleted:
nixpkgs/branches/stdenv-updates/pkgs/os-specific/linux/procps/builder.sh
Modified:
nixpkgs/branches/stdenv-updates/pkgs/os-specific/linux/procps/default.nix
Modified:
nixpkgs/branches/stdenv-updates/pkgs/os-specific/linux/procps/default.nix
==============================================================================
--- nixpkgs/branches/stdenv-updates/pkgs/os-specific/linux/procps/default.nix
Thu Dec 23 11:00:20 2010 (r25249)
+++ nixpkgs/branches/stdenv-updates/pkgs/os-specific/linux/procps/default.nix
Thu Dec 23 11:40:11 2010 (r25250)
@@ -1,12 +1,26 @@
-{stdenv, fetchurl, ncurses}:
+{ stdenv, fetchurl, ncurses }:
stdenv.mkDerivation {
name = "procps-3.2.8";
- builder = ./builder.sh;
+
src = fetchurl {
url = http://procps.sourceforge.net/procps-3.2.8.tar.gz;
sha256 = "0d8mki0q4yamnkk4533kx8mc0jd879573srxhg6r2fs3lkc6iv8i";
};
- patches = [./makefile.patch ./procps-build.patch ./gnumake3.82.patch];
- buildInputs = [ncurses];
+
+ patches =
+ [ ./makefile.patch
+ ./procps-build.patch
+ ./gnumake3.82.patch
+ ./linux-ver-init.patch
+ ];
+
+ buildInputs = [ ncurses ];
+
+ makeFlags = "DESTDIR=$(out)";
+
+ meta = {
+ homepage = http://procps.sourceforge.net/;
+ description = "Utilities that give information about processes using the
/proc filesystem";
+ };
}
Added:
nixpkgs/branches/stdenv-updates/pkgs/os-specific/linux/procps/linux-ver-init.patch
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++
nixpkgs/branches/stdenv-updates/pkgs/os-specific/linux/procps/linux-ver-init.patch
Thu Dec 23 11:40:11 2010 (r25250)
@@ -0,0 +1,23 @@
+https://bugs.gentoo.org/303120
+
+make sure the linux version constructor runs before the libproc constructor
+since the latter uses variables setup by the former
+
+fix by Chris Coleman
+
+Index: proc/version.c
+===================================================================
+RCS file: /cvsroot/procps/procps/proc/version.c,v
+retrieving revision 1.7
+diff -u -p -r1.7 version.c
+--- a/proc/version.c 9 Feb 2003 07:27:16 -0000 1.7
++++ b/proc/version.c 14 Nov 2010 00:22:44 -0000
+@@ -33,7 +33,7 @@ void display_version(void) {
+
+ int linux_version_code;
+
+-static void init_Linux_version(void) __attribute__((constructor));
++static void init_Linux_version(void) __attribute__((constructor(100)));
+ static void init_Linux_version(void) {
+ static struct utsname uts;
+ int x = 0, y = 0, z = 0; /* cleared in case sscanf() < 3 */
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits