On 11/30/2011 11:39 AM, David Howells wrote:
I'm trying to build the latest cachefilesd package in the Fedora
build system
for Rawhide/F17, but the build failed because I used %{_unitdir} in my specfile
and this doesn't appear to be expanded in the Fedora build system (see the
attached build.log). For reference, the build log can be found at:
http://koji.fedoraproject.org/koji/taskinfo?taskID=3552622
I was attempting to use this to determine the location of the systemd service
definitions. It works fine on my F16 desktop.
Can this be fixed in the build system, please? This is a feature noted in the
systemd usage docs:
https://fedoraproject.org/wiki/Packaging:Guidelines:Systemd
You must have missed the bit in the guidelines where it says:
Please note that in order for the %{_unitdir} macro to exist, your
package must have:
BuildRequires: systemd-units
Paul.