Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create CentOS 8 build #81

Open
sergey-safarov opened this issue Oct 29, 2019 · 21 comments
Open

Create CentOS 8 build #81

sergey-safarov opened this issue Oct 29, 2019 · 21 comments

Comments

@sergey-safarov
Copy link
Contributor

Could you create CentOS 8 build and repos

@daniel-lucio
Copy link

I am on that :)

@sergey-safarov
Copy link
Contributor Author

Thanks Daniel @daniel-lucio,
I also created packages for CentOS8.
And created several PR to improve FreeSwitch packaging.

@andywolk
Copy link
Contributor

andywolk commented Dec 4, 2019

True. They are under review now.

mjerris added a commit that referenced this issue Jan 9, 2020
…freeswitch-advantage:bugfix/FS-11468-split-vpx-payload-evenly to v1.8-fsa

* commit '6b5217f3ab2e030890a1eff46c43e1934bf5ea19':
  FS-11468 Try to split payload to packets evenly(with largest at the end) up to vpx_globals.rtp_slice_size, (assume hdrlen constant across all packets of the same picture). It keeps packets being transmitted in order. Without it last (and thus the smallest one) packet usually arrive out of order (before the previous one)
@space88man
Copy link

Bump - is there any update on CentOS 8 packages?

@signalwire signalwire deleted a comment from daniel-lucio Mar 24, 2020
@LorbusChris
Copy link
Contributor

@andywolk what's missing here? I'm happy to help with any work that's left for packaging for CentOS 8 :)

@space88man
Copy link

space88man commented Jun 16, 2020

While waiting for the resolution of this issue, I just rebuilt the src.rpm of CentOS 7 on CentOS 8 and encountered the following papercuts. I'm sure they will be resolved in any official CentOS 8 builds. Recording them here in case anyone tries to do the same.

Background: Try to do a rpmbuild --rebuild <centos7srcrpm> in CentOS 8.

  1. Ancillary RPMs, flite, broadvoice, g722_1, libks, signalwire-client-c, ilbc2, silk etc etc are needed. They can all be rebuilt from the CentOS 7 src.rpm but flite requires a change because texi2html now wants -number-footnotes -number-sections instead of -number. The result of my rebuild of "helper" RPMs is here:
    https://copr.fedorainfracloud.org/coprs/beaveryoga/broadvoice/

Note: I have split libks into libks and libks-devel, and the same for signalwire-client-c. This is to be more idiomatic with the RHEL/CentOS eco-system. There is a bug in my CentOS 8 spec file which does not reflect this split yet.

  1. Python packaging: needed to create artificial links python2 -> python, python2-config -> python-config in ~/bin so that python and python-config could be found.

  2. -Werror: propagated to all sub Makefiles, many C/C++ files would not build. -Werror comes from apr, but by adding it to SWITCH_AM_CFLAGS it went into all Makefiles causing failing builds. I had to purge -Werror from many Makefiles.

  3. Build id link clash: One build step copies the Erlang epmd to fs_epmd. They are identical files. This causes a duplicate hash in /usr/lib/.build-id. I had to build with %define _build_id_links none to workaround this.

The results of the build are here:

https://copr.fedorainfracloud.org/coprs/beaveryoga/FreeSWITCH/.

The build is based on the newly released CentOS 8.2.2004 and completes successfully after the above workarounds. It uses the CentOS 8 repos, EPEL-8, and FreeSWITCH ancillary RPMs.

@sergey-safarov
Copy link
Contributor Author

All issues already resolved by me.
Need just review and merge my open PR and then I will open next.

@tamal-appsbee
Copy link

Hi, any update for centos 8 ?

@daniel-lucio
Copy link

I have an RPM for Centos 8 that works, check my GitHub profile to get to there

@tamal-appsbee
Copy link

@daniel-lucio can you please send me the link. I went to this https://github.com/daniel-lucio/freeswitch url but did not get the rpm link.

@gpavinteractiv
Copy link

Any news on Centos 8 Builds?

@spacetourist
Copy link

Following on from a successful build based on the specs extracted from beaveryoga repo linked by @space88man i'm now looking at EL9 and running into issues that appear related to crypto/OpenSSL changes.

Is anyone else out there had any luck with EL9 builds?

@space88man
Copy link

Following on from a successful build based on the specs extracted from beaveryoga repo linked by @space88man i'm now looking at EL9 and running into issues that appear related to crypto/OpenSSL changes.

Is anyone else out there had any luck with EL9 builds?

I am looking at this now...

BTW - I have added 1.10.8 on RHEL8 to Copr: https://copr.fedorainfracloud.org/coprs/beaveryoga/FreeSWITCH-1.10.8/

@space88man
Copy link

@spacetourist - the spec file for rebuilding on EL9 is here: https://download.copr.fedorainfracloud.org/results/beaveryoga/FreeSWITCH-1.10.8/epel-9-x86_64/04956289-freeswitch/freeswitch.spec

The copr repository is here: https://copr.fedorainfracloud.org/coprs/beaveryoga/FreeSWITCH-1.10.8/

@spacetourist
Copy link

Hey @space88man - thanks for your work here, I had made a start only yesterday on the 1.10.8 conversion but I've produced a much cleaner build file using your spec as a base.

The only modifications are a couple of unique patches we apply, a purge of signalwire client and an extra location in PKG_CONFIG_PATH to support mock as a build environment.

Next step is to install and test on our Alma 9 servers!

@daniel-lucio
Copy link

I am working on my own RPMs for Roky9, Rocky8 and Centos 7, bloating almost everything, including the signalwire stuff.

@daniel-lucio
Copy link

Rocky9 RPMS are ready, Details are here https://inside-out.xyz/technology/freeswitch-1-10-8-rpm-for-centos-7-rocky-8-9.html

The repo can be installed using this RPM http://repo.okay.com.mx/centos/9/x86_64/release/okay-release-1-6.el9.noarch.rpm

@LorbusChris
Copy link
Contributor

@daniel-lucio could you provide a pointer to the .spec files you're using to build these RPMS?

@gpavinteractiv
Copy link

gpavinteractiv commented Feb 28, 2023

@space88man Nice job for providing builds of 1.10.8 for el8 and el9.
I tried using your .spec to build on a centos 8 Stream but could not manage to make it work though.

Are you planning to work on a new .spec for building 1.10.9?
I saw that there were a few changes to Freeswitch on the build side (dynamic libs, dependencies removed...).

@gpavinteractiv
Copy link

@daniel-lucio could you provide a pointer to the .spec files you're using to build these RPMS?

We would be very interested in this spec file too :)

@space88man
Copy link

space88man commented Aug 19, 2023

Basic spec files for 1.10.10 (as close as possible to CentOS 7 builds):

Dependencies spec (libks2, signalwire-client-c2) if you use FS Signalwire module:

RHEL 8/9: https://copr.fedorainfracloud.org/coprs/beaveryoga/FreeSWITCH-1.10.10/

CentOS Stream 8/9: https://copr.fedorainfracloud.org/coprs/beaveryoga/FreeSWITCH-1.10.10-Stream/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants