On 07/02/2012 03:02 AM, Robert Middleswarth wrote:
On 06/29/2012 02:50 PM, Robert Middleswarth wrote:
> On 06/29/2012 05:44 AM, Juan Hernandez wrote:
>> On 06/29/2012 04:52 AM, Robert Middleswarth wrote:
>>> Note I am attempting to build on CentOS after applying
>>>
http://www1.dreyou.org/ovirt/ engine patch.
>>>
>>> I have tiried with both master and engine_3.1 branch but I am pretty
>>> certain that it is a missing depend in my build environment? Any hints?
>>>
>>> # Hibernate validator module:
>>> ln -s /usr/share/java/hibernate-validator.jar
>>>
/root/centos_engine_3.1/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.el6.x86_64/usr/share/ovirt-engine/modules/org/hibernate/validator/main/.
>>>
>>> ln -s /usr/share/java/jtype.jar
>>>
/root/centos_engine_3.1/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.el6.x86_64/usr/share/ovirt-engine/modules/org/hibernate/validator/main/.
>>>
>>> *** Deploying service
>>> # Install the files:
>>> install -m 644 packaging/fedora/engine-service.xml
>>>
/root/centos_engine_3.1/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.el6.x86_64/etc/ovirt-engine
>>>
>>> install -m 644 packaging/fedora/engine-service-logging.properties
>>>
/root/centos_engine_3.1/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.el6.x86_64/etc/ovirt-engine
>>>
>>> install -m 644 packaging/fedora/engine-service-users.properties
>>>
/root/centos_engine_3.1/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.el6.x86_64/etc/ovirt-engine
>>>
>>> install -m 644 packaging/fedora/engine-service.sysconfig
>>>
/root/centos_engine_3.1/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.el6.x86_64/etc/sysconfig/ovirt-engine
>>>
>>> install -m 644 packaging/fedora/engine-service.limits
>>>
/root/centos_engine_3.1/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.el6.x86_64/etc/security/limits.d/10-ovirt-engine.conf
>>>
>>> install -m 755 packaging/fedora/engine-service.py
>>>
/root/centos_engine_3.1/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.el6.x86_64/usr/share/ovirt-engine/scripts
>>>
>>> install -m 755 packaging/fedora/engine-service.systemv
>>>
/root/centos_engine_3.1/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.el6.x86_64/etc/rc.d/init.d/ovirt-engine
>>>
>>> make[1]: Leaving directory
>>> `/root/centos_engine_3.1/rpmbuild/BUILD/ovirt-engine-3.1.0'
>>> + install -d -m 755
>>>
/root/centos_engine_3.1/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.el6.x86_64/usr/share/java/ovirt-engine
>>>
>>> + install -d -m 755
>>>
/root/centos_engine_3.1/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.el6.x86_64/usr/share/maven2/poms
>>>
>>> + install -d -m 755
>>>
/root/centos_engine_3.1/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.el6.x86_64/usr/share/javadoc/ovirt-engine
>>>
>>> + read module_path artifact_id
>>> + pom_file=./pom.xml
>>> + jar_file=./target/parent-3.1.0.jar
>>> + install -p -m 644 ./pom.xml
>>>
/root/centos_engine_3.1/rpmbuild/BUILDROOT/ovirt-engine-3.1.0-3.el6.x86_64/usr/share/maven2/poms/JPP.ovirt-engine-parent.pom
>>>
>>> + '[' -f ./target/parent-3.1.0.jar ']'
>>> + %add_maven_depmap JPP.ovirt-engine-parent.pom
>>> /var/tmp/rpm-tmp.hkOAWN: line 58: fg: no job control
>>> error: Bad exit status from /var/tmp/rpm-tmp.hkOAWN (%install)
>>>
>>>
>>> RPM build errors:
>>> Bad exit status from /var/tmp/rpm-tmp.hkOAWN (%install)
>>> make: *** [rpm] Error 1
>> Can you share the temp file where you get that error? I is
>> /var/tmp/rpm-tmp.hkOAWN in your latests message, but will be different
>> if you repeat the build.
>>
>>
> I had already shutdown the VM so the tmp folder was cleared. I am
> running the build again and going to grab a full log and that file and
> fpaste them. But the build process is taking me 12 hours to do so it
> will be a day or two before I can reply.
>
> Thanks
> Robert
I rerun the build process and paste bin both the full Log (
http://fpaste.org/22oU/ ) and the temp file (
http://fpaste.org/g7v6/ ).
Any help on what I am missing would be great.
Thanks
Robert
According to that temp file the %add_maven_depmap macro hasn't been
expanded. In Fedora those macros are installed by the jpackage-utils
package, not sure if in CentOS it is the same. Can you check if you have
that jpackage-utils installed and what is its content? In Fedora the
macros are in the /etc/rpm/macros.fjava file.
It could also happen that the CentOS version of the jpackage-utils
doesn't contain that macro. If this is the case your best alternative is
to remove the use of the %add_maven_depmap macro and references to POM
files from the .spec, the engine should work fine without the POM files.
I prepared a patch that you may try to apply to remove that macro and
the references to the POM files, find it attached.
--
Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta
3ºD, 28016 Madrid, Spain
Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.