]> git.proxmox.com Git - mirror_zfs-debian.git/blobdiff - debian/patches/0001-Prevent-manual-builds-in-the-DKMS-source.patch
Drop dependency on dh-systemd
[mirror_zfs-debian.git] / debian / patches / 0001-Prevent-manual-builds-in-the-DKMS-source.patch
index d4266392d7a74b978cb3b576010f8defe1667672..7f03c181afc618cc12285a21f42e8b4dbe85fcf0 100644 (file)
@@ -1,30 +1,16 @@
-From 4f8c0fbddc44b04fb8c732878ad884254029918f Mon Sep 17 00:00:00 2001
-From: Darik Horn <dajhorn@vanadac.com>
-Date: Tue, 17 Jan 2012 19:45:07 -0600
-Subject: [PATCH 1/7] Prevent manual builds in the DKMS source.
+Description: Block manual building in the DKMS source tree.
+  To avoid messing up future DKMS builds and the zfs installation,
+  block manual building of the DKMS source tree.
+Author: unknown
+Origin: ubuntu
+Forwarded: no
+Reviewed-By: Petter Reinholdtsen <pere@hungry.com>
+Last-Update: 2017-10-06
 
-Print an instructive error messsage and exit if the `dkms.conf` file
-exists when the userland is configured. (ie: `--with-config=user`)
-
-A non-trivial number of people try to rebuild ZoL from the
-`/usr/src/zfs` tree, which is modified to better satisfy Debian
-packaging policy and contains only the module sources for DKMS.
-
-Regardless, local installations usually break managed installations,
-so this autotools test could be further enhanced to check whether
-ZFS has a DKMS registration.
----
- config/dkms.m4      |   14 ++++++++++++++
- config/user.m4      |    1 +
- config/zfs-build.m4 |    6 +++---
- 3 files changed, 18 insertions(+), 3 deletions(-)
- create mode 100644 config/dkms.m4
-
-diff --git a/config/dkms.m4 b/config/dkms.m4
-new file mode 100644
-index 0000000..cfa1152
+Index: zfs/config/dkms.m4
+===================================================================
 --- /dev/null
-+++ b/config/dkms.m4
++++ zfs/config/dkms.m4
 @@ -0,0 +1,14 @@
 +dnl #
 +dnl # Prevent manual building in DKMS source tree.
@@ -40,36 +26,15 @@ index 0000000..cfa1152
 +              AC_MSG_RESULT([not found])
 +        ])
 +])
-diff --git a/config/user.m4 b/config/user.m4
-index 4fcef3d..16b8a76 100644
---- a/config/user.m4
-+++ b/config/user.m4
+Index: zfs/config/user.m4
+===================================================================
+--- zfs.orig/config/user.m4
++++ zfs/config/user.m4
 @@ -2,6 +2,7 @@ dnl #
  dnl # Default ZFS user configuration
  dnl #
  AC_DEFUN([ZFS_AC_CONFIG_USER], [
 +      ZFS_AC_DKMS_INHIBIT
+       ZFS_AC_CONFIG_USER_MOUNT_HELPER
        ZFS_AC_CONFIG_USER_UDEV
-       ZFS_AC_CONFIG_USER_ARCH
-       ZFS_AC_CONFIG_USER_IOCTL
-diff --git a/config/zfs-build.m4 b/config/zfs-build.m4
-index 6bfea51..fda0a4f 100644
---- a/config/zfs-build.m4
-+++ b/config/zfs-build.m4
-@@ -81,10 +81,10 @@ AC_DEFUN([ZFS_AC_CONFIG], [
-       ZFS_AC_CONFIG_ALWAYS
-       case "$ZFS_CONFIG" in
--              kernel) ZFS_AC_CONFIG_KERNEL ;;
-               user)   ZFS_AC_CONFIG_USER   ;;
--              all)    ZFS_AC_CONFIG_KERNEL
--                      ZFS_AC_CONFIG_USER   ;;
-+              kernel) ZFS_AC_CONFIG_KERNEL ;;
-+              all)    ZFS_AC_CONFIG_USER
-+                      ZFS_AC_CONFIG_KERNEL ;;
-               srpm)                        ;;
-               *)
-               AC_MSG_RESULT([Error!])
--- 
-1.7.9.5
-
+       ZFS_AC_CONFIG_USER_SYSTEMD