DescriptionMichal Jaegermann
2012-08-10 22:01:20 UTC
Description of problem:
After an update to cups-1.6.1-2.fc19 its postinstall scriptlet starts like that:
if [ $1 -eq 1 ] ; then
# Initial installation
/usr/bin/systemctl preset >/dev/null 2>&1 || :
fi
cups.path cups.socket cups.service
.....
As one should expect this fails with "line 6: cups.path: command not found".
Some spec macros got "lost"?
Version-Release number of selected component (if applicable):
cups-1.6.1-2.fc19
Does any systemd guru know what's wrong with the following statement from cups.spec ?
%post
%{systemd_post} %{name}.path %{name}.socket %{name}.service
Try without the curly brackets around the macro name, like this:
%post
%systemd_post %{name}.path %{name}.socket %{name}.service
In RPM the two forms expand differently.