Module: kamailio
Branch: 5.5
Commit: 32cce91f3e6514e9f99f26d2c0dabc56281b034c
URL: 
https://github.com/kamailio/kamailio/commit/32cce91f3e6514e9f99f26d2c0dabc56281b034c

Author: Victor Seva <linuxman...@torreviejawireless.org>
Committer: Victor Seva <linuxman...@torreviejawireless.org>
Date: 2023-04-06T12:25:59+02:00

pkg/kamailio/deb: fix sid build

* no python2 and dh-systemd package available

(cherry picked from commit 986b9bea258864bf40606afe9761dc17dead6476)

---

Modified: pkg/kamailio/deb/debian/backports/sid
Modified: pkg/kamailio/deb/sid/control
Modified: pkg/kamailio/deb/sid/rules

---

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

---

diff --git a/pkg/kamailio/deb/debian/backports/sid 
b/pkg/kamailio/deb/debian/backports/sid
index 8161de7269e..367b53bef04 100755
--- a/pkg/kamailio/deb/debian/backports/sid
+++ b/pkg/kamailio/deb/debian/backports/sid
@@ -25,6 +25,16 @@ sed -i -e '/^export JAVA_HOME/d' ${DIST}/rules
 sed -i -e 's/ java[ ,$]*/ /' ${DIST}/rules
 sed -i -e '/^EXCLUDED_MODULES=/s/$/ java/' ${DIST}/rules
 
+# no dh-systemd
+sed -i -e '/dh-systemd/d' ${DIST}/control
+
+# no python2
+sed -i -e '/^ python,/d' -e '/python-dev/d' \
+  -e '/^Package: kamailio-python-modules/,/^$/d' \
+  ${DIST}/control
+sed -i -e 's/ python [ ,$]*//' ${DIST}/rules
+sed -i -e '/^EXCLUDED_MODULES=/s/$/ python/' ${DIST}/rules
+
 wrap-and-sort -sat -d ${DIST}
 
 # clean backports scripts
diff --git a/pkg/kamailio/deb/sid/control b/pkg/kamailio/deb/sid/control
index 3fd3f506bf4..f0b6e1abc70 100644
--- a/pkg/kamailio/deb/sid/control
+++ b/pkg/kamailio/deb/sid/control
@@ -9,7 +9,6 @@ Build-Depends:
  bison,
  debhelper (>= 9),
  default-libmysqlclient-dev,
- dh-systemd (>= 1.5),
  docbook-xml,
  dpkg-dev (>= 1.16.1.1),
  erlang-dev,
@@ -51,8 +50,6 @@ Build-Depends:
  libxml2-dev,
  openssl,
  pkg-config,
- python,
- python-dev,
  python3,
  python3-dev,
  ruby-dev,
@@ -263,24 +260,6 @@ Description: The app_mono module for the Kamailio SIP 
server
  This package provides the app_mono module, an extension allowing to
  execute embedded Mono applications within the Kamailio SIP routing script.
 
-Package: kamailio-python-modules
-Architecture: linux-any
-Multi-Arch: same
-Pre-Depends:
- ${misc:Pre-Depends},
-Depends:
- kamailio (= ${binary:Version}),
- python-dev,
- ${misc:Depends},
- ${shlibs:Depends},
-Description: The app_python module for the Kamailio SIP server
- Kamailio is a very fast and flexible SIP (RFC3261)
- server. Written entirely in C, Kamailio can handle thousands calls
- per second even on low-budget hardware.
- .
- This package provides the app_python module, an extension allowing to
- execute embedded Python applications within the Kamailio SIP routing script.
-
 Package: kamailio-python3-modules
 Architecture: linux-any
 Multi-Arch: same
diff --git a/pkg/kamailio/deb/sid/rules b/pkg/kamailio/deb/sid/rules
index f1928ac314e..b9dde8844d8 100755
--- a/pkg/kamailio/deb/sid/rules
+++ b/pkg/kamailio/deb/sid/rules
@@ -21,7 +21,7 @@ include /usr/share/dpkg/buildflags.mk
 export RADCLI=1
 
 # modules not in the "main" kamailio package
-EXCLUDED_MODULES= java
+EXCLUDED_MODULES= java python
 
 # extra modules to skip, because they are not compilable now
 # - regardless if they go to the main kamailio package or to some module 
package,
@@ -34,7 +34,7 @@ EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy 
mi_xmlrpc dnssec
 # on which other depend first)
 PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
                           ldap xml perl utils lua memcached \
-                          snmpstats carrierroute xmpp cpl redis python geoip 
geoip2 \
+                          snmpstats carrierroute xmpp cpl redisgeoip geoip2 \
                           sqlite json mono ruby ims sctp \
                           tls outbound websocket autheph kazoo cnxcc \
                           erlang systemd phonenum mongodb rabbitmq python3 
mqtt secsipid lwsc

_______________________________________________
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org

Reply via email to