DAOS-18827 build: Use post-install scripts for file perms/ownership#18042
DAOS-18827 build: Use post-install scripts for file perms/ownership#18042
Conversation
|
Ticket title is 'DAOS Debian package missing libisal dependency and wrong executable permissions    ' |
00bcf02 to
6fe545a
Compare
Debian packaging does not support the --rpm-attr option, which makes it difficult to manage file permissions and ownership consistently across both RPM and Debian packages. To ensure cross-platform compatibility and maintain a single source of truth for post-install actions, we need a unified approach. This change replaces all uses of --rpm-attr with explicit post-install scripts that set the correct permissions and ownership using chown and chmod. Each script is made executable to guarantee it runs correctly during package installation. The update includes: - Remove all --rpm-attr lines for affected files. - Add heredoc-generated post-install scripts for permissions and ownership. - Add chmod +x to each generated script. Signed-off-by: Cedric Koch-Hofer <cedric.koch-hofer@hpe.com>
6fe545a to
b525ee3
Compare
|
Test stage Functional Hardware Medium MD on SSD completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-18042/4/testReport/ |
…/daos-18827/patch-001
…/daos-18827/patch-001
|
Test stage NLT completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos/job/PR-18042/6/display/redirect |
|
Test stage Unit Test bdev with memcheck completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos/job/PR-18042/6/display/redirect |
|
Test stage Unit Test bdev completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos/job/PR-18042/6/display/redirect |
|
Test stage Unit Test completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos/job/PR-18042/6/display/redirect |
|
Test stage Unit Test with memcheck completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos/job/PR-18042/6/display/redirect |
…/daos-18827/patch-001
Description
Debian packaging does not support the
--rpm-attroption, which is used in RPM packaging to set file permissions and ownership during installation. This limitation makes it challenging to keep packaging logic consistent and reliable across both RPM and Debian systems. To address this and ensure that file permissions and ownership are set correctly regardless of the packaging format, we need to unify our approach for post-install actions.This change replaces all instances of
--rpm-attrin the packaging scripts with explicit post-install scripts. These scripts use standard shell commands (chownandchmod) to set the required permissions and ownership on installed files and directories. Each script is generated using a heredoc and is made executable immediately after creation to ensure it can be run by the packaging tools during installation.As a result, all file permission and ownership settings are now handled in a way that works for both RPM and Debian packaging. This not only improves cross-platform compatibility but also centralizes and clarifies the logic for post-install actions, making the packaging scripts easier to maintain and extend in the future.
The update includes:
--rpm-attrlines for affected files.chmod +x.This refactor provides a single, reliable source of truth for post-install actions across all supported packaging systems.
Steps for the author:
After all prior steps are complete: