[PR #154] deb: build outside the checkout #155

Open
opened 2026-10-26 16:41:25 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Zagitta/gpu-unlock/pull/154
Author: @Bortlesboat
Created: 10/26/2026
Status: 🔄 Open

Base: main ← Head: deb-build-outside-checkout


📝 Commits (1)

  • 16d9a6b deb: build outside the checkout

📊 Changes

1 file changed (+10 additions, -4 deletions)

View changed files

📝 Makefile (+10 -4)

📄 Description

Fixes #45.

On exFAT or NTFS every file is executable, so dh_clean runs debian/clean as a script and make install-deb fails with exit code 127. The other debian/*.install files would hit the same thing. This builds the package under ~/.cache/gpu-unlock/deb-build and copies the results back to build/deb, so the location of the checkout doesn't matter.

Tested in a debian:13 container with the repo cloned onto a loop-mounted vfat image: main reproduces the error from #45 exactly, and this branch builds both debs (the firmware files are still 0644 in the package). .github/ci/package.sh also passes on a normal filesystem.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Zagitta/gpu-unlock/pull/154 **Author:** [@Bortlesboat](https://github.com/Bortlesboat) **Created:** 10/26/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `deb-build-outside-checkout` --- ### 📝 Commits (1) - [`16d9a6b`](https://github.com/Zagitta/gpu-unlock/commit/16d9a6bfa6de607742e59f90b8fa0fd5c18dce9f) deb: build outside the checkout ### 📊 Changes **1 file changed** (+10 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `Makefile` (+10 -4) </details> ### 📄 Description Fixes #45. On exFAT or NTFS every file is executable, so dh_clean runs debian/clean as a script and `make install-deb` fails with exit code 127. The other debian/*.install files would hit the same thing. This builds the package under `~/.cache/gpu-unlock/deb-build` and copies the results back to `build/deb`, so the location of the checkout doesn't matter. Tested in a debian:13 container with the repo cloned onto a loop-mounted vfat image: main reproduces the error from #45 exactly, and this branch builds both debs (the firmware files are still 0644 in the package). `.github/ci/package.sh` also passes on a normal filesystem. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Zagitta/gpu-unlock#155
No description provided.