Recommends: linux-libc-dev (< ${LINUX_NEXT})

This tries to prevent unexpected upgrades of kernel that is not known
to be supported by the packaged version of ZFS/SPL.
This commit is contained in:
Aron Xu 2018-02-26 18:23:49 +08:00
parent 3b02d3c04d
commit 1cd9ef4f0f
4 changed files with 12 additions and 2 deletions

1
debian/control vendored
View File

@ -24,6 +24,7 @@ Depends: dkms (>> 2.2.1.0),
lsb-release,
${misc:Depends}
Recommends: spl (>= ${source:Upstream-Version}),
linux-libc-dev (< 4.16)
Provides: spl-modules
Description: Solaris Porting Layer kernel modules for Linux
The Solaris Porting Layer (SPL) is a Linux kernel module which provides

8
debian/get_next.sh vendored Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
SUPPORT=$(cat debian/linux_compat)
MAJOR=$(echo $SUPPORT|cut -d'.' -f1)
MINOR=$(echo $SUPPORT|cut -d'.' -f2)
NEXT=$((MINOR+1))
echo "${MAJOR}.${NEXT}"

1
debian/linux_compat vendored Normal file
View File

@ -0,0 +1 @@
4.15

4
debian/rules vendored
View File

@ -22,7 +22,7 @@ pmodules = $(PACKAGE)-modules-$(non_epoch_version)
dh $@ --with dkms,autoreconf --parallel
override_dh_auto_configure:
@cp debian/control.in debian/control
sed "s/@LINUX_COMPAT@/linux-libc-dev \(< $(shell debian/get_next.sh)\)/" debian/control.in > debian/control
@# Embed the downstream version in the module.
@sed \
@ -61,7 +61,7 @@ override_dh_dkms:
override_dh_auto_clean:
dh_auto_clean
@if test -e META.orig; then mv META.orig META; fi
cp debian/control.in debian/control
sed "s/@LINUX_COMPAT@/linux-libc-dev \(< $(shell debian/get_next.sh)\)/" debian/control.in > debian/control
# ------------