UBUNTU: [Packaging] dkms: increase directory prefix max length to 140 characters
With longer kernel names (such as linux-lowlatency-hwe-5.15) we may exceed the dkms directory prefix limit of 100 characters, used when we build zfs for example. Simply increse this limit to 140 to prevent dkms from multiple flavours clashing on each other. Ignore: yes (backported from focal:linux-lowlatency-hwe-5.15) Signed-off-by: Stefan Bader <stefan.bader@canonical.com> Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
This commit is contained in:
committed by
Paolo Pisati
parent
acd6bbf177
commit
f95079889e
Vendored
+5
-5
@@ -87,15 +87,15 @@ define install_control =
|
||||
done
|
||||
endef
|
||||
|
||||
# Ensure the directory prefix is exactly 100 characters long so pathnames are the
|
||||
# Ensure the directory prefix is exactly 140 characters long so pathnames are the
|
||||
# exact same length in any binary files produced by the builds. These will be
|
||||
# commonised later.
|
||||
dkms_20d=....................
|
||||
dkms_100d=$(dkms_20d)$(dkms_20d)$(dkms_20d)$(dkms_20d)$(dkms_20d)
|
||||
dkms_100c=$(shell echo '$(dkms_100d)' | sed -e 's/\./_/g')
|
||||
dkms_140d=$(dkms_20d)$(dkms_20d)$(dkms_20d)$(dkms_20d)$(dkms_20d)$(dkms_20d)$(dkms_20d)
|
||||
dkms_140c=$(shell echo '$(dkms_140d)' | sed -e 's/\./_/g')
|
||||
define dkms_dir_prefix =
|
||||
$(shell echo $(1)/$(dkms_100c) | \
|
||||
sed -e 's/\($(dkms_100d)\).*/\1/' -e 's/^\(.*\)....$$/\1dkms/')
|
||||
$(shell echo $(1)/$(dkms_140c) | \
|
||||
sed -e 's/\($(dkms_140d)\).*/\1/' -e 's/^\(.*\)....$$/\1dkms/')
|
||||
endef
|
||||
|
||||
# Install the finished build
|
||||
|
||||
Reference in New Issue
Block a user