Skip to content

CLOS-2598: Add lua-cjson -> lua51-cjson REPLACED event to PES#26

Open
prilr wants to merge 1 commit into
cloudlinux:cloudlinuxfrom
prilr:CLOS-2598-elevate-c7-to-alma8
Open

CLOS-2598: Add lua-cjson -> lua51-cjson REPLACED event to PES#26
prilr wants to merge 1 commit into
cloudlinux:cloudlinuxfrom
prilr:CLOS-2598-elevate-c7-to-alma8

Conversation

@prilr
Copy link
Copy Markdown
Collaborator

@prilr prilr commented May 15, 2026

The lua-cjson package on CL7 (Vendor: CloudLinux, from cloudlinux-updates) ships the same /usr/lib64/lua/5.1/cjson.so and test files as lua51-cjson on CL8 (from cloudlinux8-imunify360), but with different package names. Without an explicit Replaced event, Leapp queues lua51-cjson for install without removing lua-cjson, and the DNF transaction fails the test phase:

file /usr/lib64/lua/5.1/cjson.so from install of lua51-cjson-2.1.0-2.el8 conflicts with file from package lua-cjson-2.1.0-2.el7

The Replaced (action=3) event lets the transaction builder swap the two packages in a single transaction, transferring file ownership cleanly.

The lua-cjson package on CL7 (Vendor: CloudLinux, from cloudlinux-updates)
ships the same /usr/lib64/lua/5.1/cjson.so and test files as lua51-cjson
on CL8 (from cloudlinux8-imunify360), but with different package names.
Without an explicit Replaced event, Leapp queues lua51-cjson for install
without removing lua-cjson, and the DNF transaction fails the test phase:

    file /usr/lib64/lua/5.1/cjson.so from install of lua51-cjson-2.1.0-2.el8
    conflicts with file from package lua-cjson-2.1.0-2.el7

The Replaced (action=3) event lets the transaction builder swap the two
packages in a single transaction, transferring file ownership cleanly.

Originally landed on testing as 49d873f (2024-07-10); ported with fresh
IDs (id=12948, set_id=16842/16843) since intermediate cloudlinux-branch
commits claimed the IDs the original event used.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.

2 participants