Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package dkms for openSUSE:Factory checked in at 2026-12-01 16:59:15 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/dkms (Old) and /work/SRC/openSUSE:Factory/.dkms.new.1340718 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "dkms" Tue Dec 1 16:59:15 2026 rev:17 rq:1401776 version:3.4.5 Changes: -------- --- /work/SRC/openSUSE:Factory/dkms/dkms.changes 2026-11-21 21:50:10.441683434 +0100 +++ /work/SRC/openSUSE:Factory/.dkms.new.1340718/dkms.changes 2026-12-01 17:02:32.998095669 +0100 @@ -1,0 +2,8 @@ +Sat Nov 21 16:26:16 UTC 2026 - Alexandru Gabriel Bradatan <[email protected]> + +- Update to version 3.4.5 + * Fix ldtarball loading only one kernel from a multi-kernel tarball + * do_install: count all pre-existing copies of a module + * Install to /extra on TencentOS and OpenCloudOS + +------------------------------------------------------------------- Old: ---- dkms-3.4.4.tar.gz New: ---- dkms-3.4.5.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ dkms.spec ++++++ --- /var/tmp/diff_new_pack.9u7kmN/_old 2026-12-01 17:02:33.700126319 +0100 +++ /var/tmp/diff_new_pack.9u7kmN/_new 2026-12-01 17:02:33.701126362 +0100 @@ -17,7 +17,7 @@ Name: dkms -Version: 3.4.4 +Version: 3.4.5 Release: 0 Summary: Dynamic Kernel Module Support Framework License: GPL-2.0-only ++++++ dkms-3.4.4.tar.gz -> dkms-3.4.5.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dkms-3.4.4/Makefile new/dkms-3.4.5/Makefile --- old/dkms-3.4.4/Makefile 2026-10-05 11:18:41.000000000 +0200 +++ new/dkms-3.4.5/Makefile 2026-11-11 11:05:44.000000000 +0100 @@ -1,7 +1,7 @@ -RELEASE_DATE := "05 Oct 2026" +RELEASE_DATE := "11 Nov 2026" RELEASE_MAJOR := 3 RELEASE_MINOR := 4 -RELEASE_MICRO := 4 +RELEASE_MICRO := 5 RELEASE_NAME := dkms RELEASE_VERSION := $(RELEASE_MAJOR).$(RELEASE_MINOR).$(RELEASE_MICRO) RELEASE_STRING := $(RELEASE_NAME)-$(RELEASE_VERSION) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dkms-3.4.4/dkms.in new/dkms-3.4.5/dkms.in --- old/dkms-3.4.4/dkms.in 2026-10-05 11:18:41.000000000 +0200 +++ new/dkms-3.4.5/dkms.in 2026-11-11 11:05:44.000000000 +0100 @@ -513,7 +513,7 @@ [[ ${addon_modules_dir} ]] && echo "/${addon_modules_dir}" && return case "$running_distribution" in - fedora* | centos* | rhel*) + fedora* | centos* | rhel* | opencloudos* | tencentos*) echo "/extra" && return ;; sles* | suse* | opensuse*) @@ -1871,11 +1871,11 @@ # Save the original_module if one exists, none have been saved before, and this is the first module for this kernel for count in "${modules_to_install[@]}"; do local m - local installed_modules + local -a installed_modules local module_count local original_copy m=${dest_module_name[$count]} - installed_modules=$(find_module "$lib_tree" "$m") + readarray -t installed_modules < <(find_module "$lib_tree" "$m") module_count=${#installed_modules[@]} original_copy=$(compressed_or_uncompressed "$original_module_backup_dir" "$m") if [[ -L $active_link && $original_copy ]]; then @@ -1904,8 +1904,8 @@ break done if [[ ! $found_original ]] && ((module_count > 1)); then - echo "Multiple original modules exist, so none will be put back in place during a later uninstall" - echo "All instances will be stored for reference purposes in $original_module_backup_dir/collisions/" + echo "Multiple original modules exist, all of them will be put back in place during a later uninstall" + echo "All instances will be stored in $original_module_backup_dir/collisions/" fi fi @@ -2808,8 +2808,8 @@ for directory in "$temp_dir_name/dkms_main_tree"/*/*; do [[ -d $directory ]] || continue - local -r kernel_arch_to_load=${directory/*dkms_main_tree\/} - local -r dkms_dir_location=$dkms_tree/$module/$module_version/$kernel_arch_to_load + local kernel_arch_to_load=${directory/*dkms_main_tree\/} + local dkms_dir_location=$dkms_tree/$module/$module_version/$kernel_arch_to_load if [[ -d $dkms_dir_location && ! $force ]]; then warn "$dkms_dir_location already exists. Skipping..." diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dkms-3.4.4/run_test.sh new/dkms-3.4.5/run_test.sh --- old/dkms-3.4.4/run_test.sh 2026-10-05 11:18:41.000000000 +0200 +++ new/dkms-3.4.5/run_test.sh 2026-11-11 11:05:44.000000000 +0100 @@ -264,6 +264,7 @@ /warning: the compiler differs from the one used to build the kernel/d / The kernel was built by:/d / You are using:/d +/warning: pahole version differs from the one used to build the kernel/d / The kernel was built with:/d /make(\[[0-9]+\])?: (Entering|Leaving) directory/d s/ \[M\] / / @@ -413,7 +414,7 @@ distro_modsigkey=/var/lib/dkms/mok.key distro_modsigcert=/var/lib/dkms/mok.pub case "${os_id}" in - centos | fedora | rhel | ovm | almalinux | ol) + centos | fedora | rhel | ovm | almalinux | ol | opencloudos | tencentos) expected_dest_loc=extra mod_compression_ext=.xz ;; @@ -2469,6 +2470,111 @@ fi # replace tests +if [[ ! $only || $only = collisions ]]; then + +############################################################################ +echo '*** Testing replacement of multiple pre-existing modules' +############################################################################ + +# A kernel package can ship the same module more than once, e.g. in the +# kernel tree and in an out-of-tree driver stack under /updates. All copies +# have to be moved away on install, otherwise depmod may prefer one of them +# over the module installed by dkms. They are all put back on uninstall. + +COLLISION_DIRS=( + "/lib/modules/${KERNEL_VER}/kernel/drivers/dkms_collision" + "/lib/modules/${KERNEL_VER}/updates/dkms_collision" +) + +echo 'Building the to-be-replaced test module' +run_with_expected_output dkms add test/dkms_test-1.0 << EOF +Creating symlink /var/lib/dkms/dkms_test/1.0/source -> /usr/src/dkms_test-1.0 +EOF +check_module_source_tree_created /usr/src/dkms_test-1.0 +set_signing_message "dkms_test" "1.0" +run_with_expected_output dkms build -k "${KERNEL_VER}" -m dkms_test -v 1.0 << EOF +${SIGNING_PROLOGUE} +Building module(s)... done.${SIGNING_MESSAGE} +EOF + +echo 'Placing two copies of the to-be-replaced test module in the kernel tree' +for dir in "${COLLISION_DIRS[@]}"; do + mkdir -p "${dir}" + cp "/var/lib/dkms/dkms_test/1.0/${KERNEL_VER}/${KERNEL_ARCH}/module/dkms_test.ko${mod_compression_ext}" "${dir}/" +done +run_with_expected_output dkms remove -k "${KERNEL_VER}" -m dkms_test -v 1.0 << EOF +Module dkms_test/1.0 is not installed for kernel ${KERNEL_VER} (${KERNEL_ARCH}). Skipping... + +Deleting module dkms_test/1.0 completely from the DKMS tree. +EOF +remove_module_source_tree /usr/src/dkms_test-1.0 + +echo 'Adding, building and installing the replacement test module' +run_with_expected_output dkms add test/dkms_replace_test-2.0 << EOF +Creating symlink /var/lib/dkms/dkms_replace_test/2.0/source -> /usr/src/dkms_replace_test-2.0 +EOF +check_module_source_tree_created /usr/src/dkms_replace_test-2.0 +set_signing_message "dkms_replace_test" "2.0" "dkms_test" +run_with_expected_output dkms install -k "${KERNEL_VER}" -m dkms_replace_test -v 2.0 << EOF +${SIGNING_PROLOGUE} +Building module(s)... done.${SIGNING_MESSAGE} +Multiple original modules exist, all of them will be put back in place during a later uninstall +All instances will be stored in /var/lib/dkms/dkms_replace_test/original_module/${KERNEL_VER}/${KERNEL_ARCH}/collisions/ +Multiple same named modules! 2 named dkms_test.ko${mod_compression_ext} in /lib/modules/${KERNEL_VER}/ +Installing /lib/modules/${KERNEL_VER}/${expected_dest_loc}/dkms_test.ko${mod_compression_ext} +Running depmod... done. +EOF +run_status_with_expected_output 'dkms_replace_test' << EOF +dkms_replace_test/2.0, ${KERNEL_VER}, ${KERNEL_ARCH}: installed (Original modules exist) +EOF +for dir in "${COLLISION_DIRS[@]}"; do + if [[ -e "${dir}/dkms_test.ko${mod_compression_ext}" ]]; then + echo >&2 "Error: ${dir}/dkms_test.ko${mod_compression_ext} was not archived" + exit 1 + fi +done + +# The archived copies are restored in no particular order +# Use `sort` so we can reliably diff +echo 'Removing the replacement test module' +dkms remove -k "${KERNEL_VER}" -m dkms_replace_test -v 2.0 > test_cmd_output.log 2>&1 +generalize_expected_output test_cmd_output.log +sort -o test_cmd_output.log test_cmd_output.log +sort > test_cmd_expected_output.log << EOF +Module dkms_replace_test/2.0 for kernel ${KERNEL_VER} (${KERNEL_ARCH}): +Before uninstall, this module version was ACTIVE on this kernel. +Deleting /lib/modules/${KERNEL_VER}/${expected_dest_loc}/dkms_test.ko${mod_compression_ext} +Restoring archived original module ${COLLISION_DIRS[0]}/dkms_test.ko${mod_compression_ext} +Restoring archived original module ${COLLISION_DIRS[1]}/dkms_test.ko${mod_compression_ext} +Running depmod... done. + +Deleting module dkms_replace_test/2.0 completely from the DKMS tree. +EOF +if ! diff -U3 test_cmd_expected_output.log test_cmd_output.log ; then + echo >&2 "Error: unexpected output from: dkms remove" + exit 1 +fi +rm test_cmd_expected_output.log test_cmd_output.log +for dir in "${COLLISION_DIRS[@]}"; do + if ! [[ -f "${dir}/dkms_test.ko${mod_compression_ext}" ]]; then + echo >&2 "Error: ${dir}/dkms_test.ko${mod_compression_ext} was not restored" + exit 1 + fi +done +run_status_with_expected_output 'dkms_replace_test' << EOF +EOF + +echo 'Removing the copies of the to-be-replaced test module from the kernel tree' +rm -rf "${COLLISION_DIRS[@]}" +depmod "${KERNEL_VER}" + +remove_module_source_tree /usr/src/dkms_replace_test-2.0 + +echo 'Checking that the environment is clean again' +check_no_dkms_test + +fi # collisions tests + if [[ ! $only || $only = multiple ]]; then ############################################################################ @@ -4727,6 +4833,113 @@ fi # broken tests +if [[ ! $only || $only = tarball ]]; then + +############################################################################ +echo '*** Testing mktarball/ldtarball with multiple kernels' +############################################################################ + +# Fake kernels are copies of the real build. ldtarball loads kernels in glob +# order, which depends on the locale, so name the fake ones such that they sort +# before the real one under any collation (a suffix of ${KERNEL_VER} does not). +TARBALL_FAKE_KERNELS=("0.0.1-dkms-tarball" "0.0.2-dkms-tarball") +TARBALL_KERNELS=("${TARBALL_FAKE_KERNELS[@]}" "${KERNEL_VER}") +TARBALL_LOCATION="${tmpdir}/dkms_test-1.0.dkms.tar.gz" + +# Each kernel/arch directory gets a marker naming its kernel, so that +# directories mixed up by mktarball/ldtarball can be detected. +check_tarball_markers() { + local k + local marker + for k in "${TARBALL_KERNELS[@]}"; do + marker="/var/lib/dkms/dkms_test/1.0/${k}/${KERNEL_ARCH}/tarball_marker" + if ! [[ -f "${marker}" ]] ; then + echo >&2 "Error: ${marker} not found" + exit 1 + fi + if [[ "$(cat "${marker}")" != "${k}" ]] ; then + echo >&2 "Error: ${marker} contains '$(cat "${marker}")' instead of '${k}'" + exit 1 + fi + done +} + +echo 'Adding and building the test module by directory' +set_signing_message "dkms_test" "1.0" +run_with_expected_output dkms build test/dkms_test-1.0 -k "${KERNEL_VER}" << EOF +Creating symlink /var/lib/dkms/dkms_test/1.0/source -> /usr/src/dkms_test-1.0 + +${SIGNING_PROLOGUE} +Building module(s)... done.${SIGNING_MESSAGE} +EOF + +echo ' Creating fake builds for kernels' "${TARBALL_FAKE_KERNELS[@]}" +for k in "${TARBALL_FAKE_KERNELS[@]}"; do + mkdir -p "/var/lib/dkms/dkms_test/1.0/${k}" + cp -r "/var/lib/dkms/dkms_test/1.0/${KERNEL_VER}/${KERNEL_ARCH}" "/var/lib/dkms/dkms_test/1.0/${k}/" +done +for k in "${TARBALL_KERNELS[@]}"; do + echo "${k}" > "/var/lib/dkms/dkms_test/1.0/${k}/${KERNEL_ARCH}/tarball_marker" +done + +echo 'Making a tarball for multiple kernels' +run_with_expected_output dkms mktarball -m dkms_test -v 1.0 -k "${TARBALL_KERNELS[0]}" -k "${TARBALL_KERNELS[1]}" -k "${TARBALL_KERNELS[2]}" --archive "${TARBALL_LOCATION}" << EOF +Marking modules for ${TARBALL_KERNELS[0]} (${KERNEL_ARCH}) for archiving... +Marking modules for ${TARBALL_KERNELS[1]} (${KERNEL_ARCH}) for archiving... +Marking modules for ${TARBALL_KERNELS[2]} (${KERNEL_ARCH}) for archiving... + +Marking /var/lib/dkms/dkms_test/1.0/source for archiving... + +Tarball location: ${TARBALL_LOCATION} +EOF + +echo ' Removing the test module from the DKMS tree and the source tree' +rm -rf /var/lib/dkms/dkms_test/ +remove_module_source_tree /usr/src/dkms_test-1.0 + +echo 'Loading the tarball for multiple kernels' +run_with_expected_output dkms ldtarball "${TARBALL_LOCATION}" << EOF + +Loading tarball for dkms_test/1.0 +Loading /var/lib/dkms/dkms_test/1.0/${TARBALL_KERNELS[0]}/${KERNEL_ARCH}... +Loading /var/lib/dkms/dkms_test/1.0/${TARBALL_KERNELS[1]}/${KERNEL_ARCH}... +Loading /var/lib/dkms/dkms_test/1.0/${TARBALL_KERNELS[2]}/${KERNEL_ARCH}... +Creating symlink /var/lib/dkms/dkms_test/1.0/source -> /usr/src/dkms_test-1.0 +EOF +check_module_source_tree_created /usr/src/dkms_test-1.0 +check_tarball_markers + +echo ' Removing symlink /var/lib/dkms/dkms_test/1.0/source and clobbering the markers' +rm /var/lib/dkms/dkms_test/1.0/source +for k in "${TARBALL_KERNELS[@]}"; do + echo "stale" > "/var/lib/dkms/dkms_test/1.0/${k}/${KERNEL_ARCH}/tarball_marker" +done + +echo 'Loading the tarball for multiple kernels with --force' +run_with_expected_output dkms ldtarball "${TARBALL_LOCATION}" --force << EOF + +Loading tarball for dkms_test/1.0 + +Forcing install of dkms_test/1.0 +Loading /var/lib/dkms/dkms_test/1.0/${TARBALL_KERNELS[0]}/${KERNEL_ARCH}... +Loading /var/lib/dkms/dkms_test/1.0/${TARBALL_KERNELS[1]}/${KERNEL_ARCH}... +Loading /var/lib/dkms/dkms_test/1.0/${TARBALL_KERNELS[2]}/${KERNEL_ARCH}... +Creating symlink /var/lib/dkms/dkms_test/1.0/source -> /usr/src/dkms_test-1.0 +EOF +check_module_source_tree_created /usr/src/dkms_test-1.0 +check_tarball_markers + +echo 'Removing the test module' +rm -f "${TARBALL_LOCATION}" +remove_module_source_tree /usr/src/dkms_test-1.0 +echo ' Removing directory /var/lib/dkms/dkms_test/' +rm -rf /var/lib/dkms/dkms_test/ + +echo 'Checking that the environment is clean again' +check_no_dkms_test + +fi # tarball tests + ############################################################################ echo '*** All tests successful :)'
