Refactor Linux packaging to support host-device split architecture#5099
Draft
Refactor Linux packaging to support host-device split architecture#5099
Conversation
Restructured packaging code to properly support host-device split packaging
for multi-arch (kpack) builds. Extracted DEB and RPM logic into separate
modules for better maintainability.
Key improvements:
- Implemented host-device package variant builder for gfxarch packages
* Host packages contain generic/architecture-independent artifacts
* Device packages contain architecture-specific artifacts per target
* Meta packages depend on host + all device packages
* Non-versioned packages provide user-facing entry point
- Split DEB creation logic into deb_package.py (440 lines)
- Split RPM creation logic into rpm_package.py (256 lines)
- Refactored build_package.py to orchestrate package variants (929 lines reduced)
- Enhanced packaging_utils.py with improved variant handling
- Introduced build_package_variants() as unified entry point
- Each package variant uses isolated build directory to prevent collisions
This refactoring enables proper multi-arch packaging with clean separation
between host and device components, improving package management for
heterogeneous GPU environments.
97f5460 to
8f7f6a1
Compare
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.
Restructured packaging code to properly support host-device split packaging
for multi-arch (kpack) builds. Extracted DEB and RPM logic into separate
modules for better maintainability.
Key improvements:
This refactoring enables proper multi-arch packaging with clean separation
between host and device components, improving package management for
heterogeneous GPU environments.