* Re: [PR REVIEW] zfs: divide under subpackages
2023-02-27 14:38 [PR PATCH] zfs: divide under subpackages robertek
@ 2023-02-28 13:04 ` ahesford
2023-02-28 13:04 ` ahesford
` (12 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: ahesford @ 2023-02-28 13:04 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 243 bytes --]
New review comment by ahesford on void-packages repository
https://github.com/void-linux/void-packages/pull/42484#discussion_r1120020450
Comment:
Relying on specific ordering for subpackages is incredibly fragile and should not be required.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PR REVIEW] zfs: divide under subpackages
2023-02-27 14:38 [PR PATCH] zfs: divide under subpackages robertek
2023-02-28 13:04 ` [PR REVIEW] " ahesford
@ 2023-02-28 13:04 ` ahesford
2023-02-28 13:04 ` ahesford
` (11 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: ahesford @ 2023-02-28 13:04 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 281 bytes --]
New review comment by ahesford on void-packages repository
https://github.com/void-linux/void-packages/pull/42484#discussion_r1120024777
Comment:
This function will never run, see
https://github.com/void-linux/void-packages/actions/runs/4283529441/jobs/7459365515#step:7:7990
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PR REVIEW] zfs: divide under subpackages
2023-02-27 14:38 [PR PATCH] zfs: divide under subpackages robertek
2023-02-28 13:04 ` [PR REVIEW] " ahesford
2023-02-28 13:04 ` ahesford
@ 2023-02-28 13:04 ` ahesford
2023-02-28 13:48 ` robertek
` (10 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: ahesford @ 2023-02-28 13:04 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 242 bytes --]
New review comment by ahesford on void-packages repository
https://github.com/void-linux/void-packages/pull/42484#discussion_r1120019266
Comment:
This never gets overwritten in the main package and leaves an incomplete package description.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PR REVIEW] zfs: divide under subpackages
2023-02-27 14:38 [PR PATCH] zfs: divide under subpackages robertek
` (2 preceding siblings ...)
2023-02-28 13:04 ` ahesford
@ 2023-02-28 13:48 ` robertek
2023-02-28 13:49 ` ahesford
` (9 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: robertek @ 2023-02-28 13:48 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 253 bytes --]
New review comment by robertek on void-packages repository
https://github.com/void-linux/void-packages/pull/42484#discussion_r1120090603
Comment:
Interesting. On local xbps-src it is built. I have tested this completely and it is working as expected.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PR REVIEW] zfs: divide under subpackages
2023-02-27 14:38 [PR PATCH] zfs: divide under subpackages robertek
` (3 preceding siblings ...)
2023-02-28 13:48 ` robertek
@ 2023-02-28 13:49 ` ahesford
2023-02-28 13:50 ` robertek
` (8 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: ahesford @ 2023-02-28 13:49 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 235 bytes --]
New review comment by ahesford on void-packages repository
https://github.com/void-linux/void-packages/pull/42484#discussion_r1120092206
Comment:
It didn't build locally, it is just shadowed by the main package that shares its name.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PR REVIEW] zfs: divide under subpackages
2023-02-27 14:38 [PR PATCH] zfs: divide under subpackages robertek
` (4 preceding siblings ...)
2023-02-28 13:49 ` ahesford
@ 2023-02-28 13:50 ` robertek
2023-02-28 13:52 ` robertek
` (7 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: robertek @ 2023-02-28 13:50 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 298 bytes --]
New review comment by robertek on void-packages repository
https://github.com/void-linux/void-packages/pull/42484#discussion_r1120093165
Comment:
There is no other way to force the zfs-tools be the last. Otherwise all the specific files would need to be defined, which is then much more fragile.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PR REVIEW] zfs: divide under subpackages
2023-02-27 14:38 [PR PATCH] zfs: divide under subpackages robertek
` (5 preceding siblings ...)
2023-02-28 13:50 ` robertek
@ 2023-02-28 13:52 ` robertek
2023-02-28 13:53 ` ahesford
` (6 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: robertek @ 2023-02-28 13:52 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 184 bytes --]
New review comment by robertek on void-packages repository
https://github.com/void-linux/void-packages/pull/42484#discussion_r1120095224
Comment:
ahh, this is valid. I will fix it.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PR REVIEW] zfs: divide under subpackages
2023-02-27 14:38 [PR PATCH] zfs: divide under subpackages robertek
` (6 preceding siblings ...)
2023-02-28 13:52 ` robertek
@ 2023-02-28 13:53 ` ahesford
2023-02-28 14:05 ` robertek
` (5 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: ahesford @ 2023-02-28 13:53 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 352 bytes --]
New review comment by ahesford on void-packages repository
https://github.com/void-linux/void-packages/pull/42484#discussion_r1120097160
Comment:
It's not more fragile, just more explicit and tedious. In any case, the "catchall" package should always be the primary package, which is what you have left after stripping out any specific subpackages.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: zfs: divide under subpackages
2023-02-27 14:38 [PR PATCH] zfs: divide under subpackages robertek
` (7 preceding siblings ...)
2023-02-28 13:53 ` ahesford
@ 2023-02-28 14:05 ` robertek
2023-02-28 14:28 ` ahesford
` (4 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: robertek @ 2023-02-28 14:05 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 887 bytes --]
New comment by robertek on void-packages repository
https://github.com/void-linux/void-packages/pull/42484#issuecomment-1448235787
Comment:
The main point is to have a support for custom kernel with zfs built in. I came from Gentoo and have a long history of making my own kernel which then boots not only the Gentoo, but even others. It is easy to mask the linux package, but I'm not able to install zfs userland. Actually there are two things, kernel module and userland tools packed to one tar. And the userland tools does not need to be strictly 1:1 to the kernel ZFS version (to some point).
I was thinking about opting that out, but since all of this is can be packed to different packages, this seems to be much better to do it that way.
I'm not insisting on this change and I'm free to keep it myself for myself. I tried to do that the way it can be shared with others.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: zfs: divide under subpackages
2023-02-27 14:38 [PR PATCH] zfs: divide under subpackages robertek
` (8 preceding siblings ...)
2023-02-28 14:05 ` robertek
@ 2023-02-28 14:28 ` ahesford
2023-02-28 16:43 ` Vaelatern
` (3 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: ahesford @ 2023-02-28 14:28 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 951 bytes --]
New comment by ahesford on void-packages repository
https://github.com/void-linux/void-packages/pull/42484#issuecomment-1448281050
Comment:
I am strictly opposed to a package graph that facilitates these kinds of mismatches. Ubuntu has been bitten HARD by shipping different versions of the ZFS kmod and userspace utilities. Because we strive for a first-class ZFS experience in Void, the userspace tools and DKMS package that we ship should definitely be part of a matched pair.
Just because our package installs the DKMS sources doesn't mean that you have to build them. Void kernel packages will build the kmod automatically, but your kernel workflow can skip the XBPS hooks.
You can also `noextract` the bits you want. Yes, this gets a bit cumbersome, but our primary goal is to keep the package graph and maintainability simple for official packages, not complicate things for everybody else to support custom, unpackaged content.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: zfs: divide under subpackages
2023-02-27 14:38 [PR PATCH] zfs: divide under subpackages robertek
` (9 preceding siblings ...)
2023-02-28 14:28 ` ahesford
@ 2023-02-28 16:43 ` Vaelatern
2023-02-28 16:43 ` [PR PATCH] [Closed]: " Vaelatern
` (2 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: Vaelatern @ 2023-02-28 16:43 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 635 bytes --]
New comment by Vaelatern on void-packages repository
https://github.com/void-linux/void-packages/pull/42484#issuecomment-1448504761
Comment:
Thank you for your contribution! Unfortunately, there are some red flags here that can not be cleaned up. ZFS lives in that special place in our systems where, if it dies, we end up with massive cleanup efforts (and probably restoration from backups). As such, anything that threatens stability, even so innocuous as separating userspace commands and kernel modules installed (which is arguably tested... in one direction), risks data.
I'm afraid we won't be able to merge this into Void.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PR PATCH] [Closed]: zfs: divide under subpackages
2023-02-27 14:38 [PR PATCH] zfs: divide under subpackages robertek
` (10 preceding siblings ...)
2023-02-28 16:43 ` Vaelatern
@ 2023-02-28 16:43 ` Vaelatern
2023-02-28 16:44 ` robertek
2023-02-28 16:45 ` robertek
13 siblings, 0 replies; 15+ messages in thread
From: Vaelatern @ 2023-02-28 16:43 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1913 bytes --]
There's a closed pull request on the void-packages repository
zfs: divide under subpackages
https://github.com/void-linux/void-packages/pull/42484
Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->
The main intention of this PR is to separate the zfs tools from the kernel module. This change introduce several new subpackages for the `zfs` package.
Namely:
- zfs-tools
- zfs-dkms
- zfs-test
- zfs-zed
The original zfs package remain as a metapackage for the needed subpackages. This helps the transition (eg: for those having zfs installed, the system update will only introduce several new packages and will work as before). It is now possible to install purely the zfs-tools package if a non-distributed kernel is built with zfs.
I have outplaced the ztest to a new subpackage which is not as part of the zfs metapackage any more. Ztest is intended to be run only on testing systems.
I may provide additional information if needed. For example the contents of the packages, etc.
#### Testing the changes
- I tested the changes in this PR: **YES**
- Tested on native x86-64-glibc
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, (x86-64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64 (cross)
- x86-64-musl
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: zfs: divide under subpackages
2023-02-27 14:38 [PR PATCH] zfs: divide under subpackages robertek
` (11 preceding siblings ...)
2023-02-28 16:43 ` [PR PATCH] [Closed]: " Vaelatern
@ 2023-02-28 16:44 ` robertek
2023-02-28 16:45 ` robertek
13 siblings, 0 replies; 15+ messages in thread
From: robertek @ 2023-02-28 16:44 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1365 bytes --]
New comment by robertek on void-packages repository
https://github.com/void-linux/void-packages/pull/42484#issuecomment-1448505954
Comment:
I understand the intention to keep this as simple as possible from the maintenance point of view. I have also refactored it the way it would not interfere the stock users and allow customization if wanted. I definitely do not want to brake something in spite of some custom users.
I understand the noextract option, but wouldn't be viable just create subpackages for stuff that is able to be "noextracted" with nearly no cost? Or if it is some non-written convention in Void not to create subpackages much (as for example Alpine do) I would understand that.
Wouldn't then be an option to keep the zfs-userland in zfs package and only create subpackages with dkms and zed? The zfs-test is something that should not be present on any semi-production/user system anyway (but this is true also for the zinject).
With the version incompatibility breakage I remember that form the time of 0.6 versions myself, but since 2.0 or 2.1 I have never see any commit in 2.x branch to break the interoperability between kernel-useralnd on the same branch. And it is not an intention of this refactor. DKMS users will still have the same version on both and the ones that build the zfs inside kernel just need to care themselves.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: zfs: divide under subpackages
2023-02-27 14:38 [PR PATCH] zfs: divide under subpackages robertek
` (12 preceding siblings ...)
2023-02-28 16:44 ` robertek
@ 2023-02-28 16:45 ` robertek
13 siblings, 0 replies; 15+ messages in thread
From: robertek @ 2023-02-28 16:45 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 163 bytes --]
New comment by robertek on void-packages repository
https://github.com/void-linux/void-packages/pull/42484#issuecomment-1448506593
Comment:
Ok I undestand that.
^ permalink raw reply [flat|nested] 15+ messages in thread