summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRich Ercolani <[email protected]>2023-04-17 20:38:09 -0400
committerGitHub <[email protected]>2023-04-17 17:38:09 -0700
commit8ed62440eff5a3ea93b0a9b6f0b7e5e7290b667a (patch)
treec000de6960322bf097bb562a99894e5c4f76f1da
parent3b5af2013992231645e0a462eef4171d1c48de17 (diff)
Work around Raspberry Pi kernel packaging oddities
On Debian and Ubuntu and friends, you get something like "linux-image-$(uname -r)" and "linux-headers-$(uname -r)" you can put a Depends on. On Raspberry Pi OS, you get "raspberrypi-kernel" and "raspberrypi-kernel-headers", with version numbers like 20230411. There is not, as far as I can tell, a reasonable way to map that to a kernel version short of reaching out and digging around in the changelogs or Makefile, so just special-case it so the packages don't fail to install at install time. They still might not build if the versions don't match, but I don't see a way to do anything about that... Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Rich Ercolani <[email protected]> Closes #14745 Closes #14747
-rw-r--r--contrib/debian/control.modules.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/debian/control.modules.in b/contrib/debian/control.modules.in
index 70a165266..34eb7fafb 100644
--- a/contrib/debian/control.modules.in
+++ b/contrib/debian/control.modules.in
@@ -5,7 +5,7 @@ Maintainer: ZFS on Linux specific mailing list <[email protected]>
Build-Depends: debhelper-compat (= 10),
dkms (>> 2.1.1.2-5),
libtool,
- linux-headers-_KVERS_
+ linux-headers-_KVERS_ | raspberrypi-kernel-headers
Standards-Version: 4.3.0
Homepage: http://www.openzfs.org/
Vcs-Git: https://github.com/openzfs/zfs.git
@@ -14,7 +14,7 @@ Vcs-Browser: https://github.com/openzfs/zfs
Package: openzfs-zfs-modules-_KVERS_
Architecture: _ARCH_
Provides: openzfs-zfs-modules
-Depends: linux-image-_KVERS_
+Depends: linux-image-_KVERS_ | raspberrypi-kernel
Recommends: openzfsutils
Replaces: zfs-modules-_KVERS_
Conflicts: zfs-modules-_KVERS_