------=_Part_150586_1608314981.1364538573516
Content-Type: text/plain; charset=GBK
Content-Transfer-Encoding: 7bit
Hi,
I am trying to create a rpm using ovirt-engine-3.1.0-3.26.3.el6.centos.alt.src.rpm on
CentOS 6.3. After ran rpmbuild -ba ovirt-engine.spec, I got error message like this:
*** Deploying service
# Install the files:
install -dm 755
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/service
install -m 644 packaging/fedora/engine-service.xml.in
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/service
install -m 644 packaging/fedora/engine-service-logging.properties
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/service
install -m 755 packaging/fedora/engine-service.py
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/service
install -m 644 packaging/fedora/engine-service.sysconfig
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/etc/sysconfig/ovirt-engine
install -m 644 packaging/fedora/engine-service.limits
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/etc/security/limits.d/10-ovirt-engine.conf
install -m 755 packaging/fedora/engine-service.systemv
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/etc/rc.d/init.d/ovirt-engine
# Install the links:
ln -s /usr/share/ovirt-engine/service/engine-service.py
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/bin/engine-service
+ install -dm 755
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/lib/ovirt-engine/deployments
+ install -dm 755
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/lib/ovirt-engine/content
+ install -dm 755
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/log/ovirt-engine/notifier
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/log/ovirt-engine/engine-manage-domains
+ install -dm 755
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/run/ovirt-engine/notifier
+ install -dm 755
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/lock/ovirt-engine
+ for war in restapi userportal webadmin
+ sed -i
's#<transport-guarantee>NONE</transport-guarantee>#<transport-guarantee>CONFIDENTIAL</transport-guarantee>#'
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/engine.ear/restapi.war/WEB-INF/web.xml
+ for war in restapi userportal webadmin
+ sed -i
's#<transport-guarantee>NONE</transport-guarantee>#<transport-guarantee>CONFIDENTIAL</transport-guarantee>#'
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/engine.ear/userportal.war/WEB-INF/web.xml
+ for war in restapi userportal webadmin
+ sed -i
's#<transport-guarantee>NONE</transport-guarantee>#<transport-guarantee>CONFIDENTIAL</transport-guarantee>#'
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/engine.ear/webadmin.war/WEB-INF/web.xml
+ for pom in
'/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/maven2/poms/*.pom'
++ dirname
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/maven2/poms/ovirt-engine-backend.pom
+
pomdir=/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/maven2/poms
++ basename
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/maven2/poms/ovirt-engine-backend.pom
+ pom=ovirt-engine-backend.pom
+ jpppom=JPP.ovirt-engine-backend.pom
+ mv
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/maven2/poms/ovirt-engine-backend.pom
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/maven2/poms/JPP.ovirt-engine-backend.pom
++ sed -e 's/^ovirt-engine-//' -e 's/\.pom//'
++ echo ovirt-engine-backend.pom
+ artifact_id=backend
+ '[' -f
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/java/ovirt-engine/backend.jar
']'
+ %add_maven_depmap JPP.ovirt-engine-backend.pom
/var/tmp/rpm-tmp.hR92jC: line 86: fg: no job control
error: Bad exit status from /var/tmp/rpm-tmp.hR92jC (%install)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.hR92jC (%install)
And here is rpm-tmp.hR92jC:
#!/bin/sh
RPM_SOURCE_DIR="/root/rpmbuild/SOURCES"
RPM_BUILD_DIR="/root/rpmbuild/BUILD"
RPM_OPT_FLAGS="-O2 -g"
RPM_ARCH="x86_64"
RPM_OS="linux"
export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS
RPM_DOC_DIR="/usr/share/doc"
export RPM_DOC_DIR
RPM_PACKAGE_NAME="ovirt-engine"
RPM_PACKAGE_VERSION="3.1.0"
RPM_PACKAGE_RELEASE="3.26.3.el6"
export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE
LANG=C
export LANG
unset CDPATH DISPLAY ||:
RPM_BUILD_ROOT="/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64"
export RPM_BUILD_ROOT
PKG_CONFIG_PATH="/usr/lib64/pkgconfig:/usr/share/pkgconfig"
export PKG_CONFIG_PATH
set -x
umask 022
cd "/root/rpmbuild/BUILD"
cd 'ovirt-engine-3.1.0'
rm -fr "/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64"
# Use the makefile to do the normal installation, after that we
# will need to replace jar files with links to their actual
# locations:
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 \
\
install DESTDIR=/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64
install -dm 755
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/lib/ovirt-engine/deployments
install -dm 755
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/lib/ovirt-engine/content
install -dm 755
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/log/ovirt-engine/{notifier,engine-manage-domains}
install -dm 755
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/run/ovirt-engine/notifier
install -dm 755
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/lock/ovirt-engine
# Needed for compatibility if package is different than the directory structure
#
# Force TLS/SSL for selected applications.
#
for war in restapi userportal webadmin; do
sed -i \
's#<transport-guarantee>NONE</transport-guarantee>#<transport-guarantee>CONFIDENTIAL</transport-guarantee>#'
\
"/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/engine.ear/${war}.war/WEB-INF/web.xml"
done
# Register poms
for pom in
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/maven2/poms/*.pom
do
pomdir=`dirname "${pom}"`
pom=`basename "${pom}"`
jpppom="JPP.${pom}"
mv "${pomdir}/${pom}" "${pomdir}/${jpppom}"
artifact_id=`echo "${pom}" | sed -e 's/^ovirt-engine-//' -e
's/\.pom//'`
if [ -f
"/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/java/ovirt-engine/${artifact_id}.jar"
]
then
%add_maven_depmap "${jpppom}" "ovirt-engine/${artifact_id}.jar"
else
%add_maven_depmap "${jpppom}"
fi
done
# Copy the module definitions:
install -dm 755
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/modules
cp -r deployment/modules/*
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/modules
find
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/modules
-type d -exec chmod 755 {} \;
find
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/modules
-type f -exec chmod 644 {} \;
/usr/lib/rpm/brp-compress
/usr/lib/rpm/brp-strip
/usr/lib/rpm/brp-strip-static-archive
/usr/lib/rpm/brp-strip-comment-note
I installed jpackage-utils. From a former mai
http://lists.ovirt.org/pipermail/users/2012-July/002794.html , it seems that something
wrong with %add_maven_depmap macro and POM file. But I didn't find the attached patch
which was supplied by Robert Middleswarth. Can anyone teach me how to fix it? Thanks!
------=_Part_150586_1608314981.1364538573516
Content-Type: text/html; charset=GBK
Content-Transfer-Encoding: 7bit
<div
style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">Hi, <div>I
am trying to create a rpm using ovirt-engine-3.1.0-3.26.3.el6.centos.alt.src.rpm on CentOS
6.3. After ran rpmbuild -ba ovirt-engine.spec, I got error message like
this:</div><div><br></div><div><div>*** Deploying
service</div><div># Install the files:</div><div>install -dm 755
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/service</div><div>install
-m 644 packaging/fedora/engine-service.xml.in
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/service</div><div>install
-m 644 packaging/fedora/engine-service-logging.properties
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/service</div><div>install
-m 755 packaging/fedora/engine-service.py
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/service</div><div>install
-m 644 packaging/fedora/engine-service.sysconfig
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/etc/sysconfig/ovirt-engine</div><div>install
-m 644 packaging/fedora/engine-service.limits
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/etc/security/limits.d/10-ovirt-engine.conf</div><div>install
-m 755 packaging/fedora/engine-service.systemv
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/etc/rc.d/init.d/ovirt-engine</div><div>#
Install the links:</div><div>ln -s
/usr/share/ovirt-engine/service/engine-service.py
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/bin/engine-service</div><div>+
install -dm 755
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/lib/ovirt-engine/deployments</div><div>+
install -dm 755
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/lib/ovirt-engine/content</div><div>+
install -dm 755
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/log/ovirt-engine/notifier
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/log/ovirt-engine/engine-manage-domains</div><div>+
install -dm 755
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/run/ovirt-engine/notifier</div><div>+
install -dm 755
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/lock/ovirt-engine</div><div>+
for war in restapi userportal webadmin</div><div>+ sed -i
's#<transport-guarantee>NONE</transport-guarantee>#<transport-guarantee>CONFIDENTIAL</transport-guarantee>#'
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/engine.ear/restapi.war/WEB-INF/web.xml</div><div>+
for war in restapi userportal webadmin</div><div>+ sed -i
's#<transport-guarantee>NONE</transport-guarantee>#<transport-guarantee>CONFIDENTIAL</transport-guarantee>#'
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/engine.ear/userportal.war/WEB-INF/web.xml</div><div>+
for war in restapi userportal webadmin</div><div>+ sed -i
's#<transport-guarantee>NONE</transport-guarantee>#<transport-guarantee>CONFIDENTIAL</transport-guarantee>#'
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/engine.ear/webadmin.war/WEB-INF/web.xml</div><div>+
for pom in
'/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/maven2/poms/*.pom'</div><div>++
dirname
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/maven2/poms/ovirt-engine-backend.pom</div><div>+
pomdir=/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/maven2/poms</div><div>++
basename
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/maven2/poms/ovirt-engine-backend.pom</div><div>+
pom=ovirt-engine-backend.pom</div><div>+
jpppom=JPP.ovirt-engine-backend.pom</div><div>+ mv
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/maven2/poms/ovirt-engine-backend.pom
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/maven2/poms/JPP.ovirt-engine-backend.pom</div><div>++
sed -e 's/^ovirt-engine-//' -e 's/\.pom//'</div><div>++ echo
ovirt-engine-backend.pom</div><div>+
artifact_id=backend</div><div>+ '[' -f
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/java/ovirt-engine/backend.jar
']'</div><div>+ %add_maven_depmap
JPP.ovirt-engine-backend.pom</div><div>/var/tmp/rpm-tmp.hR92jC: line 86: fg:
no job control</div><div>error: Bad exit status from /var/tmp/rpm-tmp.hR92jC
(%install)</div><div><br></div><div><br></div><div>RPM
build errors:</div><div> Bad exit status from
/var/tmp/rpm-tmp.hR92jC
(%install)</div></div><div><br></div><div><br></div><div>And
here is
rpm-tmp.hR92jC:</div><div><br></div><div><br></div><div><div>#!/bin/sh</div><div><br></div><div>
RPM_SOURCE_DIR="/root/rpmbuild/SOURCES"</div><div>
RPM_BUILD_DIR="/root/rpmbuild/BUILD"</div><div>
RPM_OPT_FLAGS="-O2 -g"</div><div>
RPM_ARCH="x86_64"</div><div>
RPM_OS="linux"</div><div> export RPM_SOURCE_DIR
RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS</div><div>
RPM_DOC_DIR="/usr/share/doc"</div><div> export
RPM_DOC_DIR</div><div>
RPM_PACKAGE_NAME="ovirt-engine"</div><div>
RPM_PACKAGE_VERSION="3.1.0"</div><div>
RPM_PACKAGE_RELEASE="3.26.3.el6"</div><div> export
RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE</div><div>
LANG=C</div><div> export LANG</div><div> unset
CDPATH DISPLAY ||:</div><div>
RPM_BUILD_ROOT="/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64"</div><div>
export
RPM_BUILD_ROOT</div><div> </div><div>
PKG_CONFIG_PATH="/usr/lib64/pkgconfig:/usr/share/pkgconfig"</div><div>
export
PKG_CONFIG_PATH</div><div> </div><div>
set -x</div><div> umask 022</div><div> cd
"/root/rpmbuild/BUILD"</div><div>cd
'ovirt-engine-3.1.0'</div><div><br></div><div>rm -fr
"/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64"</div><div><br></div><div>#
Use the makefile to do the normal installation, after that we</div><div># will
need to replace jar files with links to their actual</div><div>#
locations:</div><div>make \</div><div><span
class="Apple-tab-span" style="white-space:pre"> </span>-j1
\</div><div><span class="Apple-tab-span"
style="white-space:pre"> </span>PACKAGE_NAME=ovirt-engine
\</div><div><span class="Apple-tab-span"
style="white-space:pre"> </span>ENGINE_NAME=ovirt-engine
\</div><div><span class="Apple-tab-span"
style="white-space:pre"> </span>LOCALSTATE_DIR=/var
\</div><div><span class="Apple-tab-span"
style="white-space:pre"> </span>ENGINE_STATE=/var/lib/ovirt-engine
\</div><div><span class="Apple-tab-span"
style="white-space:pre"> </span>PREFIX=/usr
\</div><div><span class="Apple-tab-span"
style="white-space:pre"> </span>SYSCONF_DIR=/etc
\</div><div><span class="Apple-tab-span"
style="white-space:pre"> </span>BIN_DIR=/usr/bin
\</div><div><span class="Apple-tab-span"
style="white-space:pre"> </span>DATAROOT_DIR=/usr/share
\</div><div><span class="Apple-tab-span"
style="white-space:pre"> </span>MAN_DIR=/usr/share/man
\</div><div><span class="Apple-tab-span"
style="white-space:pre"> </span>PYTHON=/usr/bin/python
\</div><div><span class="Apple-tab-span"
style="white-space:pre"> </span>PYTHON_DIR=/usr/lib/python2.6/site-packages
\</div><div><span class="Apple-tab-span"
style="white-space:pre"> </span>JAVA_DIR=/usr/share/java
\</div><div><span class="Apple-tab-span"
style="white-space:pre"> </span>MAVENPOM_DIR=/usr/share/maven2/poms
\</div><div><span class="Apple-tab-span"
style="white-space:pre"> </span>PKG_JAVA_DIR=/usr/share/java/ovirt-engine
\</div><div><span class="Apple-tab-span"
style="white-space:pre"> </span>PKG_SYSCONF_DIR=/etc/ovirt-engine
\</div><div><span class="Apple-tab-span"
style="white-space:pre"> </span>PKG_EAR_DIR=/usr/share/ovirt-engine/engine.ear
\</div><div><span class="Apple-tab-span"
style="white-space:pre"> </span>PKG_PKI_DIR=/etc/pki/ovirt-engine
\</div><div><span class="Apple-tab-span"
style="white-space:pre"> </span>PKG_JBOSS_MODULES=/usr/share/ovirt-engine/modules
\</div><div><span class="Apple-tab-span"
style="white-space:pre"> </span> \</div><div><span
class="Apple-tab-span" style="white-space:pre"> </span>
install
DESTDIR=/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64</div><div><br></div><div>install
-dm 755
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/lib/ovirt-engine/deployments</div><div>install
-dm 755
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/lib/ovirt-engine/content</div><div>install
-dm 755
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/log/ovirt-engine/{notifier,engine-manage-domains}</div><div>install
-dm 755
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/run/ovirt-engine/notifier</div><div>install
-dm 755
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64//var/lock/ovirt-engine</div><div><br></div><div>#
Needed for compatibility if package is different than the directory
structure</div><div><br></div><div>#</div><div>#
Force TLS/SSL for selected applications.</div><div>#</div><div>for
war in restapi userportal webadmin; do</div><div> sed -i
\</div><div>
's#<transport-guarantee>NONE</transport-guarantee>#<transport-guarantee>CONFIDENTIAL</transport-guarantee>#'
\</div><div>
"/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/engine.ear/${war}.war/WEB-INF/web.xml"</div><div>done</div><div><br></div><div>#
Register poms</div><div>for pom in
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/maven2/poms/*.pom</div><div>do</div><div>
pomdir=`dirname "${pom}"`</div><div> pom=`basename
"${pom}"`</div><div>
jpppom="JPP.${pom}"</div><div> mv
"${pomdir}/${pom}"
"${pomdir}/${jpppom}"</div><div> artifact_id=`echo
"${pom}" | sed -e 's/^ovirt-engine-//' -e
's/\.pom//'`</div><div> if [ -f
"/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/java/ovirt-engine/${artifact_id}.jar"
]</div><div> then</div><div>
%add_maven_depmap "${jpppom}"
"ovirt-engine/${artifact_id}.jar"</div><div>
else</div><div> %add_maven_depmap
"${jpppom}"</div><div>
fi</div><div>done</div><div><br></div><div><br></div><div>#
Copy the module definitions:</div><div>install -dm 755
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/modules</div><div>cp
-r deployment/modules/*
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/modules</div><div>find
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/modules
-type d -exec chmod 755 {} \;</div><div>find
/root/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.26.3.el6.x86_64/usr/share/ovirt-engine/modules
-type f -exec chmod 644 {}
\;</div><div><br></div><div><br></div><div>
/usr/lib/rpm/brp-compress </div><div>
/usr/lib/rpm/brp-strip </div><div>
/usr/lib/rpm/brp-strip-static-archive </div><div>
/usr/lib/rpm/brp-strip-comment-note </div></div><div><br></div><div><br></div><div><br></div><div><br></div><div>I
installed jpackage-utils. From a former mai <a
href="http://lists.ovirt.org/pipermail/users/2012-July/002794.html&q...
target="_blank">http://lists.ovirt.org/pipermail/users/2012-...;,
it seems that something wrong with <span style="line-height: normal;
">%add_maven_depmap macro and POM file. But I didn't find the attached patch
which was supplied by </span><span style="line-height: normal;
">Robert Middleswarth. Can anyone teach me how to fix it?
Thanks!</span></div></div><br><br><span
title="neteasefooter"><span
id="netease_mail_footer"></span></span>
------=_Part_150586_1608314981.1364538573516--