Bug 653170
Summary: | kmodtool %preun scriptlet fails when uninstalling kmod packages | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Phil Perry <phil> |
Component: | redhat-rpm-config | Assignee: | Jon Masters <jcm> |
Status: | CLOSED NOTABUG | QA Contact: | Milos Malik <mmalik> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.0 | CC: | ajb, amyagi, coughlan, jcm, mmalik, pasteur, phil, toracat |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-02-04 12:52:42 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Phil Perry
2010-11-14 21:25:02 UTC
Are you using the %kernel_module_package RPM macro to build your package? No, I'm just building with rpmbuild as we do on RHEL5: rpmbuild -ba --target=`uname -m` foo.spec Looking in the %kernel_module_package RPM macro, I see %{kmod_version} and %{kmod_release} are defined there so that is probably my mistake. Thanks for the heads up. No problem. I see you pinged me on IRC earlier. I apologize that I missed you. I have been operating on various timezones over the past few days (not physically, just long hours). Please do ping me again Thu or Fri afternoon. No worries Jon - just wanted to run this past you before filing a bug if you were around. As I didn't explain very well above, we are still calling kmodtool's rpmtemplate in our SPEC file for RHEL6 builds, much like we did for RHEL5, hence why %{kmod_version} and %{kmod_release} throw up errors when the %preun scriptlet is run. %{expand:%(%{kmodtool} rpmtemplate %{kmod_name} %{kversion} %{kvariants} 2>/dev/null)} I hope to get some time this weekend to take a closer look at the %kernel_module_package macro. I meant to say before, I don't consider this a bug. As I mentioned, those two macros: %kmod_version and %kmod_release are defined as a result of using %kernel_module_package. We have since spoken by email about RHEL6, and the process of using these macros. So, I'm going to close this bug now and then we can discuss the best way for you to use the RHEL6 macros. If you don't want to switch to %kernel_module_package (yet), then you can of course just define those two macros yourself for now (and for "legacy" RHEL6 packages that already might exist). Jon. |