Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: RPM contains unowned dirs #6890

Open
5 of 6 tasks
jn64 opened this issue Feb 22, 2025 · 1 comment
Open
5 of 6 tasks

[Bug]: RPM contains unowned dirs #6890

jn64 opened this issue Feb 22, 2025 · 1 comment
Labels
B: inconsistent behavior bug Something isn't working

Comments

@jn64
Copy link
Contributor

jn64 commented Feb 22, 2025

Guidelines

Describe the bug

FreeTube RPM includes files in:

  • /opt/FreeTube/*
  • /opt/FreeTube/locales/*
  • /opt/FreeTube/resources/*

but not the dirs themselves:

  • /opt/FreeTube
  • /opt/FreeTube/locales
  • /opt/FreeTube/resources

These 3 dirs are unowned. When the RPM is uninstalled, the dirs will remain on the end user's system.

$ rpm -q --whatprovides /opt/FreeTube/freetube
freetube-0.23.1.amd64.rpm
$ rpm -q --whatprovides /opt/FreeTube
file /opt/FreeTube is not owned by any package

Not familiar with fpm but probably need --rpm-auto-add-directories. Not sure if you need to then exclude /usr/... above the desktop file and icon; FreeTube RPM should not own those dirs.

https://fpm.readthedocs.io/en/latest/packages/rpm.html#rpm-specific-command-line-flags

Expected Behavior

NA

Issue Labels

inconsistent behavior

FreeTube Version

NA

Operating System Version

Fedora 41

Installation Method

.rpm

Primary API used

Local API

Last Known Working FreeTube Version (If Any)

No response

Additional Information

Nightly Build

@jn64 jn64 added the bug Something isn't working label Feb 22, 2025
@github-project-automation github-project-automation bot moved this to To assign in Bug Reports Feb 22, 2025
@jn64
Copy link
Contributor Author

jn64 commented Feb 24, 2025

The test for this is to check rpm -qpl path/to/freetube.rpm after changing whatever fpm option. It should include the 3 dirs mentioned exactly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B: inconsistent behavior bug Something isn't working
Projects
Status: To assign
Development

No branches or pull requests

1 participant