-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
autoconf: allow Release to contain hyphen #12437
Conversation
Meta: 1 Name: zfs-macOS Signed-off-by: Jorgen Lundman <[email protected]>
I'm a little concerned this might cause some subtle problems since the packaging convention is that hyphens are used to separate the name, version, and release. Allowing a hyphen as part of the name makes it unclear for anything parsing this string where the version and release fields start. Would it perhaps make more sense to include the "macOS" component in the release field? Is the motivation here to keep the package naming consistent while moving to the upstream code? |
Maybe I'm doing something wrong but I'm not getting that line in my zfs_gitrev.h. Here's what I did:
If I do a |
Apologies - I put that in as an example as to what the version string would look like. To get gitrev to be correct, we simply have to git tag it that way. That is fine, and no change needed. What it comes down to is three things;
Comes from git tag, no issues.
Kernel version string, produced by Finally;
The kernel version comes from macOS sources, and we read it from sysctl. Then it prepends it with "zfs-kmod" - ugly as hell, but small price to be consistent with other platforms. It should probably say If we change So we either stop using hyphen in the We need our git tags to be unique to that of Linux (at least for now) since otherwise we'd overlap. Which means the version displayed to the users also need to be reflecting that. We could also move When addressing this issue, we just took the path that seemed to "fix the thing that was broken", but honestly, I don't really mind how it is addressed, it's just cosmetics! :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, thanks for the explanation. Then I think this should be fine.
To avoid clashing with tags and releases, we'll use "zfs-macOS". Meta: 1 Name: zfs-macOS Reviewed-by: John Kennedy <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Tony Hutter <[email protected]> Signed-off-by: Jorgen Lundman <[email protected]> Closes openzfs#12437
To avoid clashing with tags and releases, we'll use "zfs-macOS". Meta: 1 Name: zfs-macOS Reviewed-by: John Kennedy <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Tony Hutter <[email protected]> Signed-off-by: Jorgen Lundman <[email protected]> Closes openzfs#12437
To avoid clashing with tags and releases, we'll use "zfs-macOS". Meta: 1 Name: zfs-macOS Reviewed-by: John Kennedy <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Tony Hutter <[email protected]> Signed-off-by: Jorgen Lundman <[email protected]> Closes openzfs#12437
To avoid clashing with tags and releases, we'll use "zfs-macOS". Meta: 1 Name: zfs-macOS Reviewed-by: John Kennedy <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Tony Hutter <[email protected]> Signed-off-by: Jorgen Lundman <[email protected]> Closes openzfs#12437
To avoid clashing with tags and releases, we'll use "zfs-macOS".
Motivation and Context
Description
How Has This Been Tested?
Types of changes
Checklist:
Signed-off-by
.