2018-02-21 11:32:32 +03:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2016-10-13 16:13:55 +03:00
|
|
|
From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= <f.gruenbichler@proxmox.com>
|
|
|
|
Date: Wed, 12 Oct 2016 10:57:39 +0200
|
2017-12-19 14:48:44 +03:00
|
|
|
Subject: [PATCH] remove DKMS and module build
|
2017-02-06 14:34:48 +03:00
|
|
|
MIME-Version: 1.0
|
|
|
|
Content-Type: text/plain; charset=UTF-8
|
|
|
|
Content-Transfer-Encoding: 8bit
|
2016-10-13 16:13:55 +03:00
|
|
|
|
2017-02-06 14:34:48 +03:00
|
|
|
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
2018-10-30 13:14:24 +03:00
|
|
|
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
|
2016-10-13 16:13:55 +03:00
|
|
|
---
|
2017-07-27 13:14:03 +03:00
|
|
|
debian/control | 1 -
|
2018-05-22 10:18:04 +03:00
|
|
|
debian/control.in | 31 -------------------------
|
2018-10-30 13:14:24 +03:00
|
|
|
debian/rules | 67 +------------------------------------------------------
|
|
|
|
3 files changed, 1 insertion(+), 98 deletions(-)
|
2017-02-06 14:34:48 +03:00
|
|
|
|
2018-05-22 10:18:04 +03:00
|
|
|
diff --git a/debian/control b/debian/control
|
2018-10-30 13:14:24 +03:00
|
|
|
index d83f962..f780c80 100644
|
2018-05-22 10:18:04 +03:00
|
|
|
--- a/debian/control
|
|
|
|
+++ b/debian/control
|
2018-10-30 13:14:24 +03:00
|
|
|
@@ -9,7 +9,6 @@ Build-Depends: autogen,
|
2018-05-22 10:18:04 +03:00
|
|
|
autotools-dev,
|
|
|
|
debhelper (>= 9),
|
|
|
|
dh-autoreconf,
|
|
|
|
- dkms (>> 2.2.0.2-1~),
|
|
|
|
libtool
|
|
|
|
Standards-Version: 4.1.2
|
|
|
|
Homepage: http://www.zfsonlinux.org/
|
2016-10-13 16:13:55 +03:00
|
|
|
diff --git a/debian/control.in b/debian/control.in
|
2018-10-30 13:14:24 +03:00
|
|
|
index 0e6c3fc..c8fe170 100644
|
2016-10-13 16:13:55 +03:00
|
|
|
--- a/debian/control.in
|
|
|
|
+++ b/debian/control.in
|
2018-10-30 13:14:24 +03:00
|
|
|
@@ -9,47 +9,16 @@ Build-Depends: autogen,
|
2016-10-13 16:13:55 +03:00
|
|
|
autotools-dev,
|
|
|
|
debhelper (>= 9),
|
|
|
|
dh-autoreconf,
|
|
|
|
- dkms (>> 2.2.0.2-1~),
|
|
|
|
libtool
|
2017-12-19 14:48:44 +03:00
|
|
|
Standards-Version: 4.1.2
|
2016-10-13 16:13:55 +03:00
|
|
|
Homepage: http://www.zfsonlinux.org/
|
2018-10-30 13:14:24 +03:00
|
|
|
Vcs-Git: https://salsa.debian.org/zfsonlinux-team/spl.git
|
2018-04-03 15:16:16 +03:00
|
|
|
Vcs-Browser: https://salsa.debian.org/zfsonlinux-team/spl
|
2015-04-14 11:21:59 +03:00
|
|
|
|
|
|
|
-Package: spl-dkms
|
|
|
|
-Architecture: all
|
2018-04-03 15:16:16 +03:00
|
|
|
-Depends: dkms (>> 2.2.1.0),
|
|
|
|
- file,
|
|
|
|
- libc-dev,
|
|
|
|
- libelf-dev,
|
|
|
|
- lsb-release,
|
|
|
|
- ${misc:Depends}
|
2018-05-22 10:18:04 +03:00
|
|
|
-Suggests: spl (>= ${source:Upstream-Version}),
|
2018-04-03 15:16:16 +03:00
|
|
|
- @LINUX_COMPAT@
|
2018-05-22 10:18:04 +03:00
|
|
|
-Conflicts: spl (<< 0.7.9~)
|
2015-04-14 11:21:59 +03:00
|
|
|
-Provides: spl-modules
|
|
|
|
-Description: Solaris Porting Layer kernel modules for Linux
|
|
|
|
- The Solaris Porting Layer (SPL) is a Linux kernel module which provides
|
|
|
|
- many of the Solaris kernel APIs. This shim layer makes it possible to
|
|
|
|
- run Solaris kernel code in the Linux kernel with relatively minimal
|
|
|
|
- modification. The Solaris Porting LAyer Tests (SPLAT) is a Linux kernel
|
|
|
|
- module which provides a testing harness for the SPL module.
|
|
|
|
- .
|
|
|
|
- SPL can be particularly useful when you want to track upstream Illumos
|
|
|
|
- (or any other OpenSolaris fork) development closely and don't want the
|
|
|
|
- overhead of maintaining a large patch which converts Solaris primitives
|
|
|
|
- to Linux primitives.
|
|
|
|
- .
|
|
|
|
- This package contains the source code for the SPL and SPLAT Linux kernel
|
|
|
|
- modules, which can be used with DKMS, so that local kernel modules are
|
|
|
|
- automatically built and installed every time the kernel packages are
|
|
|
|
- upgraded.
|
|
|
|
-
|
|
|
|
Package: spl
|
|
|
|
Architecture: linux-any
|
2016-10-13 16:13:55 +03:00
|
|
|
Conflicts: spl-dev, splat
|
|
|
|
Depends: ${misc:Depends}, ${shlibs:Depends}
|
2015-04-14 11:21:59 +03:00
|
|
|
-Recommends: spl-modules | spl-dkms
|
|
|
|
Description: Solaris Porting Layer user-space utilities for Linux
|
|
|
|
The Solaris Porting Layer (SPL) is a Linux kernel module which provides
|
|
|
|
many of the Solaris kernel APIs. This shim layer makes it possible to
|
2016-10-13 16:13:55 +03:00
|
|
|
diff --git a/debian/rules b/debian/rules
|
2018-10-30 13:14:24 +03:00
|
|
|
index 72ded49..5abeebb 100755
|
2016-10-13 16:13:55 +03:00
|
|
|
--- a/debian/rules
|
|
|
|
+++ b/debian/rules
|
2018-10-30 13:14:24 +03:00
|
|
|
@@ -14,11 +14,8 @@ ifndef KVERS
|
2016-10-13 16:13:55 +03:00
|
|
|
KVERS=$(shell uname -r)
|
2015-07-21 12:16:26 +03:00
|
|
|
endif
|
|
|
|
|
2016-10-13 16:13:55 +03:00
|
|
|
-non_epoch_version=$(shell echo $(KVERS) | perl -pe 's/^\d+://')
|
2018-10-30 13:14:24 +03:00
|
|
|
-pmodules = $(NAME)-modules-$(non_epoch_version)
|
2016-10-13 16:13:55 +03:00
|
|
|
-
|
2015-04-14 11:21:59 +03:00
|
|
|
%:
|
2016-10-13 16:13:55 +03:00
|
|
|
- dh $@ --with dkms,autoreconf --parallel
|
|
|
|
+ dh $@ --with autoreconf --parallel
|
2015-04-14 11:21:59 +03:00
|
|
|
|
2016-10-13 16:13:55 +03:00
|
|
|
override_dh_auto_configure:
|
2018-10-30 13:14:24 +03:00
|
|
|
sed "s/@LINUX_COMPAT@/linux-libc-dev \(<< $(LINUX_NEXT)~\)/" debian/control.in > debian/control
|
|
|
|
@@ -44,69 +41,7 @@ override_dh_auto_install:
|
2016-10-13 16:13:55 +03:00
|
|
|
@# This creates the $(CURDIR)/$(NAME)-$(VERSION)/ tree.
|
|
|
|
$(MAKE) distdir
|
2015-04-14 11:21:59 +03:00
|
|
|
|
|
|
|
- @# This shunt allows DKMS to install the Module.symvers and spl_config.h
|
|
|
|
- @# files to the ${dkms_tree} area through the POST_INSTALL directive.
|
2016-10-13 16:13:55 +03:00
|
|
|
- echo '#!/bin/sh' >'$(CURDIR)/$(NAME)-$(VERSION)/cp'
|
|
|
|
- echo 'cp "$$@"' >>'$(CURDIR)/$(NAME)-$(VERSION)/cp'
|
|
|
|
- chmod 755 '$(CURDIR)/$(NAME)-$(VERSION)/cp'
|
|
|
|
-
|
|
|
|
- # Install the DKMS source.
|
|
|
|
- mkdir -p '$(CURDIR)/debian/tmp/usr/src/'
|
|
|
|
- mv '$(CURDIR)/$(NAME)-$(VERSION)' '$(CURDIR)/debian/tmp/usr/src/'
|
|
|
|
-
|
|
|
|
-override_dh_dkms:
|
|
|
|
- dh_dkms -V $(VERSION)
|
|
|
|
-
|
|
|
|
override_dh_auto_clean:
|
|
|
|
dh_auto_clean
|
|
|
|
@if test -e META.orig; then mv META.orig META; fi
|
2018-10-30 13:14:24 +03:00
|
|
|
sed "s/@LINUX_COMPAT@/linux-libc-dev \(<< $(LINUX_NEXT)~\)/" debian/control.in > debian/control
|
2016-10-13 16:13:55 +03:00
|
|
|
-
|
|
|
|
-# ------------
|
|
|
|
-
|
|
|
|
-override_dh_prep-deb-files:
|
|
|
|
- for templ in $(wildcard $(CURDIR)/debian/*_KVERS_*.in); do \
|
|
|
|
- sed -e 's/##KVERS##/$(KVERS)/g ; s/#KVERS#/$(KVERS)/g ; s/_KVERS_/$(KVERS)/g ; s/##KDREV##/$(KDREV)/g ; s/#KDREV#/$(KDREV)/g ; s/_KDREV_/$(KDREV)/g ; s/_ARCH_/$(DEB_HOST_ARCH)/g' \
|
|
|
|
- < $$templ > `echo $$templ | sed -e 's/_KVERS_/$(KVERS)/g ; s/_ARCH_/$(DEB_HOST_ARCH)/g ; s/\.in$$//'` ; \
|
|
|
|
- done
|
|
|
|
- sed -e 's/##KVERS##/$(KVERS)/g ; s/#KVERS#/$(KVERS)/g ; s/_KVERS_/$(KVERS)/g ; s/##KDREV##/$(KDREV)/g ; s/#KDREV#/$(KDREV)/g ; s/_KDREV_/$(KDREV)/g ; s/_ARCH_/$(DEB_HOST_ARCH)/g' \
|
|
|
|
- < debian/control.modules.in > debian/control
|
|
|
|
-
|
|
|
|
-override_dh_configure_modules: override_dh_configure_modules_stamp
|
|
|
|
-override_dh_configure_modules_stamp:
|
|
|
|
- ./configure --with-config=kernel --with-linux=$(KSRC) \
|
|
|
|
- --with-linux-obj=$(KOBJ) \
|
|
|
|
- --disable-debug-kmem
|
|
|
|
- touch override_dh_configure_modules_stamp
|
|
|
|
-
|
|
|
|
-override_dh_binary-modules-udeb: override_dh_prep-deb-files override_dh_configure_modules
|
|
|
|
- dh_testdir
|
|
|
|
- dh_testroot
|
|
|
|
- dh_prep
|
|
|
|
-
|
|
|
|
- $(MAKE) -C $(CURDIR)/module modules
|
|
|
|
-
|
|
|
|
- dh_installdirs -p${pmodules}-di
|
|
|
|
- dh_install -p${pmodules}-di
|
|
|
|
- dh_gencontrol -p${pmodules}-di
|
|
|
|
-
|
|
|
|
- dh_builddeb -p${pmodules}-di
|
|
|
|
-
|
|
|
|
-override_dh_binary-modules: override_dh_prep-deb-files override_dh_configure_modules
|
|
|
|
- dh_testdir
|
|
|
|
- dh_testroot
|
|
|
|
- dh_prep
|
|
|
|
-
|
|
|
|
- $(MAKE) -C $(CURDIR)/module modules
|
|
|
|
-
|
|
|
|
- dh_installdocs -p${pmodules}
|
|
|
|
- dh_install -p${pmodules}
|
|
|
|
- dh_installchangelogs -p${pmodules}
|
|
|
|
- dh_compress -p${pmodules}
|
|
|
|
- dh_strip -p${pmodules}
|
|
|
|
- dh_fixperms -p${pmodules}
|
|
|
|
- dh_installdeb -p${pmodules}
|
|
|
|
- dh_gencontrol -p${pmodules}
|
|
|
|
- dh_md5sums -p${pmodules}
|
|
|
|
-
|
|
|
|
- dh_builddeb -p${pmodules}
|