Results 1 to 4 of 4

Thread: OBS build error: directories not owned by a package (/usr/share/unity-greeter)

  1. #1
    Join Date
    Apr 2017
    Location
    the Netherlands
    Posts
    17

    Question OBS build error: directories not owned by a package (/usr/share/unity-greeter)

    I'm new at packaging rpm's (I have some experience in packaging for Arch Linux) and I've started work on some packages that are not on OBS (yet).

    I've managed to tackle most hurdles (documentation for packaging for openSUSE is great), but I can't seem to find the proper solution for this one:
    Code:
    [   45s] steam-login-session-12.1-7.1.noarch.rpm: directories not owned by a package:
    [   45s]  - /usr/share/unity-greeter


    My %files section is:
    Code:
    %files
    %license LICENSE
    /usr/bin/steam-de
    /usr/share/steam-de/
    /usr/share/unity-greeter/custom_steam-bigpicture_badge.png
    /usr/share/xsessions/steam-bigpicture.desktop
    Some documenation states that removing the /usr/share/unity-greeter/ entry should resolve the error, but then it complains that the file is packages but not in the files section.

    The package I'm working on is here: https://build.opensuse.org/package/s...-login-session

    Can someone point me in the right direction?
    Signature loading: [ |||||||||||||||||||-- ] 90%

  2. #2
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    4,049

    Default AW: OBS build error: directories not owned by a package (/usr/share/unity-greeter)

    Add this to your files-section:
    Code:
    /usr/share/unity-greeter/
    But you know, there are macros for /usr/share
    https://docs.fedoraproject.org/en-US...nes/RPMMacros/

  3. #3
    Join Date
    Sep 2012
    Posts
    5,225

    Default Re: OBS build error: directories not owned by a package (/usr/share/unity-greeter)

    Is there unity-greeter for openSUSE? If yes, adding it to BuildRequires should fix the error. If not, why would someone need to package files that are useless on openSUSE? Just delete them.

  4. #4
    Join Date
    Apr 2017
    Location
    the Netherlands
    Posts
    17

    Default Re: OBS build error: directories not owned by a package (/usr/share/unity-greeter)

    Quote Originally Posted by Sauerland View Post
    Add this to your files-section:
    Code:
    /usr/share/unity-greeter/
    But you know, there are macros for /usr/share
    https://docs.fedoraproject.org/en-US...nes/RPMMacros/
    Very useful link. Thanks!
    Quote Originally Posted by arvidjaar View Post
    Is there unity-greeter for openSUSE? If yes, adding it to BuildRequires should fix the error. If not, why would someone need to package files that are useless on openSUSE? Just delete them.
    Ah, that's what it's for. In that case removing this from the package will clean it up and resolve the issue. Thanks!
    Signature loading: [ |||||||||||||||||||-- ] 90%

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •