Commit 3d0e287
committed
Ensure to return the right release version
Fow now, if we build Cloudberry from a source zip file (not using git
clone), the version information displayed is not matched the right info,
always return 1.0.0 like this:
```
PostgreSQL 14.4 (Apache Cloudberry 1.0.0 build dev)
```
In this PR, these changes are made:
- Update the PACKAGE_VERSION string from 1.0.0 to 2.0.0devel, which is
similar to the way PostgreSQL is using.
- Generate the new configure file with the new configure.ac
- Update the getversion file to take the PACKAGE_VERSION as the base
version info, and append `+dev.<count>.g<sha>` whenever possible
unless the current commit is exactly on a tag.
After these changes, will return the right info no matter how they get
the source code, like git-clone, source tarballs.
For each release, we also need to update the version string to match the
right release version manually in each branch.
See: http://github.com/apache/cloudberry/discussions/9091 parent 26b9cda commit 3d0e287
4 files changed
Lines changed: 22 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
570 | 570 | | |
571 | 571 | | |
572 | 572 | | |
| 573 | + | |
573 | 574 | | |
574 | 575 | | |
575 | 576 | | |
| |||
581 | 582 | | |
582 | 583 | | |
583 | 584 | | |
584 | | - | |
585 | | - | |
| 585 | + | |
| 586 | + | |
586 | 587 | | |
587 | 588 | | |
588 | 589 | | |
| |||
759 | 760 | | |
760 | 761 | | |
761 | 762 | | |
762 | | - | |
763 | 763 | | |
| 764 | + | |
764 | 765 | | |
765 | 766 | | |
766 | 767 | | |
| |||
1512 | 1513 | | |
1513 | 1514 | | |
1514 | 1515 | | |
1515 | | - | |
| 1516 | + | |
1516 | 1517 | | |
1517 | 1518 | | |
1518 | 1519 | | |
| |||
1578 | 1579 | | |
1579 | 1580 | | |
1580 | 1581 | | |
1581 | | - | |
| 1582 | + | |
1582 | 1583 | | |
1583 | 1584 | | |
1584 | 1585 | | |
| |||
1608 | 1609 | | |
1609 | 1610 | | |
1610 | 1611 | | |
1611 | | - | |
| 1612 | + | |
1612 | 1613 | | |
1613 | 1614 | | |
1614 | 1615 | | |
| |||
1781 | 1782 | | |
1782 | 1783 | | |
1783 | 1784 | | |
1784 | | - | |
| 1785 | + | |
1785 | 1786 | | |
1786 | 1787 | | |
1787 | 1788 | | |
| |||
2534 | 2535 | | |
2535 | 2536 | | |
2536 | 2537 | | |
2537 | | - | |
| 2538 | + | |
2538 | 2539 | | |
2539 | 2540 | | |
2540 | 2541 | | |
| |||
8380 | 8381 | | |
8381 | 8382 | | |
8382 | 8383 | | |
8383 | | - | |
| 8384 | + | |
8384 | 8385 | | |
8385 | 8386 | | |
8386 | 8387 | | |
| |||
8407 | 8408 | | |
8408 | 8409 | | |
8409 | 8410 | | |
8410 | | - | |
8411 | | - | |
| 8411 | + | |
| 8412 | + | |
8412 | 8413 | | |
8413 | 8414 | | |
8414 | 8415 | | |
| |||
23331 | 23332 | | |
23332 | 23333 | | |
23333 | 23334 | | |
23334 | | - | |
| 23335 | + | |
23335 | 23336 | | |
23336 | 23337 | | |
23337 | 23338 | | |
| |||
23402 | 23403 | | |
23403 | 23404 | | |
23404 | 23405 | | |
23405 | | - | |
| 23406 | + | |
23406 | 23407 | | |
23407 | 23408 | | |
23408 | 23409 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
0 commit comments