Hi Sergey,

Below is the output of those commands.

Thanks,
Ryan

$ cat /etc/os-release
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"


$ cat /etc/redhat-release
cat: /etc/redhat-release: No such file or directory


$ yum whatprovides "libpython3.6m.so.1.0()(64bit)"
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
236 packages excluded due to repository priority protections
No matches found


$ yum whatprovides python3-libs
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
236 packages excluded due to repository priority protections
python3-libs-3.7.0-0.12.b2.amzn2.0.2.x86_64 : Python runtime libraries
Repo        : amzn2-core



python3-libs-3.7.0-0.16.b3.amzn2.0.1.x86_64 : Python runtime libraries
Repo        : amzn2-core



python3-libs-3.7.0-0.20.rc1.amzn2.0.1.i686 : Python runtime libraries
Repo        : amzn2-core



python3-libs-3.7.0-0.20.rc1.amzn2.0.1.x86_64 : Python runtime libraries
Repo        : amzn2-core



python3-libs-3.7.0-0.20.rc1.amzn2.0.2.i686 : Python runtime libraries
Repo        : amzn2-core



python3-libs-3.7.0-0.20.rc1.amzn2.0.2.x86_64 : Python runtime libraries
Repo        : amzn2-core



python3-libs-3.7.1-9.amzn2.0.1.i686 : Python runtime libraries
Repo        : amzn2-core



python3-libs-3.7.1-9.amzn2.0.1.x86_64 : Python runtime libraries
Repo        : amzn2-core



python3-libs-3.7.2-4.amzn2.0.1.i686 : Python runtime libraries
Repo        : amzn2-core



python3-libs-3.7.2-4.amzn2.0.1.x86_64 : Python runtime libraries
Repo        : amzn2-core



python3-libs-3.7.3-1.amzn2.0.1.i686 : Python runtime libraries
Repo        : amzn2-core



python3-libs-3.7.3-1.amzn2.0.1.x86_64 : Python runtime libraries
Repo        : amzn2-core



python3-libs-3.7.3-1.amzn2.0.2.i686 : Python runtime libraries
Repo        : amzn2-core



python3-libs-3.7.3-1.amzn2.0.2.x86_64 : Python runtime libraries
Repo        : amzn2-core



python3-libs-3.7.4-1.amzn2.0.1.i686 : Python runtime libraries
Repo        : amzn2-core



python3-libs-3.7.4-1.amzn2.0.1.x86_64 : Python runtime libraries
Repo        : amzn2-core



python3-libs-3.7.4-1.amzn2.0.2.i686 : Python runtime libraries
Repo        : amzn2-core



python3-libs-3.7.4-1.amzn2.0.2.x86_64 : Python runtime libraries
Repo        : amzn2-core



python3-libs-3.7.4-1.amzn2.0.3.i686 : Python runtime libraries
Repo        : amzn2-core



python3-libs-3.7.4-1.amzn2.0.3.x86_64 : Python runtime libraries
Repo        : amzn2-core



python3-libs-3.7.4-1.amzn2.0.4.i686 : Python runtime libraries
Repo        : amzn2-core



python3-libs-3.7.4-1.amzn2.0.4.x86_64 : Python runtime libraries
Repo        : amzn2-core



python3-libs-3.7.6-1.amzn2.0.1.i686 : Python runtime libraries
Repo        : amzn2-core



python3-libs-3.7.6-1.amzn2.0.1.x86_64 : Python runtime libraries
Repo        : amzn2-core



python3-libs-3.7.8-1.amzn2.0.1.i686 : Python runtime libraries
Repo        : amzn2-core



python3-libs-3.7.8-1.amzn2.0.1.x86_64 : Python runtime libraries
Repo        : amzn2-core



python3-libs-3.7.9-1.amzn2.0.1.i686 : Python runtime libraries
Repo        : amzn2-core



python3-libs-3.7.9-1.amzn2.0.1.x86_64 : Python runtime libraries
Repo        : amzn2-core



python3-libs-3.7.9-1.amzn2.0.2.i686 : Python runtime libraries
Repo        : amzn2-core



python3-libs-3.7.9-1.amzn2.0.2.x86_64 : Python runtime libraries
Repo        : amzn2-core



python3-libs-3.7.9-1.amzn2.0.3.i686 : Python runtime libraries
Repo        : amzn2-core



python3-libs-3.7.9-1.amzn2.0.3.x86_64 : Python runtime libraries
Repo        : amzn2-core



python3-libs-3.7.10-1.amzn2.0.1.i686 : Python runtime libraries
Repo        : amzn2-core



python3-libs-3.7.10-1.amzn2.0.1.x86_64 : Python runtime libraries
Repo        : amzn2-core



python3-libs-3.7.10-1.amzn2.0.1.x86_64 : Python runtime libraries
Repo        : installed


