remove check on patch version

hopefully changes in that number always are compatible.
Without this every bugfix update would require a full transition as it will
abort when the version does not match exactly.
The version check will be executed with compile time values on every file
access see e.g. H5F_ACC_RDONLY in src/H5Fpublic.h
Bug-Debian: http://bugs.debian.org/693610
===================================================================

Gbp-Pq: Name relax-version-check.patch
This commit is contained in:
Julian Taylor 2022-05-14 03:32:24 +08:00 committed by openKylinBot
parent 814009f703
commit 8896562173
2 changed files with 14 additions and 6 deletions

View File

@ -751,8 +751,7 @@ H5check_version(unsigned majnum, unsigned minnum, unsigned relnum)
disable_version_check = (unsigned int)HDstrtol (s, NULL, 0); disable_version_check = (unsigned int)HDstrtol (s, NULL, 0);
} }
if (H5_VERS_MAJOR!=majnum || H5_VERS_MINOR!=minnum || if (H5_VERS_MAJOR!=majnum || H5_VERS_MINOR!=minnum) {
H5_VERS_RELEASE!=relnum) {
switch (disable_version_check) { switch (disable_version_check) {
case 0: case 0:
HDfprintf(stderr, "%s%s", version_mismatch_warning, HDfprintf(stderr, "%s%s", version_mismatch_warning,

View File

@ -152,8 +152,12 @@ TESTING() {
esac esac
case "$h5DisableVersion" in case "$h5DisableVersion" in
1) 1)
if [ "$wrongversionnumbers" != "r" ]; then
# W2/OK: Different Warning, exit 0. # W2/OK: Different Warning, exit 0.
WarnMesg2 > $expect WarnMesg2 > $expect
else
cp /dev/null $expect
fi
expect_code=0 expect_code=0
;; ;;
[2-9]|[1-9][0-9]*) [2-9]|[1-9][0-9]*)
@ -162,8 +166,13 @@ TESTING() {
expect_code=0 expect_code=0
;; ;;
*) # W/A: Warning, abort and exit non-0. *) # W/A: Warning, abort and exit non-0.
if [ "$wrongversionnumbers" != "r" ]; then
WarnMesg > $expect WarnMesg > $expect
expect_code=6 # Signal Abort exit code (128+6) expect_code=6 # Signal Abort exit code (128+6)
else
cp /dev/null $expect
expect_code=0
fi
;; ;;
esac esac
fi fi