Nils Philippsen
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    --- tags: Automatic Release Field, Summary --- # Summary: Approaches for Automatically Calculating the RPM Release Field Small reminder: * We aim for a Proof Of Concept/Prototype * It will be opt-in * We don't aim for 100% of the use-cases/packages * We have 4 weeks left to work on this (deadline: end of March) ## Approach #1: `<#commits>.<#builds>%{?dist}` Use the number of commits since last version bump, and the number of builds for the same commit for the same Fedora version, and append ``%{?dist}``. ### Notes 1. "Number of commits" must be (at least) the longest "path" from the commit back to when the version was bumped, e.g. in the case of merge commits. Could e.g. also be "number of all commits between this one and the version bump". 2. Uncommitted changes would have to be treated as one commit. ### Why? 1. Can easily be reproduced anywhere with access to the git repository. 2. Changelog entries can be mapped to version-releases by backtracking through git history. 3. Simplifies mass rebuilds because you can do any number of builds from the same commit. 4. The next release value is reliably and deterministically guessable before you submit a build. ### Why Not? 1. Only reliably allows opting in when the version is bumped. This excludes upstreams which don't receive version updates. 2. Needs the build system to know how many builds where done for a commit. Arguably, this doesn't matter locally as it only affects rebuilds. 3. A clean upgrade path can't be ensured. An older Fedora release may have more commits since the last version than a newer one, resulting in a higher release value for it. 4. In the described form, doesn't cater for snapshot releases, as the snapshot part needs to go between the release number and the dist tag. ### Requirements 1. Git history since at least the last version change (but we also need that for generating the changelog). 2. Build system information for number of builds for the same commit in the same Fedora version (or default to 1). 3. Relaxation or abolishment of the "clean upgrade path" requirement in Fedora. 4. An upstream version bump. ### Tweaks 1. Allow "priming" the number of commits with an offset to cater for upstreams that don't release new versions, working around Con 1 above. 2. Add options to the used macro to cater for snapshots which would add the snapshot information in between `<#commit>.<#build>` and the dist tag (Con 4). ## Approach #2: Using \[E\]VR Information of Existing Builds Look at the existing latest builds in this and other Fedora versions, and determine a bumped release which satisfies a clean upgrade path, if at all possible (i.e. if there is a number range to fit things into). Allow users to specify information about snapshots, pre-releases, to be worked into the release field as described in the [Versioning Guidelines](https://docs.fedoraproject.org/en-US/packaging-guidelines/Versioning/#_more_complex_versioning). ### Why? 1. Simplifies mass rebuilds because you can do any number of builds from the same commit. 2. Releases look familiar and grow at a similar pace than before, as what many maintainers do now is emulated. 3. Ensures a clean upgrade path, if at all possible. 4. Allows catering for snapshot releases as documented. 5. Allows opting in or out anytime. ### Why Not? 1. Needs the build system for information about builds in this and other Fedora versions. 2. Not easy to reproduce locally because we don’t have machine-consumable knowledge about other builds in e.g. the dist-git repo yet. 3. \[E\]VRs aren't easily determined for changelog entries unless you have access to the build system. NB: All the above are essentially "needs access to the build system to do X". ### Requirements 1. Information about existing builds in different Fedora versions, this and others. 2. Therefore: Access to the build system. ## Tweaks ### Reintroduce Tagged Commits in Dist-Git After a successful build, Koji tags the commit from which it built with e.g. `%{name}-%{epoch}:%{version}-%{release}`, ensuring that information about existing builds are available wherever you have access to the repository. NB: exact type of git tag TBD. #### Why? 1. No access to the build system is needed at all in order to get to the same results everywhere. This modified scheme doesn't care about number of builds, it just bumps. 2. Changelog entries can be mapped to version-releases by backtracking through git history. 3. Simplifies mass rebuilds because you can do any number of builds from the same commit. 4. The next release value is reliably and deterministically guessable before you submit a build. #### Requirements 1. Koji would have to be made able to tag commits in dist-git. 2. Git history since at least the last version change (but we also need that for generating the changelog). 3. Upon introduction, the existing latest builds for Fedora versions we care about would have to be tagged. This can mean one mass event, or be done lazily, i.e. whenever people use the respective macro for the first time when building. 4. Package maintainers would have to be prevented from pushing tags into the dist-git repo themselves.

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully