#1397 add `_unitdir` to list of macros?
Closed: nothingtodo by james. Opened by strategic775.

I'm currently giving myself a crash course in RPM packaging, and I've been bouncing back and forth using ripgrep on all the macros in a git repo and cross referencing the RPM macro documentation. I ran into _unitdir, and thought that since it wasn't in the list, that it must be limited to the scope of my git repo, but that's not the case.

documentation on _unitdir

Packages with systemd unit files must put them into %{_unitdir}. %{_unitdir} evaluates to /lib/systemd/system on all Fedora systems (F-15+). Unit files are architecture independent (hence, not %{_lib}) and needed early in the boot process.

Should _unitdir be added to the list, or is it out of scope?


I think the original intention of the "RPM Macros" page of the guidelines was to describe those macros that are always available (at least that's what I went for when rewriting the page a few years ago).

The systemd-specific macros are not always available, since you need to pull in an additional package for them, so it doesn't really make sense to me to lump them together with the macros that are always defined: https://docs.fedoraproject.org/en-US/packaging-guidelines/Systemd/#packaging_filesystem

That doesn't mean that it wouldn't make sense to have additional docs for the macros that are provided by systemd, though.

Note that https://fedoraproject.org/wiki/Packaging:Systemd#Filesystem_locations talks about it.

Metadata Update from @james:
- Issue close_status updated to: nothingtodo
- Issue status updated to: Closed (was: Open)

Metadata