On Wed, Nov 16, 2022 at 3:01 PM Sergey Safarov <s.safarov@gmail.com> wrote:
Required output of this commands
cat /etc/os-release
cat /etc/redhat-release
yum whatprovides python3-libs

[root@safarov-dell /]# cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

[root@safarov-dell /]# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
[root@safarov-dell /]# yum whatprovides "libpython3.6m.so.1.0()(64bit)"
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
 * base: mirrors.neterra.net
 * extras: mirrors.neterra.net
 * updates: mirrors.neterra.net
python3-libs-3.6.8-17.el7.x86_64 : Python runtime libraries
Repo        : base
Matched from:
Provides    : libpython3.6m.so.1.0()(64bit)



python3-libs-3.6.8-18.el7.x86_64 : Python runtime libraries
Repo        : updates
Matched from:
Provides    : libpython3.6m.so.1.0()(64bit)



python3-libs-3.6.8-18.el7.x86_64 : Python runtime libraries
Repo        : @updates
Matched from:
Provides    : libpython3.6m.so.1.0()(64bit)


On Wed, Nov 16, 2022 at 10:10 PM Ryan Cloherty <rcloherty@cogitocorp.com> wrote:
Hi Sergey,

The dependency is from the kamailio-python RPM. I should've been more specific. Sorry about that. I've also pasted my install log below so you can see my installation method and what I encounter. I see from your installation that your install is also attempting to install specifically Python version 3.6 much like mine. However, your installation succeeds while mine fails to install. This is likely because of how Amazon Linux 2 (our environment) has its yum repositories configured. Still, I'm curious why the install is specifically requiring an older version of Python when the "python36" part of the SPEC file changed quite some time ago.

$ sudo yum install ./kamailio-5.6.2-0.el7.centos.x86_64.rpm ./kamailio-python-5.6.2-0.el7.centos.x86_64.rpm ./kamailio-mysql-5.6.2-0.el7.centos.x86_64.rpm ./kamailio-tls-5.6.2-0.el7.centos.x86_64.rpm
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Examining ./kamailio-5.6.2-0.el7.centos.x86_64.rpm: kamailio-5.6.2-0.el7.centos.x86_64
Marking ./kamailio-5.6.2-0.el7.centos.x86_64.rpm as an update to kamailio-5.4.4-0.el7.centos.x86_64
Examining ./kamailio-python-5.6.2-0.el7.centos.x86_64.rpm: kamailio-python-5.6.2-0.el7.centos.x86_64
Marking ./kamailio-python-5.6.2-0.el7.centos.x86_64.rpm as an update to kamailio-python-5.4.4-0.el7.centos.x86_64
Examining ./kamailio-mysql-5.6.2-0.el7.centos.x86_64.rpm: kamailio-mysql-5.6.2-0.el7.centos.x86_64
Marking ./kamailio-mysql-5.6.2-0.el7.centos.x86_64.rpm as an update to kamailio-mysql-5.4.4-0.el7.centos.x86_64
Examining ./kamailio-tls-5.6.2-0.el7.centos.x86_64.rpm: kamailio-tls-5.6.2-0.el7.centos.x86_64
Marking ./kamailio-tls-5.6.2-0.el7.centos.x86_64.rpm as an update to kamailio-tls-5.4.4-0.el7.centos.x86_64
Resolving Dependencies
--> Running transaction check
---> Package kamailio.x86_64 0:5.4.4-0.el7.centos will be updated
---> Package kamailio.x86_64 0:5.6.2-0.el7.centos will be an update
--> Processing Dependency: libncurses.so.5()(64bit) for package: kamailio-5.6.2-0.el7.centos.x86_64
local_yum                                                                                                                                                                                                          | 3.0 kB  00:00:00
--> Processing Dependency: libtinfo.so.5()(64bit) for package: kamailio-5.6.2-0.el7.centos.x86_64
---> Package kamailio-mysql.x86_64 0:5.4.4-0.el7.centos will be updated
---> Package kamailio-mysql.x86_64 0:5.6.2-0.el7.centos will be an update
---> Package kamailio-python.x86_64 0:5.4.4-0.el7.centos will be updated
---> Package kamailio-python.x86_64 0:5.6.2-0.el7.centos will be an update
--> Processing Dependency: libpython3.6m.so.1.0()(64bit) for package: kamailio-python-5.6.2-0.el7.centos.x86_64
---> Package kamailio-tls.x86_64 0:5.4.4-0.el7.centos will be updated
---> Package kamailio-tls.x86_64 0:5.6.2-0.el7.centos will be an update
--> Running transaction check
---> Package kamailio-python.x86_64 0:5.6.2-0.el7.centos will be an update
--> Processing Dependency: libpython3.6m.so.1.0()(64bit) for package: kamailio-python-5.6.2-0.el7.centos.x86_64
---> Package ncurses-compat-libs.x86_64 0:6.0-8.20170212.amzn2.1.3 will be installed
--> Finished Dependency Resolution
Error: Package: kamailio-python-5.6.2-0.el7.centos.x86_64 (/kamailio-python-5.6.2-0.el7.centos.x86_64)
           Requires: libpython3.6m.so.1.0()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

