[SR-Users] RPM SPEC file differs between repo and build server

Sergey Safarov s.safarov at gmail.com
Wed Nov 16 18:35:27 CET 2022


> I encountered an issue due to a dependency on "libpython3.6m".

According to https://www.kamailio.org/wikidocs/packages/rpms/

docker pull centos:7[safarov at safarov-dell ~]$ docker pull centos:7
7: Pulling from library/centos
Digest:
sha256:c73f515d06b0fa07bb18d8202035e739a494ce760aa73129f60f4bf2bd22b407
Status: Image is up to date for centos:7
docker.io/library/centos:7
[safarov at safarov-dell ~]$ docker run -it --network host centos:7
[root at safarov-dell /]# yum -y install yum-utils

Loaded plugins: fastestmirror, ovl
Determining fastest mirrors
 * base: mirror.telepoint.bg
 * extras: ro-bucharest-repo.bigstepcloud.com
 * updates: mirror.telepoint.bg
base

 | 3.6 kB  00:00:00
extras

 | 2.9 kB  00:00:00
updates
                                                                          |
2.9 kB  00:00:00
(1/4): base/7/x86_64/group_gz
                                                                          |
153 kB  00:00:00
(2/4): extras/7/x86_64/primary_db
                                                                          |
249 kB  00:00:00
(3/4): base/7/x86_64/primary_db
                                                                          |
6.1 MB  00:00:01
(4/4): updates/7/x86_64/primary_db

 |  18 MB  00:00:07
Package yum-utils-1.1.31-54.el7_8.noarch already installed and latest
version
Nothing to do

[root at safarov-dell /]# yum-config-manager --add-repo
https://rpm.kamailio.org/centos/kamailio.repo
Loaded plugins: fastestmirror, ovl
adding repo from: https://rpm.kamailio.org/centos/kamailio.repo
grabbing file https://rpm.kamailio.org/centos/kamailio.repo to
/etc/yum.repos.d/kamailio.repo
repo saved to /etc/yum.repos.d/kamailio.repo

[root at safarov-dell /]# yum install --disablerepo=kamailio
--enablerepo=kamailio-5.6.2 kamailio
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
 * base: mirror.telepoint.bg
 * extras: ro-bucharest-repo.bigstepcloud.com
 * updates: mirror.telepoint.bg
kamailio-5.6.2

 | 2.1 kB  00:00:00
(1/3): kamailio-5.6.2/7/x86_64/updateinfo
                                                                          |
  92 B  00:00:01
(2/3): kamailio-5.6.2/7/x86_64/group

 |  124 B  00:00:01
(3/3): kamailio-5.6.2/7/x86_64/primary

 |  13 kB  00:00:00
kamailio-5.6.2

                66/66
Resolving Dependencies
--> Running transaction check
---> Package kamailio.x86_64 0:5.6.2-0.el7.centos will be installed
--> Processing Dependency: /usr/bin/python3 for package:
kamailio-5.6.2-0.el7.centos.x86_64
--> Running transaction check
---> Package python3.x86_64 0:3.6.8-18.el7 will be installed
--> Processing Dependency: python3-libs(x86-64) = 3.6.8-18.el7 for package:
python3-3.6.8-18.el7.x86_64
--> Processing Dependency: python3-setuptools for package:
python3-3.6.8-18.el7.x86_64
--> Processing Dependency: python3-pip for package:
python3-3.6.8-18.el7.x86_64
--> Processing Dependency: libpython3.6m.so.1.0()(64bit) for package:
python3-3.6.8-18.el7.x86_64
--> Running transaction check
---> Package python3-libs.x86_64 0:3.6.8-18.el7 will be installed
--> Processing Dependency: libtirpc.so.1()(64bit) for package:
python3-libs-3.6.8-18.el7.x86_64
---> Package python3-pip.noarch 0:9.0.3-8.el7 will be installed
---> Package python3-setuptools.noarch 0:39.2.0-10.el7 will be installed
--> Running transaction check
---> Package libtirpc.x86_64 0:0.2.4-0.16.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================================
 Package                                      Arch
    Version                                        Repository
                 Size
=============================================================================================================================================================================
Installing:
 kamailio                                     x86_64
    5.6.2-0.el7.centos                             kamailio-5.6.2
                6.4 M
Installing for dependencies:
 libtirpc                                     x86_64
    0.2.4-0.16.el7                                 base
                 89 k
 python3                                      x86_64
    3.6.8-18.el7                                   updates
                  70 k
 python3-libs                                 x86_64
    3.6.8-18.el7                                   updates
                 6.9 M
 python3-pip                                  noarch
    9.0.3-8.el7                                    base
                1.6 M
 python3-setuptools                           noarch
    39.2.0-10.el7                                  base
                629 k

