Skip to content

SPECS: libxmlb: Align stemmer build condition#503

Open
Jingwiw wants to merge 3 commits into
openRuyi-Project:mainfrom
Jingwiw:cleanup-bcond/libxmlb-stemmer-option
Open

SPECS: libxmlb: Align stemmer build condition#503
Jingwiw wants to merge 3 commits into
openRuyi-Project:mainfrom
Jingwiw:cleanup-bcond/libxmlb-stemmer-option

Conversation

@Jingwiw
Copy link
Copy Markdown
Member

@Jingwiw Jingwiw commented May 23, 2026

Changes

  • Add the missing remote asset checksum and use %autochangelog directly.

  • Make the existing stemmer bcond drive the Meson option.

    Upstream defaults stemmer to false, so the default build remains unchanged. This makes %{with stemmer} actually enable the feature that already has a conditional BuildRequires.

    Source: meson_options.txt

    option('stemmer', type : 'boolean', value : false, description : 'enable stemmer support')

    Source: meson.build

    if get_option('stemmer')
      cc = meson.get_compiler('c')
      stemmer = cc.find_library('stemmer')
      libxmlb_deps += stemmer
      conf.set('HAVE_LIBSTEMMER', 1)
    endif
  • Use pkgconfig(gio-2.0) instead of the broader glib-devel package name.

    libxmlb asks Meson for gio-2.0, so the BuildRequires should name the provider interface it actually consumes.

    Source: meson.build

    gio = dependency('gio-2.0', version : '>= 2.45.8')

AIGC Declaration: CodeX with gpt5.5 was used as coding agent.

Signed-off-by: Jingwiw wangjingwei@iscas.ac.cn

Jingwiw added 3 commits May 22, 2026 19:15
Signed-off-by: Jingwiw <wangjingwei@iscas.ac.cn>
Signed-off-by: Jingwiw <wangjingwei@iscas.ac.cn>
Signed-off-by: Jingwiw <wangjingwei@iscas.ac.cn>
@openruyi-bot openruyi-bot Bot added BuildSystem: meson Issue/PR related to meson BuildSystem. Target: Rolling Targeting rolling/current branch. Workflow: Ready For Review Ready for review by anyone with domain expertise. labels May 23, 2026
@misaka00251 misaka00251 added the AI Assistance AI is used to help with portions of code, tests, or documentation. label May 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Assistance AI is used to help with portions of code, tests, or documentation. BuildSystem: meson Issue/PR related to meson BuildSystem. Target: Rolling Targeting rolling/current branch. Workflow: Ready For Review Ready for review by anyone with domain expertise.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants