mirror of
https://git.proxmox.com/git/mirror_spl-debian
synced 2025-10-05 05:42:15 +00:00
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:
parent
3b02d3c04d
commit
1cd9ef4f0f
1
debian/control
vendored
1
debian/control
vendored
@ -24,6 +24,7 @@ Depends: dkms (>> 2.2.1.0),
|
|||||||
lsb-release,
|
lsb-release,
|
||||||
${misc:Depends}
|
${misc:Depends}
|
||||||
Recommends: spl (>= ${source:Upstream-Version}),
|
Recommends: spl (>= ${source:Upstream-Version}),
|
||||||
|
linux-libc-dev (< 4.16)
|
||||||
Provides: spl-modules
|
Provides: spl-modules
|
||||||
Description: Solaris Porting Layer kernel modules for Linux
|
Description: Solaris Porting Layer kernel modules for Linux
|
||||||
The Solaris Porting Layer (SPL) is a Linux kernel module which provides
|
The Solaris Porting Layer (SPL) is a Linux kernel module which provides
|
||||||
|
8
debian/get_next.sh
vendored
Executable file
8
debian/get_next.sh
vendored
Executable 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
1
debian/linux_compat
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
4.15
|
4
debian/rules
vendored
4
debian/rules
vendored
@ -22,7 +22,7 @@ pmodules = $(PACKAGE)-modules-$(non_epoch_version)
|
|||||||
dh $@ --with dkms,autoreconf --parallel
|
dh $@ --with dkms,autoreconf --parallel
|
||||||
|
|
||||||
override_dh_auto_configure:
|
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.
|
@# Embed the downstream version in the module.
|
||||||
@sed \
|
@sed \
|
||||||
@ -61,7 +61,7 @@ override_dh_dkms:
|
|||||||
override_dh_auto_clean:
|
override_dh_auto_clean:
|
||||||
dh_auto_clean
|
dh_auto_clean
|
||||||
@if test -e META.orig; then mv META.orig META; fi
|
@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
|
||||||
|
|
||||||
# ------------
|
# ------------
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user