HomeFreeBSD

Fix various generic kmod RPM spec issues.

Description

Fix various generic kmod RPM spec issues.

There are a number of issues with the generic kmod RPM spec in its
current state:

  • The "%{id_u}" macro seems to not be available on some systems (e.g. Debian squeeze). It appears it has been deprecated. Use "${id} -u" instead.
  • The way the "--with-linux=" configure option is generated in the non-RHEL/Fedora case is completely wrong with various newline and escaping issues (also, $kernel_version is not available in the generator context).

The second issue made the generator shell snippet (almost) silently
fail, which under specific circumstances can result in broken builds
against the wrong kernel sources.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1416

Details

Provenance
Etienne Dechamps <etienne@edechamps.fr>Authored on Apr 21 2013, 7:03 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Apr 24 2013, 11:18 PM
Parents
rGf706421173c5: Correctly return ERANGE in getxattr(2)
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGc4933aade7ec: Fix various generic kmod RPM spec issues. (authored by Etienne Dechamps <etienne@edechamps.fr>).Apr 24 2013, 11:18 PM