Bug 8567 - build system leaves stray files on uninstallation
Summary: build system leaves stray files on uninstallation
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Build system (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: 4.19.0
Assignee: Pierre Ossman
URL: https://git.cendio.se/thinlinc/cenbui...
Keywords: prosaic
Depends on:
Blocks:
 
Reported: 2025-04-03 15:44 CEST by Pierre Ossman
Modified: 2025-04-04 09:55 CEST (History)
0 users

See Also:
Acceptance Criteria:
MUST: * All static files should be removed after installing and removing any combination of cenbuild packages SHOULD: * All config or other dynamic files should also be removed COULD: * Developers are informed if they cause new issues with files not being removed


Attachments

Description Pierre Ossman cendio 2025-04-03 15:44:07 CEST
If you uninstall cenbuild (or individual packages), you are often left with stray files on disk. This can be confusing and possibly cause issues when other things trigger on those files or directories existing.

There are multiple reasons for this:

 * We've forgotten to tag everything in the .spec files
 * There are insufficient dependencies specified, so the owner of a directory is uninstalled before the owners of files in the directory
 * We have config files that change and are kept as .rpmsave

A related issue is also that doing "rpm -qf" doesn't work on all files.
Comment 1 Pierre Ossman cendio 2025-04-03 15:52:24 CEST
In the current state, we have almost 3000 stray files after a --no-repo rebuild:

> $ find /opt/cendio-build/arch | wc -l
> 2753

A normal install of cendio-build-everything leaves almost as many files after removing it:

> $ find /opt/cendio-build/arch | wc -l
> 2544

Note You need to log in before you can comment on or make changes to this bug.