On Wed, Nov 16, 2022 at 12:50 PM Sergey Safarov <s.safarov@gmail.com> wrote:
I have tested install using 
yum install kamailio
and using

yum install --disablerepo=kamailio --enablerepo=kamailio-5.6.2 kamailio

Both works for me.
Please provide more info about your install method.


On Wed, Nov 16, 2022 at 6:23 PM Ryan Cloherty <rcloherty@cogitocorp.com> wrote:
Hello,

I am aware of the updates that have been made to that file. I actually referenced pkg/kamailio/obs/kamailio.spec in my first email. My issue is that the RPMs at rpm.kamailio.org have dependencies that aren't present in the repository's SPEC file. Per the wiki, that's the correct URL to look for the latest releases. However, when I tried installing https://rpm.kamailio.org/centos/7/5.6/5.6.2/x86_64/Packages/k/kamailio-5.6.2-0.el7.centos.x86_64.rpm it claimed that it needed libpython3.6 but the dependency on Python 3.6 was removed several months ago. It was removed in this commit on master and this commit on the 5.6 branch. This leads me to believe that whatever build server is being used to produce these RPMs is somehow using a very old copy of the SPEC file.

Best,
Ryan

On Wed, Nov 16, 2022 at 10:04 AM Henning Westerholt <hw@gilawa.com> wrote:

Hello,

 

please check the mentioned directory, there are updates recently:

 

git log pkg/kamailio/obs/

 

commit e49e5a52ded4bef36b5958a748b9556af52d2d33

Date:   Fri Sep 16 21:06:53 2022 +0100

 

    pkg/kamailio/obs: added readline-devel build dependency (#3233)

 

    * pkg/kamailio/obs: added readline-devel build dependency

 

    - Added a readline-devel dependency when generating rpm's. This ensures that when generating rpm's (mock context), kamcmd uses this library in its compilation and autocomplete is available in kamcmd's interactive mode.

 

commit 44b3ccd71467b78d9e9a7184c9fd25bc5f616ac4

Date:   Tue Aug 16 16:31:25 2022 +0300

 

    pkg/kamailio/obs: fixed rpm packaging on CentOS 8 and Fedora

 

commit 4a6aa75dd1de4e33ba6ac3f1d770a1beed61e157

Date:   Tue Aug 16 12:30:56 2022 +0000

 

    pkg/kamailio/obs: fixed packaging for RHEL 7 and RHEL 6 based dists [skip ci]

 

Cheers,

 

Henning

 

--

Henning Westerholt – https://skalatan.de/blog/

Kamailio services – https://gilawa.com

 

From: Ryan Cloherty <rcloherty@cogitocorp.com>
Sent: Wednesday, November 16, 2022 3:58 PM
To: sr-users@lists.kamailio.org
Cc: Henning Westerholt <hw@gilawa.com>
Subject: Re: [SR-Users] RPM SPEC file differs between repo and build server

 

I did see somewhere that the openSUSE build service isn't used anymore but I thought that the correct source of RPMs was rpm.kamailio.org but that seems like it was built with the same outdated SPEC as what I see on OBS. Regardless of where it's being built, it seems that the SPEC file used is quite out of date (unless I'm using the wrong source for RPMs).

 

Best,

Ryan

 

On Wed, Nov 16, 2022, 8:08 AM Henning Westerholt <hw@gilawa.com> wrote:

Hello,

 

Just a note – the openSUSE build service is not used anymore, so I would expect that its not up to date to the spec files. You can find the current SPEC files in pkg/kamailio in the git repository.

Maybe somebody with more insight about RPM packaging can comment as well.

 

Cheers,

 

Henning

 

--

Henning Westerholt – https://skalatan.de/blog/

Kamailio services – https://gilawa.com

 

From: sr-users <sr-users-bounces@lists.kamailio.org> On Behalf Of Ryan Cloherty
Sent: Tuesday, November 15, 2022 9:06 PM
To: sr-users@lists.kamailio.org
Subject: [SR-Users] RPM SPEC file differs between repo and build server

 

Hello,

 

When trying to install the Kamailio RPM from https://rpm.kamailio.org/centos/7/5.6/5.6.2/x86_64/Packages/k/kamailio-5.6.2-0.el7.centos.src.rpm, I encountered an issue due to a dependency on "libpython3.6m". It seems like the SPEC file in the repository differs quite wildly from the SPEC file on the openSUSE Build Service. On lines 667-668 of the OBS copy, you can see the explicit dependency on "python36". Is this intentional or is this something that needs to be fixed?

 

Thank you,

Ryan C

__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users