diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-04-14 13:13:49 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-04-14 13:24:14 +0000 |
commit | 31b4b9364b682c1b4943f2f441ee888a180d68a2 (patch) | |
tree | 6577ed5c8efb4f4bb67bfcae4570173ef6d3f723 | |
parent | 9641693fd7304a0113d768505604302d0e8681b5 (diff) | |
download | aports-31b4b9364b682c1b4943f2f441ee888a180d68a2.tar.bz2 aports-31b4b9364b682c1b4943f2f441ee888a180d68a2.tar.xz |
testing/zfs-grsec: disable does not build
-rw-r--r-- | testing/zfs-grsec/APKBUILD | 18 | ||||
-rw-r--r-- | testing/zfs-grsec/musl-fixes.patch | 94 |
2 files changed, 37 insertions, 75 deletions
diff --git a/testing/zfs-grsec/APKBUILD b/testing/zfs-grsec/APKBUILD index 8451cffcc4..a843b7a1d1 100644 --- a/testing/zfs-grsec/APKBUILD +++ b/testing/zfs-grsec/APKBUILD @@ -6,10 +6,10 @@ _realname=zfs _name=$_realname-$_flavor _kpkg=linux-$_flavor -_kver=3.14.37 -_kpkgrel=3 +_kver=3.18.11 +_kpkgrel=0 -_realver=0.6.3 +_realver=0.6.4 _mypkgrel=0 # source the kernel version @@ -101,9 +101,9 @@ utils() { "$subpkgdir"/etc/init.d/zfs || return 1 } -md5sums="5bcc32c122934d421eba68e16826637d zfs-0.6.3.tar.gz -4404dbff2e698de684b15f9f532f96ad musl-fixes.patch" -sha256sums="29bcfdd4161521692d2ca2515ad27a9edd9491c9cb5c6fb1e923d8eed28d391b zfs-0.6.3.tar.gz -aff6fd65b486a9a58239c4afcf0f07d07085778cc7f9eb04e6c390e1e21019f5 musl-fixes.patch" -sha512sums="fdeaa6ad4a899196b165473eb3b33b30f1a6020ab112331a3f92ff2f15fd3438b1ef3908b2c445ba2c114be0f96e73797f8985c9c6738f49980410e7e2a4d2cd zfs-0.6.3.tar.gz -1ab57b69e0c07fa8adc5b18f0d0400d1016c4debc2eebb734a31eb4c6b86f51376fa796e92d845c958987f328cc085a8ed2c4b499213b6b62d5e7f5f445f2d4b musl-fixes.patch" +md5sums="5b90b3bfcfb9d8e6f0c6ea0061e6b285 zfs-0.6.4.tar.gz +114cce47477de2f7e0221b595484e618 musl-fixes.patch" +sha256sums="fe6a9ad775a5b2ae578c192f17c1981755647ff69ec6bc952e983994572c0c02 zfs-0.6.4.tar.gz +ef065113892f656afdfb7cae863d9c6b50f6604b86cbc96f57ad0601b66392cf musl-fixes.patch" +sha512sums="d44174f856628855b1998d014be0573a1641ca6ff67d263f58ff7564a3f7289c066c51c100498ed5c561df2111e04b53c7f2e9958d1cc85fa9291b8f05789319 zfs-0.6.4.tar.gz +fef928170c5eebe5db1f3fbfc189a2af51f5dc12de7436fa31142daaeebafee536c042ce722e7531420d6a5e479d2e9e3d5da7afb41c7f6509a427524ff3b5dc musl-fixes.patch" diff --git a/testing/zfs-grsec/musl-fixes.patch b/testing/zfs-grsec/musl-fixes.patch index 538274ee5b..60a5893487 100644 --- a/testing/zfs-grsec/musl-fixes.patch +++ b/testing/zfs-grsec/musl-fixes.patch @@ -28,19 +28,6 @@ diff -urw src/zfs-0.6.3/cmd/zdb/Makefile.am src.new/cmd/zdb/Makefile.am -zdb_LDADD += $(ZLIB) +zdb_LDADD += $(ZLIB) $(TIRPC_LIBS) -diff -urw src/zfs-0.6.3/cmd/zed/Makefile.am src.new/cmd/zed/Makefile.am ---- src/zfs-0.6.3/cmd/zed/Makefile.am 2014-06-12 20:58:09.000000000 +0000 -+++ src.new/cmd/zed/Makefile.am 2014-09-13 18:40:03.585455839 +0000 -@@ -26,7 +26,8 @@ - $(top_builddir)/lib/libavl/libavl.la \ - $(top_builddir)/lib/libnvpair/libnvpair.la \ - $(top_builddir)/lib/libspl/libspl.la \ -- $(top_builddir)/lib/libzfs/libzfs.la -+ $(top_builddir)/lib/libzfs/libzfs.la \ -+ $(TIRPC_LIBS) - - zedconfdir = $(sysconfdir)/zfs/zed.d - diff -urw src/zfs-0.6.3/cmd/zfs/Makefile.am src.new/cmd/zfs/Makefile.am --- src/zfs-0.6.3/cmd/zfs/Makefile.am 2014-06-12 20:58:09.000000000 +0000 +++ src.new/cmd/zfs/Makefile.am 2014-09-13 18:40:03.701013827 +0000 @@ -108,18 +95,6 @@ diff -urw src/zfs-0.6.3/config/user.m4 src.new/config/user.m4 dnl # dnl # Checks for library functions AC_CHECK_FUNCS([mlockall]) -diff -urw src/zfs-0.6.3/include/sys/nvpair.h src.new/include/sys/nvpair.h ---- src/zfs-0.6.3/include/sys/nvpair.h 2014-06-12 20:58:09.000000000 +0000 -+++ src.new/include/sys/nvpair.h 2014-09-13 18:40:03.802127067 +0000 -@@ -132,7 +132,7 @@ - } nv_alloc_t; - - struct nv_alloc_ops { -- int (*nv_ao_init)(nv_alloc_t *, __va_list); -+ int (*nv_ao_init)(nv_alloc_t *, va_list); - void (*nv_ao_fini)(nv_alloc_t *); - void *(*nv_ao_alloc)(nv_alloc_t *, size_t); - void (*nv_ao_free)(nv_alloc_t *, void *, size_t); diff -urw src/zfs-0.6.3/include/sys/zfs_context.h src.new/include/sys/zfs_context.h --- src/zfs-0.6.3/include/sys/zfs_context.h 2014-06-12 20:58:09.000000000 +0000 +++ src.new/include/sys/zfs_context.h 2014-09-13 18:40:03.809349441 +0000 @@ -134,18 +109,6 @@ diff -urw src/zfs-0.6.3/include/sys/zfs_context.h src.new/include/sys/zfs_contex /* * Stack */ -@@ -148,9 +152,9 @@ - extern void __dprintf(const char *file, const char *func, - int line, const char *fmt, ...); - extern void cmn_err(int, const char *, ...); --extern void vcmn_err(int, const char *, __va_list); -+extern void vcmn_err(int, const char *, va_list); - extern void panic(const char *, ...); --extern void vpanic(const char *, __va_list); -+extern void vpanic(const char *, va_list); - - #define fm_panic panic - @@ -614,7 +618,11 @@ #define minclsyspri 60 #define maxclsyspri 99 @@ -253,23 +216,6 @@ diff -urw src/zfs-0.6.3/lib/libspl/include/sys/inttypes.h src.new/lib/libspl/inc +#endif + #endif -diff -urw src/zfs-0.6.3/lib/libspl/include/sys/param.h src.new/lib/libspl/include/sys/param.h ---- src/zfs-0.6.3/lib/libspl/include/sys/param.h 2014-06-12 20:58:09.000000000 +0000 -+++ src.new/lib/libspl/include/sys/param.h 2014-09-13 18:40:03.755181634 +0000 -@@ -57,6 +57,12 @@ - #define MAXUID UINT32_MAX /* max user id */ - #define MAXPROJID MAXUID /* max project id */ - --#define PAGESIZE (sysconf(_SC_PAGESIZE)) -+#ifndef PAGESIZE -+#define PAGESIZE PAGE_SIZE -+#endif -+ -+#ifndef HZ -+#define HZ 100 -+#endif - - #endif diff -urw src/zfs-0.6.3/lib/libspl/include/sys/time.h src.new/lib/libspl/include/sys/time.h --- src/zfs-0.6.3/lib/libspl/include/sys/time.h 2014-06-12 20:58:09.000000000 +0000 +++ src.new/lib/libspl/include/sys/time.h 2014-09-13 18:40:03.755181634 +0000 @@ -311,18 +257,6 @@ diff -urw src/zfs-0.6.3/lib/libspl/include/sys/types.h src.new/lib/libspl/includ +#include <sys/param.h> /* for NBBY */ + #endif -diff -urw src/zfs-0.6.3/lib/libspl/include/sys/va_list.h src.new/lib/libspl/include/sys/va_list.h ---- src/zfs-0.6.3/lib/libspl/include/sys/va_list.h 2014-06-12 20:58:09.000000000 +0000 -+++ src.new/lib/libspl/include/sys/va_list.h 2014-09-13 18:40:03.751570447 +0000 -@@ -29,8 +29,4 @@ - - #include <stdarg.h> - --#ifndef __va_list --typedef __gnuc_va_list __va_list; --#endif -- - #endif diff -urw src/zfs-0.6.3/lib/libspl/timestamp.c src.new/lib/libspl/timestamp.c --- src/zfs-0.6.3/lib/libspl/timestamp.c 2014-06-12 20:58:09.000000000 +0000 +++ src.new/lib/libspl/timestamp.c 2014-09-13 18:40:03.722680950 +0000 @@ -405,3 +339,31 @@ index 0000000..fb4d2c4 + AC_SUBST(TIRPC_LIBS) +fi]) +]) +--- ./cmd/zed/Makefile.am.orig ++++ ./cmd/zed/Makefile.am +@@ -28,7 +28,8 @@ + $(top_builddir)/lib/libspl/libspl.la \ + $(top_builddir)/lib/libzpool/libzpool.la \ + $(top_builddir)/lib/libzfs/libzfs.la \ +- $(top_builddir)/lib/libzfs_core/libzfs_core.la ++ $(top_builddir)/lib/libzfs_core/libzfs_core.la \ ++ $(TIRPC_LIBS) + + zedconfdir = $(sysconfdir)/zfs/zed.d + +--- ./lib/libspl/include/sys/param.h.orig ++++ ./lib/libspl/include/sys/param.h +@@ -58,7 +58,12 @@ + #define MAXPROJID MAXUID /* max project id */ + + #ifndef PAGESIZE +-#define PAGESIZE (sysconf(_SC_PAGESIZE)) ++#define PAGESIZE PAGE_SIZE + #endif /* PAGESIZE */ ++ ++#ifndef HZ ++#define HZ 100 ++#endif ++ + + #endif |