------=_Part_279309_491577683.1363594708599
Content-Type: text/plain; charset=GBK
Content-Transfer-Encoding: 7bit
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
output/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-engine 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
------=_Part_279309_491577683.1363594708599
Content-Type: text/html; charset=GBK
Content-Transfer-Encoding: 7bit
<div
style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><div
style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><div>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!</div><div><br></div><div>[root@localhost
ovirt-engine-3.1.0]# make rpm</div><div><span style="background-color:
rgb(192, 192, 192);">sed -e 's/@PACKAGE_VERSION(a)/3.1.0/g'
\</span></div><div><span style="background-color: rgb(192, 192,
192);"> -e
's/@PACKAGE_RELEASE(a)/3.26/g' packaging/fedora/spec/ovirt-engine.spec.in >
ovirt-engine.spec</span></div><div><span
style="background-color: rgb(192, 192, 192);">git ls-files | tar --files-from
/proc/self/fd/0 -czf ovirt-engine-3.1.0.tar.gz
ovirt-engine.spec</span></div><div><span
style="background-color: rgb(192, 192, 192);">rm -f
ovirt-engine.spec</span></div><div><span
style="background-color: rgb(192, 192,
192);"><br></span></div><div><span
style="background-color: rgb(192, 192, 192);">You can use rpmbuild -tb
ovirt-engine-3.1.0.tar.gz to produce rpms</span></div><div><span
style="background-color: rgb(192, 192,
192);"><br></span></div><div><span
style="background-color: rgb(192, 192, 192);">rm -rf
/home/wqx/ovirt-engine-3.1.0/tmp.rpmbuild</span></div><div><span
style="background-color: rgb(192, 192, 192);">mkdir -p
/home/wqx/ovirt-engine-3.1.0/tmp.rpmbuild/{SPECS,RPMS,SRPMS,SOURCES,BUILD,BUILDROOT}</span></div><div><span
style="background-color: rgb(192, 192, 192);">mkdir -p
output</span></div><div><span style="background-color: rgb(192,
192, 192);">rpmbuild -ts --define="_topdir
/home/wqx/ovirt-engine-3.1.0/tmp.rpmbuild"
ovirt-engine-3.1.0.tar.gz</span></div><div><span
style="background-color: rgb(192, 192, 192);">Wrote:
/home/wqx/ovirt-engine-3.1.0/tmp.rpmbuild/SRPMS/ovirt-engine-3.1.0-3.26.el6.src.rpm</span></div><div><span
style="background-color: rgb(192, 192, 192);">mv
/home/wqx/ovirt-engine-3.1.0/tmp.rpmbuild/SRPMS/*.rpm
output</span></div><div><span style="background-color: rgb(192,
192, 192);">rm -rf
/home/wqx/ovirt-engine-3.1.0/tmp.rpmbuild</span></div><div><span
style="background-color: rgb(192, 192,
192);"><br></span></div><div><span
style="background-color: rgb(192, 192, 192);">srpm is ready at
output</span></div><div><span style="background-color: rgb(192,
192, 192);"><br></span></div><div><span
style="background-color: rgb(192, 192, 192);">rm -rf
/home/wqx/ovirt-engine-3.1.0/tmp.rpmbuild</span></div><div><span
style="background-color: rgb(192, 192, 192);">mkdir -p
/home/wqx/ovirt-engine-3.1.0/tmp.rpmbuild/{SPECS,RPMS,SRPMS,SOURCES,BUILD,BUILDROOT}</span></div><div><span
style="background-color: rgb(192, 192, 192);">mkdir -p
output</span></div><div><span style="background-color: rgb(192,
192, 192);">rpmbuild --define="_topdir
/home/wqx/ovirt-engine-3.1.0/tmp.rpmbuild" --rebuild
output/ovirt-engine-3.1.0*.src.rpm</span></div><div><span
style="background-color: rgb(192, 192, 192);">Installing
output/ovirt-engine-3.1.0-3.26.el6.src.rpm</span></div><div><span
style="background-color: rgb(192, 192, 192);">Executing(%prep): /bin/sh -e
/var/tmp/rpm-tmp.3JQHHM</span></div><div><span
style="background-color: rgb(192, 192, 192);">+ umask
022</span></div><div><span style="background-color: rgb(192,
192, 192);">+ cd
/home/wqx/ovirt-engine-3.1.0/tmp.rpmbuild/BUILD</span></div><div><span
style="background-color: rgb(192, 192, 192);">+
LANG=C</span></div><div><span style="background-color: rgb(192,
192, 192);">+ export LANG</span></div><div><span
style="background-color: rgb(192, 192, 192);">+ unset
DISPLAY</span></div><div><span style="background-color: rgb(192,
192, 192);">+ cd
/home/wqx/ovirt-engine-3.1.0/tmp.rpmbuild/BUILD</span></div><div><span
style="background-color: rgb(192, 192, 192);">+ rm -rf
ovirt-engine-3.1.0</span></div><div><span
style="background-color: rgb(192, 192, 192);">+ /bin/mkdir -p
ovirt-engine-3.1.0</span></div><div><span
style="background-color: rgb(192, 192, 192);">+ cd
ovirt-engine-3.1.0</span></div><div><span
style="background-color: rgb(192, 192, 192);">+ /bin/tar -xf
-</span></div><div><span style="background-color: rgb(192, 192,
192);">+ /usr/bin/gzip -dc
/home/wqx/ovirt-engine-3.1.0/tmp.rpmbuild/SOURCES/ovirt-engine-3.1.0.tar.gz</span></div><div><span
style="background-color: rgb(192, 192, 192);">+
STATUS=0</span></div><div><span style="background-color:
rgb(192, 192, 192);">+ '[' 0 -ne 0
']'</span></div><div><span style="background-color:
rgb(192, 192, 192);">+ /bin/chmod -Rf a+rX,u+w,g-w,o-w
.</span></div><div><span style="background-color: rgb(192, 192,
192);">+ exit 0</span></div><div><span
style="background-color: rgb(192, 192, 192);">Executing(%build): /bin/sh -e
/var/tmp/rpm-tmp.qesWT3</span></div><div><span
style="background-color: rgb(192, 192, 192);">+ umask
022</span></div><div><span style="background-color: rgb(192,
192, 192);">+ cd
/home/wqx/ovirt-engine-3.1.0/tmp.rpmbuild/BUILD</span></div><div><span
style="background-color: rgb(192, 192, 192);">+ cd
ovirt-engine-3.1.0</span></div><div><span
style="background-color: rgb(192, 192, 192);">+
LANG=C</span></div><div><span style="background-color: rgb(192,
192, 192);">+ export LANG</span></div><div><span
style="background-color: rgb(192, 192, 192);">+ unset
DISPLAY</span></div><div><span style="background-color: rgb(192,
192, 192);">+ 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-engine
PKG_JBOSS_MODULES=/usr/share/ovirt-engine/modules</span></div><div><span
style="background-color: rgb(192, 192, 192);">make[1]: Entering directory
`/home/wqx/ovirt-engine-3.1.0/tmp.rpmbuild/BUILD/ovirt-engine-3.1.0'</span></div><div><b
style="background-color: rgb(192, 192, 192);">make[1]: *** No targets
specified and no makefile found. Stop.</b></div><div><span
style="background-color: rgb(192, 192, 192);">make[1]: Leaving directory
`/home/wqx/ovirt-engine-3.1.0/tmp.rpmbuild/BUILD/ovirt-engine-3.1.0'</span></div><div><span
style="background-color: rgb(192, 192, 192);">error: Bad exit status from
/var/tmp/rpm-tmp.qesWT3 (%build)</span></div><div><span
style="background-color: rgb(192, 192,
192);"><br></span></div><div><span
style="background-color: rgb(192, 192,
192);"><br></span></div><div><span
style="background-color: rgb(192, 192, 192);">RPM build
errors:</span></div><div><span style="background-color: rgb(192,
192, 192);"> Bad exit status from /var/tmp/rpm-tmp.qesWT3
(%build)</span></div><div><span style="background-color:
rgb(192, 192, 192);">make: *** [rpm] Error
1</span></div><div><br></div><div><br></div><div>There
is a ovirt-engine.spec under
/home/wqx/ovirt-engine-3.1.0/tmp.rpmbuild/BUILD/ovirt-engine-3.1.0
</div><div><br></div><div><br></div></div></div><br><br><span
title="neteasefooter"><span
id="netease_mail_footer"></span></span>
------=_Part_279309_491577683.1363594708599--