From: "Eyal Edri" <eedri(a)redhat.com>
To: "Steve Gordon" <sgordon(a)redhat.com>
Cc: "??????" <zorro(a)megatrone.ru>, arch(a)ovirt.org, users(a)ovirt.org,
"Laszlo Hornyak" <lhornyak(a)redhat.com>, "Ofer
Schreiber" <oschreib(a)redhat.com>, "infra" <infra(a)ovirt.org>
Sent: Monday, April 9, 2012 9:56:08 AM
Subject: Re: [Users] make rpm error
----- Original Message -----
> From: "Steve Gordon" <sgordon(a)redhat.com>
> To: "Laszlo Hornyak" <lhornyak(a)redhat.com>
> Cc: "??????" <zorro(a)megatrone.ru>, arch(a)ovirt.org, users(a)ovirt.org
> Sent: Monday, April 9, 2012 4:21:55 PM
> Subject: Re: [Users] make rpm error
>
> ----- Original Message -----
> > From: "Laszlo Hornyak" <lhornyak(a)redhat.com>
> > To: "??????" <zorro(a)megatrone.ru>
> > Cc: users(a)ovirt.org, "Steve Gordon" <sgordon(a)redhat.com>
> > Sent: Friday, April 6, 2012 9:12:06 AM
> > 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/ov...
> >
> > Just guessing but maven is not installed on the OS, is that the
> > problem?
> >
> > Laszlo
>
> Maven must be installed, otherwise builds would never work on it,
> but
> I am guessing it has been installed manually outside of the package
> manager otherwise this dependency would be met.
>
> CC'ing arch(a)ovirt.org:
>
> How is maven installed on the jenkins host? Can we get it installed
> from RPMs?
>
Jenkins doesn't install the maven package, but uses a mvn bin under
$JENKINS_HOME/tools/$mvn_ver/bin/mvn.
I'm not sure that requiring the 'maven' rpm in the make is wise, than
rather checking if 'mvn' can be run instead,
since this a standalone pkg that can be on os even without an rpm
installed.
If that was actually a valid reason to not specify package requirements we would never
specify any BuildRequires or Requires declarations in the spec file because the packages
'might' have been manually installed. Without this declaration the SRPM we are
providing in the builds on
can not be used to build in a clean environment such
as that provided by mock. Note that this declaration was already in the version submitted
to Fedora for review [1] because otherwise it would never pass...
but for now, i can make sure all jenkins slaves have the
'maven' rpm
installed to solve this issue.