borg-backup-ui icon indicating copy to clipboard operation
borg-backup-ui copied to clipboard

Normalize makepkg hardlink permissions independently of archive ordering

Open borg-codex-bot opened this issue 3 weeks ago • 0 comments

The full CI run for #734 exposed two existing makepkg normalization failures under umask 002/077: tests/test_package_permissions.py::test_package_preserves_existing_host_modes_and_payload.

The portable builder already normalizes hardlink metadata. The makepkg post-processing path and permission validator only handle regular files/directories. When GNU tar stores config.example as the hardlink alias instead of the data-bearing entry, its mode remains 0664 or 0600. This depends on archive ordering and is unrelated to SQLite/native-runtime behavior.

Scope: normalize and validate hardlink modes using the same 0644/0755 policy as regular files, preserve package data and makepkg hooks, and add deterministic ordering coverage. No host filesystem permissions are modified. Internal packaging fix, no standalone release note. Include the fix in #734 so the requested #732 testing candidate can pass the existing checks; no stable release approval is granted.

Implemented in commit f658a6e9a0f2cdf6b5c9f8f72138f87a6908c287 / PR #734. All 26 focused permission tests and the final full CI passed. Included in the verified testing candidate 2026.11.13.1206; merged via PR #734 in commit 01211ff40cdf170b9bf3b37c80ed00704a13bfca. Main CI 43430040764 passed, reusing the identical-tree source checks and repeating the dependency audit. No stable release was created.

borg-codex-bot avatar Nov 13 '26 10:11 borg-codex-bot