Skip to content

Commit

Permalink
UBUNTU: [Packaging] add versioning to dkms standalone rprovides
Browse files Browse the repository at this point in the history
When nvidia-fs-dkms is available as a dkms package, we want to
default to using the signed modules if possible.  Adding
a version number for the nvidia-fs modules package enables the inbox
modules to be selected over an equivalent dkms version.

Ignore: yes
Signed-off-by: Ian May <[email protected]>
  • Loading branch information
ianmay81 authored and jacobmartin0 committed Dec 9, 2024
1 parent 3a6a867 commit 34a7d34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ clean: debian/control debian/canonical-certs.pem debian/canonical-revoked-certs.

# SUBSTVARS: rprovides for all DKMS packages
echo "linux:rprovides=$(foreach dkms,$(all_built-in_dkms_modules),$(foreach provides,$(dkms_$(dkms)_rprovides),$(provides)$(comma)))" >"debian/substvars"
echo "$(foreach dkms,$(all_standalone_dkms_modules),$(dkms):rprovides=$(foreach provides,$(dkms_$(dkms)_rprovides),$(provides)$(comma))=NL=)" | sed -e "s/=NL= */\n/g" >>"debian/substvars"
echo "$(foreach dkms,$(all_standalone_dkms_modules),$(dkms):rprovides=$(strip $(foreach provides,$(dkms_$(dkms)_rprovides),$(provides)$(comma)))=NL=)" | sed -e 's/~(/ (/g' -e 's/, (/ (/g' -e 's/=NL= */\n/g' >>"debian/substvars"

.PHONY: distclean
distclean: clean
Expand Down
3 changes: 2 additions & 1 deletion debian/rules.d/0-common-vars.mk
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,8 @@ $(foreach _line,$(shell gawk '{ OFS = "!"; $$1 = $$1; print }' $(DEBIAN)/dkms-ve
, \
$(eval dkms_$(_m)_archs = any) \
) \
$(eval dkms_$(_m)_rprovides = $(patsubst rprovides=%,%,$(filter rprovides=%,$(_params)))) \
$(eval _rprovides_raw = $(filter rprovides=%,$(_params))) \
$(eval dkms_$(_m)_rprovides = $(patsubst rprovides=%,%,$(_rprovides_raw))) \
$(eval dkms_$(_m)_type = $(word 1,$(patsubst type=%,%,$(filter type=%,$(_params))) built-in)) \
$(eval all_$(dkms_$(_m)_type)_dkms_modules += $(_m)) \
$(if $(filter standalone,$(dkms_$(_m)_type)), \
Expand Down

0 comments on commit 34a7d34

Please sign in to comment.