[Engine-devel] make rpm error: No targets specified and no makefile found. Stop
qyddbear
qyddbear at 163.com
Mon Mar 18 08:42:36 UTC 2013
Thanks, but the problem still exists.
There is no dist rule be wrote in Makefile, so run make dist, the result is make: *** No rule to make target `dist'. Stop.
run rpmbuild -tb ovirt-engine-3.1.0.tar.gz, the log is the same as former.
At 2013-03-18 16:26:01,"Alon Bar-Lev" <alonbl at redhat.com> wrote:
>Please try:
>
>$ make dist
>$ rpmbuild -tb <tarball>
>
>
>----- Original Message -----
>> From: "qyddbear" <qyddbear at 163.com>
>> To: engine-devel at ovirt.org
>> Sent: Monday, March 18, 2013 10:18:28 AM
>> Subject: [Engine-devel] make rpm error: No targets specified and no makefile found. Stop
>>
>>
>>
>>
>>
>> Hi, I am a green learner, I tried to make ovirt-engine rpm from
>> compiled source code. when I run make rpm, and the log as follows.
>> Can anyone tell me what's the matter? Thanks!
>>
>>
>> [root at localhost ovirt-engine-3.1.0]# make rpm
>> sed -e 's/@PACKAGE_VERSION@/3.1.0/g' \
>> -e 's/@PACKAGE_RELEASE@/3.26/g'
>> packaging/fedora/spec/ovirt-engine.spec.in > ovirt-engine.spec
>> git ls-files | tar --files-from /proc/self/fd/0 -czf
>> ovirt-engine-3.1.0.tar.gz ovirt-engine.spec
>> rm -f ovirt-engine.spec
>>
>>
>> You can use rpmbuild -tb ovirt-engine-3.1.0.tar.gz to produce rpms
>>
>>
>> rm -rf /home/wqx/ovirt-engine-3.1.0/tmp.rpmbuild
>> mkdir -p
>> /home/wqx/ovirt-engine-3.1.0/tmp.rpmbuild/{SPECS,RPMS,SRPMS,SOURCES,BUILD,BUILDROOT}
>> mkdir -p output
>> rpmbuild -ts --define="_topdir
>> /home/wqx/ovirt-engine-3.1.0/tmp.rpmbuild" ovirt-engine-3.1.0.tar.gz
>> Wrote:
>> /home/wqx/ovirt-engine-3.1.0/tmp.rpmbuild/SRPMS/ovirt-engine-3.1.0-3.26.el6.src.rpm
>> mv /home/wqx/ovirt-engine-3.1.0/tmp.rpmbuild/SRPMS/*.rpm output
>> rm -rf /home/wqx/ovirt-engine-3.1.0/tmp.rpmbuild
>>
>>
>> srpm is ready at output
>>
>>
>> rm -rf /home/wqx/ovirt-engine-3.1.0/tmp.rpmbuild
>> mkdir -p
>> /home/wqx/ovirt-engine-3.1.0/tmp.rpmbuild/{SPECS,RPMS,SRPMS,SOURCES,BUILD,BUILDROOT}
>> mkdir -p output
>> rpmbuild --define="_topdir /home/wqx/ovirt-engine-3.1.0/tmp.rpmbuild"
>> --rebuild ou tput/ovirt-engine-3.1.0*.src.rpm
>> Installing output/ovirt-engine-3.1.0-3.26.el6.src.rpm
>> Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.3JQHHM
>> + umask 022
>> + cd /home/wqx/ovirt-engine-3.1.0/tmp.rpmbuild/BUILD
>> + LANG=C
>> + export LANG
>> + unset DISPLAY
>> + cd /home/wqx/ovirt-engine-3.1.0/tmp.rpmbuild/BUILD
>> + rm -rf ovirt-engine-3.1.0
>> + /bin/mkdir -p ovirt-engine-3.1.0
>> + cd ovirt-engine-3.1.0
>> + /bin/tar -xf -
>> + /usr/bin/gzip -dc
>> /home/wqx/ovirt-engine-3.1.0/tmp.rpmbuild/SOURCES/ovirt-engine-3.1.0.tar.gz
>> + STATUS=0
>> + '[' 0 -ne 0 ']'
>> + /bin/chmod -Rf a+rX,u+w,g-w,o-w .
>> + exit 0
>> Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.qesWT3
>> + umask 022
>> + cd /home/wqx/ovirt-engine-3.1.0/tmp.rpmbuild/BUILD
>> + cd ovirt-engine-3.1.0
>> + LANG=C
>> + export LANG
>> + unset DISPLAY
>> + make -j1 PACKAGE_NAME=ovirt-engine ENGINE_NAME=ovirt-engine
>> LOCALSTATE_DIR=/var ENGINE_STATE=/var/lib/ovirt-engine PREFIX=/usr
>> SYSCONF_DIR=/etc BIN_DIR=/usr/bin DATAROOT_DIR=/usr/share
>> MAN_DIR=/usr/share/man PYTHON=/usr/bin/python
>> PYTHON_DIR=/usr/lib/python2.6/site-packages JAVA_DIR=/usr/share/java
>> MAVENPOM_DIR=/usr/share/maven2/poms
>> PKG_JAVA_DIR=/usr/share/java/ovirt-engine
>> PKG_SYSCONF_DIR=/etc/ovirt-engine
>> PKG_EAR_DIR=/usr/share/ovirt-engine/engine.ear
>> PKG_PKI_DIR=/etc/pki/ovirt-e ngine
>> PKG_JBOSS_MODULES=/usr/share/ovirt-engine/modules
>> make[1]: Entering directory
>> `/home/wqx/ovirt-engine-3.1.0/tmp.rpmbuild/BUILD/ovirt-engine-3.1.0'
>> make[1]: *** No targets specified and no makefile found. Stop.
>> make[1]: Leaving directory
>> `/home/wqx/ovirt-engine-3.1.0/tmp.rpmbuild/BUILD/ovirt-engine-3.1.0'
>> error: Bad exit status from /var/tmp/rpm-tmp.qesWT3 (%build)
>>
>>
>>
>>
>> RPM build errors:
>> Bad exit status from / var/tmp/rpm-tmp.qesWT3 (%build)
>> make: *** [rpm] Error 1
>>
>>
>>
>>
>> There is a ovirt-engine.spec under
>> /home/wqx/ovirt-engine-3.1.0/tmp.rpmbuild/BUILD/ovirt-engine-3.1.0
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> Engine-devel mailing list
>> Engine-devel at ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/engine-devel
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/engine-devel/attachments/20130318/bc0b3e70/attachment.html>
More information about the Engine-devel
mailing list