Skip to content

[Bug]: RPM contains unowned dirs #6890

@jn64

Description

@jn64

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    To assign

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions