# # spec file for package kmod # # Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150200 %define use_zstd 1 %endif Name: kmod %define lname libkmod2 Version: 34.2 Release: 1.1 Summary: Utilities to load modules into the kernel License: GPL-2.0-or-later AND LGPL-2.1-or-later Group: System/Kernel URL: https://www.kernel.org/pub/linux/utils/kernel/kmod/ #Git-Web: http://git.kernel.org/?p=utils/kernel/kmod/kmod.git;a=summary #Git-Clone: git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod Source: https://www.kernel.org/pub/linux/utils/kernel/kmod/kmod-%version.tar.xz Source2: https://www.kernel.org/pub/linux/utils/kernel/kmod/kmod-%version.tar.sign Source3: %name.keyring Source4: README.usrmerge Patch1: 0002-modprobe-Recognize-allow-unsupported-modules-on-comm.patch Patch2: 0003-libkmod-config-Recognize-allow_unsupported_modules-i.patch Patch3: 0009-libkmod-Implement-filtering-of-unsupported-modules-o.patch Patch4: 0010-modprobe-Implement-allow-unsupported-modules.patch Patch5: 0011-Do-not-filter-unsupported-modules-when-running-a-van.patch Patch6: 0012-modprobe-print-unsupported-status.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: libopenssl-devel >= 1.1.0 BuildRequires: libtool BuildRequires: pkg-config >= 0.21 BuildRequires: scdoc BuildRequires: xz BuildRequires: pkgconfig(liblzma) >= 4.99 %if 0%{?use_zstd} BuildRequires: pkgconfig(libzstd) Provides: kmod-zstd %endif BuildRequires: pkgconfig(zlib) Requires(post): coreutils Obsoletes: kmod-compat < %version-%release Provides: kmod-compat = %version-%release # kmod and libkmod have no dependency but we want to provide # same features across kmod provided tools and tools linking to libkmod Conflicts: %lname < %version-%release Conflicts: %lname > %version-%release Requires: suse-module-tools Obsoletes: module-init-tools < 3.16 Provides: module-init-tools = 3.16 Provides: modutils Obsoletes: %name-bash-completion < %version-%release Provides: %name-bash-completion = %version-%release %description kmod is a set of tools to handle common tasks with Linux kernel modules like insert, remove, list, check properties, resolve dependencies and aliases. These tools are designed on top of libkmod, a library that is shipped with kmod. The aim is to be compatible with tools, configurations and indexes from module-init-tools project. %package -n %lname Summary: Library to interact with Linux kernel modules License: LGPL-2.1-or-later Group: System/Libraries %description -n %lname libkmod was created to allow programs to easily insert, remove and list modules, also checking its properties, dependencies and aliases. %package -n libkmod-devel Summary: Development files for libkmod License: LGPL-2.1-or-later Group: Development/Libraries/C and C++ Requires: %lname = %version %description -n libkmod-devel libkmod was created to allow programs to easily insert, remove and list modules, also checking its properties, dependencies and aliases. This package contains the development headers for the library found in %lname. %prep %autosetup -p1 cp "%_sourcedir/README.usrmerge" . %build rm -f m4/gtk-doc.m4 libkmod/docs/gtk-doc.make # dangling symlinks touch m4/gtk-doc.m4 libkmod/docs/gtk-doc.make GTKDOCIZE=/bin/true autoreconf -fi export LDFLAGS="-Wl,-z,relro,-z,now" # The extra --includedir gives us the possibility to detect dependent # packages which fail to properly use pkgconfig, cf. bugzilla.opensuse.org/795968 %configure \ --with-xz \ --with-zlib \ --with-openssl \ %if 0%{?use_zstd} --with-zstd \ %endif --includedir="%_includedir/kmod" \ --with-rootlibdir="%_libdir" \ %if 0%{?suse_version} > 1500 --with-module-directory="%_prefix/lib/modules" \ %endif --bindir="%_bindir" %make_build %install b="%buildroot" %make_install rm -f "$b/%_libdir"/*.la mkdir -p "$b/%_bindir" "$b/bin" for i in lsmod; do ln -s "%_bindir/kmod" "$b/%_bindir/$i" %if 0%{?suse_version} < 1550 ln -s "%_bindir/kmod" "$b/bin/$i" %endif done %post %{?regenerate_initrd_post} %posttrans %{?regenerate_initrd_posttrans} %ldconfig_scriptlets -n %lname %files %if 0%{?suse_version} > 1500 %doc README.usrmerge %endif %_bindir/kmod %_bindir/lsmod %_sbindir/depmod %_sbindir/insmod %_sbindir/lsmod %_sbindir/modinfo %_sbindir/modprobe %_sbindir/rmmod %_mandir/man[58]/*.[58]* %_datadir/pkgconfig/kmod.pc %if 0%{?suse_version} < 1550 /bin/lsmod /sbin/depmod /sbin/insmod /sbin/lsmod /sbin/modinfo /sbin/modprobe /sbin/rmmod %endif %_datadir/bash-completion/ %_datadir/fish/ %_datadir/zsh/ %files -n %lname %_libdir/libkmod.so.2* %files -n libkmod-devel %_includedir/* %_libdir/pkgconfig/libkmod.pc %_libdir/libkmod.so %changelog * Fri Mar 28 2025 Jan Engelhardt - Update to release 34.2 * libkmod: fix buffer-overflow in weakdep_to_char - Delete unused 0001-build-resolve-build-failure-due-to-missing-include.patch * Wed Mar 12 2025 Michal Suchanek - tests: drop ppc64 workaround, print failed test results if any * Thu Mar 6 2025 Jan Engelhardt - Update to release 34.1 * Build fixes only * Fri Feb 21 2025 Jan Engelhardt - Update to release 34 * modinfo now dlopens compression libraries, and only if needed. (insmod/modprobe exercises the kernel's built-in decompression anyway, so is unaffected). * depmod: add -m option for overriding the module directory at runtime. * depmod: deleted deprecated options --unresolved-error, --quiet, - root and --map. * rmmod: deleted deprecated option -w. * insmod: deleted deprecated options -p, -s. - Delete 0001-testsuite-fix-path-for-test-user.patch (obsolete) * Wed Aug 21 2024 Jan Engelhardt - Update to release 33 * Add weak dependencies * Stop parsing .alias files from modprobe.d directories - Delete no-stylesheet-download.patch (merged) - Add 0001-testsuite-fix-path-for-test-user.patch * Thu Apr 4 2024 Michal Suchanek - Update to release 32 * Drop python bindings * Remove unmaintained experimental tool - Drop upstreamed patches * configure-Detect-openssl-sm3-support.patch * man-depmod.d-Fix-incorrect-usr-lib-search-path.patch * usr-lib-modprobe.patch * kmod-Add-pkgconfig-file-with-kmod-compile-time-confi.patch * tools-depmod-fix-Walloc-size.patch * libkmod-remove-pkcs7-obj_to_hash_algo.patch * usr-lib-modules.patch * configure-Check-that-provided-paths-are-absolute.patch - Refresh no-stylesheet-download.patch * Wed Dec 6 2023 Michal Suchanek - Add upstream fixes since v31 * tools-depmod-fix-Walloc-size.patch * libkmod-remove-pkcs7-obj_to_hash_algo.patch * configure-Check-that-provided-paths-are-absolute.patch - Refresh usrmerge patches to upstream version (cosmetic change only) * Tue Oct 17 2023 Michal Suchanek - Fix tests * refresh configure-Detect-openssl-sm3-support.patch * refresh kmod-Add-pkgconfig-file-with-kmod-compile-time-confi.patch * refresh usr-lib-modules.patch * Fri Sep 29 2023 Jan Engelhardt - Update to release 31 * Allow passing a path to modprobe so the module is loaded from anywhere from the filesystem. * Use in-kernel decompression if available. * depmod learned a `-o ` option to allow using a separate output directory. - Delete depmod-Introduce-outdir-option.patch, testsuite-Handle-different-sysconfdir.patch, testsuite-depmod-use-defines-for-the-rootfs-lib_modu.patch, 0001-testsuite-repair-read-of-uninitialized-memory.patch, testsuite-Move-setup-rootfs-logic-from-Makefile-to-s.patch * Mon Jul 24 2023 Michal Suchanek - Remove compatibility patches, add README.usrmerge (boo#1212835). * Delete Provide-fallback-for-successfully-running-make-modules_install.patch * Delete compat-module_directory-module_prefix.patch * Mon Jul 17 2023 Michal Suchanek - Use pkgconfig for kmod configuration. * Delete kmod-Add-config-command-to-show-compile-time-configu.patch * Add kmod-Add-pkgconfig-file-with-kmod-compile-time-confi.patch, Provide-fallback-for-successfully-running-make-modules_install.patch compat-module_directory-module_prefix.patch. - Refresh usr-lib-modprobe.patch, usr-lib-modules.patch. - Add configure-Detect-openssl-sm3-support.patch to fix build with older openssl without SM3 support. * Sun Jul 16 2023 Jan Engelhardt - Edit usr-lib-modules.patch to /lib/modules provide fallback behavior for successfully running `make modules_install` in pristine tarballs. * Fri Jun 30 2023 Michal Suchanek - Fix up usrmerge patches to make the feature configurable (boo#1212835) * testsuite-Handle-different-sysconfdir.patch * testsuite-depmod-use-defines-for-the-rootfs-lib_modu.patch * depmod-Introduce-outdir-option.patch * man-depmod.d-Fix-incorrect-usr-lib-search-path.patch * kmod-Add-config-command-to-show-compile-time-configu.patch - Refresh usr-lib-modprobe.patch - Refresh usr-lib-modules.patch - Refresh no-stylesheet-download.patch * Fri May 26 2023 Michal Suchanek - On usrmerged system move kernel modules into /usr as well (boo#1211796) * usr-lib-modules.patch * testsuite-Move-setup-rootfs-logic-from-Makefile-to-s.patch - Refresh usr-lib-modprobe.patch - Refresh no-stylesheet-download.patch * Thu May 4 2023 Dominique Leuenberger - Add _multibuild to define 2nd spec file as additional flavor. Eliminates the need for source package links in OBS. * Tue Dec 27 2022 Ludwig Nussel - Replace transitional %%usrmerged macro with regular version check (boo#1206798) * Thu Jun 30 2022 Jan Engelhardt - Update to release 30 * libkmod: support for the SM3 hash algorithm * modprobe: added the --wait option - Drop libkmod-Provide-info-even-for-modules-built-into-the.patch (merged) - Add 0001-testsuite-repair-read-of-uninitialized-memory.patch * Mon Mar 28 2022 Dirk Müller - add keyring so that gpg validation actually does something * Mon Dec 6 2021 Michal Suchanek - Ensure that kmod and packages linking to libkmod provide same features (bsc#1193430). * Thu Oct 28 2021 Michal Suchanek - Enable ZSTD on 15.3 as well (boo#1192104). - Only test ZSTD in testsuite on releases where it is available. * Fri Sep 24 2021 Michal Suchanek - Enable ZSTD on 15.4 (jsc#SLE-21256). * Mon Sep 6 2021 Michal Suchanek - Use docbook 4 rather than docbook 5 for building man pages (bsc#1190190). * Refres no-stylesheet-download.patch * Fri Aug 27 2021 Michal Suchanek - Add ZSTD support on Tumbleweed only. Add a way to detect ZSTD. * Wed Aug 18 2021 Michal Suchanek - Display module information even for modules built into the running kernel (bsc#1189537). + libkmod-Provide-info-even-for-modules-built-into-the.patch * Mon Jun 7 2021 Callum Farmer - Enable support for ZSTD compressed modules * Sat May 29 2021 Michal Suchanek - /usr/lib should override /lib where both are available. Support /usr/lib for depmod.d as well. * Refresh usr-lib-modprobe.patch - Remove test patches included in release 29 - kmod-populate-modules-Use-more-bash-more-quotes.patch - kmod-testsuite-compress-modules-if-feature-is-enabled.patch - kmod-also-test-xz-compression.patch * Thu May 27 2021 Jan Engelhardt - Update to release 29 * Fix `modinfo -F` not working for built-in modules and certain fields. * Fix a memory leak, overflow and double free on error path. - Drop 0001-Fix-modinfo-F-always-shows-name-for-built-ins.patch, 0001-libkmod-config-revamp-kcmdline-parsing-into-a-state-.patch, 0002-libkmod-config-re-quote-option-from-kernel-cmdline.patch (all merged) * Thu Feb 18 2021 Jiri Slaby - Fix grub's requoted kernel parameters (bsc#1181111) * 0001-libkmod-config-revamp-kcmdline-parsing-into-a-state-.patch * 0002-libkmod-config-re-quote-option-from-kernel-cmdline.patch * Thu Feb 4 2021 Michal Suchanek - Fix tests to not test disabled features. Disable zstd again. * kmod-populate-modules-Use-more-bash-more-quotes.patch * kmod-testsuite-compress-modules-if-feature-is-enabled.patch * kmod-also-test-xz-compression.patch * Fri Jan 29 2021 Dominique Leuenberger - Supplement bash-completion subpackage against the main package and bash-completion. - Also require the main package plus bash-completion: the completion package is useless without either of the two. * Thu Jan 28 2021 Michal Suchanek - Update to v28 * Add Zstandard to the supported compression formats using libzstd (tests only - cannot be disabled in tests) * Ignore ill-formed kernel command line, e.g. with "ivrs_acpihid[00:14.5]=AMD0020:0" option in it * Fix some memory leaks * Fix 0-length builtin.alias.bin: it needs at least the index header * Thu Jan 28 2021 Petr Vorel - Backport upstream fix 0001-Fix-modinfo-F-always-shows-name-for-built-ins.patch * Tue Jan 12 2021 Michal Suchanek - Update usr-lib-modprobe.patch to upstream submission (boo#1180821). - Require libxslt-tools for xsltproc and use local stylesheet. * no-stylesheet-download.patch * Fri Nov 6 2020 Jan Engelhardt - Add usr-lib-modprobe.patch [boo#1092648] * Fri Oct 16 2020 Ludwig Nussel - prepare usrmerge (boo#1029961) * Tue Jul 7 2020 Jan Engelhardt - Drop old RPM constructs from the build recipe. * Fri Jul 3 2020 Michal Suchanek - Drop kmod-compat (boo#1173353): The symlinks in kmod-compat are not obsolete. They are desirable for kernel module autoload. The "kernel.modprobe" sysctl references /sbin/modprobe, and changing it to "/usr/bin/kmod load" is not possible, because this sysctl specifies a single executable, not a command (so spaces will be treated as part of the filename). * Wed May 27 2020 Jan Engelhardt - Update to release 27 * Link to libcrypto rather than requiring openssl. * Use PKCS#7 instead of CMS for parsing module signature to be compatible with LibreSSL and OpenSSL < 1.1.0. * Teach modinfo to parse modules.builtin.modinfo. When using Linux kernel >= v5.2~rc1, it is possible to get module information from this new file. * Tue Feb 12 2019 Michal Suchanek - Enable PKCS#7 signature parsing again - requires openssl - Fix testsuite build - requires kernel-default-devel * Fri Feb 8 2019 Jan Engelhardt - Update to new upstream release 26 * depmod now handles parallel invocations better by protecting the temporary files being used. * modprobe has a new --show-exports option. Under the hood, this reads the .symtab and .strtab sections rather than __versions so it shows useful data even if kernel is configured without modversions (CONFIG_MODVERSIONS). * modinfo supports PKCS#7 parsing by using openssl. - Replaced the asn1c-based parser by an openssl-based PKCS parser. - Remove libkmod-signature-Fix-crash-when-module-signature-is.patch, libkmod-signature-pkcs-7-fix-crash-when-signer-info-.patch, libkmod-signature-implement-pkcs7-parsing-with-asn1c.patch (not accepted upstream) - Remove enum.patch, depmod-Prevent-module-dependency-files-corruption-du.patch, depmod-Prevent-module-dependency-files-missing-durin.patch, depmod-shut-up-gcc-insufficinet-buffer-warning.patch (accepted upstream) * Fri Dec 7 2018 Michal Suchanek - Fix module dependency file corruption on parallel invocation (bsc#1118629). - Add depmod-Prevent-module-dependency-files-corruption-du.patch - Add depmod-Prevent-module-dependency-files-missing-durin.patch - Add depmod-shut-up-gcc-insufficinet-buffer-warning.patch * Wed Jul 18 2018 jengelh@inai.de - Remove enum padding constants, add enum.patch (boo#1097869). * Fri Jun 8 2018 vlad.botanic@gmail.com - allow 'modprobe -c' print the status of "allow_unsupported_modules" option. Add 0012-modprobe-print-unsupported-status.patch * Fri Apr 6 2018 msuchanek@suse.com - Fix crash when PKCS#7 signer name is not present in signature (bsc#1088244) Add libkmod-signature-pkcs-7-fix-crash-when-signer-info-.patch * Fri Mar 16 2018 ro@suse.de - for sle, buildexclude the 32bit platforms in kmod-testsuite, they have no kernel binaries anyway (bnc#1085640) * Thu Mar 8 2018 msuchanek@suse.com - Fix PKCS#7 signature display in modinfo (bsc#1077693). * Add libkmod-signature-implement-pkcs7-parsing-with-asn1c.patch * Add libkmod-signature-Fix-crash-when-module-signature-is.patch * Refresh 0010-modprobe-Implement-allow-unsupported-modules.patch * Thu Feb 1 2018 msuchanek@suse.com - Update to kmod v25 * Fix resolving symbols with MODULE_REL_CRCS (bsc#1077867) - Drop depmod-Don-t-add-.TOC.-when-it-s-in-the-kernel.patch * Thu Dec 7 2017 msuchanek@suse.com - Fix resolving .TOC. in modules on 4.4 and older kernel (bsc#1070209) depmod-Don-t-add-.TOC.-when-it-s-in-the-kernel.patch * Mon Nov 20 2017 msuchanek@suse.com - Move dependency on suse-module-tools to kmod-compat (bsc#1047911). * Mon Aug 28 2017 mmarek@suse.com - Add missing coreutils dependency for initrd macros (bsc#1055492). * Wed Jul 26 2017 jengelh@inai.de - Add versioned requires between kmod-compat -> kmod * Thu Jul 6 2017 jengelh@inai.de - Update to new upstream release 24 * libkmod: fix use of strcpy * depmod: fix string overflow * depmod: ignore related modules in depmod_report_cycles * libkmod: Fix handling of quotes in kernel command line * libkmod-config: replace 0/1 with bool * depmod: handle nested loops - Drop 0001-use-correct-sort-method-in-test-array.patch, 0002-depmod-ignore-related-modules-in-depmod_report_cycle.patch, 0009-libkmod-Implement-filtering-of-unsupported-modules-o.patch (applied upstream) - Remove support for openSUSE < 13.2 (non-dracut mkinitrd) - Separate bash completion functions into extra package - Move some of the symlinks from kmod-compat to kmod, as kmod still does not have native support for all functions. * Tue Nov 22 2016 yousaf.kaukab@suse.com - 0002-depmod-ignore-related-modules-in-depmod_report_cycle.patch: Fix buffer overflow when printing modules in cyclic dependency chain (boo#1008186) * Thu Jul 21 2016 jengelh@inai.de - Update to new upstream release 23 * Don't add comment to modules.devname if it would otherwise be empty. * Ignore .TOC. symbols in depmod parsing. * Fix crash on modinfo while checking for available signature of unknown type. * Teach modinfo about PKCS#7 module signatures. - Drop depmod-Ignore_PowerPC64_ABIv2_.TOC.symbol.patch (merged), 0001-libkmod-Handle-long-lines-in-proc-modules.patch (merged) * Thu Jul 21 2016 mmarek@suse.com - Regenerate initrd on kmod update (bsc#989788) - Sync specfile with openSUSE:Factory * Fri Jun 17 2016 mmarek@suse.cz - libkmod: Handle long lines in /proc/modules (bsc#983754) 0001-libkmod-Handle-long-lines-in-proc-modules.patch * Tue Feb 9 2016 dvaleev@suse.com - Fix kernel master build for ppc64le (bsc#1070209) depmod-Ignore_PowerPC64_ABIv2_.TOC.symbol.patch * Mon Dec 7 2015 jengelh@inai.de - Update to new upstream release 22 * support `insmod -f` * depmod: do not fall back to uname on bad version * Sat Nov 7 2015 jengelh@inai.de - Update to new upstream release 21 * The kmod tool now prints the relevant configuration options it was built with when the "--version" argument is passed. * Tue Apr 21 2015 mmarek@suse.cz - Update to kmod 20 * More robust ELF parsing * To fix a race, modprobe only looks at modules.builtin to determine a builtin module, so e.g. 'modprobe vt' will no longer work. * Other fixes * Testsuite moved to a separate package, since it is now building the test modules from sources, which requires the kernel package. * dropped kmod-blacklist-fixtest.patch (merged upstream) * includes 0001-Fix-race-while-loading-modules.patch (bsc#998906) * Thu Apr 2 2015 crrodriguez@opensuse.org - If kmod packge changes, regenerate the initrd. * Fri Mar 6 2015 meissner@suse.com - 0001-use-correct-sort-method-in-test-array.patch: use correct test bsc#920930 * Sun Feb 22 2015 meissner@suse.com - kmod-blacklist-fixtest.patch: tag the test in test-blacklist correctly * Sun Nov 16 2014 jengelh@inai.de - Move include files out of pkg/ into a normal subdir of includedir. * Sun Nov 16 2014 crrodriguez@opensuse.org - Update to kmod 19 * Fix missing CLOEXEC in library * Fix error message while opening kmod's index * static-nodes: when writing in tmpfiles format, indicate that creation of static nodes should only happen at boot. This is used and required by systemd-217+. * Sat Nov 8 2014 crrodriguez@opensuse.org - Build with full RELRO. - Enable verbose build (build checks depend on that) * Thu Sep 4 2014 mmarek@suse.cz - Do not filter unsupported modules when running a vanilla kernel (bnc#871066). New patch: 0011-Do-not-filter-unsupported-modules-when-running-a-van.patch * Tue Jun 24 2014 jengelh@inai.de - Update to new upstream release 18 * Calling depmod with modules creating a dependency loop will now make depmod return an error and not update the indexes. This is to protect the current index not being overridden by another index that may cause a boot failure, depending on the buggy module. - Remove last vestiges of gpg-offline - Remove 0001-depmod-Make-dependency-loops-be-fatal.patch (applied upstream) * Fri May 16 2014 matwey.kornilov@gmail.com - Remove 0001-Fix-recursion-loop-in-mod_count_all_dependencies-whe.patch - Add 0001-depmod-Make-dependency-loops-be-fatal.patch (upstream fix for bnc#872715) * Sat Apr 12 2014 matwey.kornilov@gmail.com - Add 0001-Fix-recursion-loop-in-mod_count_all_dependencies-whe.patch * Fix segfault at cycled deps (bnc#872715) * Fri Apr 11 2014 mmarek@suse.cz - testsutie: Uncompress most modules (updated test-files.tar.xz) - testsuite: Do not run tests with *.ko.gz if zlib is not enabled - Disable compression support, as other tools do not support it (e.g. module signing) * Tue Apr 8 2014 mmarek@suse.cz - Remove the now obsolete test-files.tar.xz tarball * Mon Apr 7 2014 mmarek@suse.com - Updated to kmod 17 * Do not require xsltproc for build * Parse softdeps stored in kernel modules * Add experimental python bindings (not enabled in the package yet) * Misc bugfixes - Deleted patches that went upstream. Only the unsupported modules feature remains: 0002-modprobe-Recognize-allow-unsupported-modules-on-comm.patch 0003-libkmod-config-Recognize-allow_unsupported_modules-i.patch 0009-libkmod-Implement-filtering-of-unsupported-modules-o.patch 0010-modprobe-Implement-allow-unsupported-modules.patch * Tue Apr 1 2014 mmarek@suse.cz - libkmod: Ignore errors from softdeps (bnc#831227) - config: also parse softdeps from modules (bnc#831227) * Mon Mar 31 2014 mmarek@suse.cz - libkmod-config,depmod: Accept special files as configuration files, too - libkmod-config: Only match dot before '=' in /proc/cmdline * Tue Mar 11 2014 mmarek@suse.cz - Provide and obsolete module-init-tools (bnc#867442) * Fri Mar 7 2014 mmarek@suse.cz - testsuite: Fix uname() during glibc startup * Wed Mar 5 2014 mmarek@suse.cz - testsuite: Check the list of loaded modules after a test - testsuite: Add test for modprobe --force - testsuite: Do not provide finit_module(2) on older kernels - Add some tests for kernels without finit_module(2) - libkmod-module: Simplify kmod_module_insert_module() - libkmod: Implement filtering of unsupported modules (fate#316971) - modprobe: Implement --allow-unsupported-modules (fate#316971) - make the %%check section fatal * Wed Feb 26 2014 mmarek@suse.cz - Remove "rmmod -w" documentation and getopt entry - modprobe: Recognize --allow-unsupported-modules on commandline (fate#316971) - libkmod-config: Recognize allow_unsupported_modules in the configuration (fate#316971) * Wed Feb 26 2014 mmarek@suse.cz - Drop the non-upstream kmod-no-static.diff; the size difference is negligible. * Tue Jan 7 2014 jengelh@inai.de - Update to new upstream release 16 * The option to wait on module removal has been removed from the kernel, and now from rmmod. The constant KMOD_REMOVE_NOWAIT in libkmod is still there for backwards compatibility but it is always enforced, passing O_NONBLOCK to delete_module(2). * Mon Sep 2 2013 jengelh@inai.de - Update to new upstream release 15 * kmod static-nodes no longer fails if modules.devname does not exist * Fix getting boolean parameter from kernel cmdline in case the value is omitted * kmod static-nodes creates parent directories if given a -o option - Add kmod-no-static.diff * Wed Jul 3 2013 jengelh@inai.de - Update to new upstream release 14 * Some bug fixes and a new "static-nodes" command to parse modules.devname. * Mon Apr 15 2013 crrodriguez@opensuse.org - Update to new upstream release 13 * depmod: --symbol-prefix actually requires an argument * depmod: fix builtin symbols resolution when the prefix symbol is set * libkmod: Use secure_getenv if available * rmmod: Teach rmmod about builtin modules * libkmod: add finit_module logic * modprobe: Fix assertion on --show-depends with bogus config file * Many other bugfixes see https://lwn.net/Articles/546711 * Thu Dec 6 2012 jengelh@inai.de - Update to new upstream release 12 * Fix removing vermagic from module when told to force load a module * Fix removing __versions section when told to force load a module: we need to mangle the section header, not the section. * modinfo no longer fails while loading a module from file when path contains ".ko" substring * Fri Nov 23 2012 jengelh@inai.de - Require suse-module-tools now that it is present in Base:System - kmod-compat depends on kmod, add that missing Requires. * Sat Nov 10 2012 hrvoje.senjan@gmail.com - Update to kmod-11 * Fix testsuite defining symbols twice on 32 bit systems * Allow to check generated files against correct ones * libkmod now keeps a file opened after the first call to * kmod_module_get_{info,versions,symbols,dependency_symbols}. This reduces signficantly the amount of time depmod tool takes to execute. Particularly if compressed modules are used. * Remove --with-rootprefix from build system. It was not a great idea after all and should not be use since it causes more harm than benefits. * Hide --wait option on rmmod. This feature is being targeted for removal from kernel. rmmod still accepts this option, but it is hidden now: man page and usage() says nothing about it and if it is used, user will get a 10s sleep. This way we can check and help if anyone is using this feature. * Refactor message logging on all tools, giving proper prefix, routing everything to syslog when asked for, etc. * Fix parsing of modules.order when using compressed modules * Usage messages go to stdout instead of stderr * Fix memory leak in hash implementation * Thu Sep 13 2012 jengelh@inai.de - Provide the "modutils" virtual symbol - Update to new upstream release 10 * Read coresize from /sys if supported * Add flag to kmod_module_probe_insert() to apply blacklisting during probe only if mod is an alias. Now modprobe uses this flag by default. * Wed Jun 20 2012 rmilasan@suse.com - Update to new upstream release 9 * build-sys: allow compressed modules in testsuite * build-sys: Make dirs writable on rootfs creation * depmod: use ferror and fclose to check for error * depmod: return error when index is truncated due to ENOSPC * depmod: fix coding-style issue in array declaration * depmod: fail if any index could not be created * depmod: don't return error if modules.builtin don't exist * libkmod-util: split function for usec conversion * libkmod-util: add missing stdbool.h include - Fix broken testsuites on 32bit systems. add: fix-32bits.diff * Sat Apr 21 2012 jengelh@medozas.de - Restore patch descriptions (and use `quilt setup` for rediff in future) * Thu Apr 19 2012 rmilasan@suse.com - Update to new upstream release 8 * doc: remove links to NULL going nowhere. * modprobe: handle -ENOENT return from init_module. * doc: silent man page generation and fix gtk-doc warnings. * modprobe: fix typo in config dump: option->options. * Wed Apr 18 2012 rmilasan@suse.com - Update to new upstream release 7 * build-sys: don't set CFLAGS and LDFLAGS. * build-sys: re-organize configure.ac. * configure.ac: Move link only flags out of CFLAGS and into LDFLAGS. * Add CC_CHECK_LDFLAGS_APPEND m4 macro. * config: use order /etc, /run, /lib. * modprobe: set log prio to 0 if user passed -q arg. * modprobe: always try to remove all modules in command line. * modprobe: don't check if module builtin to decide if it's builtin. * modprobe: fix error path in removing modules. * Sat Mar 10 2012 rschweikert@suse.com - place binary in /usr tree (UsrMerge project) * Sat Mar 3 2012 jengelh@medozas.de - Update to new upstream release 6 * New API: kmod_module_apply_filter, a function to apply filters in a list of modules * Lookup modules.builtin.bin to decide if a module is built into the kernel * Resolve infinite loops with softdeps and user configs with install commands * Tue Feb 7 2012 jengelh@medozas.de - Update to new upstream release 5 * modprobe no longer works with paths: it only accepts module names and/or aliases now. More code is now shared by libkmod and modprobe. * Fri Jan 20 2012 jengelh@medozas.de - Update to new upstream release 4 * new APIs in libkmod: blacklists, install/remove commands, aliases, options, softdeps and dumping indexes * Fri Jan 6 2012 jengelh@medozas.de - Update to new upstream release 3 * new APIs in libkmod: get symbols from module, parsing the ELF section, dependency symbols, insert module like modprobe * support for Xz-compressed modules * the depmod tool * Sat Dec 24 2011 crrodriguez@opensuse.org - Use --enable-zlib and buildRequire zlib - run make check * Sun Dec 18 2011 jengelh@medozas.de - Initial package for build.opensuse.org