mirror of https://gitee.com/openkylin/hdf5.git
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:
parent
814009f703
commit
8896562173
3
src/H5.c
3
src/H5.c
|
@ -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,
|
||||||
|
|
|
@ -152,8 +152,12 @@ TESTING() {
|
||||||
esac
|
esac
|
||||||
case "$h5DisableVersion" in
|
case "$h5DisableVersion" in
|
||||||
1)
|
1)
|
||||||
# W2/OK: Different Warning, exit 0.
|
if [ "$wrongversionnumbers" != "r" ]; then
|
||||||
WarnMesg2 > $expect
|
# W2/OK: Different Warning, exit 0.
|
||||||
|
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.
|
||||||
WarnMesg > $expect
|
if [ "$wrongversionnumbers" != "r" ]; then
|
||||||
expect_code=6 # Signal Abort exit code (128+6)
|
WarnMesg > $expect
|
||||||
|
expect_code=6 # Signal Abort exit code (128+6)
|
||||||
|
else
|
||||||
|
cp /dev/null $expect
|
||||||
|
expect_code=0
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue