]> git.proxmox.com Git - zfsonlinux.git/blame - zfs-patches/fix-control.patch
use packages from github
[zfsonlinux.git] / zfs-patches / fix-control.patch
CommitLineData
e37bd2eb
DM
1Index: new-zfs/debian/control.in
2===================================================================
3--- new-zfs.orig/debian/control.in 2015-04-12 14:06:48.000000000 +0200
4+++ new-zfs/debian/control.in 2015-04-12 17:24:36.000000000 +0200
5@@ -88,36 +88,9 @@
6 .
7 This zpool library provides support for managing zpools.
8
9-Package: zfs-dkms
10-Architecture: all
11-Pre-Depends: spl-dkms
12-Depends: dkms (>> 2.1.1.2-5), lsb-release, ${misc:Depends}, file
13-Recommends: zfsutils
14-Replaces: lzfs, lzfs-dkms
15-Provides: lustre-backend-fs, lzfs, lzfs-dkms, zfs-modules
16-Conflicts: lzfs, lzfs-dkms
17-Description: Native ZFS filesystem kernel modules for Linux
18- The Z file system is a pooled filesystem designed for maximum data
19- integrity, supporting data snapshots, multiple copies, and data
20- checksums.
21- .
22- This DKMS package includes the SPA, DMU, ZVOL, and ZPL components of ZFS.
23-
24-Package: zfs-dracut
25-Section: utils
26-Architecture: linux-any
27-Depends: dracut, zfs-modules | zfs-dkms, zfsutils, ${misc:Depends}
28-Description: Native ZFS root filesystem capabilities for Linux
29- The Z file system is a pooled filesystem designed for maximum data
30- integrity, supporting data snapshots, multiple copies, and data
31- checksums.
32- .
33- This package adds ZFS to the system initramfs with a hook
34- for the dracut infrastructure.
35-
36 Package: zfs-initramfs
37 Architecture: linux-any
38-Depends: initramfs-tools, zfs-modules | zfs-dkms, zfsutils, ${misc:Depends}
39+Depends: initramfs-tools, zfsutils, ${misc:Depends}
40 Description: Native ZFS root filesystem capabilities for Linux
41 The Z file system is a pooled filesystem designed for maximum data
42 integrity, supporting data snapshots, multiple copies, and data
43@@ -130,7 +103,6 @@
44 Section: admin
45 Architecture: linux-any
46 Depends: initscripts, lsb-base, python, ${misc:Depends}, ${shlibs:Depends}
47-Recommends: zfs-modules | zfs-dkms
48 Suggests: nfs-kernel-server, samba-common-bin (>= 3.0.23), zfs-initramfs
49 Conflicts: zfs, zfs-fuse
50 Replaces: zfs
51Index: new-zfs/debian/rules
52===================================================================
53--- new-zfs.orig/debian/rules 2015-04-12 14:06:48.000000000 +0200
54+++ new-zfs/debian/rules 2015-04-12 17:18:04.000000000 +0200
55@@ -24,13 +24,11 @@
56 endif
57
58 ifndef SPL
59-SPLSRC=/usr/src/spl-$(VERSION)
60+SPLSRC=../pkg-spl
61 endif
62
63 CFG_OPTS=--without-selinux \
64- --with-linux=$(KSRC) \
65- --with-linux-obj=$(KOBJ) \
66- --with-spl=$(SPLSRC)
67+ --with-config=user
68
69 non_epoch_version=$(shell echo $(KVERS) | perl -pe 's/^\d+://')
70 PACKAGE=zfs
71@@ -44,15 +42,9 @@
72 dh $@ --with dkms --parallel
73
74 override_dh_prep-base-deb-files:
75- sed -e 's/##SHLIB_MAJOR##/$(SHLIB_MAJOR)/g ; s/##MODULES_BUILD_DEPENDS##/linux-headers-$(KVERS)-common, linux-headers-$(KVERS)-$(DEB_HOST_ARCH), spl-dkms/g' \
76+ sed -e 's/##SHLIB_MAJOR##/$(SHLIB_MAJOR)/g ; s/##MODULES_BUILD_DEPENDS##/pve-headers-$(KVERS)/g' \
77 < debian/control.in > debian/control
78
79- sed -e 's/##SHLIB_MAJOR##/$(SHLIB_MAJOR)/g' \
80- < debian/control.udeb.in >> debian/control
81-
82- 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 ; s/_IMGVER_/$(KIMGVER)/g' \
83- < debian/control.modules.in >> debian/control
84-
85 for templ in $(wildcard $(CURDIR)/debian/*_SHLIB_MAJOR_*.in); do \
86 cat $$templ > `echo $$templ | sed -e 's/_SHLIB_MAJOR_/$(SHLIB_MAJOR)/g ; s/\.in$$//'`; \
87 done
88@@ -89,42 +81,6 @@
89 @# Install the utilities.
90 $(MAKE) install DESTDIR='$(CURDIR)/debian/tmp'
91
92- @# Get a bare copy of the source code for DKMS.
93- @# This creates the $(CURDIR)/$(NAME)-$(VERSION)/ tree, which does not
94- @# contain the userland sources. NB: Remove-userland-dist-rules.patch
95- $(MAKE) distdir
96-
97- @# Install the DKMS source.
98- @# We only want the files needed to build the modules
99- mkdir -p '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(VERSION)'
100- touch '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(VERSION)/.nogitrelease'
101- cp '$(CURDIR)/autogen.sh' '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(VERSION)/'
102- ( for d in include module config; do \
103- rm -Rf $(CURDIR)/debian/tmp/usr/src/$(NAME)-$(VERSION)/$$d; \
104- done)
105- $(foreach file,$(DKMSFILES),mv '$(CURDIR)/$(NAME)-$(VERSION)/$(file)' '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(VERSION)' || exit 1;)
106- @# Hellish awk line:
107- @# * Deletes from configure.ac the parts not needed for building the kernel module
108- @# * It deletes from inside AC_CONFIG_FILES([]) everything except:
109- @# (Makefile$|include/|module/|*.release$)
110- @# * Takes care of spaces and tabs
111- awk '/^AC_CONFIG_FILES\(\[/,/^\]\)/ { if ($$0 !~ /^(AC_CONFIG_FILES\(\[([ \t]+)?$$|\]\)([ \t]+)?$$|([ \t]+)?(include\/|module\/|Makefile([ \t]+)?$$|zfs\.release([ \t]+)?$$))/){next} } {print}' \
112- '$(CURDIR)/$(NAME)-$(VERSION)/configure.ac' > '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(VERSION)/configure.ac'
113- @# Set "SUBDIRS = module include" for CONFIG_KERNEL and remove SUBDIRS for all other configs.
114- sed '1,/CONFIG_KERNEL/s/SUBDIRS.*=.*//g;s/SUBDIRS.*=.*/SUBDIRS = module include/g;' \
115- '$(CURDIR)/$(NAME)-$(VERSION)/Makefile.am' > '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(VERSION)/Makefile.am'
116- @# Sanity test
117- grep -q 'SUBDIRS = module include' '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(VERSION)/Makefile.am'
118- @# Run autogen on the stripped source tree
119- cd '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(VERSION)'; ./autogen.sh
120- rm -fr '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(VERSION)/autom4te.cache'
121-
122- @# This shunt allows DKMS to install the Module.symvers and zfs_config.h
123- @# files to the ${dkms_tree} area through the POST_INSTALL directive.
124- echo '#!/bin/sh' >'$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(VERSION)/cp'
125- echo 'cp "$$@"' >>'$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(VERSION)/cp'
126- chmod 755 '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(VERSION)/cp'
127-
128 mkdir -p $(CURDIR)/debian/tmp/usr/lib
129 for i in `ls $(CURDIR)/debian/tmp/lib/*.so`; do \
130 ln -s /lib/`readlink $${i}` $(CURDIR)/debian/tmp/usr/lib/`basename $${i}`; \
131@@ -138,7 +94,7 @@
132 mv $(CURDIR)/debian/tmp/usr/lib/systemd/system/* $(CURDIR)/debian/tmp/lib/systemd/system/
133 rmdir $(CURDIR)/debian/tmp/usr/lib/systemd/system
134
135- find '$(CURDIR)/debian/tmp' -name '*~' | xargs rm
136+ #find '$(CURDIR)/debian/tmp' -name '*~' | xargs rm
137
138 # Fix the includes according to https://github.com/zfsonlinux/zfs/issues/2903
139 ./debian/fix_includes-libspl.sh