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.
>From f95199f36b64877fc37b8375297730ddd2304b06 Mon Sep 17 00:00:00 2001 From: Juan Hernandez <juan.hernan...@redhat.com> Date: Mon, 2 Jul 2012 16:12:36 +0200 Subject: [PATCH] packaging: Don't use %add_maven_depmap This is needed for systems where the jpackage-utils package doesn't include this macro, namely CentOS. Change-Id: I261b22c8581268242775e8e1b6292556f418f447 --- packaging/fedora/spec/ovirt-engine.spec.in | 46 ---------------------------- 1 file changed, 46 deletions(-) diff --git a/packaging/fedora/spec/ovirt-engine.spec.in b/packaging/fedora/spec/ovirt-engine.spec.in index 6d6479f..610b660 100644 --- a/packaging/fedora/spec/ovirt-engine.spec.in +++ b/packaging/fedora/spec/ovirt-engine.spec.in @@ -312,21 +312,15 @@ make PREFIX=%{buildroot} SOURCE_DIR=%{_sourcedir} install # Create the directories required for jar and POM files: install -d -m 755 %{buildroot}%{engine_jar} -install -d -m 755 %{buildroot}%{_mavenpomdir} install -d -m 755 %{buildroot}%{_javadocdir}/%{name} # Jar and POM files: while read module_path artifact_id do - pom_file="${module_path}/pom.xml" jar_file="${module_path}/target/${artifact_id}-%{version}.jar" - install -p -m 644 ${pom_file} %{buildroot}%{_mavenpomdir}/JPP.%{name}-${artifact_id}.pom if [ -f "${jar_file}" ] then install -p -m 644 ${jar_file} %{buildroot}%{engine_jar}/${artifact_id}.jar - %add_maven_depmap JPP.%{name}-${artifact_id}.pom %{name}/${artifact_id}.jar - else - %add_maven_depmap JPP.%{name}-${artifact_id}.pom fi done <<'.' . parent @@ -534,13 +528,6 @@ fi %{engine_jar}/compat.jar %{engine_jar}/utils.jar -# POM files: -%{_mavendepmapfragdir}/%{name} -%{_mavenpomdir}/JPP.%{name}-parent.pom -%{_mavenpomdir}/JPP.%{name}-common.pom -%{_mavenpomdir}/JPP.%{name}-compat.pom -%{_mavenpomdir}/JPP.%{name}-utils.pom - # Documentation: %doc LICENSE @@ -556,22 +543,6 @@ fi %{engine_jar}/searchbackend.jar %{engine_jar}/vdsbroker.jar -# POM files: -%{_mavenpomdir}/JPP.%{name}-backend.pom -%{_mavenpomdir}/JPP.%{name}-manager.pom -%{_mavenpomdir}/JPP.%{name}-manager-beans.pom -%{_mavenpomdir}/JPP.%{name}-manager-modules.pom -%{_mavenpomdir}/JPP.%{name}-manager-tools.pom -%{_mavenpomdir}/JPP.%{name}-bll.pom -%{_mavenpomdir}/JPP.%{name}-dal.pom -%{_mavenpomdir}/JPP.%{name}-engine-config.pom -%{_mavenpomdir}/JPP.%{name}-engine-notifier-resources.pom -%{_mavenpomdir}/JPP.%{name}-engine-notifier-service.pom -%{_mavenpomdir}/JPP.%{name}-engineencryptutils.pom -%{_mavenpomdir}/JPP.%{name}-scheduler.pom -%{_mavenpomdir}/JPP.%{name}-searchbackend.pom -%{_mavenpomdir}/JPP.%{name}-vdsbroker.pom - # Directories for the deployments, contents and temporary files need to # be owned by the engine user because the application server needs to # write to them: @@ -662,14 +633,6 @@ fi %{engine_jar}/restapi-jaxrs.jar %{engine_jar}/restapi-types.jar -# POM files: -%{_mavenpomdir}/JPP.%{name}-interface-common-jaxrs.pom -%{_mavenpomdir}/JPP.%{name}-restapi-definition.pom -%{_mavenpomdir}/JPP.%{name}-restapi-interface.pom -%{_mavenpomdir}/JPP.%{name}-restapi-jaxrs.pom -%{_mavenpomdir}/JPP.%{name}-restapi-parent.pom -%{_mavenpomdir}/JPP.%{name}-restapi-types.pom - # Everything inside of the web application is owned by this # subpackage: %{restapi_war} @@ -680,9 +643,6 @@ fi # Jar files: %{engine_jar}/genericapi.jar -# POM files: -%{_mavenpomdir}/JPP.%{name}-genericapi.pom - # Link to the jar file inside the ear: %{engine_ear}/engine-genericapi.jar @@ -702,9 +662,6 @@ fi # Jar files: %{engine_jar}/engine-tools-common.jar -# POM files: -%{_mavenpomdir}/JPP.%{name}-engine-tools-common.pom - %files config @@ -748,9 +705,6 @@ fi # Jar files: %{engine_jar}/engine-notifier-service.jar -# POM files: -%{_mavenpomdir}/JPP.%{name}-engine-notifier.pom - %changelog * Mon May 07 2012 Keith Robertson <krobe...@redhat.com> - 3.1.0-3 -- 1.7.10.4
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users