** Description changed: - When trying to uninstall a (customly built) DKMS module using "dkms - uninstall -m my_module -v 1.1" dkms fails with exit code 1 and doesn't - print an error message. - - The problem occurs with the invocation of the function "have_one_kernel" - in the /usr/sbin/dkms script. This function doesn't evaluate to 0 as it - should, when all conditions are met (as with the command specified - above). + [Impact] + This bug makes it impossible to uninstall DKMS modules. When trying to uninstall a DKMS module using "dkms uninstall -m my_module -v 1.1" dkms fails with exit code 1 and doesn't print an error message. The commands "dkms uninstall -m my_module -v 1.1 --all" and "dkms uninstall -m my_module -v 1.1 -k 3.2.0-57 -k 3.5.0-44" fail as expected with the resp. error messages and exit codes in function "have_one_kernel". + + The proposed patch is a backport from upstream. + + + [Test Case] + A test script has been added in comment https://bugs.launchpad.net/debian/+source/dkms/+bug/1261116/comments/8. + + To reproduce the bug: + 1. Take any dkms package. + 2. Copy the package into the dkms src folder /usr/src/<package_name>-<package_version>. + <package_name> and <package_version> can be found in dkms.conf in the package. + 3. Add the dkms module: + dkms add -m <package_name> -v <package_version> + 4. Build the dkms module: + dkms build -m <package_name> -v <package_version> + 5. Install the dkms module: + dkms install -m <package_name> -v <package_version> + 6. Try to uninstall the dkms module: + dkms uninstall -m <package_name> -v <package_version> + Here, dkms fails with exit code 1 and without emitting an error message. + + + [Regression Potential] + All client code that uses the "dkms uninstall" command and relies on it failing are candidates for regressions.
** Description changed: - [Impact] + [Impact] This bug makes it impossible to uninstall DKMS modules. When trying to uninstall a DKMS module using "dkms uninstall -m my_module -v 1.1" dkms fails with exit code 1 and doesn't print an error message. The commands "dkms uninstall -m my_module -v 1.1 --all" and "dkms uninstall -m my_module -v 1.1 -k 3.2.0-57 -k 3.5.0-44" fail as expected with the resp. error messages and exit codes in function "have_one_kernel". The proposed patch is a backport from upstream. - [Test Case] A test script has been added in comment https://bugs.launchpad.net/debian/+source/dkms/+bug/1261116/comments/8. To reproduce the bug: 1. Take any dkms package. 2. Copy the package into the dkms src folder /usr/src/<package_name>-<package_version>. - <package_name> and <package_version> can be found in dkms.conf in the package. + <package_name> and <package_version> can be found in dkms.conf in the package. 3. Add the dkms module: - dkms add -m <package_name> -v <package_version> + dkms add -m <package_name> -v <package_version> 4. Build the dkms module: - dkms build -m <package_name> -v <package_version> + dkms build -m <package_name> -v <package_version> 5. Install the dkms module: - dkms install -m <package_name> -v <package_version> + dkms install -m <package_name> -v <package_version> 6. Try to uninstall the dkms module: - dkms uninstall -m <package_name> -v <package_version> - Here, dkms fails with exit code 1 and without emitting an error message. + dkms uninstall -m <package_name> -v <package_version> + Here, dkms fails with exit code 1 and without emitting an error message. - - [Regression Potential] - All client code that uses the "dkms uninstall" command and relies on it failing are candidates for regressions. + [Regression Potential] + All client code that uses the "dkms uninstall" command and relies on it failing is a candidate for regression. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to dkms in Ubuntu. https://bugs.launchpad.net/bugs/1261116 Title: dkms uninstall fails unexpectedly without error message Status in “dkms” package in Ubuntu: Fix Released Status in “dkms” source package in Precise: Fix Committed Status in “dkms” source package in Quantal: Won't Fix Status in “dkms” source package in Raring: New Status in “dkms” source package in Saucy: New Status in “dkms” source package in Trusty: Fix Released Status in “dkms” package in Debian: New Bug description: [Impact] This bug makes it impossible to uninstall DKMS modules. When trying to uninstall a DKMS module using "dkms uninstall -m my_module -v 1.1" dkms fails with exit code 1 and doesn't print an error message. The commands "dkms uninstall -m my_module -v 1.1 --all" and "dkms uninstall -m my_module -v 1.1 -k 3.2.0-57 -k 3.5.0-44" fail as expected with the resp. error messages and exit codes in function "have_one_kernel". The proposed patch is a backport from upstream. [Test Case] A test script has been added in comment https://bugs.launchpad.net/debian/+source/dkms/+bug/1261116/comments/8. To reproduce the bug: 1. Take any dkms package. 2. Copy the package into the dkms src folder /usr/src/<package_name>-<package_version>. <package_name> and <package_version> can be found in dkms.conf in the package. 3. Add the dkms module: dkms add -m <package_name> -v <package_version> 4. Build the dkms module: dkms build -m <package_name> -v <package_version> 5. Install the dkms module: dkms install -m <package_name> -v <package_version> 6. Try to uninstall the dkms module: dkms uninstall -m <package_name> -v <package_version> Here, dkms fails with exit code 1 and without emitting an error message. [Regression Potential] All client code that uses the "dkms uninstall" command and relies on it failing is a candidate for regression. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dkms/+bug/1261116/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp