summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormicmac12020-04-04 09:35:00 +0000
committerGitHub2020-04-04 09:35:00 +0000
commit1e6c85677fcca1c54b9b1db1a75a18de8170ec8a (patch)
treeea395cba05435d6dd0c84a6d595fb4fba34d91ec
parent06ec029b2ff5671610a0862d785b52f0d383420b (diff)
parent0c9dbc341c07ee6fc367780409c4a4dd6e60ca35 (diff)
downloadtelephony-1e6c85677fcca1c54b9b1db1a75a18de8170ec8a.tar.gz
Merge pull request #514 from micmac1/fs-rem-python
freeswitch-stable: remove python support
-rw-r--r--net/freeswitch-stable/Makefile63
-rw-r--r--net/freeswitch-stable/patches/030-fix-configure-ac.patch25
-rw-r--r--net/freeswitch-stable/patches/120-fix-copts.patch2
-rw-r--r--net/freeswitch-stable/patches/220-esl-python.patch43
4 files changed, 4 insertions, 129 deletions
diff --git a/net/freeswitch-stable/Makefile b/net/freeswitch-stable/Makefile
index 3f8412f..4f32c21 100644
--- a/net/freeswitch-stable/Makefile
+++ b/net/freeswitch-stable/Makefile
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
PRG_NAME:=freeswitch
PKG_NAME:=$(PRG_NAME)-stable
PKG_VERSION:=1.10.2
-PKG_RELEASE:=3
+PKG_RELEASE:=4
PKG_MAINTAINER:=Sebastian Kemper <sebastian_ml@gmx.net>
PKG_SOURCE:=$(PRG_NAME)-$(PKG_VERSION).-release.tar.xz
@@ -25,8 +25,7 @@ PKG_BUILD_DIR:=$(BUILD_DIR)/$(PRG_NAME)-$(PKG_VERSION).-release
PKG_BUILD_DEPENDS:= \
libjpeg \
tiff \
- perl/host \
- python/host
+ perl/host
PKG_FIXUP:=autoreconf
@@ -162,7 +161,6 @@ FS_STABLE_MOD_AVAILABLE:= \
portaudio_stream \
posix_timer \
prefix \
- python \
radius_cdr \
random \
raven \
@@ -239,7 +237,6 @@ PKG_CONFIG_DEPENDS:= \
CONFIG_PACKAGE_$(PKG_LIBFTDM)-ftmod-libpri \
CONFIG_PACKAGE_$(PKG_LIBFTDM)-ftmod-pritap \
CONFIG_PACKAGE_$(PKG_NAME)-misc-perl-esl \
- CONFIG_PACKAGE_$(PKG_NAME)-misc-python-esl \
CONFIG_SOFT_FLOAT
include $(INCLUDE_DIR)/uclibc++.mk
@@ -260,7 +257,6 @@ endif
FS_STABLE_PERL_FEED:=$(TOPDIR)/feeds/packages/lang/perl
-include $(TOPDIR)/feeds/packages/lang/python/python-host.mk
include $(FS_STABLE_PERL_FEED)/perlver.mk
PERL_SITELIB:=/usr/lib/perl$(PERL_MAJOR)/$(PERL_VERSION2)
@@ -269,8 +265,6 @@ FS_STABLE_PERL_LIBS:=$(shell grep "^libs=" \
$(FS_STABLE_PERL_FEED)/files/base.config | \
sed "s/^libs=//;s/'//g")
-FS_STABLE_PYTHON_SITE_DIR:=$(FS_STABLE_LIB_DIR)/python$(PYTHON_VERSION)/site-packages
-
define Download/files
define Download/$(1)
FILE:=$(2)
@@ -474,27 +468,6 @@ define Package/$(PKG_NAME)-misc-perl-esl/install
$(1)$(PERL_SITELIB)/ESL
endef
-define Package/$(PKG_NAME)-misc-python-esl
-$(call Package/$(PKG_NAME)/Default)
- TITLE:=Python ESL
- DEPENDS:=$(PKG_NAME) +PACKAGE_$(PKG_NAME)-misc-python-esl:python-light
-endef
-
-define Package/$(PKG_NAME)-misc-python-esl/description
-This package contains the Python binding for FreeSWITCH's Event Socket
-Library (ESL).
-endef
-
-define Package/$(PKG_NAME)-misc-python-esl/install
- $(INSTALL_DIR) $(1)$(FS_STABLE_PYTHON_SITE_DIR)
- $(INSTALL_BIN) \
- $(PKG_INSTALL_DIR)$(FS_STABLE_PYTHON_SITE_DIR)/_ESL.so \
- $(1)$(FS_STABLE_PYTHON_SITE_DIR)
- $(INSTALL_DATA) \
- $(PKG_INSTALL_DIR)$(FS_STABLE_PYTHON_SITE_DIR)/ESL.py \
- $(1)$(FS_STABLE_PYTHON_SITE_DIR)
-endef
-
define Package/$(PKG_NAME)-misc-timezones
$(call Package/$(PKG_NAME)/Default)
TITLE:=Timezones file
@@ -592,12 +565,6 @@ ifeq ($(1),perl)
$(PKG_INSTALL_DIR)/usr/perl/$(PRG_NAME).pm \
$$(1)$(PERL_SITELIB)
endif
-ifeq ($(1),python)
- $(INSTALL_DIR) $$(1)$(FS_STABLE_PYTHON_SITE_DIR)
- $(INSTALL_DATA) \
- $(PKG_INSTALL_DIR)$(FS_STABLE_PYTHON_SITE_DIR)/$(PRG_NAME).py \
- $$(1)$(FS_STABLE_PYTHON_SITE_DIR)
-endif
endef
$$(eval $$(call BuildPackage,$(PKG_NAME)-mod-$(subst _,-,$(1))))
endef
@@ -631,6 +598,7 @@ CONFIGURE_ARGS+= \
--with-dbdir=/tmp/$(PRG_NAME)/db \
--with-imagesdir=$(FS_STABLE_IMAGES_DIR) \
--with-logfiledir=/tmp/$(PRG_NAME)/log \
+ --with-python=no \
--with-recordingsdir=/tmp/$(PRG_NAME)/recordings \
--with-storagedir=/tmp/$(PRG_NAME)/storage \
$(call autoconf_bool,CONFIG_FS_STABLE_WITH_DEBUG,debug) \
@@ -646,14 +614,6 @@ CONFIGURE_ARGS+= \
$(if $(CONFIG_PACKAGE_$(PKG_LIBFTDM)-ftmod-libpri),--with-libpri="$(STAGING_DIR)/usr",--without-libpri) \
$(if $(CONFIG_PACKAGE_$(PKG_LIBFTDM)-ftmod-pritap),--with-pritap,--without-pritap)
-ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-misc-python-esl)$(CONFIG_PACKAGE_$(PKG_NAME)-mod-python),)
-CONFIGURE_ARGS+= \
- --with-python=$(STAGING_DIR_HOSTPKG)/bin/python$(PYTHON_VERSION)
-else
-CONFIGURE_ARGS+= \
- --with-python=no
-endif
-
ifeq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-erlang-event)$(CONFIG_PACKAGE_$(PKG_NAME)-mod-kazoo),)
CONFIGURE_ARGS+= \
--with-erlang=no
@@ -732,15 +692,6 @@ CONFIGURE_VARS+= \
ac_cv_prog_PERL=false
endif
-ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-misc-python-esl)$(CONFIG_PACKAGE_$(PKG_NAME)-mod-python),)
-CONFIGURE_VARS+= \
- PYTHON_CFLAGS="-I$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION)" \
- PYTHON_LDFLAGS="-lpython$(PYTHON_VERSION)" \
- PYTHON_LIB="python$(PYTHON_VERSION)" \
- PYTHON_LIBDIR="$(FS_STABLE_LIB_DIR)" \
- PYTHON_SITE_DIR="$(FS_STABLE_PYTHON_SITE_DIR)"
-endif
-
# mod_radius_cdr runs configure in libs/freeradius-client. Let
# freeradius-client know /dev/urandom is available on target devices.
MAKE_VARS+= \
@@ -863,9 +814,6 @@ endif
ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-misc-perl-esl),)
$(call Build/Compile/Default,-C $(PKG_BUILD_DIR)/libs/esl perlmod)
endif
-ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-misc-python-esl),)
- $(call Build/Compile/Default,-C $(PKG_BUILD_DIR)/libs/esl pymod)
-endif
endef
define Build/Install
@@ -879,9 +827,6 @@ endif
ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-misc-perl-esl),)
$(call Build/Compile/Default,-C $(PKG_BUILD_DIR)/libs/esl DESTDIR=$(PKG_INSTALL_DIR) perlmod-install)
endif
-ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-misc-python-esl),)
- $(call Build/Install/Default,-C $(PKG_BUILD_DIR)/libs/esl pymod-install)
-endif
endef
define Build/InstallDev/$(PKG_LIBFTDM)
@@ -914,7 +859,6 @@ endef
$(eval $(call BuildPackage,$(PKG_LIBFTDM)))
$(eval $(call BuildPackage,$(PKG_NAME)))
$(eval $(call BuildPackage,$(PKG_NAME)-misc-perl-esl))
-$(eval $(call BuildPackage,$(PKG_NAME)-misc-python-esl))
$(eval $(call BuildPackage,$(PKG_NAME)-misc-timezones))
################################
@@ -1070,7 +1014,6 @@ $(eval $(call Package/$(PKG_NAME)/Module,portaudio,Portaudio,Voice through a loc
$(eval $(call Package/$(PKG_NAME)/Module,portaudio_stream,Portaudio streaming,Stream from an external audio source for Music on Hold.,+portaudio))
$(eval $(call Package/$(PKG_NAME)/Module,posix_timer,POSIX timer,Add POSIX timer support.,))
$(eval $(call Package/$(PKG_NAME)/Module,prefix,Prefix match,This module provides a data store with fast lookups by the longest\nprefix match rule.,))
-$(eval $(call Package/$(PKG_NAME)/Module,python,Python,Python support module.,+python-light))
$(eval $(call Package/$(PKG_NAME)/Module,radius_cdr,Radius CDR,Radius Call Detail Record handler.,))
$(eval $(call Package/$(PKG_NAME)/Module,random,Entropy,This module extracts entropy from FreeSWITCH and feeds it into\n/dev/random.,))
$(eval $(call Package/$(PKG_NAME)/Module,raven,Raven logging,Adds support for logging to Raven instances.,))
diff --git a/net/freeswitch-stable/patches/030-fix-configure-ac.patch b/net/freeswitch-stable/patches/030-fix-configure-ac.patch
index cea47f0..8cb4c1e 100644
--- a/net/freeswitch-stable/patches/030-fix-configure-ac.patch
+++ b/net/freeswitch-stable/patches/030-fix-configure-ac.patch
@@ -55,28 +55,3 @@
save_CFLAGS="$CFLAGS"
CFLAGS="$PERL_CFLAGS"
-@@ -1724,24 +1694,12 @@ then
- if test "$python_has_distutils" != "no" ; then
- AC_MSG_CHECKING([location of site-packages])
-
-- PYTHON_SITE_DIR="`$PYTHON -c 'from distutils import sysconfig; print(sysconfig.get_python_lib(0));'`"
--
- if test -z "$PYTHON_SITE_DIR" ; then
- AC_MSG_ERROR([Unable to detect python site-packages path])
-- elif test ! -d "$PYTHON_SITE_DIR" ; then
-- AC_MSG_ERROR([Path $PYTHON_SITE_DIR returned by python does not exist!])
- fi
- AC_MSG_RESULT([$PYTHON_SITE_DIR])
- AC_SUBST([PYTHON_SITE_DIR], [$PYTHON_SITE_DIR])
-
-- #
-- # python distutils found, get settings from python directly
-- #
-- PYTHON_CFLAGS="`$PYTHON -c 'from distutils import sysconfig; flags = [[\"-I\" + sysconfig.get_python_inc(0), \"-I\" + sysconfig.get_python_inc(1), \" \".join(sysconfig.get_config_var(\"CFLAGS\").split())]]; print(\" \".join(flags));' | sed -e 's/-arch i386//g;s/-arch x86_64//g'`"
-- PYTHON_LDFLAGS="`$PYTHON -c 'from distutils import sysconfig; libs = sysconfig.get_config_var(\"LIBS\").split() + sysconfig.get_config_var(\"SYSLIBS\").split(); libs.append(\"-lpython\"+sysconfig.get_config_var(\"VERSION\")); print(\" \".join(libs));'`"
-- PYTHON_LIB="`$PYTHON -c 'from distutils import sysconfig; print(\"python\" + sysconfig.get_config_var(\"VERSION\"));'`"
-- PYTHON_LIBDIR="`$PYTHON -c 'from distutils import sysconfig; print(sysconfig.get_config_var(\"LIBDIR\"));'`"
--
- # handle python being installed into /usr/local
- AC_MSG_CHECKING([python libdir])
- if test -z "`echo $PYTHON_LIBDIR | grep "/usr/lib"`" ; then
diff --git a/net/freeswitch-stable/patches/120-fix-copts.patch b/net/freeswitch-stable/patches/120-fix-copts.patch
index 09c800a..594612e 100644
--- a/net/freeswitch-stable/patches/120-fix-copts.patch
+++ b/net/freeswitch-stable/patches/120-fix-copts.patch
@@ -1,6 +1,6 @@
--- a/configure.ac
+++ b/configure.ac
-@@ -2041,7 +2041,12 @@ AC_SUBST(OUR_DISABLED_INSTALL_MODS)
+@@ -2053,7 +2053,12 @@ AC_SUBST(OUR_DISABLED_INSTALL_MODS)
AC_SUBST(OUR_DISABLED_UNINSTALL_MODS)
AC_SUBST(AM_MAKEFLAGS)
diff --git a/net/freeswitch-stable/patches/220-esl-python.patch b/net/freeswitch-stable/patches/220-esl-python.patch
deleted file mode 100644
index a2b657f..0000000
--- a/net/freeswitch-stable/patches/220-esl-python.patch
+++ /dev/null
@@ -1,43 +0,0 @@
---- a/libs/esl/python/Makefile
-+++ b/libs/esl/python/Makefile
-@@ -1,6 +1,4 @@
--LOCAL_CFLAGS=`python ./python-config --includes`
--LOCAL_LDFLAGS=`python ./python-config --ldflags`
--SITE_DIR=$(DESTDIR)/`python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)"`
-+SITE_DIR=$(DESTDIR)/$(PYTHON_SITE_DIR)
-
- all: _ESL.so
-
-@@ -8,10 +6,10 @@ esl_wrap.cpp:
- swig3.0 -module ESL -classic -python -c++ -DMULTIPLICITY -threads -I../src/include -o esl_wrap.cpp ../ESL.i
-
- esl_wrap.o: esl_wrap.cpp
-- $(CXX) $(CXX_CFLAGS) $(CXXFLAGS) $(LOCAL_CFLAGS) -c esl_wrap.cpp -o esl_wrap.o
-+ $(CXX) $(CXX_CFLAGS) $(CXXFLAGS) $(PYTHON_CFLAGS) -c esl_wrap.cpp -o esl_wrap.o
-
- _ESL.so: esl_wrap.o
-- $(CXX) $(SOLINK) esl_wrap.o $(MYLIB) $(LOCAL_LDFLAGS) -o _ESL.so -L. $(LIBS)
-+ $(CXX) $(SOLINK) esl_wrap.o $(MYLIB) $(PYTHON_LDFLAGS) -o _ESL.so -L. $(LIBS)
-
- install: _ESL.so
- mkdir -p $(SITE_DIR)
---- a/libs/esl/Makefile.am
-+++ b/libs/esl/Makefile.am
-@@ -77,7 +77,7 @@ luamod: $(MYLIB)
- $(MAKE) MYLIB="../$(MYLIB)" SOLINK="$(SOLINK)" CFLAGS="-I$(switch_srcdir)/libs/esl/src/include $(SWITCH_AM_CFLAGS)" CXXFLAGS="-I$(switch_srcdir)/libs/esl/src/include $(SWITCH_AM_CXXFLAGS)" CXX_CFLAGS="$(CXX_CFLAGS)" LUA_CFLAGS="$(LUA_CFLAGS)" LUA_LIBS="$(LUA_LIBS)" -C lua
-
- pymod: $(MYLIB)
-- $(MAKE) MYLIB="../$(MYLIB)" SOLINK="$(SOLINK)" CFLAGS="-I$(switch_srcdir)/libs/esl/src/include $(SWITCH_AM_CFLAGS)" CXXFLAGS="-I$(switch_srcdir)/libs/esl/src/include $(SWITCH_AM_CXXFLAGS)" CXX_CFLAGS="$(CXX_CFLAGS)" -C python
-+ $(MAKE) MYLIB="../$(MYLIB)" SOLINK="$(SOLINK)" CFLAGS="-I$(switch_srcdir)/libs/esl/src/include $(SWITCH_AM_CFLAGS)" CXXFLAGS="-I$(switch_srcdir)/libs/esl/src/include $(SWITCH_AM_CXXFLAGS)" CXX_CFLAGS="$(CXX_CFLAGS)" PYTHON_CFLAGS="$(PYTHON_CFLAGS)" PYTHON_LDFLAGS="$(PYTHON_LDFLAGS)" -C python
-
- tclmod: $(MYLIB)
- $(MAKE) MYLIB="../$(MYLIB)" SOLINK="$(SOLINK)" CFLAGS="-I$(switch_srcdir)/libs/esl/src/include $(SWITCH_AM_CFLAGS)" CXXFLAGS="-I$(switch_srcdir)/libs/esl/src/include $(SWITCH_AM_CXXFLAGS)" CXX_CFLAGS="$(CXX_CFLAGS)" -C tcl
-@@ -98,7 +98,7 @@ phpmod-install: phpmod
- $(MAKE) -C php install
-
- pymod-install: pymod
-- $(MAKE) -C python install
-+ $(MAKE) PYTHON_SITE_DIR="$(PYTHON_SITE_DIR)" -C python install
-
- rubymod-install: rubymod
- $(MAKE) -C ruby install