------=_Part_288546_1770226019.1363596156500
Content-Type: text/plain; charset=GBK
Content-Transfer-Encoding: 7bit
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(a)redhat.com> wrote:
Please try:
$ make dist
$ rpmbuild -tb <tarball>
----- Original Message -----
> From: "qyddbear" <qyddbear(a)163.com>
> To: engine-devel(a)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@localhost ovirt-engine-3.1.0]# make rpm
> sed -e 's/@PACKAGE_VERSION(a)/3.1.0/g' \
> -e 's/@PACKAGE_RELEASE(a)/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(a)ovirt.org
>
http://lists.ovirt.org/mailman/listinfo/engine-devel
>
------=_Part_288546_1770226019.1363596156500
Content-Type: text/html; charset=GBK
Content-Transfer-Encoding: 7bit
<div
style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">Thanks,
but the problem still exists.<div>There is no dist rule be wrote in Makefile, so run
make dist, the result is <b>make: *** No rule to make target `dist'.
Stop.</b></div><div>run rpmbuild
-tb ovirt-engine-3.1.0.tar.gz, the log is the same as
former.<br><br><br><div></div><div
id="divNeteaseMailCard"></div><pre><br>At 2013-03-18 16:26:01,"Alon Bar-Lev" <alonbl@redhat.com> wrote:
>Please try:
>
>$ make dist
>$ rpmbuild -tb <tarball>
>
>
>----- Original Message -----
>> From: "qyddbear" <qyddbear@163.com>
>> To: engine-devel@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!
>>
>>
&gt;&gt;&nbsp;[root(a)localhost&nbsp;ovirt-engine-3.1.0]#&nbsp;make&nbsp;rpm
&gt;&gt;&nbsp;sed&nbsp;-e&nbsp;'s/@PACKAGE_VERSION(a)/3.1.0/g'&nbsp;\
&gt;&gt;&nbsp;-e&nbsp;'s/@PACKAGE_RELEASE(a)/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
&gt;&gt;&nbsp;Engine-devel(a)ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/engine-devel
>>
</pre></div></div><br><br><span
title="neteasefooter"><span
id="netease_mail_footer"></span></span>
------=_Part_288546_1770226019.1363596156500--