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 https://github.com/kamailio/kamailio/commit/19edea067f890814c767581fef65713046c768c6#diff-8dbb56c7af7d1365d881484b7a9f216df7bb0ff6275d92b1debce86641491311L793-L796 quite some time ago https://github.com/kamailio/kamailio/commit/10c3a432d8f032788bf57e304ccf728c3a379740#diff-8dbb56c7af7d1365d881484b7a9f216df7bb0ff6275d92b1debce86641491311L793-L796 .
$ 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 https://www.kamailio.org/wiki/packages/rpms, 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... it claimed that it needed libpython3.6 but the dependency on Python 3.6 was removed several months ago. It was removed in this https://github.com/kamailio/kamailio/commit/19edea067f890814c767581fef65713046c768c6#diff-8dbb56c7af7d1365d881484b7a9f216df7bb0ff6275d92b1debce86641491311L793-L796 commit on master and this https://github.com/kamailio/kamailio/commit/10c3a432d8f032788bf57e304ccf728c3a379740#diff-8dbb56c7af7d1365d881484b7a9f216df7bb0ff6275d92b1debce86641491311L793-L796 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..., I encountered an issue due to a dependency on "libpython3.6m". It seems like the SPEC file in the repository https://github.com/kamailio/kamailio/blob/5.6/pkg/kamailio/obs/kamailio.spec#L851-L852 differs quite wildly from the SPEC file on the openSUSE Build Service https://build.opensuse.org/package/view_file/home:kamailio:v5.6.x-rpms/kamailio56/kamailio.spec?expand=1. 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