[Build-System] Use spandsp3 package

This commit is contained in:
Andrey Volk 2020-08-14 00:10:21 +04:00
parent 6d7272c78d
commit 0f95e265d1
4 changed files with 15 additions and 10 deletions

View File

@ -14,7 +14,8 @@ steps:
image: signalwire/freeswitch-public-base image: signalwire/freeswitch-public-base
pull: true pull: true
commands: commands:
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq install libsofia-sip-ua-dev libspandsp-dev - apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq remove libspandsp-dev
- DEBIAN_FRONTEND=noninteractive apt-get -yq install libsofia-sip-ua-dev libspandsp3-dev
- echo "applications/mod_test" >> modules.conf - echo "applications/mod_test" >> modules.conf
- echo 'codecs/mod_openh264' >> modules.conf - echo 'codecs/mod_openh264' >> modules.conf
- sed -i '/applications\\/mod_http_cache/s/^#//g' modules.conf - sed -i '/applications\\/mod_http_cache/s/^#//g' modules.conf
@ -28,7 +29,8 @@ steps:
image: signalwire/freeswitch-public-base image: signalwire/freeswitch-public-base
pull: true pull: true
commands: commands:
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq install libsofia-sip-ua-dev libspandsp-dev - apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq remove libspandsp-dev
- DEBIAN_FRONTEND=noninteractive apt-get -yq install libsofia-sip-ua-dev libspandsp3-dev
- echo '#!/bin/bash\nmake -j`nproc --all` |& tee ./unit-tests-build-result.txt\nexitstatus=$${PIPESTATUS[0]}\necho $$exitstatus > ./build-status.txt\n' > build.sh - echo '#!/bin/bash\nmake -j`nproc --all` |& tee ./unit-tests-build-result.txt\nexitstatus=$${PIPESTATUS[0]}\necho $$exitstatus > ./build-status.txt\n' > build.sh
- chmod +x build.sh - chmod +x build.sh
- ./build.sh - ./build.sh
@ -37,7 +39,8 @@ steps:
image: signalwire/freeswitch-public-base image: signalwire/freeswitch-public-base
pull: true pull: true
commands: commands:
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq install libsofia-sip-ua-dev libspandsp-dev - apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq remove libspandsp-dev
- DEBIAN_FRONTEND=noninteractive apt-get -yq install libsofia-sip-ua-dev libspandsp3-dev
- make install || true - make install || true
- cd tests/unit - cd tests/unit
- ./run-tests.sh - ./run-tests.sh
@ -83,7 +86,8 @@ steps:
image: signalwire/freeswitch-public-base:stretch image: signalwire/freeswitch-public-base:stretch
pull: true pull: true
commands: commands:
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq install libsofia-sip-ua-dev libspandsp-dev - apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq remove libspandsp-dev
- DEBIAN_FRONTEND=noninteractive apt-get -yq install libsofia-sip-ua-dev libspandsp3-dev
- cp build/modules.conf.most modules.conf - cp build/modules.conf.most modules.conf
#Enable/Uncomment mods #Enable/Uncomment mods
- echo 'codecs/mod_openh264' >> modules.conf - echo 'codecs/mod_openh264' >> modules.conf
@ -113,7 +117,8 @@ steps:
image: signalwire/freeswitch-public-base:stretch image: signalwire/freeswitch-public-base:stretch
pull: true pull: true
commands: commands:
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq install libsofia-sip-ua-dev libspandsp-dev - apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq remove libspandsp-dev
- DEBIAN_FRONTEND=noninteractive apt-get -yq install libsofia-sip-ua-dev libspandsp3-dev
- mkdir -p scan-build - mkdir -p scan-build
- echo '#!/bin/bash\nscan-build-4.0 -o ./scan-build/ make -j`nproc --all` |& tee ./scan-build-result.txt\nexitstatus=$${PIPESTATUS[0]}\necho $$exitstatus > ./scan-build-status.txt\n' > scan.sh - echo '#!/bin/bash\nscan-build-4.0 -o ./scan-build/ make -j`nproc --all` |& tee ./scan-build-result.txt\nexitstatus=$${PIPESTATUS[0]}\necho $$exitstatus > ./scan-build-status.txt\n' > scan.sh
- chmod +x scan.sh - chmod +x scan.sh
@ -144,6 +149,6 @@ trigger:
--- ---
kind: signature kind: signature
hmac: c48137f0dee8c2825711979e2c490367a2467a92866d3dfa11cf340a113dbf53 hmac: 847aeb3791f682fe44b2e401a7a2b6ebbf06830e67046745459a31b32a7da2f3
... ...

View File

@ -714,9 +714,9 @@ PKG_CHECK_MODULES([MARIADB], [libmariadb >= 3.0.9],[
]) ])
]) ])
PKG_CHECK_MODULES([SPANDSP], [spandsp >= 1.99],[ PKG_CHECK_MODULES([SPANDSP], [spandsp >= 3.0],[
AM_CONDITIONAL([HAVE_SPANDSP],[true])],[ AM_CONDITIONAL([HAVE_SPANDSP],[true])],[
AC_MSG_ERROR([no usable spandsp; please install spandsp devel package or equivalent]) AC_MSG_ERROR([no usable spandsp; please install spandsp3 devel package or equivalent])
]) ])
PKG_CHECK_MODULES([SOFIA_SIP], [sofia-sip-ua >= 1.12.12],[ PKG_CHECK_MODULES([SOFIA_SIP], [sofia-sip-ua >= 1.12.12],[

2
debian/bootstrap.sh vendored
View File

@ -333,7 +333,7 @@ Build-Depends:
# used by many modules # used by many modules
libcurl4-openssl-dev | libcurl4-gnutls-dev | libcurl-dev, libcurl4-openssl-dev | libcurl4-gnutls-dev | libcurl-dev,
bison, zlib1g-dev, libsofia-sip-ua-dev (>= 1.12.12), bison, zlib1g-dev, libsofia-sip-ua-dev (>= 1.12.12),
libspandsp-dev (>= 0.0.6), libspandsp3-dev,
# module build-depends # module build-depends
$(debian_wrap "${mod_build_depends}") $(debian_wrap "${mod_build_depends}")
Standards-Version: 3.9.3 Standards-Version: 3.9.3

View File

@ -153,7 +153,7 @@ BuildRequires: libtool >= 1.5.17
BuildRequires: ncurses-devel BuildRequires: ncurses-devel
BuildRequires: openssl-devel >= 1.0.1e BuildRequires: openssl-devel >= 1.0.1e
BuildRequires: sofia-sip-devel >= 1.12.12 BuildRequires: sofia-sip-devel >= 1.12.12
BuildRequires: spandsp-devel >= 1.99 BuildRequires: spandsp3-devel >= 3.0
BuildRequires: pcre-devel BuildRequires: pcre-devel
BuildRequires: speex-devel BuildRequires: speex-devel
BuildRequires: sqlite-devel BuildRequires: sqlite-devel