Foreman Discovery 4.1 is ready

> Yes, I figured so I went with CentOS 7.
>
> Install went fine, but Foreman app wouldn't start up. After a bit of
> digging, I found that DB does not get created at all (Foreman does not
> manage a DB install for me):
>
> [root@centos7 ~]# foreman-rake --trace db:migraterake aborted!
> Incorrect MySQL client library version! This gem was compiled for
> 5.5.35-MariaDB but the client library is 5.6.26-74.0.
[snip]
>
> [root@centos7 ~]# rpm -qa | egrep -i "mysql|percona"
> Percona-XtraDB-Cluster-shared-56-5.6.26-25.12.1.el7.x86_64
> Percona-XtraDB-Cluster-56-5.6.26-25.12.1.el7.x86_64
> Percona-XtraDB-Cluster-client-56-5.6.26-25.12.1.el7.x86_64
> perl-DBD-MySQL-4.023-5.el7.x86_64
> Percona-XtraDB-Cluster-server-56-5.6.26-25.12.1.el7.x86_64
> Percona-XtraDB-Cluster-devel-56-5.6.26-25.12.1.el7.x86_64
> tfm-rubygem-mysql2-0.3.19-2.el7.x86_64
> foreman-mysql2-1.10.0-0.1.RC2.el7.noarch
> Percona-XtraDB-Cluster-galera-3-3.12.2-1.rhel7.x86_64
> percona-xtrabackup-2.3.2-1.el7.x86_64
> [root@centos7 ~]#
>
> Using Percona cluster was never a problem for me in previous versions.
> Is MariaDB a hard-requirement now?

We've only ever shipped RPMs that are built against the base OS
versions, but perhaps the Percona version number has changed since you
last tried it. That gem checks that the major + minor (5.6/5.5) of what
it's compiled against matches what it's running against - presumably on
the assumption that the ABI may/will have changed.

If you're replacing the runtime library then you will need to rebuild
the tfm-rubygem-mysql2 RPM against it too. SRPMs are on
yum.theforeman.org and mock configs are at
https://github.com/theforeman/foreman-packaging/tree/rpm/develop/mock.

··· On 04/11/15 21:58, 'Konstantin Orekhov' via Foreman users wrote:


Dominic Cleal
dominic@cleal.org

>
> If you're replacing the runtime library then you will need to rebuild
> the tfm-rubygem-mysql2 RPM against it too. SRPMs are on
> yum.theforeman.org and mock configs are at
> https://github.com/theforeman/foreman-packaging/tree/rpm/develop/mock.
>
>
Hi, Dominic!

tfm-rubygem-mysql2 was rebuilt according to the above, however, during its
installation it turns out that there are conflicts with files provided by
rubygem-mysql2:

rpm -Uvh tfm-rubygem-mysql2-0.3.19-3.el7.x86_64.rpm

Preparing… #################################
[100%]
file /usr/share/gems/gems/mysql2-0.3.19/ext/mysql2/Makefile from
install of
tfm-rubygem-mysql2-0.3.19-3.el7.x86_64.rpm-0.3.19-2.el7.centos.x86_64
conflicts with file from package rubygem-mysql2-0.3.19-2.el7.centos.x86_64
file /usr/share/gems/gems/mysql2-0.3.19/lib/mysql2/mysql2.so from
install of
tfm-rubygem-mysql2-0.3.19-3.el7.x86_64.rpm-0.3.19-2.el7.centos.x86_64
conflicts with file from package rubygem-mysql2-0.3.19-2.el7.centos.x86_64

··· #

Does it need be rebuilt too? What’s the reason both packages provide a
couple of the same files? Isn’t that excessive and will result in the above
conflicts more than really needed?

BTW, forcing conflicting files to be overwritten by a new versions resulted
in this error:
Web application could not be started

Gem loading error: cannot load such file – mysql2 (RuntimeError)
/opt/theforeman/tfm/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:30:in strict_error' /opt/theforeman/tfm/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:56:inrescue in block in system_require’
/opt/theforeman/tfm/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:37:in block in system_require' /opt/theforeman/tfm/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:35:ineach’
/opt/theforeman/tfm/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:35:in system_require' /usr/share/foreman/config/application.rb:14:in<top (required)>’
/opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in require' /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:inrequire’
/usr/share/foreman/config/environment.rb:2:in <top (required)>' /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:inrequire’
/opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in require' config.ru:3:inblock in ‘
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/builder.rb:51:in instance_eval' /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/builder.rb:51:ininitialize’
config.ru:1:in new' config.ru:1:in
/usr/share/gems/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:105:in eval' /usr/share/gems/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:105:inpreload_app’
/usr/share/gems/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:150:in <module:App>' /usr/share/gems/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:29:inmodule:PhusionPassenger
/usr/share/gems/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:28:in `’

So, something must be missing here. Your advice is much appreciated.

Thanks!

> >
> > [root@centos7 ~]# foreman-rake --trace db:migraterake aborted!
> > Incorrect MySQL client library version! This gem was compiled for
> > 5.5.35-MariaDB but the client library is 5.6.26-74.0.
>

> We've only ever shipped RPMs that are built against the base OS
> versions, but perhaps the Percona version number has changed since you
> last tried it. That gem checks that the major + minor (5.6/5.5) of what
> it's compiled against matches what it's running against - presumably on
> the assumption that the ABI may/will have changed.
>

Dominic, I'd like to revisit the above.
Are you sure that only major.minor version is checked and not a complete
version string? Otherwise things should work, but they don't:

Incorrect MySQL client library version! This gem was compiled for 5.5.35-MariaDB
but the client library is 5.6.26-74.0

As you can see, Percona installs 5.6 version of the library, so if the code
really does what you're saying, we shouldn't see this error.
If, however, the code check for a complete version string, that would cause
the issues for any kind of upgrades - even if MariaDB is upgraded, but TFM
package is not, that would break Foreman.

Is this really an intended course of action? My gut feeling is that it is
not and possibly a bug someplace as any 5.5/5.6 library should just work
w/o any package rebuild. Otherwise it would become just a management
nightmare for anyone who tries to switch to different (but officially
supported) supplier of the library.

Wouldn't you agree?

> # rpm -Uvh tfm-rubygem-mysql2-0.3.19-3.el7.x86_64.rpm
> Preparing… #################################
> [100%]
> file /usr/share/gems/gems/mysql2-0.3.19/ext/mysql2/Makefile from
> install of
> tfm-rubygem-mysql2-0.3.19-3.el7.x86_64.rpm-0.3.19-2.el7.centos.x86_64
> conflicts with file from package rubygem-mysql2-0.3.19-2.el7.centos.x86_64
> file /usr/share/gems/gems/mysql2-0.3.19/lib/mysql2/mysql2.so from
> install of
> tfm-rubygem-mysql2-0.3.19-3.el7.x86_64.rpm-0.3.19-2.el7.centos.x86_64
> conflicts with file from package rubygem-mysql2-0.3.19-2.el7.centos.x86_64
> #
>

Ignore this part - that was my mistake as I thought that rubygem-mysql2 was
required by foreman, but in fact was installed by someone else by mistake.

However, even after a clean-up and keeping/reinstalling tfm-rubygem-mysql2
package rebuilt with Percona libraries, I'm still not able to start the app:

Gem loading error: cannot load such file – mysql2 (RuntimeError)

What else am I missing here?

>
> >
> > [root@centos7 ~]# foreman-rake --trace db:migraterake aborted!
> > Incorrect MySQL client library version! This gem was compiled for
> > 5.5.35-MariaDB but the client library is 5.6.26-74.0.
>
>
>
> We've only ever shipped RPMs that are built against the base OS
> versions, but perhaps the Percona version number has changed since you
> last tried it. That gem checks that the major + minor (5.6/5.5) of
> what
> it's compiled against matches what it's running against - presumably on
> the assumption that the ABI may/will have changed.
>
>
> Dominic, I'd like to revisit the above.
> Are you sure that only major.minor version is checked and not a complete
> version string? Otherwise things should work, but they don't:
>
> Incorrect MySQL client library version! This gem was compiled for
> 5.5.35-MariaDB but the client library is 5.6.26-74.0
>
> As you can see, Percona installs 5.6 version of the library, so if the
> code really does what you're saying, we shouldn't see this error.

Perhaps you misunderstand what I was saying - as it checks on major
and minor version. 5.6 is different to 5.5, so it throws the error.

> If, however, the code check for a complete version string, that would
> cause the issues for any kind of upgrades - even if MariaDB is upgraded,
> but TFM package is not, that would break Foreman.
>
> Is this really an intended course of action? My gut feeling is that it
> is not and possibly a bug someplace as any 5.5/5.6 library should just
> work w/o any package rebuild. Otherwise it would become just a
> management nightmare for anyone who tries to switch to different (but
> officially supported) supplier of the library.
>
> Wouldn't you agree?

If the ABI between 5.5 and 5.6 is guaranteed to be compatible then yes,
mysql2's version check may be too restrictive. I don't know what ABI
guarantees are made, but this isn't my expertise - best to raise it with
the mysql2 project. At a quick glance it was added to fix
incompatibility between 5.0 and 5.1.

··· On 25/01/16 19:47, 'Konstantin Orekhov' via Foreman users wrote:


Dominic Cleal
dominic@cleal.org

>
> # rpm -Uvh tfm-rubygem-mysql2-0.3.19-3.el7.x86_64.rpm
> Preparing…
> ################################# [100%]
> file /usr/share/gems/gems/mysql2-0.3.19/ext/mysql2/Makefile from
> install of
> tfm-rubygem-mysql2-0.3.19-3.el7.x86_64.rpm-0.3.19-2.el7.centos.x86_64 conflicts
> with file from package rubygem-mysql2-0.3.19-2.el7.centos.x86_64
> file /usr/share/gems/gems/mysql2-0.3.19/lib/mysql2/mysql2.so
> from install of
> tfm-rubygem-mysql2-0.3.19-3.el7.x86_64.rpm-0.3.19-2.el7.centos.x86_64 conflicts
> with file from package rubygem-mysql2-0.3.19-2.el7.centos.x86_64
> #
>
>
> Ignore this part - that was my mistake as I thought that rubygem-mysql2
> was required by foreman, but in fact was installed by someone else by
> mistake.

It does suggest that it's incorrectly built though, as a tfm- package
shouldn't be installing files under /usr/share/gems. Can you upload the
build/root.log files somewhere?

> However, even after a clean-up and keeping/reinstalling
> tfm-rubygem-mysql2 package rebuilt with Percona libraries, I'm still not
> able to start the app:
>
> Gem loading error: cannot load such file – mysql2 (RuntimeError)
>
> What else am I missing here?

If it really did build under /usr/share/gems, that's probably why it
can't find it - as it should be built with tfm-build (in the mock root)
and generate files under /opt.

··· On 13/01/16 01:40, 'Konstantin Orekhov' via Foreman users wrote:


Dominic Cleal
dominic@cleal.org

> Perhaps you misunderstand what I was saying - as it checks on major
> and minor version. 5.6 is different to 5.5, so it throws the error.
>

Was this introduced in 1.10 version of Foreman? I know for a fact that
previous versions did not care and I personally replaced stock version of
MySQL with Percona 5.6 and Foreman below version 1.9 did not care and
worked as expected.

> If the ABI between 5.5 and 5.6 is guaranteed to be compatible then yes,
> mysql2's version check may be too restrictive. I don't know what ABI
> guarantees are made, but this isn't my expertise - best to raise it with
> the mysql2 project. At a quick glance it was added to fix
> incompatibility between 5.0 and 5.1.
>

How do I get in touch with them?

Thanks!

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>
    and el7-nonscl.cfg
    <https://github.com/theforeman/foreman-packaging/blob/rpm/develop/mock/el7-scl.cfg>
    files
  3. /usr/bin/mock -r /etc/mock/foreman-nonscl.cfg rebuild
    tfm-rubygem-mysql2-0.3.19-2.el7.src.rpm
  4. Out ins in /var/lib/mock/epel-7-x86_64/result
  5. Got following files

build.log
-rw-rw-r–. 1 arun mock 81292 Jan 20 13:45 root.log
-rw-rw-r–. 1 arun mock 53799 Jan 20 13:45
rubygem-mysql2-0.3.19-2.el7.centos.src.rpm
-rw-rw-r–. 1 arun mock 55888 Jan 20 13:45
rubygem-mysql2-0.3.19-2.el7.centos.x86_64.rpm
-rw-rw-r–. 1 arun mock 59116 Jan 20 13:45
rubygem-mysql2-debuginfo-0.3.19-2.el7.centos.x86_64.rpm
-rw-rw-r–. 1 arun mock 33264 Jan 20 13:45
rubygem-mysql2-doc-0.3.19-2.el7.centos.noarch.rpm
-rw-rw-r–. 1 arun mock 842 Jan 20 13:45 state.log

Question is how do i get the tfm package name
and the path to be in /opt, with mock too it builds in /usr/share.

Can you please let us know the steps how to build the tfm rpms

thx

··· On Wednesday, January 13, 2016 at 12:02:45 AM UTC-8, Dominic Cleal wrote: > > On 13/01/16 01:40, 'Konstantin Orekhov' via Foreman users wrote: > > > > # rpm -Uvh tfm-rubygem-mysql2-0.3.19-3.el7.x86_64.rpm > > Preparing... > > ################################# [100%] > > file /usr/share/gems/gems/mysql2-0.3.19/ext/mysql2/Makefile from > > install of > > > tfm-rubygem-mysql2-0.3.19-3.el7.x86_64.rpm-0.3.19-2.el7.centos.x86_64 > conflicts > > with file from package rubygem-mysql2-0.3.19-2.el7.centos.x86_64 > > file /usr/share/gems/gems/mysql2-0.3.19/lib/mysql2/mysql2.so > > from install of > > > tfm-rubygem-mysql2-0.3.19-3.el7.x86_64.rpm-0.3.19-2.el7.centos.x86_64 > conflicts > > with file from package rubygem-mysql2-0.3.19-2.el7.centos.x86_64 > > # > > > > > > Ignore this part - that was my mistake as I thought that rubygem-mysql2 > > was required by foreman, but in fact was installed by someone else by > > mistake. > > It does suggest that it's incorrectly built though, as a tfm- package > shouldn't be installing files under /usr/share/gems. Can you upload the > build/root.log files somewhere? > > > However, even after a clean-up and keeping/reinstalling > > tfm-rubygem-mysql2 package rebuilt with Percona libraries, I'm still not > > able to start the app: > > > > Gem loading error: cannot load such file -- mysql2 (RuntimeError) > > > > What else am I missing here? > > If it really did build under /usr/share/gems, that's probably why it > can't find it - as it should be built with tfm-build (in the mock root) > and generate files under /opt. > > -- > Dominic Cleal > dom...@cleal.org >

>
> Perhaps you misunderstand what I was saying - as it checks on major
> and minor version. 5.6 is different to 5.5, so it throws the error.
>
>
> Was this introduced in 1.10 version of Foreman? I know for a fact that
> previous versions did not care and I personally replaced stock version
> of MySQL with Percona 5.6 and Foreman below version 1.9 did not care and
> worked as expected.

The check looks much older, and the only update was from mysql2 at
0.3.18 to 0.3.19 between 1.9 and 1.10.

That said, it looks like the check has been made Windows-only in 0.4.1
and higher: https://github.com/brianmario/mysql2/pull/678

> If the ABI between 5.5 and 5.6 is guaranteed to be compatible then yes,
> mysql2's version check may be too restrictive. I don't know what ABI
> guarantees are made, but this isn't my expertise - best to raise it
> with
> the mysql2 project. At a quick glance it was added to fix
> incompatibility between 5.0 and 5.1.
>
>
> How do I get in touch with them?

Through https://github.com/brianmario/mysql2.

··· On 26/01/16 19:16, 'Konstantin Orekhov' via Foreman users wrote:


Dominic Cleal
dominic@cleal.org

> 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> and el7-nonscl.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

> 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,

··· On 20/01/16 21:17, arunsrinivasan@ebay.com wrote:


Dominic Cleal
dominic@cleal.org

> The check looks much older, and the only update was from mysql2 at
> 0.3.18 to 0.3.19 between 1.9 and 1.10.
>
> That said, it looks like the check has been made Windows-only in 0.4.1
> and higher: https://github.com/brianmario/mysql2/pull/678
>

To me this change in behavior been caused at the time of migrating from
ruby193 to TFM SCL rather than anything else.

Through https://github.com/brianmario/mysql2.
>

Thanks! I'll try to clarify this with them.

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 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> > and el7-nonscl.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 > > > 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 >

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)
and is available from our repos
(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 dominic@cleal.org

On 21/01/16 13:21, arunsrinivasan@ebay.com 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>>
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>>

> 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>

> 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-users+unsubscribe@googlegroups.com
mailto:foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com
mailto:foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

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) > > and is available from our repos > (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 > > On 21/01/16 13:21, arunsri...@ebay.com 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 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>> > > > 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>> > > > > > > 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 > > > > > > > > 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 > > > > -- > > 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. > >

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 dominic@cleal.org

On 22/01/16 07:17, arunsrinivasan@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-users+unsubscribe@googlegroups.com
mailto:foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com
mailto:foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Hi Domic

It seems to give me this error while building it

I am using this file

https://raw.githubusercontent.com/theforeman/foreman-packaging/rpm/1.10/mock/el7-scl.cfg
tart: yum install
Error: Package: tfm-build-2.0-2.el7.x86_64 (foreman)
Requires: rh-ruby22-scldevel
Error: Package: tfm-runtime-2.0-2.el7.x86_64 (foreman)
Requires: rh-ruby22-runtime
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Error: Package: tfm-build-2.0-2.el7.x86_64 (foreman)
Requires: rh-ror41-scldevel
Error: Package: tfm-runtime-2.0-2.el7.x86_64 (foreman)
Requires: rh-ror41-runtime

··· On Friday, January 22, 2016 at 12:02:01 AM UTC-8, Dominic Cleal wrote: > > 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/ > > ). 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 > > > > On 21/01/16 13:21, arunsri...@ebay.com 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 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 > > > > > > > > > > > > > > > > > > 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 > > > > > > -- > > > 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 > > . > > > > -- > > 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. > >

Hi Dominic
I had to add the following to successfully generate the rpm

[scl-ruby]
name=scl-ruby
baseurl=https://www.softwarecollections.org/repos/rhscl/rh-ruby22/epel-7-x86_64/

however the box does not have ruby22 rpm and hence when installing it get
the error
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

I tried installing these rpm's but it has other dependencies, does foreman
1.10 require ruby22

thx

··· On Friday, January 22, 2016 at 7:20:53 PM UTC-8, arunsri...@ebay.com wrote: > > Hi Domic > > It seems to give me this error while building it > > I am using this file > > > https://raw.githubusercontent.com/theforeman/foreman-packaging/rpm/1.10/mock/el7-scl.cfg > tart: yum install > Error: Package: tfm-build-2.0-2.el7.x86_64 (foreman) > Requires: rh-ruby22-scldevel > Error: Package: tfm-runtime-2.0-2.el7.x86_64 (foreman) > Requires: rh-ruby22-runtime > You could try using --skip-broken to work around the problem > You could try running: rpm -Va --nofiles --nodigest > Error: Package: tfm-build-2.0-2.el7.x86_64 (foreman) > Requires: rh-ror41-scldevel > Error: Package: tfm-runtime-2.0-2.el7.x86_64 (foreman) > Requires: rh-ror41-runtime > > On Friday, January 22, 2016 at 12:02:01 AM UTC-8, Dominic Cleal wrote: >> >> 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/ >> > ). 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 >> > >> > On 21/01/16 13:21, arunsri...@ebay.com 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 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 >> > >> >> > > >> > > > > >> >> > > >> > > > 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 >> > > >> > > -- >> > > 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 >> > > > >. >> > > 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 >> > . >> > >> > -- >> > 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 >> > . >> > To post to this group, send email to forema...@googlegroups.com >> > . >> > Visit this group at https://groups.google.com/group/foreman-users. >> > For more options, visit https://groups.google.com/d/optout. >> >>

No, ruby22 is used by 1.11/develop. It looks like you'll also need to edit the URL to the Foreman repos in the mock configuration file.

The file (even for rpm/1.10) points at the yum.theforeman.org/nightly repo, so change this to /releases/1.10 and hopefully that will work to build against ruby193.

··· -- Dominic Cleal dominic@cleal.org

On 23 January 2016 19:00:10 GMT+00:00, arunsrinivasan@ebay.com wrote:

Hi Dominic
I had to add the following to successfully generate the rpm

[scl-ruby]
name=scl-ruby
baseurl=https://www.softwarecollections.org/repos/rhscl/rh-ruby22/epel-7-x86_64/

however the box does not have ruby22 rpm and hence when installing it
get
the error
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

I tried installing these rpm’s but it has other dependencies, does
foreman
1.10 require ruby22

thx

On Friday, January 22, 2016 at 7:20:53 PM UTC-8, arunsri...@ebay.com >wrote:

Hi Domic

It seems to give me this error while building it

I am using this file

https://raw.githubusercontent.com/theforeman/foreman-packaging/rpm/1.10/mock/el7-scl.cfg

tart: yum install
Error: Package: tfm-build-2.0-2.el7.x86_64 (foreman)
Requires: rh-ruby22-scldevel
Error: Package: tfm-runtime-2.0-2.el7.x86_64 (foreman)
Requires: rh-ruby22-runtime
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Error: Package: tfm-build-2.0-2.el7.x86_64 (foreman)
Requires: rh-ror41-scldevel
Error: Package: tfm-runtime-2.0-2.el7.x86_64 (foreman)
Requires: rh-ror41-runtime

On Friday, January 22, 2016 at 12:02:01 AM UTC-8, Dominic Cleal >wrote:

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.

Hi Dominic
Thanks for your support. I was able to create the package and install it.

However i still see this error

Incorrect MySQL client library version! This gem was compiled for
5.5.44-MariaDB but the client library is 5.6.27-76.0.

I have attached the root.log and config file to the post

I added this line in the config file
[percona-release]
baseurl=http://repo.percona.com/release/5Server/SRPMS/

so it'll use the percona source, I still see its looking for maria db

DEBUG util.py:393: Repository 'percona-release' is missing name in
configuration, using id
DEBUG util.py:393: Getting requirements for
tfm-rubygem-mysql2-0.3.19-2.el7.centos.src
DEBUG util.py:393: --> Already installed :
scl-utils-build-20130529-17.el7_1.x86_64
DEBUG util.py:393: --> ruby193-ruby-1.9.3.484-49.el7.centos.x86_64
DEBUG util.py:393: --> ruby193-rubygems-1.8.23-49.el7.centos.noarch
DEBUG util.py:393: --> ruby193-rubygems-devel-1.8.23-49.el7.centos.noarch
DEBUG util.py:393: --> ruby193-ruby-devel-1.9.3.484-49.el7.centos.x86_64
DEBUG util.py:393: --> 1:mariadb-devel-5.5.44-2.el7.centos.x86_64

Can u please let me know

··· On Saturday, January 23, 2016 at 3:37:13 PM UTC-8, Dominic Cleal wrote: > > No, ruby22 is used by 1.11/develop. It looks like you'll also need to edit > the URL to the Foreman repos in the mock configuration file. > > The file (even for rpm/1.10) points at the yum.theforeman.org/nightly > repo, so change this to /releases/1.10 and hopefully that will work to > build against ruby193. > > -- > Dominic Cleal > dom...@cleal.org > > On 23 January 2016 19:00:10 GMT+00:00, arunsri...@ebay.com > wrote: >> >> Hi Dominic >> I had to add the following to successfully generate the rpm >> >> [scl-ruby] >> name=scl-ruby >> baseurl= >> https://www.softwarecollections.org/repos/rhscl/rh-ruby22/epel-7-x86_64/ >> >> >> however the box does not have ruby22 rpm and hence when installing it get >> the error >> 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 >> >> I tried installing these rpm's but it has other dependencies, does >> foreman 1.10 require ruby22 >> >> thx >> >> >> >> On Friday, January 22, 2016 at 7:20:53 PM UTC-8, arunsri...@ebay.com >> wrote: >>> >>> Hi Domic >>> >>> It seems to give me this error while building it >>> >>> I am using this file >>> >>> >>> https://raw.githubusercontent.com/theforeman/foreman-packaging/rpm/1.10/mock/el7-scl.cfg >>> tart: yum install >>> Error: Package: tfm-build-2.0-2.el7.x86_64 (foreman) >>> Requires: rh-ruby22-scldevel >>> Error: Package: tfm-runtime-2.0-2.el7.x86_64 (foreman) >>> Requires: rh-ruby22-runtime >>> You could try using --skip-broken to work around the problem >>> You could try running: rpm -Va --nofiles --nodigest >>> Error: Package: tfm-build-2.0-2.el7.x86_64 (foreman) >>> Requires: rh-ror41-scldevel >>> Error: Package: tfm-runtime-2.0-2.el7.x86_64 (foreman) >>> Requires: rh-ror41-runtime >>> >>> On Friday, January 22, 2016 at 12:02:01 AM UTC-8, Dominic Cleal wrote: >>>> >>>> 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/ >>>> > ). 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 >>>> > >>>> > On 21/01/16 13:21, arunsri...@ebay.com 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 >>>> 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 >>>> > > >>>> > > -- >>>> > > 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 >>>> > > >>> >. >>>> > > 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 >>>> > . >>>> > >>>> > -- >>>> > 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 >>>> > . >>>> > To post to this group, send email to forema...@googlegroups.com >>>> > . >>>> > Visit this group at https://groups.google.com/group/foreman-users. >>>> > For more options, visit https://groups.google.com/d/optout. >>>> >>>>

Made some progress
Added these to the config file
[percona-release-$basearch]
name = Percona-Release YUM repository - $basearch
baseurl = http://repo.percona.com/release/$releasever/RPMS/$basearch
enabled = 1
gpgcheck = 1

Now i see its pulling the percona package but errors here during the buid
RROR: Error installing /builddir/build/SOURCES/mysql2-0.3.19.gem:
ERROR: Failed to build gem native extension.

    /opt/rh/ruby193/root/usr/bin/ruby extconf.rb

checking for ruby/thread.h… no
checking for rb_thread_blocking_region()… yes


checking for rb_wait_for_single_fd()… yes
checking for rb_hash_dup()… yes
checking for rb_intern3()… yes

··· ----- Using mysql_config at /usr/bin/mysql_config ----- checking for mysql.h... yes checking for errmsg.h... yes checking for mysqld_error.h... yes ----- Don't know how to set rpath on your system, if MySQL libraries are not in path mysql2 may not load ----- ----- Setting libpath to /usr/lib64 ----- creating Makefile gcc -shared -o mysql2.so client.o infile.o mysql2_ext.o result.o -L. -L/opt/rh/ruby193/root/usr/lib64 -L/usr/lib64 -L. -Wl,-z,relro -rdynamic -Wl,-export-dynamic -m64 -lruby -L/usr/lib64 -lmysqlclienlpthread -lm -lrt -lssl -lcrypto -ldl -lpthread -lrt -ldl -lcrypt -lm -lc /usr/bin/ld: cannot find -lmysqlclient collect2: error: ld returned 1 exit status make: *** [mysql2.so] Error 1

On Saturday, January 23, 2016 at 6:20:07 PM UTC-8, arunsri...@ebay.com wrote:

Hi Dominic
Thanks for your support. I was able to create the package and install
it.

However i still see this error

Incorrect MySQL client library version! This gem was compiled for
5.5.44-MariaDB but the client library is 5.6.27-76.0.

I have attached the root.log and config file to the post

I added this line in the config file
[percona-release]
baseurl=http://repo.percona.com/release/5Server/SRPMS/

so it’ll use the percona source, I still see its looking for maria db

DEBUG util.py:393: Repository ‘percona-release’ is missing name in
configuration, using id
DEBUG util.py:393: Getting requirements for
tfm-rubygem-mysql2-0.3.19-2.el7.centos.src
DEBUG util.py:393: --> Already installed :
scl-utils-build-20130529-17.el7_1.x86_64
DEBUG util.py:393: --> ruby193-ruby-1.9.3.484-49.el7.centos.x86_64
DEBUG util.py:393: --> ruby193-rubygems-1.8.23-49.el7.centos.noarch
DEBUG util.py:393: --> ruby193-rubygems-devel-1.8.23-49.el7.centos.noarch
DEBUG util.py:393: --> ruby193-ruby-devel-1.9.3.484-49.el7.centos.x86_64
DEBUG util.py:393: --> 1:mariadb-devel-5.5.44-2.el7.centos.x86_64

Can u please let me know

On Saturday, January 23, 2016 at 3:37:13 PM UTC-8, Dominic Cleal wrote:

No, ruby22 is used by 1.11/develop. It looks like you’ll also need to
edit the URL to the Foreman repos in the mock configuration file.

The file (even for rpm/1.10) points at the yum.theforeman.org/nightly
repo, so change this to /releases/1.10 and hopefully that will work to
build against ruby193.


Dominic Cleal
dom...@cleal.org

On 23 January 2016 19:00:10 GMT+00:00, arunsri...@ebay.com wrote:

Hi Dominic
I had to add the following to successfully generate the rpm

[scl-ruby]
name=scl-ruby
baseurl=
https://www.softwarecollections.org/repos/rhscl/rh-ruby22/epel-7-x86_64/

however the box does not have ruby22 rpm and hence when installing it
get the error
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

I tried installing these rpm’s but it has other dependencies, does
foreman 1.10 require ruby22

thx

On Friday, January 22, 2016 at 7:20:53 PM UTC-8, arunsri...@ebay.com >>> wrote:

Hi Domic

It seems to give me this error while building it

I am using this file

https://raw.githubusercontent.com/theforeman/foreman-packaging/rpm/1.10/mock/el7-scl.cfg
tart: yum install
Error: Package: tfm-build-2.0-2.el7.x86_64 (foreman)
Requires: rh-ruby22-scldevel
Error: Package: tfm-runtime-2.0-2.el7.x86_64 (foreman)
Requires: rh-ruby22-runtime
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Error: Package: tfm-build-2.0-2.el7.x86_64 (foreman)
Requires: rh-ror41-scldevel
Error: Package: tfm-runtime-2.0-2.el7.x86_64 (foreman)
Requires: rh-ror41-runtime

On Friday, January 22, 2016 at 12:02:01 AM UTC-8, Dominic Cleal wrote:

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.