Skip to content

GH-41681: [GLib] Generate separate version macros for each GLib library - #41721

Merged
kou merged 21 commits into
apache:mainfrom
adamreeve:glib_separate_version_headers
May 22, 2024
Merged

kou merged 21 commits into
apache:mainfrom
adamreeve:glib_separate_version_headers

Conversation

@adamreeve

@adamreeve adamreeve commented May 20, 2024 •

Copy link
Copy Markdown
Contributor

Rationale for this change

This is to support later using the *_AVAILABLE_IN_* macros to add dllexport/dllimport attributes required for building these libraries with MSVC (#41134)

What changes are included in this PR?

Are these changes tested?

This doesn't include any behaviour change that can be unit tested.

Are there any user-facing changes?

No

@adamreeve
adamreeve requested a review from kou as a code owner May 20, 2024 01:43
@github-actions

Copy link
Copy Markdown

⚠️ GitHub issue #41681 has been automatically assigned in GitHub to PR creator.

Comment thread c_glib/tools/gen-version-header.py Resolved
Comment thread c_glib/tools/gen-version-header.py Resolved
Comment thread c_glib/tools/gen-version-header.py Resolved
Comment thread c_glib/parquet-glib/version.h.in Resolved
Comment thread c_glib/meson.build Resolved
Comment thread c_glib/arrow-dataset-glib/version.h.in Resolved
Comment thread c_glib/arrow-cuda-glib/version.h.in Resolved
Comment thread c_glib/tools/gen-version-header.py Resolved
Comment thread c_glib/tools/gen-version-header.py Resolved
Comment thread c_glib/tools/gen-version-header.py Resolved
Comment thread c_glib/tools/gen-version-header.py Resolved
@adamreeve
adamreeve requested a review from assignUser as a code owner May 21, 2024 02:49

@kou kou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Comment thread c_glib/arrow-cuda-glib/version.h.in Resolved
Comment thread c_glib/arrow-cuda-glib/version.h.in Resolved
Comment thread c_glib/arrow-cuda-glib/cuda.h Resolved
Comment thread c_glib/arrow-dataset-glib/file-format.h Resolved
Comment thread c_glib/parquet-glib/statistics.h Resolved
Comment thread c_glib/parquet-glib/version.h.in Resolved
Comment thread c_glib/parquet-glib/version.h.in Resolved
Comment thread dev/release/utils-prepare.sh Resolved
adamreeve and others added 2 commits May 21, 2024 20:26
@kou
kou merged commit 37e5240 into apache:main May 22, 2024
@adamreeve
adamreeve deleted the glib_separate_version_headers branch May 22, 2024 00:47
@conbench-apache-arrow

Copy link
Copy Markdown

After merging your PR, Conbench analyzed the 7 benchmarking runs that have been run so far on merge-commit 37e5240.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details. It also includes information about 23 possible false positives for unstable benchmarks that are known to sometimes produce them.

G_BEGIN_DECLS

#define GGANDIVA_TYPE_NODE (ggandiva_node_get_type())
GGANDIVA_AVAILABLE_IN_0_12;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just noticed I accidentally added semicolons at the end of the macros in this header, which causes a problem when the macros get replaced with something. I can fix this as part of #41599

vibhatha pushed a commit to vibhatha/arrow that referenced this pull request May 25, 2024
… library (apache#41721)

### Rationale for this change

This is to support later using the `*_AVAILABLE_IN_*` macros to add `dllexport/dllimport` attributes required for building these libraries with MSVC (apache#41134)

### What changes are included in this PR?

* Add a Python script that generates `DEPRECATED_IN` and `AVAILABLE_IN` macros for each GLib library
* Add missing `AVAILABLE_IN` annotations to some methods in the GLib libraries (except the main arrow-glib library as this is being done in apache#41599)

### Are these changes tested?

This doesn't include any behaviour change that can be unit tested.

### Are there any user-facing changes?

No
* GitHub Issue: apache#41681

Lead-authored-by: Adam Reeve <adreeve@gmail.com>
Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants