That looks like it’s for Foreman 1.11 (develop), you’ll need to use
the
1.10 config file from
https://github.com/theforeman/foreman-packaging/blob/rpm/develop/mock/el7-scl.cfg.
–
Dominic Cleal
dom...@cleal.org
On 22/01/16 07:17, arunsri...@ebay.com wrote:
Hi Dominic
I have built it with mock scl, was trying to install the package
get
follwoing error
[arun@spc02 result]$ sudo rpm -ivh
tfm-rubygem-mysql2-0.3.19-2.el7.centos.x86_64.rpm
error: Failed dependencies:
rh-ruby22-ruby >= 1.8.6 is needed by
tfm-rubygem-mysql2-0.3.19-2.el7.centos.x86_64
rh-ruby22-rubygems >= 1.8.10 is needed by
tfm-rubygem-mysql2-0.3.19-2.el7.centos.x86_64
On Thursday, January 21, 2016 at 5:26:17 AM UTC-8, Dominic Cleal >>>>> wrote:
Did you use the SCL config rather than the non-SCL config as per
my
reply? If you still use the el7-nonscl.cfg file in the mock
command
then yes, it'll build a non-SCL version under /usr.
tfm-build is installed by the el7-scl.cfg config
(
https://github.com/theforeman/foreman-packaging/blob/rpm/1.10/mock/el7-scl.cfg#L4
<
https://github.com/theforeman/foreman-packaging/blob/rpm/1.10/mock/el7-scl.cfg#L4>)
and is available from our repos
(http://yum.theforeman.org/releases/1.10/el7/x86_64/
<http://yum.theforeman.org/releases/1.10/el7/x86_64/>). I can
only
assume you're still using the non-SCL config.
If it's still failing to build with the el7-scl config, then
please
share the logs from the results directory - upload them,
perhaps to a
pastebin.
--
Dominic Cleal
dom...@cleal.org <javascript:>
On 21/01/16 13:21, arunsri...@ebay.com <javascript:> wrote:
> Thanks Dominic
>
> However how do i get it build under /opt/theforeman ... path,
it
builds
> under /user/gems ...
> You had mentioned build it using tfm-build, how do i do that,
don
tseem
> to have tfm-build and wasnt able to download it.
> Thx
> On Thursday, January 21, 2016 at 12:02:37 AM UTC-8, Dominic >>>>> Cleal >>>>> > wrote:
>
> On 20/01/16 21:17, arunsri...@ebay.com <javascript:> >>>>> wrote:
> > Hi Domnic
> > These are the steps i followed to build the rpm
> >
> > 1. downloaded tfm-rubygem-mysql2-0.3.19-2.el7.src.rpm
> > 2. Downloaded the el7-scl.cfg
> >
>
<
https://github.com/theforeman/foreman-packaging/blob/rpm/develop/mock/el7-scl.cfg
<
https://github.com/theforeman/foreman-packaging/blob/rpm/develop/mock/el7-scl.cfg>
>
<
https://github.com/theforeman/foreman-packaging/blob/rpm/develop/mock/el7-scl.cfg
<
https://github.com/theforeman/foreman-packaging/blob/rpm/develop/mock/el7-scl.cfg>>>
> and el7-nonscl.cfg
> >
>
<
https://github.com/theforeman/foreman-packaging/blob/rpm/develop/mock/el7-scl.cfg
<
https://github.com/theforeman/foreman-packaging/blob/rpm/develop/mock/el7-scl.cfg>
>
<
https://github.com/theforeman/foreman-packaging/blob/rpm/develop/mock/el7-scl.cfg
<
https://github.com/theforeman/foreman-packaging/blob/rpm/develop/mock/el7-scl.cfg>>>
>
> > files
>
> These have changed recently for 1.11 (it's the develop
branch) so
> you'll
> want to use these instead for 1.10, else you'll get
packages
that won't
> work:
>
https://github.com/theforeman/foreman-packaging/tree/rpm/1.10/mock
<
https://github.com/theforeman/foreman-packaging/tree/rpm/1.10/mock>
>
<
https://github.com/theforeman/foreman-packaging/tree/rpm/1.10/mock
<
https://github.com/theforeman/foreman-packaging/tree/rpm/1.10/mock>>
>
> > 3. /usr/bin/mock -r /etc/mock/foreman-nonscl.cfg
rebuild
> > tfm-rubygem-mysql2-0.3.19-2.el7.src.rpm
>
> Ah, you need to use the SCL mock config here, not the
“nonscl”
file,
> i.e. el7-scl.cfg.
>
> Another thought, you'll need to edit the file and add the
Percona yum
> repository to the list in the config. Hopefully as the
spec
depends on
> "mysql-devel", it'll install the right one (if not, edit
it).
>
> Cheers,
>
> --
> Dominic Cleal
> dom...@cleal.org <javascript:>
>
> --
> You received this message because you are subscribed to the
Google
> Groups "Foreman users" group.
> To unsubscribe from this group and stop receiving emails from
it,
send
> an email to foreman-user...@googlegroups.com <javascript:>
> <mailto:foreman-users+unsubscribe@googlegroups.com
<javascript:>>.
> To post to this group, send email to
forema...@googlegroups.com
<javascript:>
> <mailto:forema...@googlegroups.com <javascript:>>.
> Visit this group at
https://groups.google.com/group/foreman-users
<https://groups.google.com/group/foreman-users>.
> For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.
–
You received this message because you are subscribed to the Google
Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it,
send
an email to foreman-user...@googlegroups.com
mailto:foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to forema...@googlegroups.com
mailto:forema...@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.