d19ea9e Tmpfiles.d: The _tmpfilesdir directory shouldn't be unowned

Authored and Committed by Debarshi Ray 3 years ago
    Tmpfiles.d: The _tmpfilesdir directory shouldn't be unowned
    
    If a package is dropping a file into _tmpfilesdir, then installing the
    package shouldn't lead to an unowned _tmpfilesdir directory. The
    package should either depend on something that already owns that
    directory (in this case systemd), or own the directory itself (in case
    it wants to limit its dependency chain).
    
    In fact, the text before the example spec file says:
      "packager needs to ... make sure the directory is included in the
       rpm."
    
    That's the second option above.
    
    On a stock Fedora 32 Silverblue system and a stock Fedora 31
    Workstation, _tmpfilesdir is only owned by the systemd package.
    Therefore, it might be better to have the documentation lean towards
    the first alternative of depending on systemd. Ultimately, in reality,
    systemd isn't such an onerous addition because all variants of Fedora
    use it as part of the base OS, and by using the tmpfiles.d mechanism
    the package is implicitly indicating a desire to use systemd.
    
    https://pagure.io/packaging-committee/pull-request/1017