User Rating: 5 / 5

Star Active Star Active Star Active Star Active Star Active

I have published before the FreeSWITCH 1.10.1 RPM's for CentOS 6 and 7. Now that CentOS 8 is published it is its turn.

I am very proud to share with you all the FreeSWITCH 1.10.1 RPM's for CentOS 8. It was not easy, it took me two weeks and recompile more than 500 SRPMS to make it possible.

Here the outstanding features of these RPMś:

  • Video enabled, h26x and VPx are packed. I had trouble packing VLC, so, for now, mod_vlc won't be available.
  • Linked against tmalloc, as my readings (google please), tmalloc seems to be the fastest memory library.
  • Javascript enabled, mod_v8 is packed.
  • Python enabled, mod_python is packed. Please note that CentOS 8 uses Python 3 and 2 at the same time. FreeSWITCH uses python 2. You may need to use the alternative command to have backwards compatibility. I am not a Python coder myself.
  • MariaDB enabled: mod_mariadb is packed. This was a big deal. I will explain why below.

RPM's are available for CentOS 8. And you can find it if you type yum search freeswitch.

As I said, there are more than 2200 working hours so far in order to make this possible.

Why Packing for CentOS 8 was so Challenging?

There was more than one issue, most of them were as easy as repacking the old CentOS 7 SRPMS I have been doing or updating new RPM provides. However, the big issue. CentOS 8 is shipped with MariaDB 3:10.3.11 which means it has libmariadb 3.0.7. FreeSWITCH 1.10.x needs at least libmariadb 3.0.9 so, for starters, it cant not be used.

Then, I looked at MaríaDB RPM's. The issue here is that they do not have epoch in the versioning (missing epoch means zero). According to the RPM's versioning rules, 3:10.3.11 > 10.4.10, therefore, the RPM engine won't install it. I took a look into the SRPMS from MariaDB but they are not conventional, they are kind of an SRPMS inside another SRPMS. Even if I add the epoch information, when repacking it will get the same useless number. I kept looking for a day without success. Therefore, I couldn't use it.

Disabling the AppStream repository and enabling the MariaDB repository was not an option. The problem was that the AppStream repository has many dependencies within, including the GCC itself. I couldn't disabled right away.

Then I decided to do the impossible mission: to recompile all the neede SRPMS from CentOS 8 in order to be able to disable the AppStream package. It was not easy, it seems CentOS 8 repository planning has some faults:

  • some lib*-devel packages were in the AppStream repository while library RPM was in the BaseOS repository, this reminds me of the horrible ClearOS distribution.
  • some SRPMS had some BuildRequirements statements that were not available in CentOS 8. So, I looked at Fedora 28 (CentOS 8 is supposed to be based on Fedora 28) and if still not available I looked at Fedora 29 or 30. I wonder how CentOS people build some packages such as nodejs with some missing RPM's.
  • the python doesn't exist anymore; in CentOS 8 it is python2 or python3 but not python. I couldn't use the alternative command because mock doesn't support it. So, all the SRPMS that had to do something with python had to be patched.

I repacked no less than 500 SRPM's, after that was done, disabling the AppStream repository was possible and the FreeSWITCH was possible.

Enjoy!

blog comments powered by Disqus

About

Read about IT, Migration, Business, Money, Marketing and other subjects.

Some subjects: FusionPBX, FreeSWITCH, Linux, Security, Canada, Cryptocurrency, Trading.