-
Notifications
You must be signed in to change notification settings - Fork 175
fix some meson build issues #889
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
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| # Portions Copyright (c) 2023-2025, IvorySQL Global Development Team | ||
|
|
||
| gb18030_2022_src_files = files( | ||
| 'utf8_and_gb18030_2022.c' | ||
| ) | ||
|
|
||
| if host_system == 'windows' | ||
| gb18030_2022_src_files += rc_lib_gen.process(win32ver_rc, extra_args: [ | ||
| '--NAME', 'gb18030_2022', | ||
| '--FILEDESC', 'gb18030_2022 - support gb18030 2022 with extension',]) | ||
| endif | ||
|
|
||
| custom_target('gb18030_2022.bc', | ||
| output: 'utf8_and_gb18030_2022.bc', | ||
| command: [perl, '../contrib/ivorysql_ora/gensql.pl', 'meson', '1.0'], | ||
| capture: true, | ||
| install: true, | ||
| install_dir: contrib_data_args['install_dir'], | ||
| ) | ||
|
|
||
| foreach file : ['utf8_and_gb18030_2022.bc', 'gb18030_2022.bc'] | ||
| run_target( | ||
| file, | ||
| command: ['touch', meson.current_build_dir() / file] | ||
| ) | ||
| endforeach | ||
|
|
||
| gb18030_2022 = shared_module('gb18030_2022', | ||
| gb18030_2022_src_files, | ||
| kwargs: contrib_mod_args, | ||
| ) | ||
| contrib_targets += gb18030_2022 | ||
|
|
||
| install_data( | ||
| 'gb18030_2022.control', | ||
| 'gb18030_2022--1.0.sql', | ||
| kwargs: contrib_data_args, | ||
| ) | ||
|
|
||
| tests += { | ||
| 'name': 'gb18030_2022', | ||
| 'sd': meson.current_source_dir(), | ||
| 'bd': meson.current_build_dir(), | ||
| 'regress': { | ||
| 'sql': [ | ||
| 'gb18030_2022_and_utf8', | ||
| 'copy', | ||
| ], | ||
| }, | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace tarball + setup.py install with pip; install Ninja via apt (simpler, safer).
Manual curl +
setup.py installis brittle and deprecated in Python packaging. Use pip for Meson and apt for Ninja to reduce supply‑chain risk and simplify PATH issues.Apply this diff:
📝 Committable suggestion
🤖 Prompt for AI Agents
🧩 Analysis chain
Confirm Meson 1.0.1 is within your supported range.
If you need a broader window for future Meson releases, consider a semver range via pip (e.g.,
meson>=1.0,<1.5) after confirming repo constraints.Run this to check declared Meson requirements and UUID default in the repo:
🏁 Script executed:
Length of output: 176
🏁 Script executed:
Length of output: 16210
🏁 Script executed:
Length of output: 13153
Pin CI Meson to the project's supported range (<0.56); don't install Meson 1.0.1.
Top-level meson.build declares meson_version: '>=0.54' and contains a comment explicitly preferring <0.56; meson_options.txt sets the 'uuid' default to 'ossp'. Update .github/workflows/meson_build.yml to install a Meson release within that window (for example pip install "meson>=0.54,<0.56" or pin to a tested 0.55.x) or intentionally bump the project's meson_version/comments if you want to move to 1.x. Ensure CI provides the OSSP UUID library when using the 'ossp' default.
🤖 Prompt for AI Agents