git.iko.soy/typeable/nixpkgs
on master help sign in
Revert "pciutils: fixup finding modules to libkmod's way"

This reverts commit 286c836b3f1421553c103758537929e596256e65. It's bigger rebuild than I expected, I'm sorry. Moving to staging.

commit516f839c0d88f3472e40aa4458b41b41c3ce013e authorVladimír Čunát <vcunat@gmail.com> dateThu 24 Nov 2016, 16:49 (10 years ago) parent286c836
2 files changed−25
pkgs/tools/system/pciutils/default.nix−2 pkgs/tools/system/pciutils/module-dir.diff−23
pkgs/tools/system/pciutils/default.nix−2
@@ -8,8 +8,6 @@ stdenv.mkDerivation rec {
88 sha256 = "0byl2f897w5lhs4bvr6p7qwcz9bllj2zyfv7nywbcbsnb9ha9wrb";
99 };
1010
11− patches = [ ./module-dir.diff ];
12−
1311 buildInputs = [ pkgconfig zlib kmod which ];
1412
1513 makeFlags = "SHARED=yes PREFIX=\${out}";
pkgs/tools/system/pciutils/module-dir.diffdeleted−23
@@ -1,23 +0,0 @@
1−Don't override libkmod's way of finding modules.
2−
3−(We override that behavior in nixpkgs to fit nixos.)
4−
5−diff --git a/ls-kernel.c b/ls-kernel.c
6−index 78b70f1..ecacd0e 100644
7−--- a/ls-kernel.c
8−+++ b/ls-kernel.c
9−@@ -29,13 +29,7 @@ show_kernel_init(void)
10− if (show_kernel_inited >= 0)
11− return show_kernel_inited;
12−
13−- struct utsname uts;
14−- if (uname(&uts) < 0)
15−- die("uname() failed: %m");
16−- char *name = alloca(64 + strlen(uts.release));
17−- sprintf(name, "/lib/modules/%s", uts.release);
18−-
19−- kmod_ctx = kmod_new(name, NULL);
20−+ kmod_ctx = kmod_new(NULL, NULL);
21− if (!kmod_ctx)
22− {
23− fprintf(stderr, "lspci: Unable to initialize libkmod context\n");