Skip to content

Debian package contains libbeat snapshot version only #10

Description

@jautz

First of all: thank you for providing your software as Debian packages. There is one thing that in probably a bug, however:

From a dpkg/apt perspective the relevant version is not the one encoded in the file name but the one in the debian/control Version field. The execbeat packages contain a version sting like Version: 5.2.1-SNAPSHOT. This is not only a cosmetic issue because with the latest releases it became obvious that this version field does not change unless execbeat has its underlying libbeat version updated.
To clarify: both 3.0.0 and 3.0.1 are version 5.2.1-SNAPSHOT from the Debian perspective.

I would like to propose a different versioning scheme in the control file. I know that versioning schemes are a question of taste, so please take it as it is meant: as a suggestion.

One could simply put 3.0.1 there. But maybe it is a good idea to keep aligned with the major version of the elastic stack, currently 5. According to the debian policy the Version field's upstream version may contain additional characters. How about this: 5+3.0.1? Personally, I would also add the debian revision -1 suffix that makes it possible to release the same upstream version again with -2 if something is wrong with the packaging itself.

The following expressions yield true:

dpkg --compare-versions '5+3.0.1' '>>' '5+3.0.0'
dpkg --compare-versions '5+4.0.0' '>>' '5+3.0.1'
dpkg --compare-versions '6+1.0' '>>' '5+4.0.0'

The last example illustrates that one could even completely change the execbeat versioning scheme when the elastic stack major version changes.

To cut to the chase: there are many possibilities. But the main questions are: can you influence the debian/control file Version field in the context of your packaging process and if so, are you willing to change it?

Activity

  1. christiangalsterer commented on Feb 23, 2017

    @christiangalsterer
    Owner

    Hi @jautz,

    thank you for your feedback. This is a known issue in the beat infrastructure code and is planned to be fixed in the next major version and then also fixed in the execbeat.

  2. jautz commented on Feb 23, 2017

    @jautz
    Author

    Thank you, @christiangalsterer for your quick reply. It would be great if you could give me additional hints to these questions:

    • Could you please point me to the known issue you mentioned? I did not find it through the search engine (probably failed to use the right keywords).
    • Do you already know how the versioning scheme will look like when this is fixed (your version / their version / both)?
  3. christiangalsterer commented on Feb 23, 2017

    @christiangalsterer
    Owner

    Seems that it is also available in 5.2.1. Will look into it next days.

  4. christiangalsterer commented on Feb 23, 2017

    @christiangalsterer
    Owner

    Just tried it and it works (partially). One can set now indeed the version, but it is always suffixed with SNAPSHOT. Need to look into it.

  5. christiangalsterer commented on Feb 23, 2017

    @christiangalsterer
    Owner

    Seems that I also found the switch for this. Will do some further tests tomorrow before releasing a new version.

  6. added a commit that references this issue on Feb 23, 2017
  7. christiangalsterer commented on Feb 24, 2017

    @christiangalsterer
    Owner

    Release 3.1.1 is now available.

  8. jautz commented on Feb 24, 2017

    @jautz
    Author

    Great, thank you for your effort to get this fixed within one day.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions