fix(sec-core): add missing Provides: anolisa-component(sec-core) to RPM spec - #2563
Open
zhangtaibo wants to merge 1 commit into
Open
fix(sec-core): add missing Provides: anolisa-component(sec-core) to RPM spec#2563zhangtaibo wants to merge 1 commit into
zhangtaibo wants to merge 1 commit into
Conversation
…PM spec The agent-sec-core RPM spec file was missing the 'Provides: anolisa-component(sec-core)' virtual provide line that agentsight, copilot-shell, cosh-ng, and skillfs already declare. When the repo-side components-v2.toml is unavailable (HTTP 404) and no package_map entry exists in repo.toml, the ANOLISA RPM resolver falls through all three resolution paths and returns empty candidates, causing 'INVALID_ARGUMENT: not an ANOLISA RPM component'. This makes anolisa install/adopt fail for sec-core, and adapter scan returns empty. Fixes alibaba#2559 (sec-core component, same root cause as agent-memory). Verified on ECS: with this patch, rpm-build.sh produces a RPM that includes anolisa-component(sec-core) in its provides, and anolisa adapter scan correctly lists the sec-core/openclaw adapter after install+adopt.
This was referenced Aug 15, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
Fixes #2559 (sec-core component — same root cause as agent-memory, covered separately in PR #2560).
The
agent-sec-coreRPM spec file (src/agent-sec-core/agent-sec-core.spec.in) is missing theProvides: anolisa-component(sec-core)virtual provide line. All other ANOLISA-managed RPM components that ship OpenClaw adapters already declare this:src/agentsight/agentsight.spec.in→Provides: anolisa-component(agentsight)src/copilot-shell/copilot-shell.spec.in→Provides: anolisa-component(cosh)src/cosh-ng/cosh-ng.spec.in→Provides: anolisa-component(cosh-ng)src/skillfs/skillfs.spec.in→Provides: anolisa-component(skillfs)When the repo-side
components-v2.tomlis unavailable (HTTP 404) and nopackage_mapentry exists inrepo.toml, the ANOLISA RPM resolver falls through all three resolution paths and returns empty candidates, causingINVALID_ARGUMENT: component 'sec-core' is not an ANOLISA RPM component. This makesanolisa installandanolisa adoptfail, andanolisa adapter scanreturns an empty adapters list for sec-core.Fix
Add
Provides: anolisa-component(sec-core)to the spec file, after theRequiressection and before%description:+Provides: anolisa-component(sec-core)Verification
Co-Authored-By: Claude noreply@anthropic.com