Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fedora: multi-flavor support in kmod rpm spec #169

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

gmmephisto
Copy link

What's new:

  • added support for building kmod in isolated environment (in chroot using mock)
  • added ability to build kmod for several kernel flavors (can be specified with -D 'kflavors default ...')

Fixes:

  • fix incorrect override command in depmod config:
    • before:

      override * * extra
      override * * weak-updates
      
    • after:

      override vport-gre * extra/openvswitch
      override vport-gre * weak-updates/openvswitch
      override vport-lisp * extra/openvswitch
      override vport-lisp * weak-updates/openvswitch
      override openvswitch * extra/openvswitch
      override openvswitch * weak-updates/openvswitch
      override vport-geneve * extra/openvswitch
      override vport-geneve * weak-updates/openvswitch
      override vport-vxlan * extra/openvswitch
      override vport-vxlan * weak-updates/openvswitch
      override vport-stt * extra/openvswitch
      override vport-stt * weak-updates/openvswitch
      
  • fix mixed tabs and spaces in spec file

Signed-off-by: Mikhail Ushanov <gm.mephisto@gmail.com>
Signed-off-by: Mikhail Ushanov <gm.mephisto@gmail.com>
Signed-off-by: Mikhail Ushanov <gm.mephisto@gmail.com>
@russellb
Copy link
Contributor

@leifmadsen would you like to try this out? I figured you might be interested in the mock support.

@russellb
Copy link
Contributor

I got this error on my first try building this on Fedora:

line 29: Dependency tokens must begin with alpha-numeric, '_' or '/': BuildRequires: %kernel_module_package_buildreqs

What am I missing? My first google hit made it sound like this may be a SuSE thing perhaps? Where are you running this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants