mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Fix version numbering foulups exposed by 10.1.
configure computed PG_VERSION_NUM incorrectly. (Coulda sworn I tested that logic back when, but it had an obvious thinko.) pg_upgrade had not been taught about the new dispensation with just one part in the major version number. Both things accidentally failed to fail with 10.0, but with 10.1 we got the wrong results. Per buildfarm.
This commit is contained in:
2
configure
vendored
2
configure
vendored
@ -16807,7 +16807,7 @@ _ACEOF
|
||||
# awk -F is a regex on some platforms, and not on others, so make "." a tab
|
||||
PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
|
||||
tr '.' ' ' |
|
||||
$AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
|
||||
$AWK '{printf "%d%04d", $1, $2}'`"
|
||||
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define PG_VERSION_NUM $PG_VERSION_NUM
|
||||
|
Reference in New Issue
Block a user