[sr-dev] git:5.3:fc28a142: pkg/kamailio: fixed python3 deps for RHEL 6

Henning Westerholt hw at skalatan.de
Wed May 13 15:34:36 CEST 2020


Module: kamailio
Branch: 5.3
Commit: fc28a14203f59c62d2c745ffd294a5091bf8cb26
URL: https://github.com/kamailio/kamailio/commit/fc28a14203f59c62d2c745ffd294a5091bf8cb26

Author: Sergey Safarov <s.safarov at gmail.com>
Committer: Henning Westerholt <hw at skalatan.de>
Date: 2020-05-13T12:23:08Z

pkg/kamailio: fixed python3 deps for RHEL 6

(cherry picked from commit 5f31a56acd25f892e6275e6ac786677f2eb2be0c)

---

Modified: pkg/kamailio/obs/kamailio.spec

---

Diff:  https://github.com/kamailio/kamailio/commit/fc28a14203f59c62d2c745ffd294a5091bf8cb26.diff
Patch: https://github.com/kamailio/kamailio/commit/fc28a14203f59c62d2c745ffd294a5091bf8cb26.patch

---

diff --git a/pkg/kamailio/obs/kamailio.spec b/pkg/kamailio/obs/kamailio.spec
index 76c08aa81c..aa5269e62c 100644
--- a/pkg/kamailio/obs/kamailio.spec
+++ b/pkg/kamailio/obs/kamailio.spec
@@ -1109,6 +1109,10 @@ UUID module for Kamailio.
 
 %prep
 %setup -n %{name}-%{ver}
+# python3 does not exist in RHEL 6 and similar dist.
+%if 0%{?rhel} == 6
+sed -i -e 's/python3/python2/' utils/kamctl/dbtextdb/dbtextdb.py
+%endif
 
 %build
 ln -s ../obs pkg/kamailio/%{dist_name}/%{dist_version}




More information about the sr-dev mailing list