[Users] make rpm error
Steve Gordon
sgordon at redhat.com
Mon Apr 9 13:18:24 UTC 2012
So why isn't the maven package installed properly on the build host? How was maven installed on this box? The fact is the build *does* require maven and we are currently generating SRPMs that do not indicate this (because it's not in the spec).
Steve
----- Original Message -----
> From: "зоррыч" <zorro at megatrone.ru>
> To: "Laszlo Hornyak" <lhornyak at redhat.com>
> Cc: users at ovirt.org, "Steve Gordon" <sgordon at redhat.com>
> Sent: Friday, April 6, 2012 10:50:43 AM
> Subject: RE: [Users] make rpm error
>
> I deleted the line
> "BuildRequires: maven"
> In the spec file, RPM packages have been created successfully
>
>
> mvn installed:
>
> [root at noc-2-synt tmp]# mvn --version
> Warning: JAVA_HOME environment variable is not set.
> Apache Maven 2.2.1 (r801777; 2009-08-06 15:16:01-0400)
> Java version: 1.6.0_22
> Java home: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux" version: "2.6.32-220.4.1.el6.x86_64" arch: "amd64"
> Family: "unix"
>
>
>
>
> thank you
>
>
> -----Original Message-----
> From: Laszlo Hornyak [mailto:lhornyak at redhat.com]
> Sent: Friday, April 06, 2012 5:12 PM
> To: ??????
> Cc: users at ovirt.org; Steve Gordon
> Subject: Re: [Users] make rpm error
>
> Hi,
>
> Jenkins is complaining about the same thing, I believe this is where
> it went wrong:
> http://jenkins.ovirt.org/job/ovirt_engine_create_rpms/191/
>
> Related change:
> http://gerrit.ovirt.org/#patch,sidebyside,3337,2,packaging/fedora/spec/ovirt-engine.spec.in
>
> Just guessing but maven is not installed on the OS, is that the
> problem?
>
> Laszlo
>
>
> ----- Original Message -----
> > From: "??????" <zorro at megatrone.ru>
> > To: users at ovirt.org
> > Sent: Friday, April 6, 2012 2:53:13 PM
> > Subject: [Users] make rpm error
> >
> >
> >
> >
> >
> > Hi.
> >
> > I tried to collect the RPM packages for instructions:
> > http://www.ovirt.org/wiki/Build_and_Install_Engine_RPM
> >
> > Commands: “git clone git://gerrit.ovirt.org/ovirt-engine” and
> > “make”
> > and “make test” Executed without error
> >
> >
> >
> > make rpm error:
> >
> > [root at noc-2-synt ovirt-engine]# make rpm
> >
> > tar zcf ovirt-engine-3.1.0_0001.tar.gz `git ls-files`
> >
> > mkdir -p /root/ovirt-engine/output
> >
> > sed -e 's/^Version:.*/Version: 3.1.0_0001/' \
> >
> > -e 's/^Release:.*/Release: 1.8%{?dist}/'
> > packaging/fedora/spec/ovirt-engine.spec.in > ovirt-engine.spec
> >
> > mkdir -p
> > /root/ovirt-engine/srcrpmbuild/{SPECS,RPMS,SRPMS,SOURCES,BUILD,BUILDRO
> > OT}
> >
> > cp -f ovirt-engine.spec /root/ovirt-engine/srcrpmbuild/SPECS/
> >
> > cp -f ovirt-engine-3.1.0_0001.tar.gz
> > /root/ovirt-engine/srcrpmbuild/SOURCES/
> >
> > rpmbuild -bs --define="_topdir /root/ovirt-engine/srcrpmbuild"
> > --define="_sourcedir ." ovirt-engine.spec
> >
> > Wrote:
> > /root/ovirt-engine/srcrpmbuild/SRPMS/ovirt-engine-3.1.0_0001-1.8.el6.s
> > rc.rpm
> >
> > mv /root/ovirt-engine/srcrpmbuild/SRPMS/*.rpm
> > /root/ovirt-engine/output
> >
> > rm -rf /root/ovirt-engine/srcrpmbuild ovirt-engine.spec
> > ovirt-engine-3.1.0_0001.tar.gz
> >
> > rm -rf /root/ovirt-engine/rpmbuild
> >
> > mkdir -p
> > /root/ovirt-engine/rpmbuild/{SPECS,RPMS,SRPMS,SOURCES,BUILD,BUILDROOT}
> >
> > rpmbuild --define="_topdir /root/ovirt-engine/rpmbuild" --rebuild
> > /root/ovirt-engine/output/ovirt-engine-3.1.0_0001-1.8.el6.src.rpm
> >
> > Installing
> > /root/ovirt-engine/output/ovirt-engine-3.1.0_0001-1.8.el6.src.rpm
> >
> > error: Failed build dependencies:
> >
> > maven is needed by ovirt-engine-3.1.0_0001-1.8.el6.x86_64
> >
> > make: *** [rpm] Error 1
> >
> > [root at noc-2-synt ovirt-engine]#
> >
> >
> >
> >
> >
> > You can fix this?
> > _______________________________________________
> > Users mailing list
> > Users at ovirt.org
> > http://lists.ovirt.org/mailman/listinfo/users
> >
>
>
>
More information about the Users
mailing list