Fix misplaced Linux headers in Arch and Debian kernel packages #17
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
run-ci
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-ps5-linux/ps5-linux-image!17
Loading…
Reference in a new issue
No description provided.
Delete branch "fix-header-packaging"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The kernel UAPI headers were being installed at the wrong path inside both the Arch and Debian kernel packages.
Both packagers used:
Because
$DEST/usralready exists (modules are copied to$STAGING/usr/lib/modulesfirst, and other staged files may already live under$PKG/usr),cp -acopies the source directory into the destination instead of merging its contents. This produced a nestedusr/usr/include/linux/...layout, so the headers were not available at the expected/usr/include/linux/...path.Fix
Merge the header contents instead of copying the directory node:
Files changed
docker/kernel-builder-arch/build.sh– Arch.pkg.tar.zstpackagingdocker/kernel-builder/package-deb.sh– Debian.debpackagingThe out-of-tree module build tree (
/usr/lib/modules/<kver>/build/) was already being copied correctly and is untouched.