Skip to content

SPECS: crun: Align CRIU build condition#498

Open
Jingwiw wants to merge 1 commit into
openRuyi-Project:mainfrom
Jingwiw:cleanup-bcond/crun-criu-option
Open

SPECS: crun: Align CRIU build condition#498
Jingwiw wants to merge 1 commit into
openRuyi-Project:mainfrom
Jingwiw:cleanup-bcond/crun-criu-option

Conversation

@Jingwiw
Copy link
Copy Markdown
Member

@Jingwiw Jingwiw commented May 23, 2026

Changes

  • Make CRIU support follow the existing %bcond criu.

    The spec already has %bcond criu 0 and conditional CRIU BuildRequires. Pass the matching configure option explicitly so the default build disables CRIU instead of relying on configure-time auto probing.

    Source: configure.ac

    AC_ARG_ENABLE([criu], AS_HELP_STRING([--disable-criu], [Disable CRIU based checkpoint/restore support]))
    AS_IF([test "x$enable_criu" != "xno"], [
        PKG_CHECK_MODULES([CRIU], [criu >= 3.15], [have_criu="yes"], [have_criu="no"
            AC_MSG_NOTICE([CRIU headers not found, building without CRIU support])])
        ...
    ], [AC_MSG_NOTICE([CRIU support disabled per user request])])

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

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

Signed-off-by: Jingwiw <wangjingwei@iscas.ac.cn>
@openruyi-bot openruyi-bot Bot added BuildSystem: autotools Issue/PR related to autotools BuildSystem. Target: Rolling Targeting rolling/current branch. Workflow: Ready For Review Ready for review by anyone with domain expertise. labels May 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BuildSystem: autotools Issue/PR related to autotools 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.

1 participant