Skip to content

fix Issue#887 ivorysql-wasm meson build error#914

Merged
gaoxueyu merged 1 commit intoIvorySQL:masterfrom
OreoYang:ivorysql_wasm_meson_build
Oct 13, 2025
Merged

fix Issue#887 ivorysql-wasm meson build error#914
gaoxueyu merged 1 commit intoIvorySQL:masterfrom
OreoYang:ivorysql_wasm_meson_build

Conversation

@OreoYang
Copy link
Copy Markdown
Collaborator

@OreoYang OreoYang commented Oct 9, 2025

drop to master branch

Summary by CodeRabbit

  • Chores

    • Updated default UUID library selection to use e2fs by default when enabling uuid-related functionality, improving out-of-the-box compatibility on most systems.
    • Adjusted Simplified Chinese (zh_CN) translation for an initdb NOTICE to a cleaner single-line format, aligning with the source message.
  • Style

    • Minor formatting cleanup in localized messaging to ensure consistent punctuation and spacing.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Oct 9, 2025

Walkthrough

Updates build configuration to change the default UUID library from ossp to e2fs in Meson options. Adjusts a Chinese translation in initdb to match a consolidated single-line NOTICE message format, aligning whitespace and punctuation with the updated source string.

Changes

Cohort / File(s) Summary
Build configuration: UUID default
meson_options.txt
Changed default for combo option uuid from ossp to e2fs; choices and description unchanged.
Localization: initdb zh_CN
src/bin/initdb/po/zh_CN.po
Updated translation to match source NOTICE string reformatted from multi-line to single-line; minor whitespace/punctuation adjustments.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

  • fix some meson build issues #889 — Also changes the default of the same Meson uuid combo option, but to ossp, indicating a closely related configuration decision.

Poem

In Meson fields I nibble, flip a bit, then flee,
From ossp to e2fs—new default destiny.
A NOTICE line unwrapped, now single, clean, and neat,
翻译随之舞步,落字更精细。
Thump-thump! My review’s brief—what a tasty treat. 🥕

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title succinctly identifies that the pull request addresses Issue #887 by fixing the IvorySQL-WASM Meson build error, which is the primary change in the branch. It is clear, specific, and concise, enabling teammates to understand the main purpose at a glance without extraneous detail. The reference to the issue number is acceptable and common practice for tracking.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 36b9f81 and 534840b.

📒 Files selected for processing (2)
  • meson_options.txt (1 hunks)
  • src/bin/initdb/po/zh_CN.po (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (6)
  • GitHub Check: oracle_pg_regression (ubuntu-latest)
  • GitHub Check: build (ubuntu-latest)
  • GitHub Check: pg_regression (ubuntu-latest)
  • GitHub Check: meson_build (ubuntu-latest)
  • GitHub Check: contrib_regression
  • GitHub Check: oracle_regression (ubuntu-latest)
🔇 Additional comments (2)
src/bin/initdb/po/zh_CN.po (1)

780-780: Review Chinese translation for consistency.

After fixing the English source message, please review the Chinese translation to ensure:

  1. It accurately reflects the corrected English text
  2. Punctuation and spacing follow Chinese language conventions
  3. The technical terminology (gb18030_2000, gb18030_2022) is correctly preserved

The current translation appears to convey the meaning correctly, but should be reviewed by a native Chinese speaker after the source English text is corrected.

meson_options.txt (1)

162-164: Document UUID default library change

  • Add a release note entry stating the default uuid option changed from ossp to e2fs and how to opt back to ossp (-Duuid=ossp).
  • Verify both libraries generate compatible UUID values or note any behavioral differences in the upgrade guide.

if you want to use gb18030_2022,please set this option to gb18030_2022,\n"
msgstr " 注意: 如果设置了这个参数为gb18030,数据库会以gb18030_2000标准进行初始化,\n\
如果想要使用gb18030_2022标准,将此选项设置为gb18030_2022\n"
msgid "NOTICE: If you set this to gb18030, the database will initilized with gb18030_2000,but not gb18030_2022, if you want to use gb18030_2022,please set this option to gb18030_2022,\n"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

Fix typo and spacing issues in the source message.

The msgid string contains several issues:

  1. Typo: "initilized" should be "initialized"
  2. Missing spaces: "gb18030_2000,but" → "gb18030_2000, but"
  3. Missing spaces: "gb18030_2022,please" → "gb18030_2022, please"

These issues should be corrected in the source C code (initdb.c:2521), and then the translation file should be regenerated to reflect the corrected source text.

Apply this diff to fix the English message:

-msgid "NOTICE: If you set this to gb18030, the database will initilized with gb18030_2000,but not gb18030_2022, if you want to use gb18030_2022,please set this option to gb18030_2022,\n"
+msgid "NOTICE: If you set this to gb18030, the database will be initialized with gb18030_2000, but not gb18030_2022. If you want to use gb18030_2022, please set this option to gb18030_2022.\n"

Note: The corresponding changes should first be made in initdb.c at line 2521, then regenerate the .po file using the appropriate translation tools.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
msgid "NOTICE: If you set this to gb18030, the database will initilized with gb18030_2000,but not gb18030_2022, if you want to use gb18030_2022,please set this option to gb18030_2022,\n"
msgid "NOTICE: If you set this to gb18030, the database will be initialized with gb18030_2000, but not gb18030_2022. If you want to use gb18030_2022, please set this option to gb18030_2022.\n"
🤖 Prompt for AI Agents
In src/bin/initdb/po/zh_CN.po around line 779 the msgid contains typos and
spacing errors that need to match the corrected source string in initdb.c:2521;
update initdb.c line 2521 to change "initilized" to "initialized", and add
spaces after commas so the English source becomes: 'NOTICE: If you set this to
gb18030, the database will initialized with gb18030_2000, but not gb18030_2022,
if you want to use gb18030_2022, please set this option to gb18030_2022,\n' then
regenerate the .po files using the project’s translation extraction tools (e.g.,
xgettext/intltool) so the zh_CN.po reflects the corrected source string.

@gaoxueyu gaoxueyu merged commit 8c6f9ef into IvorySQL:master Oct 13, 2025
6 checks passed
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.

3 participants