Skip to content

SPECS: memcached: Align optional build dependencies#504

Open
Jingwiw wants to merge 3 commits into
openRuyi-Project:mainfrom
Jingwiw:cleanup-bcond/memcached-optional-build-deps
Open

SPECS: memcached: Align optional build dependencies#504
Jingwiw wants to merge 3 commits into
openRuyi-Project:mainfrom
Jingwiw:cleanup-bcond/memcached-optional-build-deps

Conversation

@Jingwiw
Copy link
Copy Markdown
Member

@Jingwiw Jingwiw commented May 23, 2026

Changes

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

  • Add the seccomp build dependency under the existing %bcond seccomp.

    The spec defaults seccomp on and passes --enable-seccomp, while upstream checks for seccomp_rule_add from libseccomp. The BuildRequires should describe that default build fact directly.

    Source: configure.ac

    AC_ARG_ENABLE(seccomp,
      [AS_HELP_STRING([--enable-seccomp],[Enable seccomp restrictions EXPERIMENTAL])])
    
    AS_IF([test "x$enable_seccomp" = "xyes" ], [
       AC_CHECK_LIB(seccomp, seccomp_rule_add, [
  • Use the upstream SASL password database option name and align the SASL dependency guard.

    --enable-sasl-pwdb is the configure option upstream exposes. Enabling it also enables SASL, so the SASL BuildRequires must cover either %{with sasl} or %{with sasl_pwdb}.

    Source: configure.ac

    AC_ARG_ENABLE(sasl,
      [AS_HELP_STRING([--enable-sasl],[Enable SASL authentication])])
    
    AC_ARG_ENABLE(sasl_pwdb,
      [AS_HELP_STRING([--enable-sasl-pwdb],[Enable plaintext password db])])
    
    AS_IF([test "x$enable_sasl_pwdb" = "xyes"],
          [enable_sasl=yes ])
  • Use pkgconfig(libsasl2) for the SASL build dependency.

    Upstream checks the SASL header and library symbols directly; in openRuyi, the cyrus-sasl devel package exposes libsasl2.pc, so the pkgconfig dependency names the same development interface more precisely.

    Source: configure.ac

    AC_CHECK_HEADERS([sasl/sasl.h])
    if test "x$enable_sasl" = "xyes"; then
      AC_SEARCH_LIBS([sasl_server_init], [sasl2 sasl], [],

    Source: SPECS/cyrus-sasl/cyrus-sasl.spec

    %files devel
    %{_libdir}/pkgconfig/libsasl2.pc

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:44
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: 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
@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: 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.

2 participants