Transaction Summary
=============================================================================================================================================================================
Install  1 Package (+5 Dependent packages)

Total download size: 16 M
Installed size: 77 M
Is this ok [y/d/N]: н
Is this ok [y/d/N]: y
Downloading packages:
warning:
/var/cache/yum/x86_64/7/updates/packages/python3-3.6.8-18.el7.x86_64.rpm:
Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY  ]  0.0 B/s |    0 B
 --:--:-- ETA
Public key for python3-3.6.8-18.el7.x86_64.rpm is not installed
(1/6): python3-3.6.8-18.el7.x86_64.rpm

 |  70 kB  00:00:00
Public key for libtirpc-0.2.4-0.16.el7.x86_64.rpm is not installed       2%
[=                                                             ] 459 kB/s |
359 kB  00:00:34 ETA
(2/6): libtirpc-0.2.4-0.16.el7.x86_64.rpm
                                                                          |
 89 kB  00:00:00
(3/6): python3-setuptools-39.2.0-10.el7.noarch.rpm

 | 629 kB  00:00:01
(4/6): python3-pip-9.0.3-8.el7.noarch.rpm
                                                                          |
1.6 MB  00:00:01
(5/6): python3-libs-3.6.8-18.el7.x86_64.rpm
                                                                          |
6.9 MB  00:00:03
warning:
/var/cache/yum/x86_64/7/kamailio-5.6.2/packages/kamailio-5.6.2-0.el7.centos.x86_64.rpm:
Header V4 RSA/SHA512 Signature, key ID 17a12ee1: NOKEY  16 MB  00:00:00 ETA
Public key for kamailio-5.6.2-0.el7.centos.x86_64.rpm is not installed
(6/6): kamailio-5.6.2-0.el7.centos.x86_64.rpm
                                                                          |
6.4 MB  00:02:27
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total
                                                                 109 kB/s |
 16 MB  00:02:27
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Importing GPG key 0xF4A80EB5:
 Userid     : "CentOS-7 Key (CentOS 7 Official Signing Key) <
security at centos.org>"
 Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
 Package    : centos-release-7-9.2009.0.el7.centos.x86_64 (@CentOS)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Is this ok [y/N]: y
Retrieving key from https://rpm.kamailio.org/rpm-pub.key
Importing GPG key 0x17A12EE1:
 Userid     : "Kamailio team RPM signing bot <rpm_bot at kamailio.org>"
 Fingerprint: 13b5 5f7c 63ea 5879 de92 9c5c bc1d ed8a 17a1 2ee1
 From       : https://rpm.kamailio.org/rpm-pub.key
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : libtirpc-0.2.4-0.16.el7.x86_64

                 1/6
  Installing : python3-setuptools-39.2.0-10.el7.noarch

                  2/6
  Installing : python3-pip-9.0.3-8.el7.noarch

                 3/6
  Installing : python3-3.6.8-18.el7.x86_64

                  4/6
  Installing : python3-libs-3.6.8-18.el7.x86_64

                 5/6
  Installing : kamailio-5.6.2-0.el7.centos.x86_64

                 6/6
  Verifying  : libtirpc-0.2.4-0.16.el7.x86_64

                 1/6
  Verifying  : python3-3.6.8-18.el7.x86_64

                  2/6
  Verifying  : python3-libs-3.6.8-18.el7.x86_64

                 3/6
  Verifying  : kamailio-5.6.2-0.el7.centos.x86_64

                 4/6
  Verifying  : python3-setuptools-39.2.0-10.el7.noarch

                  5/6
  Verifying  : python3-pip-9.0.3-8.el7.noarch

                 6/6

Installed:
  kamailio.x86_64 0:5.6.2-0.el7.centos



Dependency Installed:
  libtirpc.x86_64 0:0.2.4-0.16.el7                  python3.x86_64
0:3.6.8-18.el7         python3-libs.x86_64 0:3.6.8-18.el7
python3-pip.noarch 0:9.0.3-8.el7
  python3-setuptools.noarch 0:39.2.0-10.el7

Complete!
[root at safarov-dell /]#


What is your install log?

On Wed, Nov 16, 2022 at 6:23 PM Ryan Cloherty <rcloherty at 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-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
> <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 at 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 at cogitocorp.com>
>> *Sent:* Wednesday, November 16, 2022 3:58 PM
>> *To:* sr-users at lists.kamailio.org
>> *Cc:* Henning Westerholt <hw at 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 at 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 at lists.kamailio.org> *On Behalf Of *Ryan
>> Cloherty
>> *Sent:* Tuesday, November 15, 2022 9:06 PM
>> *To:* sr-users at 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
>> <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 at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20221116/03e94260/attachment.htm>


More information about the sr-users mailing list