Commit 72e2ab6
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 49d49b8 commit 72e2ab6
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 | | |
| |||
758 | 759 | | |
759 | 760 | | |
760 | 761 | | |
761 | | - | |
762 | 762 | | |
| 763 | + | |
763 | 764 | | |
764 | 765 | | |
765 | 766 | | |
| |||
1510 | 1511 | | |
1511 | 1512 | | |
1512 | 1513 | | |
1513 | | - | |
| 1514 | + | |
1514 | 1515 | | |
1515 | 1516 | | |
1516 | 1517 | | |
| |||
1576 | 1577 | | |
1577 | 1578 | | |
1578 | 1579 | | |
1579 | | - | |
| 1580 | + | |
1580 | 1581 | | |
1581 | 1582 | | |
1582 | 1583 | | |
| |||
1606 | 1607 | | |
1607 | 1608 | | |
1608 | 1609 | | |
1609 | | - | |
| 1610 | + | |
1610 | 1611 | | |
1611 | 1612 | | |
1612 | 1613 | | |
| |||
1778 | 1779 | | |
1779 | 1780 | | |
1780 | 1781 | | |
1781 | | - | |
| 1782 | + | |
1782 | 1783 | | |
1783 | 1784 | | |
1784 | 1785 | | |
| |||
2531 | 2532 | | |
2532 | 2533 | | |
2533 | 2534 | | |
2534 | | - | |
| 2535 | + | |
2535 | 2536 | | |
2536 | 2537 | | |
2537 | 2538 | | |
| |||
8377 | 8378 | | |
8378 | 8379 | | |
8379 | 8380 | | |
8380 | | - | |
| 8381 | + | |
8381 | 8382 | | |
8382 | 8383 | | |
8383 | 8384 | | |
| |||
8404 | 8405 | | |
8405 | 8406 | | |
8406 | 8407 | | |
8407 | | - | |
8408 | | - | |
| 8408 | + | |
| 8409 | + | |
8409 | 8410 | | |
8410 | 8411 | | |
8411 | 8412 | | |
| |||
23298 | 23299 | | |
23299 | 23300 | | |
23300 | 23301 | | |
23301 | | - | |
| 23302 | + | |
23302 | 23303 | | |
23303 | 23304 | | |
23304 | 23305 | | |
| |||
23369 | 23370 | | |
23370 | 23371 | | |
23371 | 23372 | | |
23372 | | - | |
| 23373 | + | |
23373 | 23374 | | |
23374 | 23375 | | |
23375 | 23376 | | |
| |||
| 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