Github messages for voidlinux
 help / color / mirror / Atom feed
From: ahesford <ahesford@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] zfs: update to 2.0.0 [WIP]
Date: Tue, 01 Dec 2020 00:33:59 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-26848@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 424 bytes --]

There is a new pull request by ahesford against master on the void-packages repository

https://github.com/ahesford/void-packages zfs
https://github.com/void-linux/void-packages/pull/26848

zfs: update to 2.0.0 [WIP]
`pam_zfscrypt` fails to build, I'm digging around with `#include_next` directives and SPL headers. Help if you can.

A patch file from https://github.com/void-linux/void-packages/pull/26848.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-zfs-26848.patch --]
[-- Type: text/x-diff, Size: 5168 bytes --]

From 3d29c6d14f17c53bb759a4605887ddc74232a1dc Mon Sep 17 00:00:00 2001
From: "Andrew J. Hesford" <ajh@sideband.org>
Date: Fri, 13 Nov 2020 21:53:09 -0500
Subject: [PATCH 1/2] zfs: update to 2.0.0.

---
 common/shlibs        | 11 ++++++-----
 srcpkgs/zfs-pam      |  1 +
 srcpkgs/zfs/template | 25 +++++++++++++++++--------
 3 files changed, 24 insertions(+), 13 deletions(-)
 create mode 120000 srcpkgs/zfs-pam

diff --git a/common/shlibs b/common/shlibs
index 186124d6b28..856c133c58b 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3912,11 +3912,12 @@ libtss2-tcti-device.so.0 tpm2-tss-2.3.1_1
 libtss2-rc.so.0 tpm2-tss-2.3.1_1
 libtss2-tcti-mssim.so.0 tpm2-tss-2.3.1_1
 libtss2-tctildr.so.0 tpm2-tss-2.3.1_1
-libzfs.so.2 zfs-0.8.2_1
-libnvpair.so.1 zfs-0.8.2_1
-libzfs_core.so.1 zfs-0.8.3_1
-libzpool.so.2 zfs-0.8.3_1
-libuutil.so.1 zfs-0.8.3_1
+libzfsbootenv.so.1 zfs-2.0.0_1
+libzfs.so.4 zfs-2.0.0_1
+libuutil.so.3 zfs-2.0.0_1
+libzpool.so.4 zfs-2.0.0_1
+libzfs_core.so.3 zfs-2.0.0_1
+libnvpair.so.3 zfs-2.0.0_1
 libgmio.so gmio-0.4.1_1
 libjsonnet.so.0 jsonnet-0.14.0_2
 libjsonnet++.so.0 jsonnet-0.14.0_2
diff --git a/srcpkgs/zfs-pam b/srcpkgs/zfs-pam
new file mode 120000
index 00000000000..eb97035e118
--- /dev/null
+++ b/srcpkgs/zfs-pam
@@ -0,0 +1 @@
+zfs
\ No newline at end of file
diff --git a/srcpkgs/zfs/template b/srcpkgs/zfs/template
index 0c8a5634e06..06269b9c783 100644
--- a/srcpkgs/zfs/template
+++ b/srcpkgs/zfs/template
@@ -1,27 +1,27 @@
 # Template file for 'zfs'
 pkgname=zfs
-version=0.8.5
+version=2.0.0
 revision=1
 build_style=gnu-configure
 configure_args="--with-config=user --with-mounthelperdir=/usr/bin
  --with-udevdir=/usr/lib/udev --with-udevruledir=/usr/lib/udev/rules.d
  --with-dracutdir=/usr/lib/dracut --with-tirpc"
 hostmakedepends="dracut libtool pkg-config python3 automake"
-makedepends="zlib-devel libuuid-devel libblkid-devel libtirpc-devel attr-devel"
+makedepends="pam-devel zlib-devel libuuid-devel libblkid-devel libtirpc-devel attr-devel"
+depends="dkms>=2.2.0.3_9 perl python3"
 conf_files="/etc/zfs/zed.d/zed.rc"
 short_desc="Z File System -- userland, pyzfs, and kernel modules (using DKMS)"
 maintainer="Toyam Cox <Vaelatern@voidlinux.org>"
 license="CDDL-1.0"
 homepage="https://zfsonlinux.org/"
