Merge pull request #38672 from Mic92/zfs-enospc-fix
linuxPackages.zfs{Stable,Unstable}: Enospec fix
This commit is contained in:
commit
c4f555a505
@ -11,6 +11,7 @@ let
|
|||||||
, sha256
|
, sha256
|
||||||
, rev ? "spl-${version}"
|
, rev ? "spl-${version}"
|
||||||
, broken ? false
|
, broken ? false
|
||||||
|
, patches ? []
|
||||||
} @ args : stdenv.mkDerivation rec {
|
} @ args : stdenv.mkDerivation rec {
|
||||||
name = "spl-${version}-${kernel.version}";
|
name = "spl-${version}-${kernel.version}";
|
||||||
|
|
||||||
@ -20,7 +21,7 @@ let
|
|||||||
inherit rev sha256;
|
inherit rev sha256;
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [ ./install_prefix.patch ];
|
inherit patches;
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook ] ++ kernel.moduleBuildDependencies;
|
nativeBuildInputs = [ autoreconfHook ] ++ kernel.moduleBuildDependencies;
|
||||||
|
|
||||||
@ -61,14 +62,16 @@ in
|
|||||||
assert kernel != null;
|
assert kernel != null;
|
||||||
{
|
{
|
||||||
splStable = common {
|
splStable = common {
|
||||||
version = "0.7.7";
|
version = "0.7.8";
|
||||||
sha256 = "0mq7827x4173wdbpj361gvxvk8j9r96363gka75smzsc31i2wa5x";
|
sha256 = "0ypyy7ij280n7rly6ifrvna9k55gxwdx9a7lalf4r1ka714379fi";
|
||||||
|
patches = [ ./install_prefix-0.7.8.patch ];
|
||||||
};
|
};
|
||||||
|
|
||||||
splUnstable = common {
|
splUnstable = common {
|
||||||
version = "2018-03-09";
|
version = "2018-04-10";
|
||||||
rev = "43983eb2024ec6b3280e6e06a6fb621ee3bb2a41";
|
rev = "9125f8f5bdb36bfbd2d816d30b6b29b9f89ae3d8";
|
||||||
sha256 = "00h7z30hzxd09cfa44w7yv7zympvdwzdximfgjvpa1layzppjpsh";
|
sha256 = "00zrbca906rzjd62m4khiw3sdv8x18dapcmvkyaawripwvzc4iri";
|
||||||
|
patches = [ ./install_prefix.patch ];
|
||||||
};
|
};
|
||||||
|
|
||||||
splLegacyCrypto = common {
|
splLegacyCrypto = common {
|
||||||
|
174
pkgs/os-specific/linux/spl/install_prefix-0.7.8.patch
Normal file
174
pkgs/os-specific/linux/spl/install_prefix-0.7.8.patch
Normal file
@ -0,0 +1,174 @@
|
|||||||
|
diff --git a/Makefile.am b/Makefile.am
|
||||||
|
index 4977448..ac17217 100644
|
||||||
|
--- a/Makefile.am
|
||||||
|
+++ b/Makefile.am
|
||||||
|
@@ -12,10 +12,10 @@ endif
|
||||||
|
if CONFIG_KERNEL
|
||||||
|
SUBDIRS += module
|
||||||
|
|
||||||
|
-extradir = @prefix@/src/spl-$(VERSION)
|
||||||
|
+extradir = @prefix@/libexec/spl
|
||||||
|
extra_HEADERS = spl.release.in spl_config.h.in
|
||||||
|
|
||||||
|
-kerneldir = @prefix@/src/spl-$(VERSION)/$(LINUX_VERSION)
|
||||||
|
+kerneldir = @prefix@/libexec/spl/$(LINUX_VERSION)
|
||||||
|
nodist_kernel_HEADERS = spl.release spl_config.h module/$(LINUX_SYMBOLS)
|
||||||
|
endif
|
||||||
|
|
||||||
|
diff --git a/include/Makefile.am b/include/Makefile.am
|
||||||
|
index 3200222..4a47aaa 100644
|
||||||
|
--- a/include/Makefile.am
|
||||||
|
+++ b/include/Makefile.am
|
||||||
|
@@ -13,6 +13,6 @@ USER_H =
|
||||||
|
EXTRA_DIST = $(COMMON_H) $(KERNEL_H) $(USER_H)
|
||||||
|
|
||||||
|
if CONFIG_KERNEL
|
||||||
|
-kerneldir = @prefix@/src/spl-$(VERSION)/include
|
||||||
|
+kerneldir = @prefix@/libexec/spl/include
|
||||||
|
kernel_HEADERS = $(KERNEL_H)
|
||||||
|
endif
|
||||||
|
diff --git a/include/fs/Makefile.am b/include/fs/Makefile.am
|
||||||
|
index e0da4b3..d6d7af0 100644
|
||||||
|
--- a/include/fs/Makefile.am
|
||||||
|
+++ b/include/fs/Makefile.am
|
||||||
|
@@ -8,6 +8,6 @@ USER_H =
|
||||||
|
EXTRA_DIST = $(COMMON_H) $(KERNEL_H) $(USER_H)
|
||||||
|
|
||||||
|
if CONFIG_KERNEL
|
||||||
|
-kerneldir = @prefix@/src/spl-$(VERSION)/include/fs
|
||||||
|
+kerneldir = @prefix@/libexec/spl/include/fs
|
||||||
|
kernel_HEADERS = $(KERNEL_H)
|
||||||
|
endif
|
||||||
|
diff --git a/include/linux/Makefile.am b/include/linux/Makefile.am
|
||||||
|
index 712e94e..4af9fb7 100644
|
||||||
|
--- a/include/linux/Makefile.am
|
||||||
|
+++ b/include/linux/Makefile.am
|
||||||
|
@@ -18,6 +18,6 @@ USER_H =
|
||||||
|
EXTRA_DIST = $(COMMON_H) $(KERNEL_H) $(USER_H)
|
||||||
|
|
||||||
|
if CONFIG_KERNEL
|
||||||
|
-kerneldir = @prefix@/src/spl-$(VERSION)/include/linux
|
||||||
|
+kerneldir = @prefix@/libexec/spl/include/linux
|
||||||
|
kernel_HEADERS = $(KERNEL_H)
|
||||||
|
endif
|
||||||
|
diff --git a/include/rpc/Makefile.am b/include/rpc/Makefile.am
|
||||||
|
index cfc8246..4fbd33d 100644
|
||||||
|
--- a/include/rpc/Makefile.am
|
||||||
|
+++ b/include/rpc/Makefile.am
|
||||||
|
@@ -9,6 +9,6 @@ USER_H =
|
||||||
|
EXTRA_DIST = $(COMMON_H) $(KERNEL_H) $(USER_H)
|
||||||
|
|
||||||
|
if CONFIG_KERNEL
|
||||||
|
-kerneldir = @prefix@/src/spl-$(VERSION)/include/rpc
|
||||||
|
+kerneldir = @prefix@/libexec/spl/include/rpc
|
||||||
|
kernel_HEADERS = $(KERNEL_H)
|
||||||
|
endif
|
||||||
|
diff --git a/include/sharefs/Makefile.am b/include/sharefs/Makefile.am
|
||||||
|
index 10e7093..febecdf 100644
|
||||||
|
--- a/include/sharefs/Makefile.am
|
||||||
|
+++ b/include/sharefs/Makefile.am
|
||||||
|
@@ -8,6 +8,6 @@ USER_H =
|
||||||
|
EXTRA_DIST = $(COMMON_H) $(KERNEL_H) $(USER_H)
|
||||||
|
|
||||||
|
if CONFIG_KERNEL
|
||||||
|
-kerneldir = @prefix@/src/spl-$(VERSION)/include/sharefs
|
||||||
|
+kerneldir = @prefix@/libexec/spl/include/sharefs
|
||||||
|
kernel_HEADERS = $(KERNEL_H)
|
||||||
|
endif
|
||||||
|
diff --git a/include/sys/Makefile.am b/include/sys/Makefile.am
|
||||||
|
index 73c4a84..31a9f50 100644
|
||||||
|
--- a/include/sys/Makefile.am
|
||||||
|
+++ b/include/sys/Makefile.am
|
||||||
|
@@ -107,7 +107,7 @@ USER_H =
|
||||||
|
EXTRA_DIST = $(COMMON_H) $(KERNEL_H) $(USER_H)
|
||||||
|
|
||||||
|
if CONFIG_KERNEL
|
||||||
|
-kerneldir = @prefix@/src/spl-$(VERSION)/include/sys
|
||||||
|
+kerneldir = @prefix@/libexec/spl/include/sys
|
||||||
|
kernel_HEADERS = $(KERNEL_H)
|
||||||
|
endif
|
||||||
|
|
||||||
|
diff --git a/include/sys/fm/Makefile.am b/include/sys/fm/Makefile.am
|
||||||
|
index 2821cbe..a84ce8e 100644
|
||||||
|
--- a/include/sys/fm/Makefile.am
|
||||||
|
+++ b/include/sys/fm/Makefile.am
|
||||||
|
@@ -9,6 +9,6 @@ USER_H =
|
||||||
|
EXTRA_DIST = $(COMMON_H) $(KERNEL_H) $(USER_H)
|
||||||
|
|
||||||
|
if CONFIG_KERNEL
|
||||||
|
-kerneldir = @prefix@/src/spl-$(VERSION)/include/sys/fm
|
||||||
|
+kerneldir = @prefix@/libexec/spl/include/sys/fm
|
||||||
|
kernel_HEADERS = $(KERNEL_H)
|
||||||
|
endif
|
||||||
|
diff --git a/include/sys/fs/Makefile.am b/include/sys/fs/Makefile.am
|
||||||
|
index 581083e..0c35fb7 100644
|
||||||
|
--- a/include/sys/fs/Makefile.am
|
||||||
|
+++ b/include/sys/fs/Makefile.am
|
||||||
|
@@ -8,6 +8,6 @@ USER_H =
|
||||||
|
EXTRA_DIST = $(COMMON_H) $(KERNEL_H) $(USER_H)
|
||||||
|
|
||||||
|
if CONFIG_KERNEL
|
||||||
|
-kerneldir = @prefix@/src/spl-$(VERSION)/include/sys/fs
|
||||||
|
+kerneldir = @prefix@/libexec/spl/include/sys/fs
|
||||||
|
kernel_HEADERS = $(KERNEL_H)
|
||||||
|
endif
|
||||||
|
diff --git a/include/sys/sysevent/Makefile.am b/include/sys/sysevent/Makefile.am
|
||||||
|
index 63d9af3..de1aa18 100644
|
||||||
|
--- a/include/sys/sysevent/Makefile.am
|
||||||
|
+++ b/include/sys/sysevent/Makefile.am
|
||||||
|
@@ -8,6 +8,6 @@ USER_H =
|
||||||
|
EXTRA_DIST = $(COMMON_H) $(KERNEL_H) $(USER_H)
|
||||||
|
|
||||||
|
if CONFIG_KERNEL
|
||||||
|
-kerneldir = @prefix@/src/spl-$(VERSION)/include/sys/sysevent
|
||||||
|
+kerneldir = @prefix@/libexec/spl/include/sys/sysevent
|
||||||
|
kernel_HEADERS = $(KERNEL_H)
|
||||||
|
endif
|
||||||
|
diff --git a/include/util/Makefile.am b/include/util/Makefile.am
|
||||||
|
index e2bf09f..3f5d6ce 100644
|
||||||
|
--- a/include/util/Makefile.am
|
||||||
|
+++ b/include/util/Makefile.am
|
||||||
|
@@ -9,6 +9,6 @@ USER_H =
|
||||||
|
EXTRA_DIST = $(COMMON_H) $(KERNEL_H) $(USER_H)
|
||||||
|
|
||||||
|
if CONFIG_KERNEL
|
||||||
|
-kerneldir = @prefix@/src/spl-$(VERSION)/include/util
|
||||||
|
+kerneldir = @prefix@/libexec/spl/include/util
|
||||||
|
kernel_HEADERS = $(KERNEL_H)
|
||||||
|
endif
|
||||||
|
diff --git a/include/vm/Makefile.am b/include/vm/Makefile.am
|
||||||
|
index 7faab0a..8148b3d 100644
|
||||||
|
--- a/include/vm/Makefile.am
|
||||||
|
+++ b/include/vm/Makefile.am
|
||||||
|
@@ -10,6 +10,6 @@ USER_H =
|
||||||
|
EXTRA_DIST = $(COMMON_H) $(KERNEL_H) $(USER_H)
|
||||||
|
|
||||||
|
if CONFIG_KERNEL
|
||||||
|
-kerneldir = @prefix@/src/spl-$(VERSION)/include/vm
|
||||||
|
+kerneldir = @prefix@/libexec/spl/include/vm
|
||||||
|
kernel_HEADERS = $(KERNEL_H)
|
||||||
|
endif
|
||||||
|
diff --git a/module/Makefile.in b/module/Makefile.in
|
||||||
|
index d4e62e1..73fa01c 100644
|
||||||
|
--- a/module/Makefile.in
|
||||||
|
+++ b/module/Makefile.in
|
||||||
|
@@ -21,15 +21,15 @@ clean:
|
||||||
|
modules_install:
|
||||||
|
@# Install the kernel modules
|
||||||
|
$(MAKE) -C @LINUX_OBJ@ SUBDIRS=`pwd` $@ \
|
||||||
|
- INSTALL_MOD_PATH=$(DESTDIR)$(INSTALL_MOD_PATH) \
|
||||||
|
+ INSTALL_MOD_PATH=@prefix@/$(INSTALL_MOD_PATH) \
|
||||||
|
INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) \
|
||||||
|
KERNELRELEASE=@LINUX_VERSION@
|
||||||
|
@# Remove extraneous build products when packaging
|
||||||
|
- kmoddir=$(DESTDIR)$(INSTALL_MOD_PATH)/lib/modules/@LINUX_VERSION@; \
|
||||||
|
- if [ -n "$(DESTDIR)" ]; then \
|
||||||
|
+ kmoddir=@prefix@/$(INSTALL_MOD_PATH)/lib/modules/@LINUX_VERSION@; \
|
||||||
|
+ if [ -n "@prefix@" ]; then \
|
||||||
|
find $$kmoddir -name 'modules.*' | xargs $(RM); \
|
||||||
|
fi
|
||||||
|
- sysmap=$(DESTDIR)$(INSTALL_MOD_PATH)/boot/System.map-@LINUX_VERSION@; \
|
||||||
|
+ sysmap=@prefix@/$(INSTALL_MOD_PATH)/boot/System.map-@LINUX_VERSION@; \
|
||||||
|
if [ -f $$sysmap ]; then \
|
||||||
|
depmod -ae -F $$sysmap @LINUX_VERSION@; \
|
||||||
|
fi
|
@ -112,18 +112,6 @@ index 581083e..0c35fb7 100644
|
|||||||
+kerneldir = @prefix@/libexec/spl/include/sys/fs
|
+kerneldir = @prefix@/libexec/spl/include/sys/fs
|
||||||
kernel_HEADERS = $(KERNEL_H)
|
kernel_HEADERS = $(KERNEL_H)
|
||||||
endif
|
endif
|
||||||
diff --git a/include/sys/sysevent/Makefile.am b/include/sys/sysevent/Makefile.am
|
|
||||||
index 63d9af3..de1aa18 100644
|
|
||||||
--- a/include/sys/sysevent/Makefile.am
|
|
||||||
+++ b/include/sys/sysevent/Makefile.am
|
|
||||||
@@ -8,6 +8,6 @@ USER_H =
|
|
||||||
EXTRA_DIST = $(COMMON_H) $(KERNEL_H) $(USER_H)
|
|
||||||
|
|
||||||
if CONFIG_KERNEL
|
|
||||||
-kerneldir = @prefix@/src/spl-$(VERSION)/include/sys/sysevent
|
|
||||||
+kerneldir = @prefix@/libexec/spl/include/sys/sysevent
|
|
||||||
kernel_HEADERS = $(KERNEL_H)
|
|
||||||
endif
|
|
||||||
diff --git a/include/util/Makefile.am b/include/util/Makefile.am
|
diff --git a/include/util/Makefile.am b/include/util/Makefile.am
|
||||||
index e2bf09f..3f5d6ce 100644
|
index e2bf09f..3f5d6ce 100644
|
||||||
--- a/include/util/Makefile.am
|
--- a/include/util/Makefile.am
|
||||||
|
@ -147,9 +147,9 @@ in {
|
|||||||
incompatibleKernelVersion = null;
|
incompatibleKernelVersion = null;
|
||||||
|
|
||||||
# this package should point to the latest release.
|
# this package should point to the latest release.
|
||||||
version = "0.7.7";
|
version = "0.7.8";
|
||||||
|
|
||||||
sha256 = "0lrzy27sh1cinkf04ki2vfjrgpgbiza2s59i2by45qdd8kmkcc5r";
|
sha256 = "0m7j5cpz81lqcfbh4w3wvqjjka07wickl27klgy1zplv6vr0baix";
|
||||||
|
|
||||||
extraPatches = [
|
extraPatches = [
|
||||||
(fetchpatch {
|
(fetchpatch {
|
||||||
@ -166,10 +166,10 @@ in {
|
|||||||
incompatibleKernelVersion = "4.16";
|
incompatibleKernelVersion = "4.16";
|
||||||
|
|
||||||
# this package should point to a version / git revision compatible with the latest kernel release
|
# this package should point to a version / git revision compatible with the latest kernel release
|
||||||
version = "2018-04-04";
|
version = "2018-04-10";
|
||||||
|
|
||||||
rev = "1724eb62debfaa48f5861660615d49a994945d94";
|
rev = "74df0c5e251a920a1966a011c16f960cd7ba562e";
|
||||||
sha256 = "1adnmpn7b8zi5rq9r71flwx237vbysss1wywbck8407mcnrfaxzf";
|
sha256 = "1x3mipj3ryznnd7kx84r3n607hv6jqs66mb61g3zcdmvk6al4yq4";
|
||||||
isUnstable = true;
|
isUnstable = true;
|
||||||
|
|
||||||
extraPatches = [
|
extraPatches = [
|
||||||
|
Loading…
Reference in New Issue
Block a user