<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=GB2312">
</head>
<body bgcolor="#ffffff" text="#000000">
hi all<br>
I saw a special process in ovirt-node.spec.in :<br>
<i><br>
%if %is_f16<br>
# install libvirtd systemd service<br>
%{__install} -p -m0644 libvirtd.service %{buildroot}%{_unitdir}<br>
%endif</i><br>
<br>
%if %is_f16<br>
%{_unitdir}/libvirtd.service<br>
%endif<br>
<br>
what about F17 ? doesn't F17 need them ?<br>
<br>
And also , I can't succeed to build node on F16 and F15 :<br>
<br>
<br>
<font color="#3366ff">1 Linux ovirt 3.0.0-1.fc16.x86_64 :</font><br>
<br>
<i>+ /usr/bin/install -p -m0644 libvirtd.service
/home/taget/rpmbuild/BUILDROOT/ovirt-node-2.4.0-999.20120629071917git872cb51.fc16.x86_64/lib/systemd/system<br>
/usr/bin/install: cannot create regular file
`/home/taget/rpmbuild/BUILDROOT/ovirt-node-2.4.0-999.20120629071917git872cb51.fc16.x86_64/lib/systemd/system':
No such file or directory<br>
error: Bad exit status from /var/tmp/rpm-tmp.pvxomU (%install)</i><br>
<br>
<font color="#3366ff">2 Linux ovirt-node 2.6.38.6-26.rc1.fc15.i686 :
</font><br>
<i>RPM build errors:<br>
File not found:
/home/ovirt/rpmbuild/BUILDROOT/ovirt-node-2.4.0-999.20120629080506git872cb51.fc15.i386/lib/systemd/system/ovirt.service<br>
File not found:
/home/ovirt/rpmbuild/BUILDROOT/ovirt-node-2.4.0-999.20120629080506git872cb51.fc15.i386/lib/systemd/system/ovirt-awake.service<br>
File not found:
/home/ovirt/rpmbuild/BUILDROOT/ovirt-node-2.4.0-999.20120629080506git872cb51.fc15.i386/lib/systemd/system/ovirt-firstboot.service<br>
File not found:
/home/ovirt/rpmbuild/BUILDROOT/ovirt-node-2.4.0-999.20120629080506git872cb51.fc15.i386/lib/systemd/system/ovirt-post.service<br>
File not found:
/home/ovirt/rpmbuild/BUILDROOT/ovirt-node-2.4.0-999.20120629080506git872cb51.fc15.i386/lib/systemd/system/ovirt-early.service<br>
File not found:
/home/ovirt/rpmbuild/BUILDROOT/ovirt-node-2.4.0-999.20120629080506git872cb51.fc15.i386/lib/systemd/system/ovirt-cim.service</i><br>
<font color="#ff6666">there's no lib dir in the rpmbuild dir.</font><br>
<i>[ovirt@ovirt-node
ovirt-node-2.4.0-999.20120629080506git872cb51.fc15.i386]$ pwd<br>
/home/ovirt/rpmbuild/BUILDROOT/ovirt-node-2.4.0-999.20120629080506git872cb51.fc15.i386<br>
[ovirt@ovirt-node
ovirt-node-2.4.0-999.20120629080506git872cb51.fc15.i386]$ ls<br>
etc usr</i><br>
<br>
I think the {_unitdir} are difference between F17 and F16&F15 ,
so I give a ugly fix in ovirt-node.spec.in:<br>
<br>
<i>%define is_f17 %(test "0%{?fedora}" == "017" && echo 1 ||
echo 0)<br>
%if %is_f17<br>
%else<br>
%define _unitdir /usr/lib/systemd/system<br>
%endif</i><br>
<br>
I can build it successfully , but I am not sure it is correct. <br>
<div class="moz-signature">-- <br>
Thanks.
Best regards.
--Eli Qiao</div>
</body>
</html>