Commit graph

19 commits

Author SHA1 Message Date
Petter Reinholdtsen
0b31e31661 Add workaround for broken lsb_release in current Debian Sid/Bookworm
No longer add linuxcnc.org APT repo for unstable and bookworm builds
and add override to debian/configure and update-dch-from-git to get
sid/bookworms building until <URL: https://bugs.debian.org/1008735 > is
fixed.
2022-10-02 14:26:26 +02:00
Chris Radek
161abe630c Revert "Revert "Revert "drop the leading "1:" from debian version numbers"""
This reverts commit 2caf135fc1.
2012-03-31 12:26:15 -05:00
Chris Radek
2caf135fc1 Revert "Revert "drop the leading "1:" from debian version numbers""
This reverts commit 7f1986a3e0.
2012-03-31 01:07:25 -05:00
Chris Radek
7f1986a3e0 Revert "drop the leading "1:" from debian version numbers"
This reverts commit 99f1b2c8bc.
2012-03-30 19:35:03 -05:00
Sebastian Kuzminsky
99f1b2c8bc drop the leading "1:" from debian version numbers
Now that we've renamed our debian package to "linuxcnc", we no longer
need to maintain version number consistency with the old "emc2" packages.

We're going to keep the human-readable part of the version number
consistent with the old scheme, but we're going to drop the "1:" prefix,
it was a work-around for a version numbering bug back at the beginning
of time.
2012-03-30 12:51:58 -06:00
Sebastian Kuzminsky
aa780f295c rename the package from emc2 to linuxcnc harder
One more place for the rename...
2012-01-19 10:24:09 -07:00
Sebastian Kuzminsky
a85f2e224d Merge remote branch 'origin/v2.4_branch' into v2.5_branch 2011-09-21 19:10:18 -06:00
Sebastian Kuzminsky
c2fd32af16 packaging: make githelper set GIT_TAG always
That is, even if it can't verify tag signatures.  I don't like it,
but it's not worse than what we had before.
2011-09-21 16:02:21 -06:00
Sebastian Kuzminsky
528d4ef049 packaging: add some scripts for working with git
This commit does these things:

    * Add a small shell library called githelper.sh, which reads a bunch
      of info from git and makes it available as environment variables
      in the caller.

    * Add a script called version-is-release, which checks to see if
      the current version (HEAD) has a signed release tag pointing to it.

    * Update update-dch-from-git and get-version-from-git to use the
      new githelper library, for consistency.
2011-09-21 15:32:26 -06:00
Sebastian Kuzminsky
6f704093b7 change debian version number format, again
This amends commit 7e8dbfd6f0, changing
the debian version number again.  7e8dbfd changed the debian version
number to be valid, but broke automatic upgrades: the new debian version
numbers had a + instead of a -, so the new numbers sorted as older than
the old numbers.

This changes the + to another ., which is valid and makes the version
number sort come out right.
2011-08-14 09:15:40 -06:00
Sebastian Kuzminsky
7e8dbfd6f0 packaging: use valid debian version number format
Before this commit, we had debian version numbers like this:

    <MostRecentTag>-<CommitsSinceThen>-g<GitHash>

    In pre-releases (such as "2.5.0-pre1"), the "-" was replaced with "~",
    so it would sort as younger than the actual release (such as "2.5.0").

    An example version number is: 2.5.0~pre1-537-g3748da4

After this commit, we will have debian version numbers like this:

    <MostRecentTag>+<CommitsSinceThen>.g<GitHash>

    Again with the "-" replaced with "~".

    An example version number is: 2.5.0~pre1+538.g08d3fe2

Rationale:

We have a "native" debian package: a piece of software that's distributed
with its own debian packaging setup.

Debian version numbers are governed by the Debian Policy Manual.  Section
5.6.12 of version 3.8.4.0 (and other sections of earlier versions, going
back to the very beginning I think) specify that native debian packages
may not contain the "-" (dash) character in their version numbers.

The dash character is normally used to separate the upstream version
number from the debian packaging version number, and as a native package
we have no such division.

Details here:
<http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Version>
2011-08-08 16:28:04 -06:00
Sebastian Kuzminsky
e01d33fb2b wrap changelog lines at 72 chars for legibility 2011-07-15 19:55:08 -07:00
Sebastian Kuzminsky
340ca6adec let the user pass a branch to update-dch-from-git
Sane humans always work in the branch they currently have checked out
(ie, in the branch specified by .git/HEAD).

The buildbot, in contrast, is insane, and always works in the branch
"master", but with the working tree "git reset --hard" to the commit
it's building.

Thus for the buildbot's sake you need to pass the current branch in to
the tools that end up calling git describe.

This commit also makes debian/update-dch-from-git check for success or
failure of the get-version-from-git script.
2011-04-07 20:28:20 -06:00
Sebastian Kuzminsky
a1e21b3efb Make a script to say the version of the software
This commit splits the debian/update-dch-from-git script, factoring
out the code that determines the version, leaving behind the code that
updates the changelog.

This way the version information can be used to overwrite the VERSION
file, and generally be useful elsewhere.
2011-04-07 18:40:44 -06:00
Sebastian Kuzminsky
68fc9f72ca don't prepend to deb changelog if it's up-to-date
When the release manager releases, they manually update the
debian/changelog with the changes and the new version number.  They also
tag the tree at that point with the version number.

This commit makes that update-dch-from-git script detect this condition
and *not* prepend anything to the changelog.
2010-05-17 21:51:40 -05:00
Sebastian Kuzminsky
d0645c13ed let the user specify the branch name
The buildbot interface to git does not record what branch it's working on
in the repo itself, so this info needs to be supplied from the outside,
via the commandline.
2010-02-26 13:11:11 -07:00
Sebastian Kuzminsky
aa74c54313 fix debian package version numbers on the buildbot
"git describe" shows the most recent (timewise) tag in the history.
When we merge a branch that has tags into another branch, for example
merging 2.4 into master, the tags from both branches get searched by
git-describe.

Since we use tags to make the version numbers of our debian packages,
this can lead to incorrect debian versions.  Debs in the master repos are
always builds of the master branch, but they sometimes would incorrectly
claim to be 2.4 debs....  Debs in the 2.4 repos are always builds of the
2.4 branch, and they always have correct 2.4 version numbers (since we
haven't merged any branch with tags into 2.4 yet).

This commit fixes the way we run git-describe so it only searches for
tags appropriate for the current branch.
2010-02-26 08:27:30 -07:00
Jeff Epler
1acdfcadd4 improve changelog generation from git: faster, better version number 2010-02-11 15:55:58 -06:00
Sebastian Kuzminsky
61325cbad7 Add a helper script to update the debian changelog from the git log
Based on a one of Jeff's scripts for another project.
2010-01-25 13:04:19 -07:00