Re: [Users] make rpm error
I installed maven manually from the page - http://maven.apache.org/download.html (In the old version of the package repository) -Original Message- From: Steve Gordon [mailto:sgor...@redhat.com] Sent: Monday, April 09, 2012 5:18 PM To: зоррыч Cc: users@ovirt.org; Laszlo Hornyak Subject: Re: [Users] make rpm error 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: "зоррыч" > To: "Laszlo Hornyak" > Cc: users@ovirt.org, "Steve Gordon" > 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@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:lhorn...@redhat.com] > Sent: Friday, April 06, 2012 5:12 PM > To: ?? > Cc: users@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: "??" > > To: users@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@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@noc-2-synt ovirt-engine]# > > > > > > > > > > > > You can fix this? > > ___ > > Users mailing list > > Users@ovirt.org > > http://lists.ovirt.org/mailman/listinfo/users > > > > > ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [Users] make rpm error
- Original Message - > From: "Eyal Edri" > To: "Steve Gordon" > Cc: "??" , a...@ovirt.org, users@ovirt.org, "Laszlo > Hornyak" , "Ofer > Schreiber" , "infra" > Sent: Monday, April 9, 2012 9:56:08 AM > Subject: Re: [Users] make rpm error > > > > - Original Message - > > From: "Steve Gordon" > > To: "Laszlo Hornyak" > > Cc: "??" , a...@ovirt.org, users@ovirt.org > > Sent: Monday, April 9, 2012 4:21:55 PM > > Subject: Re: [Users] make rpm error > > > > - Original Message - > > > From: "Laszlo Hornyak" > > > To: "??" > > > Cc: users@ovirt.org, "Steve Gordon" > > > 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/ovirt-engine.spec.in > > > > > > 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 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 ovirt.org 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. Thanks. Steve [1] http://jhernand.fedorapeople.org/rpms/ovirt-engine/3.0.0_0001-6/ovirt-engine.spec ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [Users] make rpm error
- Original Message - > From: "Steve Gordon" > To: "Laszlo Hornyak" > Cc: "??" , a...@ovirt.org, users@ovirt.org > Sent: Monday, April 9, 2012 4:21:55 PM > Subject: Re: [Users] make rpm error > > - Original Message - > > From: "Laszlo Hornyak" > > To: "??" > > Cc: users@ovirt.org, "Steve Gordon" > > 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/ovirt-engine.spec.in > > > > 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 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. but for now, i can make sure all jenkins slaves have the 'maven' rpm installed to solve this issue. eyal. > Thanks, > > Steve > ___ > Arch mailing list > a...@ovirt.org > http://lists.ovirt.org/mailman/listinfo/arch > ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [Users] make rpm error
- Original Message - > From: "Laszlo Hornyak" > To: "??" > Cc: users@ovirt.org, "Steve Gordon" > 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/ovirt-engine.spec.in > > 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 a...@ovirt.org: How is maven installed on the jenkins host? Can we get it installed from RPMs? Thanks, Steve ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [Users] make rpm error
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: "зоррыч" > To: "Laszlo Hornyak" > Cc: users@ovirt.org, "Steve Gordon" > 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@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:lhorn...@redhat.com] > Sent: Friday, April 06, 2012 5:12 PM > To: ?? > Cc: users@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: "??" > > To: users@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@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@noc-2-synt ovirt-engine]# > > > > > > > > > > > > You can fix this? > > ___ > > Users mailing list > > Users@ovirt.org > > http://lists.ovirt.org/mailman/listinfo/users > > > > > ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [Users] make rpm error
I deleted the line "BuildRequires: maven" In the spec file, RPM packages have been created successfully mvn installed: [root@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:lhorn...@redhat.com] Sent: Friday, April 06, 2012 5:12 PM To: ?? Cc: users@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: "??" > To: users@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@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@noc-2-synt ovirt-engine]# > > > > > > You can fix this? > ___ > Users mailing list > Users@ovirt.org > http://lists.ovirt.org/mailman/listinfo/users > ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
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: "??" > To: users@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@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,BUILDROOT} > > 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.src.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@noc-2-synt ovirt-engine]# > > > > > > You can fix this? > ___ > Users mailing list > Users@ovirt.org > http://lists.ovirt.org/mailman/listinfo/users > ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[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@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,BUILDROOT} 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.src.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@noc-2-synt ovirt-engine]# You can fix this? ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users