-
Notifications
You must be signed in to change notification settings - Fork 87
Temporary files ending up in final package #110
Description
Build and Testing environment: CachyOS Arch (affects both fish and bash shells)
There are files ending up in the final package that shouldn't be there. Namely,
- namcap-checks
- namcap-dependencies
- namcap-libraries
Because of this, multiple packages (for different apps) refuse to install because the first one installed already owns these extraneous files.
Presumably, this is occurring because the redirects that create these files are creating them in the working directory for the package lines 2956, 2958, 2959, 2794, and 2972. It could also be because those temporary files aren't cleaned up before creating the package.
According to GPT-5.3 this is the problem:
Root cause: the script only removed namcap* temp files inside the Depends/Pre-Depends branch. If that branch is skipped, those files remain in the working dir and get included by * during .MTREE and final tar creation.
And this is the solution:
--- a/debtap_fix
+++ b/debtap_fix
@@ -3250,6 +3250,8 @@
# Removing metadata of original .deb package
rm -rf control preinst postinst prerm postrm conffiles
+# Removing temporary namcap/namtap artifacts so they are never packaged
+rm -rf namcap-checks namcap-dependencies namcap-libraries namtap-checks namtap-dependencies namtap-libraries *librariesfound
# Generating .MTREE file
echo -e "\n${lightgreen}==>${NC} ${bold}Generating .MTREE file...${normal}"
A quick test run shows that the files are no longer in the final package but i'll leave the choice of whether or not this is the real fix up to you.
