Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • S Solaar
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 10
    • Issues 10
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • pwr-Solaar
  • Solaar
  • Issues
  • #1025
Closed
Open
Issue created Dec 04, 2020 by Administrator@rootContributor

metainfo file installed in the wrong place

Created by: rathann

Information

  • Solaar version (solaar --version or git describe --tags if cloned from this repository): 1.0.4-57-g69f889e3
  • Distribution: Fedora
  • Kernel version (ex. uname -srmo): N/A
  • Output of solaar show: N/A

Describe the bug The metainfo.xml file gets installed into the wrong location, i.e. /usr/share/metainfo/io.github.pwr_solaar.solaar.metainfo.xml/metainfo.xml.

To Reproduce Steps to reproduce the behavior (this is part of RPM package build process, hence the --root xxx option):

...
/usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/solaar-1.0.4-3.fc33.x86_64
...
running install_data
creating /builddir/build/BUILDROOT/solaar-1.0.4-3.fc33.x86_64/usr/share
...
creating /builddir/build/BUILDROOT/solaar-1.0.4-3.fc33.x86_64/usr/share/metainfo
creating /builddir/build/BUILDROOT/solaar-1.0.4-3.fc33.x86_64/usr/share/metainfo/io.github.pwr_solaar.solaar.metainfo.xml
copying share/solaar/metainfo.xml -> /builddir/build/BUILDROOT/solaar-1.0.4-3.fc33.x86_64/usr/share/metainfo/io.github.pwr_solaar.solaar.metainfo.xml
...

Screenshots N/A

Additional context The correct location is: /usr/share/metainfo/io.github.pwr_solaar.solaar.metainfo.xml (a file under /usr/share/metainfo, not a directory). The solution is to rename metainfo.xml to io.github.pwr_solaar.solaar.metainfo.xml and install it under /usr/share/metainfo in setup.py. I'll send a PR shortly.

Assignee
Assign to
Time tracking