Skip to content

Why the change #126

Closed
Closed

Description

@wisemagic777

I noticed that the makefile has changed from EXTRAVERSION = -zen to EXTRAVERSION = -zen1
Why is that?

Activity

  1. heftig commented on Aug 4, 2018

    @heftig

    I've started to tag releases.

  2. damentz commented on Aug 15, 2018

    @damentz
    Member

    This is actually a good point, the tag and the extraversion don't need to be the same.

    If build systems that makes the binary kernel are configured correctly, they'll reference the tag when getting the kernel source or diff. The package user can then trace back to the original PKGBUILD or distribution package source to find out where to get the original source code.

    Also, since a human being is updating the tag (unless you're using a script to both tag and update the extraversion), there's a possibility that you'll tag a release with say, zen2 or zen3, but the zen1 extraversion will remain in the snapshot, leaving users who learn to depend on that to get the wrong idea of what version of the kernel they're using.

    EDIT: And finally, the zen1 consecutive tags are referring to your packaged release of zen-kernel. Maybe it's best to keep that to the package, not the Makefile. Especially since we have others redistributing and compiling with their own configuration, the extraversion doesn't have much meaning on its own, but is fine as an identifier that the kernel source is a derivative of zen-kernel.

    Jan, what are your thoughts?

  3. heftig commented on Aug 15, 2018

    @heftig

    I do use a script to change the EXTRAVERSION, commit and tag.

    I like to follow upstream procedures where possible. Kernel.org handles their releases like this. The build system also provides a way to inject version suffixes (localversion* files). If I wanted to nail the kernel version to the $pkgver I would have to patch the Makefile during the build again.

  4. heftig commented on Aug 15, 2018

    @heftig

    And no, the -zen1 consecutive suffixes refer to source releases (tags here), not package releases.

  5. damentz commented on Aug 16, 2018

    @damentz
    Member

    And no, the -zen1 consecutive suffixes refer to source releases (tags here), not package releases.

    Yes I understand that, the git tag is a snapshot that you choose to use in your package. By also putting the extraversion into the Makefile, the tag ceases to simply represent a snapshot used by a package maintainer, but a definitive version of zen-kernel.

    As soon as I merge any updates ahead of you, I'm now obligated to bump the extraversion and generate a tag that I may not use, or is not up to your standards or your package (kernel fails to build with specific configurations, doesn't represent behavior you want in Arch zen packages). If I don't bump the extraversion, then I'm not properly recording a significant update, and the unwary may misunderstand what the extraversion means, thinking they're on the latest. This is exactly what happened with the previous historical group maintaining zen, and we decided to drop tags (and extraversion updates?), and made a general policy that "master" must work instead.

    In my opinion, if the extraversion has a chance of being out of date, I'd prefer just removing it all together. It's the package maintainer's responsibility to carve a release out of a rolling master branch, test it, and describe its version in their package. We already have the ZEN tag for wary users to know where the sources came from - for example:

    Linux damentz64 4.17.14-1-lqx #1 ZEN SMP PREEMPT Mon Aug 13 22:10:02 CDT 2018 x86_64 GNU/Linux

    This should all be explainable in a wiki... which we should probably need to get to, to solve #111
    and #30 🤔. I personally don't think it will be confusing, we can do something like:

    • X.YY/master - general stable development - should trail or match a current tag if stable
    • X.YY/master-* - ephemeral development - used for testing, changes that would require rewriting history frequently (merging release candidate patches, for example), or providing a fork of master with features that would destabilize common configurations
    • X.YY/feature - feature branch, typically containing out-of-tree patches, backports, and direct kernel tuning
    • tag: vX.YY-zenZ - stable snapshots used by Zen packages maintained by @heftig
    • tag: vX.YY-lqxZ - stable snapshots used by Liquorix packages maintained by @damentz

    And I'd be ok switching over to your zen tags and pushing out new ones as there are changes to merge, but Liquorix's config is different enough that I can't guarantee that a tag that builds and runs well on Liquorix will be stable on your configuration, thus the reason for different tags. Us sharing the same tags is a recipe for instability and tag hopping.

    I like to follow upstream procedures where possible. Kernel.org handles their releases like this. The build system also provides a way to inject version suffixes (localversion* files). If I wanted to nail the kernel version to the $pkgver I would have to patch the Makefile during the build again.

    This may just me being used to Debian packages, but I see no problem with the package scripts hot patching the version in the source and package build. The package also contains the configuration, so it's natural that a patch update and a configuration change will go hand-in-hand. I think an update to a package in this way truly represents a "zenY" update - the same goes for Liquorix. The patch on its own is just tells half the story.

  6. heftig commented on Aug 16, 2018

    @heftig

    As soon as I merge any updates ahead of you, I'm now obligated to bump the extraversion and generate a tag that I may not use [...]. If I don't bump the extraversion, then I'm not properly recording a significant update, and the unwary may misunderstand what the extraversion means, thinking they're on the latest.

    You don't have to make tags every time you push to master. If the release is not from a tagged commit, the build system will note this in the version by appending -g<commit> if LOCALVERSION_AUTO is enabled (and it is, by default) and + if it is not. The upstream kernel is fine with this (master does move between -rcX releases) and I think we will be, too.

    This is exactly what happened with the previous historical group maintaining zen, and we decided to drop tags (and extraversion updates?), and made a general policy that "master" must work instead.

    Can you elaborate what the problems were? Was the kernel used only for Gentoo at the time?

    • X.YY/master-* - ephemeral development - used for testing, changes that would require rewriting history frequently (merging release candidate patches, for example), or providing a fork of master with features that would destabilize common configurations

    You can also push tags that aren't on branches. For example, for the Arch kernel, which gets its patches rebased for every release, I just push tags.

  7. damentz commented on Aug 16, 2018

    @damentz
    Member

    You don't have to make tags every time you push to master.

    Right, but lets say I merge the latest upstream updates, plus a fix for BFQ, as an example. I'll push up a tag to indicate the snapshot used by the next Liquorix update, maybe including some release candidate patches that are not in master (so as not to keep rewriting history). If you're taking some time off, the extraversion will stay at its previous value, despite changes being applied to master.

    Because the extraversion contains an actual definitive version, it needs to bump after a significant update, otherwise it loses its meaning, and a '-zenN' release can cover a few to hundreds of commits. However, you're tying the extraversion to the official zen tags for the Arch linux-zen package, so if I bump the extraversion, I need to also generate a tag to keep things in sync. The tag of a '-zenN' release targets a single commit, while the extraversion in the master branch can cover any number of commits depending on how diligently it's kept up-to-date.

    Do you understand what I'm saying here? The sub-version of zen-kernel updates to the upstream Linux kernel doesn't belong in EXTRAVERSION. Unless you can help me understand what you're seeing, lets keep the EXTRAVERSION value up to the package scripts and restore the EXTRAVERSION value back to "-zen".

    Can you elaborate what the problems were? Was the kernel used only for Gentoo at the time?

    Yes, what happened is that Brandon, who went by "cheater-conrad" if I remember correctly, was tagging releases for his specific usage of Zen. However, all the other members, including me, didn't care about his requirements for a tag, or when an update was worth tagging in the first place. Tags from Brandon would lag significantly behind master, and we'd get lots of inquiries about bad behavior in the tag that was already fixed in master, or vice versa.

    This is obviously far more exaggerated than the current situation, since a tag is typically cut per package update, and package updates almost always get released on every upstream kernel minor update.

    You can also push tags that aren't on branches. For example, for the Arch kernel, which gets its patches rebased for every release, I just push tags.

    Ya, that's what I like about tagging currently with Liquorix. Since I typically apply the latest release candidate patches at the time of tagging, I can continually reset X.YY/master-liquorix to X.YY/master, then re-apply the latest release candidates before cutting a tag, and you can still checkout historical tags and see all the commits that have already been rewritten in their original branch.

  8. added a commit that references this issue on Aug 18, 2018
    0f0a6d1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions