[node-devel] Failed build node on F16 and F15
Eli Qiao
taget at linux.vnet.ibm.com
Fri Jun 29 08:18:27 UTC 2012
hi all
I saw a special process in ovirt-node.spec.in :
/
%if %is_f16
# install libvirtd systemd service
%{__install} -p -m0644 libvirtd.service %{buildroot}%{_unitdir}
%endif/
%if %is_f16
%{_unitdir}/libvirtd.service
%endif
what about F17 ? doesn't F17 need them ?
And also , I can't succeed to build node on F16 and F15 :
1 Linux ovirt 3.0.0-1.fc16.x86_64 :
/+ /usr/bin/install -p -m0644 libvirtd.service
/home/taget/rpmbuild/BUILDROOT/ovirt-node-2.4.0-999.20120629071917git872cb51.fc16.x86_64/lib/systemd/system
/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
error: Bad exit status from /var/tmp/rpm-tmp.pvxomU (%install)/
2 Linux ovirt-node 2.6.38.6-26.rc1.fc15.i686 :
/RPM build errors:
File not found:
/home/ovirt/rpmbuild/BUILDROOT/ovirt-node-2.4.0-999.20120629080506git872cb51.fc15.i386/lib/systemd/system/ovirt.service
File not found:
/home/ovirt/rpmbuild/BUILDROOT/ovirt-node-2.4.0-999.20120629080506git872cb51.fc15.i386/lib/systemd/system/ovirt-awake.service
File not found:
/home/ovirt/rpmbuild/BUILDROOT/ovirt-node-2.4.0-999.20120629080506git872cb51.fc15.i386/lib/systemd/system/ovirt-firstboot.service
File not found:
/home/ovirt/rpmbuild/BUILDROOT/ovirt-node-2.4.0-999.20120629080506git872cb51.fc15.i386/lib/systemd/system/ovirt-post.service
File not found:
/home/ovirt/rpmbuild/BUILDROOT/ovirt-node-2.4.0-999.20120629080506git872cb51.fc15.i386/lib/systemd/system/ovirt-early.service
File not found:
/home/ovirt/rpmbuild/BUILDROOT/ovirt-node-2.4.0-999.20120629080506git872cb51.fc15.i386/lib/systemd/system/ovirt-cim.service/
there's no lib dir in the rpmbuild dir.
/[ovirt at ovirt-node
ovirt-node-2.4.0-999.20120629080506git872cb51.fc15.i386]$ pwd
/home/ovirt/rpmbuild/BUILDROOT/ovirt-node-2.4.0-999.20120629080506git872cb51.fc15.i386
[ovirt at ovirt-node
ovirt-node-2.4.0-999.20120629080506git872cb51.fc15.i386]$ ls
etc usr/
I think the {_unitdir} are difference between F17 and F16&F15 , so I
give a ugly fix in ovirt-node.spec.in:
/%define is_f17 %(test "0%{?fedora}" == "017" && echo 1 || echo 0)
%if %is_f17
%else
%define _unitdir /usr/lib/systemd/system
%endif/
I can build it successfully , but I am not sure it is correct.
--
Thanks. Best regards. --Eli Qiao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/node-devel/attachments/20120629/749b3a32/attachment.html>
More information about the node-devel
mailing list