-distfiles="https://github.com/zfsonlinux/zfs/releases/download/zfs-${version}/zfs-${version}.tar.gz"
-checksum=dbb41d6b9c606a34ac93f4c19069fd6806ceeacb558f834f8a70755dadb7cd3d
+distfiles="https://github.com/openzfs/zfs/releases/download/zfs-${version}/zfs-${version}.tar.gz"
+checksum=3403bf8e993f3c9d772f768142117df47bdbbb8e9bbf85a29c0e166f577f9311
 
 patch_args="-Np1"
 
 replaces="spl<=0.7.13_1" # Because SPL was merged into zfs in 0.8.0
 
 dkms_modules="zfs ${version}"
-depends="dkms>=2.2.0.3_9 perl python3 bash"
 
 post_patch() {
 	# When collecting a "clean" tree for DKMS, don't leave patches in place
@@ -35,9 +35,6 @@ pre_configure() {
 	export CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/tirpc/"
 	autoreconf -fi
 
-	# configure relies on bashism to redirect stdout/stderr when building tests
-	vsed -e '1 s@^#!\s*/bin/sh$@#!/bin/bash@' -i  configure
-
 	tar czf ../clean.tar.gz .
 }
 
@@ -62,6 +59,9 @@ post_install() {
 	rm -rf ${DESTDIR}/etc/default
 	rm -f ${DESTDIR}/etc/zfs/zfs-functions
 
+	# Remove pam config framework file not used in Void
+	rm -f ${DESTDIR}/usr/share/pam-configs/zfs_key
+
 	# Contains ELF binaries. Remove it until upstream has a way to move this
 	# into /usr/libexec or similiar.
 	rm -rf ${DESTDIR}/usr/share/zfs/zfs-tests
@@ -78,6 +78,15 @@ zfs-devel_package() {
 	}
 }
 
+zfs-pam_package() {
+	depends="${sourcepkg}>=${version}_${revision}"
+	short_desc="Z File System -- PAM integration"
+	pkg_install() {
+		vmove usr/lib/security/pam_zfs_key.so
+	}
+}
+
+
 do_clean() {
 	rm -f ../clean.tar.gz
 }

From 72f4f16549c37b192a156486da8e6ac5b713b33e Mon Sep 17 00:00:00 2001
From: "Andrew J. Hesford" <ajh@sideband.org>
Date: Fri, 13 Nov 2020 21:53:46 -0500
Subject: [PATCH 2/2] pam_zfscrypt: revbump for zfs, change upstream repo

The origninal repo for pam_zfscrypt has disappeared from the Internet,
but Project Trident, the Void derivative that uses this module, now
maintains a fork.
---
 srcpkgs/pam_zfscrypt/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/pam_zfscrypt/template b/srcpkgs/pam_zfscrypt/template
index caf4617a439..a5730f10702 100644
--- a/srcpkgs/pam_zfscrypt/template
+++ b/srcpkgs/pam_zfscrypt/template
@@ -1,7 +1,7 @@
 # Template file for 'pam_zfscrypt'
 pkgname=pam_zfscrypt
 version=0.2.0
-revision=1
+revision=2
 wrksrc="zfscrypt-${version}"
 build_style=gnu-makefile
 make_use_env=yes
@@ -10,8 +10,8 @@ depends="pam"
 short_desc="Automatically decrypt and mount encrypted ZFS home directories"
 maintainer="Zach Dykstra <dykstra.zachary@gmail.com>"
 license="MIT"
-homepage="https://github.com/BenKerry/zfscrypt"
-distfiles="https://github.com/BenKerry/zfscrypt/archive/v${version}.tar.gz"
+homepage="https://github.com/project-trident/zfscrypt"
+distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=73244e7e97ab5a47a9ea4a24ac490f07bfe7c1eb0c920e03df202494ea61b650
 
 CFLAGS="-Iinclude"

             reply	other threads:[~2020-11-30 23:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-30 23:33 ahesford [this message]
2020-12-01  2:40 ` [PR PATCH] [Updated] " ahesford
2020-12-01  2:46 ` zfs: update to 2.0.0 ahesford
2020-12-01  4:44 ` zdykstra
2020-12-01 21:16 ` Vaelatern
2020-12-02  4:25 ` [PR PATCH] [Merged]: " Vaelatern

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-26848@inbox.vuxu.org \
    --to=ahesford@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).