Commit Graph

64 Commits

Author SHA1 Message Date
Alyssa Ross
0a4b34b209
kmod: backport patch for musl 1.2.5 (#322720)
This fixes a segfault that will break kernel builds when we update to
musl 1.2.5.
2024-06-27 01:04:03 +02:00
Sergei Trofimovich
edb0b85e62 kmod: 30 -> 31
Changes: https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg2559568.html
2023-10-13 11:00:26 +01:00
Artturin
7f8c707312 kmod: enable strictDeps
gtk-doc is already behind withDevdoc so gtk-doc in buildInputs works

perhaps an improvement would be to apply https://git.yoctoproject.org/poky/plain/meta/recipes-gnome/gtk-doc/files/pkg-config-native.patch
2023-02-25 22:55:13 +02:00
José Romildo
01510c7ff3 treewide: no need to pass pname, version and attrPath to update scripts based on generic-updater 2022-09-27 23:41:53 -03:00
Sergei Trofimovich
65b9c17842 kmod: drop darwin support
commit 7a2c07d29b "kmod: enable on darwin" added darwin
support mostly for `depmod` to be able to build `linux` kernel
on `darwin`.

In version 30 kmod requires more and more linux syscalls to build.
Instead of patching it for darwin let's drop it's support instead.

Maybe `depmod` could be packaged using some other way if needed.

Related: https://github.com/NixOS/nixpkgs/pull/182720 removed
`kmod` use on `darwin` from rare packages that still pulled it in.
2022-07-25 18:58:36 +01:00
Sergei Trofimovich
3feca2a040 kmod: 29 -> 30
While at it added trivial updater.

Changes: https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git/plain/NEWS?h=v30
2022-07-11 23:03:10 +01:00
Alyssa Ross
b173750213 kmod: build devdoc
Switch from autoreconfHook to running autogen.sh ourselves so that
gtkdocize gets run.  The GTK_DOC_CHECK autoconf macro isn't
cross-friendly, so we have to disable it when cross-compiling.
2022-05-23 07:48:50 +00:00
Alyssa Ross
dc1303185f kmod: add dev and lib outputs
Reduces the closure size of pkgsStatic.kmod from 51.0M to 541.6K.
2022-03-07 11:02:29 +00:00
Artturin
86ae2154c2 kmod: add myself(artturin) as a maintainer 2021-12-08 02:56:40 +02:00
Artturin
453968c01a kmod: switch the priority of module dirs
make "/run/booted-system/kernel-modules" be searched first

Fixes https://github.com/NixOS/nixpkgs/issues/146383
modprobe: ERROR: could not insert 'zram': Invalid argument
2021-12-07 06:20:59 +02:00
Abdelhakim Qbaich
ea93044e9e kmod: fixing darwin.patch 2021-08-31 22:16:27 -07:00
Abdelhakim Qbaich
605ccef432 kmod: proper license entry 2021-08-27 17:23:55 -07:00
Abdelhakim Qbaich
7179ce3717 kmod: build with zstd support 2021-08-26 23:48:50 -07:00
Abdelhakim Qbaich
42e20c4e79 kmod: 27 -> 29 2021-08-26 23:48:11 -07:00
Sandro
b1526be944
Merge pull request #107824 from mroi/patch-kmod
kmod: fix depmod crash on darwin
2021-03-21 23:04:46 +01:00
Jonathan Ringer
9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
continuation of #109595

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.

python3Packages.pkgconfig remained unchanged because
it's the canonical name of the upstream package
on pypi.
2021-01-19 01:16:25 -08:00
Profpatsch
4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
John Ericson
5c2965145f treewide: Inline more of the static overlay
Picking up where #107238 left off. I think I'll have gotten all the easy
stuff with this.
2021-01-03 21:46:14 +00:00
Michael Roitzsch
4224476df6 kmod: fix kmod tools crash on darwin
include the proper header for basename(), otherwise the returned
pointer is truncated to 32 bit because an int return type is assumed
2020-12-28 20:02:45 +01:00
Dominik Xaver Hörl
40d33887db kmod: add patch to correct behaviour with --field
This came up in https://github.com/NixOS/nixpkgs/pull/96008.
Without this patch modinfo always prints the module name for builtin
modules, even if an explicit --field is passed.
2020-08-24 10:59:16 +02:00
Michael Weiss
1b6e357424 kmod: 26 -> 27 2020-06-13 10:57:19 +02:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Alexander Bantyev
8983cac44c
kmod: fix --enable-static 2019-11-11 11:10:59 +03:00
Gabriel Ebner
a0e4ee3111 aggregateModules: support depmod.d configuration 2019-11-03 17:32:46 +01:00
Ben Wolsieffer
b6d906732c aggregateModules: use stdenvNoCC instead of stdenv (#67579) 2019-08-28 09:48:48 -04:00
volth
f3282c8d1e treewide: remove unused variables (#63177)
* treewide: remove unused variables

* making ofborg happy
2019-06-16 19:59:05 +00:00
Linus Heckemann
217cfbe11a aggregateModules: allow passing name 2019-04-13 23:22:07 +02:00
Will Dietz
c13a29e398 kmod: 25 -> 26
https://lwn.net/Articles/779249/
2019-03-11 12:33:45 -05:00
Matthew Bauer
808f05808b kmod: avoid mass rebuild
elf-header shouldn’t be needed on linux
2018-12-02 19:34:55 -06:00
Matthew Bauer
7a2c07d29b kmod: enable on darwin
This is needed to build linux kernels on darwin. While we can’t
actually use it to load kernel modules, we can use it to create
indexes of modules on macOS.

(cherry picked from commit ebb31480e8a45efbaff4c4a212bdfc0b053adde0)
2018-12-02 14:12:42 -06:00
Markus Kowalewski
a3f9340d93
kmod: add license 2018-08-30 21:28:03 +02:00
John Ericson
e5d630e99e kmod: Remove crossAttrs
Issue #21191 is indeed fixed now.
2018-07-24 18:39:41 -04:00
Robert Hensing
30bff42231 linux module handling: support kernels without modules 2018-04-05 17:00:00 +02:00
Tuomas Tynkkynen
10bcf978eb kmod: 24 -> 25 2018-01-17 12:53:22 +02:00
mimadrid
09e0cc7cc7
Update homepage attributes: http -> https
Homepage link "http://.../" is a permanent redirect to "https://.../" and should be updated
https://repology.org/repository/nix_stable/problems
2017-08-03 11:56:15 +02:00
Eric Litak
f89504d067 kmod: crossDrv should use native xz 2017-04-14 18:03:49 -07:00
Peter Hoeg
89724f152a kmod: 23 -> 24 2017-03-14 18:06:55 +08:00
Eelco Dolstra
88f10ad409 aggregateModules: Preserve kernel's modules.{builtin,order}
Fixes #19426.
2016-10-11 11:42:41 +02:00
Nikolay Amiantov
2abe917f18 kmod: 22 -> 23, add /lib/modules to module directories 2016-08-19 17:57:08 +03:00
Nikolay Amiantov
ff22705793 treewide: replace several /sbin paths by /bin 2016-08-19 17:56:45 +03:00
Nikolay Amiantov
30c9aa2698 kmod: add patch to allow searching for modules in several directories 2016-08-19 17:56:39 +03:00
obadz
1047ed49d9 Merge branch 'master' into staging
Conflicts: pkgs/os-specific/linux/kmod/default.nix cc @abbradar
2016-08-19 15:28:58 +01:00
Nikolay Amiantov
081ac25dc6 kmod: 22 -> 23, add /lib/modules to module directories 2016-08-16 02:42:19 +03:00
Shea Levy
9adad8612b Revert "Merge branch 'modprobe-fix' of git://github.com/abbradar/nixpkgs"
Was meant to go into staging, sorry

This reverts commit 57b2d1e9b0, reversing
changes made to 760b2b9048.
2016-08-15 19:05:52 -04:00
Nikolay Amiantov
1afd250676 treewide: replace several /sbin paths by /bin 2016-08-16 00:19:25 +03:00
Nikolay Amiantov
131fca0a85 kmod: add patch to allow searching for modules in several directories 2016-08-16 00:19:25 +03:00
Eelco Dolstra
48f51f1185 linux: Compress kernel modules
This reduces the kernel package from 185 to 62 MiB, for a neglible
boot time cost.
2016-02-01 18:19:23 +01:00
Louis Taylor
2dd99b8abb kmod: 21 -> 22 2016-01-13 11:46:15 +00:00
Shea Levy
145768bf9b Unmaintain a bunch of packages 2015-07-01 08:11:05 -04:00
William A. Kennington III
ad9081411c kmod: 20 -> 21 2015-06-18 23:51:12 -07:00