Skip to content
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

Improve Debian package versioning #32

Closed
wants to merge 266 commits into from
Closed

Improve Debian package versioning #32

wants to merge 266 commits into from

Conversation

jbfavre
Copy link

@jbfavre jbfavre commented Feb 11, 2017

Though it manages both CPACK_DEBIAN_PACKAGE_VERSION and CPACK_DEBIAN_PACKAGE_RELEASE variables, CPack only use first one to build Debian package.
This lead to have a version number without any release indication.

The patch aims to set CPACK_DEBIAN_PACKAGE_VERSION with both PACKAGE_VERSION and PACKAGE_RELEASE variables.

Adding DEB variable to CPACK_DEBIAN_PACKAGE_VERSION allows to add distribution name in version.
This is mandatory when using a Debian repository managed by reprepro, which only allows one package file per version.
As an example, you can't have mariadb-columnstore-client package for both jessie & stretch with version 1.0.7 because package are likely to have different checksums.

Packages can be built with command:

cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mariadb/columnstore/mysql -DDEB=jessie
make -j4 package

Resulting packages will have version 1.0.7-1~jessie instead of 1.0.7.

Please beware that this patch also might break your CI because package filename is modified.

david hill and others added 30 commits June 6, 2016 22:41
… round(tan(0)) -- cause the thd->is_error flag set. This in turn suppresses the call of rnd_end, which leaves garbage for the next query. Call rnd_end in this situation.
LinuxJedi and others added 19 commits December 20, 2016 18:24
RPM workaround not needed in debian packages
…e-processing. Don't just throw it away for a mem leak.
MCOL-550 delete the result object from lex that we don't need from pr…
MCOL-562 Fix Debian package dependencies
Though it manages both `CPACK_DEBIAN_PACKAGE_VERSION` and `CPACK_DEBIAN_PACKAGE_RELEASE` variables, CPack only use first one to build Debian package.
This lead to have a version number without any release indication.

The patch aims to set `CPACK_DEBIAN_PACKAGE_VERSION` with both `PACKAGE_VERSION`, `PACKAGE_RELEASE`.

Adding `DEB` variable to `CPACK_DEBIAN_PACKAGE_VERSION` allows to include distribution name in version.
This is mandatory when using a Debian repository managed by `reprepro`, which only allows one package file per version.
So, you can't have `mariadb-columnstore-client` package for both `jessie` & `stretch` with version `1.0.7`

Packages can be built with command:

    cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mariadb/columnstore/mysql -DDEB=jessie
    make -j4 package

Resulting packages will have version `1.0.7-1~jessie` instead of `1.0.7`.

Please beware that this patch also might break your CI because package filename is modified.
@jbfavre jbfavre changed the title Improve Debian package version Improve Debian package versioning Feb 11, 2017
@LinuxJedi
Copy link
Contributor

Created MCOL-565 for this and assigned to Ben to review: https://jira.mariadb.org/browse/MCOL-565

@LinuxJedi
Copy link
Contributor

LinuxJedi commented Aug 9, 2019

The mariadb-columnstore-server tree is now deprecated.

@LinuxJedi LinuxJedi closed this Aug 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
8 participants