Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hdf5 merge issue 486 v110 #490

Merged
merged 19 commits into from
Mar 31, 2021
Merged

Hdf5 merge issue 486 v110 #490

merged 19 commits into from
Mar 31, 2021

Conversation

lrknox
Copy link
Collaborator

@lrknox lrknox commented Mar 21, 2021

@derobins test/accum.c had conflicts, and I suspect that I've resolved them too conservatively, thus failing to bring all of PR #457 to hdf5_1_10. Please push any needed corrections to hdf5_merge_issue_486_v110 in fork lrknox.

hyoklee and others added 15 commits December 17, 2020 15:57
* Update HDF5PluginMacros.cmake

* Update HDF5PluginMacros.cmake
Undefined Bahavior Sanitizer errored here about left shifting negative numbers.
* Modify temporary rpath for testing in java example scripts.

* Update URL in source file Copyright headers for web copy of COPYING
file - src and test directories.
* Stop using global variables to share parse context with the lexer.

The lexer uses an unconventional strategy for parsing lexical categories
NUMBER (decimal numbers) and STRING (double-quoted strings) that involves
sharing the parse context with the lexer using global variables. There
are a couple of problems with that. First, the lexer is too complicated
for the simple tokenization it performs—it's hard to tell if it is
correct. Second, as @seanm points out, the shared global variables
spill into the namespace shared by other libraries and application
programs—e.g., VTK.

* Regenerate source files from *.[yl].

* Replace strndup, which isn't available on Windows, with a custom
routine, `trim_quotes`, that produces a copy of its `const char *`
argument with leading and trailing double quotes ('"') removed.

While I am here, remove the unnecessary statement `BEGIN INITIAL;`,
which I should have deleted in a previous commit.

* Regenerate .c from .l.

* You haven't programmed in C until you have programmed in High-Definition
(HD) C.

* \#include "H5private.h" for HD* definitions.

* Regenerate *.[ch] from *.[yl].
Fixes -Wreserved-identifier warnings due to multiple underscores in H5_HAVE___INLINE.
* Replaces checks for fork, etc. with H5_HAVE_UNISTD_H

Code previously checked for individual POSIX API calls using
H5_HAVE_FORK, etc. The calls we use have been standardized for
decades and available via unistd.h.

Some test messages that were missing when tests are skipped
due to a lack of unistd.h were also added.

The configure checks for individual POSIX API calls will be
removed in a later commit.

* Stupid formatter
* Modify temporary rpath for testing in java example scripts.

* Update URL in source file Copyright headers for web copy of COPYING (license) file.

* Add release_docs/code-conventions.md file.

* Add script to test h5py.

* Fix script error.

* Add file h5pytest.yml.

* Test declaration of counter variables in for loops.

* Committing clang-format changes

* Committing clang-format changes

* Added [] to line 126 of H5LTanalyze.l.
Ran bin/genparser with flex v2.6.4 and Bison v3.0.4 on jelly.

* Revert "Added [] to line 126 of H5LTanalyze.l."

This reverts commit e4a9cee.

* Revert extra commits to match canonical develop.

* Added [] to H5LTanalyze.l line 126 to eliminate warning "rule could not be
matched".
Ran bin/genparser hl/src with flex v2.6.4 and Bison v3.0.4 on jelly.

* Added HD to strdup in H5LTparse.y line 338.
Ran bin/genparser hlsrc again.

* Removed line 126 from H5LTanalyze.l - previous line matches.
Added previously removed line 318 of H5LTparse.y to fix hl_test_lite
failure.
Ran bin/genparser.

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* Add cmake variable HDF5_LIB_INFIX

This infix is added to all library names after 'hdf5'.
e.g. the infix '_openmpi' results in the library name 'libhdf5_openmpi.so'
This name is used in packages on debian based systems.
(see https://packages.debian.org/jessie/amd64/libhdf5-openmpi-8/filelist)

This option is useful when testing projects on debian based systems with
custom builds of hdf5 while trying to minimize differences between the
custom setup and the environment created by installing system packages.

* Added RELEASE.txt entry for HDF5_LIB_INFIX.

Co-authored-by: Larry Knox <lrknox@hdfgroup.org>
@lrknox lrknox requested a review from bljhdf as a code owner March 25, 2021 14:25
@lrknox
Copy link
Collaborator Author

lrknox commented Mar 31, 2021

@derobins test/accum.c had conflicts, and I suspect that I've resolved them too conservatively, thus failing to bring all of PR #457 to hdf5_1_10. Please push any needed corrections to hdf5_merge_issue_486_v110 in fork lrknox.

I reworked the test_swmr_write_big function at line 2085 in test/accum.c to match the changes in the develop version from checking for fork and pid to checking for unistd. The 1.1o version needed to get its H5F_t structure with H5I_object instead of H5VL_object, had a test filename defined instead of created with h5_fixname, and had no parameter for H5CX_pop(). Tests pass with the reworked function.

@lrknox lrknox merged commit df75d35 into HDFGroup:hdf5_1_10 Mar 31, 2021
@lrknox
Copy link
Collaborator Author

lrknox commented Mar 31, 2021

All checks passed in action hdf5 dev CI #808: https://github.com/HDFGroup/hdf5/actions/runs/703273578

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants