mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-01-11 15:11:26 +00:00
spandsp: Update to tip of trunk
New clang needs fixes which are in upstream tip, secondly refresh the patches to work with latest code Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
From 62791a5d2532644c401060b6d49c84bee83f953c Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?J=C3=B6rg=20Sommer?= <joerg.sommer@navimatix.de>
|
||||
Date: Thu, 14 Mar 2024 09:41:57 +0100
|
||||
Subject: [PATCH 2/2] configure: Replace manual search for libxml by
|
||||
Subject: [PATCH 1/2] configure: Replace manual search for libxml by
|
||||
AC_CHECK_LIB
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
@@ -9,22 +10,20 @@ Content-Transfer-Encoding: 8bit
|
||||
The manual search fails if the include directories (and build environment)
|
||||
are located somewhere else.
|
||||
|
||||
Upstream-Status: Submitted [https://github.com/freeswitch/spandsp/pull/109]
|
||||
Signed-off-by: Jörg Sommer <joerg.sommer@navimatix.de>
|
||||
Upstream-Status: Submitted [https://github.com/freeswitch/spandsp/pull/74]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
|
||||
ERROR: spandsp-3.0.0+git-r0 do_configure: QA Issue: This autoconf log indicates errors, it looked at host include and/or library paths while determining system capabilities.
|
||||
|
||||
configure.ac | 22 +++++-----------------
|
||||
1 file changed, 5 insertions(+), 17 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 2140837..b5138d6 100644
|
||||
index fa87245..bc40690 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -185,23 +185,11 @@ then
|
||||
@@ -232,23 +232,11 @@ then
|
||||
fi
|
||||
|
||||
|
||||
# Determine XML2 include path
|
||||
-AC_MSG_CHECKING(for libxml/xmlmemory.h)
|
||||
-
|
||||
@@ -49,8 +48,5 @@ index 2140837..b5138d6 100644
|
||||
+else
|
||||
+ AC_MSG_WARN([libxml2 not found. Disabling cache.])
|
||||
fi
|
||||
|
||||
AC_CHECK_HEADERS([libxml/xmlmemory.h])
|
||||
--
|
||||
2.34.1
|
||||
|
||||
AC_CHECK_HEADERS([libxml/xmlmemory.h])
|
||||
@@ -1,6 +1,7 @@
|
||||
From 778a2e6ac9c5d643d236b854e53f4a71d525df57 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?J=C3=B6rg=20Sommer?= <joerg.sommer@navimatix.de>
|
||||
Date: Thu, 14 Mar 2024 08:08:13 +0100
|
||||
Subject: [PATCH 1/2] configure: Use AX_PROG_CC_FOR_BUILD for cross compiling
|
||||
Subject: [PATCH 2/2] configure: Use AX_PROG_CC_FOR_BUILD for cross compiling
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
@@ -12,21 +13,23 @@ time.
|
||||
[1]: https://www.gnu.org/software/autoconf-archive/ax_prog_cc_for_build.html
|
||||
[2]: https://stackoverflow.com/questions/24201260/autotools-cross-compilation-and-generated-sources/24208587#24208587
|
||||
|
||||
Upstream-Status: Submitted [https://github.com/freeswitch/spandsp/pull/109]
|
||||
|
||||
Signed-off-by: Jörg Sommer <joerg.sommer@navimatix.de>
|
||||
Upstream-Status: Submitted [https://github.com/freeswitch/spandsp/pull/74]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
configure.ac | 49 +-------------------------------------------
|
||||
src/Makefile.am | 54 +++++++++++++++++++++++++------------------------
|
||||
2 files changed, 29 insertions(+), 74 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 96fd022..2140837 100644
|
||||
index bc40690..62310b4 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -55,54 +55,7 @@ AC_LANG([C])
|
||||
|
||||
|
||||
AX_COMPILER_VENDOR
|
||||
|
||||
|
||||
-if test "${build}" != "${host}"
|
||||
-then
|
||||
- # If we are doing a Canadian Cross, in which the host and build systems
|
||||
@@ -76,76 +79,76 @@ index 96fd022..2140837 100644
|
||||
- CXXFLAGS=${CXXFLAGS-"-g -O2"}
|
||||
-fi
|
||||
+AX_PROG_CC_FOR_BUILD
|
||||
|
||||
|
||||
AC_DEFUN([REMOVE_FROM_VAR],[
|
||||
new_val=""
|
||||
diff --git a/src/Makefile.am b/src/Makefile.am
|
||||
index e05fad5..9b409a1 100644
|
||||
index f5c7cc9..d0706dd 100644
|
||||
--- a/src/Makefile.am
|
||||
+++ b/src/Makefile.am
|
||||
@@ -386,44 +386,46 @@ noinst_HEADERS = cielab_luts.h \
|
||||
@@ -394,44 +394,46 @@ noinst_HEADERS = cielab_luts.h \
|
||||
v34_tx_pre_emphasis_filters.h \
|
||||
v34_tables.h
|
||||
|
||||
|
||||
-make_at_dictionary$(EXEEXT): $(top_srcdir)/src/make_at_dictionary.c
|
||||
- $(CC_FOR_BUILD) -o make_at_dictionary$(EXEEXT) $(top_srcdir)/src/make_at_dictionary.c -DHAVE_CONFIG_H -I$(top_builddir)/src
|
||||
+LINK_FOR_BUILD.c = $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I$(top_builddir)/src $(CFLAGS_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $(TARGET_ARCH_FOR_BUILD)
|
||||
|
||||
|
||||
-make_cielab_luts$(EXEEXT): $(top_srcdir)/src/make_cielab_luts.c
|
||||
- $(CC_FOR_BUILD) -o make_cielab_luts$(EXEEXT) $(top_srcdir)/src/make_cielab_luts.c -DHAVE_CONFIG_H -I$(top_builddir)/src -lm
|
||||
+make_at_dictionary$(BUILD_EXEEXT): $(top_srcdir)/src/make_at_dictionary.c
|
||||
+ $(LINK_FOR_BUILD.c) -o $@ $^
|
||||
|
||||
|
||||
-make_math_fixed_tables$(EXEEXT): $(top_srcdir)/src/make_math_fixed_tables.c
|
||||
- $(CC_FOR_BUILD) -o make_math_fixed_tables$(EXEEXT) $(top_srcdir)/src/make_math_fixed_tables.c -DHAVE_CONFIG_H -I$(top_builddir)/src -lm
|
||||
+make_cielab_luts$(BUILD_EXEEXT): $(top_srcdir)/src/make_cielab_luts.c
|
||||
+ $(LINK_FOR_BUILD.c) -o $@ $^ -lm
|
||||
|
||||
|
||||
-make_modem_filter$(EXEEXT): $(top_srcdir)/src/make_modem_filter.c $(top_srcdir)/src/filter_tools.c
|
||||
- $(CC_FOR_BUILD) -o make_modem_filter$(EXEEXT) $(top_srcdir)/src/make_modem_filter.c $(top_srcdir)/src/filter_tools.c -DHAVE_CONFIG_H -I$(top_builddir)/src -lm
|
||||
+make_math_fixed_tables$(BUILD_EXEEXT): $(top_srcdir)/src/make_math_fixed_tables.c
|
||||
+ $(LINK_FOR_BUILD.c) -o $@ $^ -lm
|
||||
|
||||
-make_modem_godard_coefficients$(EXEEXT): $(top_srcdir)/src/make_modem_godard_coefficients.c $(top_srcdir)/src/filter_tools.c
|
||||
- $(CC_FOR_BUILD) -o make_modem_godard_coefficients$(EXEEXT) $(top_srcdir)/src/make_modem_godard_coefficients.c $(top_srcdir)/src/filter_tools.c -DHAVE_CONFIG_H -I$(top_builddir)/src -lm
|
||||
|
||||
-make_modem_godard_descriptor$(EXEEXT): $(top_srcdir)/src/make_modem_godard_descriptor.c $(top_srcdir)/src/filter_tools.c
|
||||
- $(CC_FOR_BUILD) -o make_modem_godard_descriptor$(EXEEXT) $(top_srcdir)/src/make_modem_godard_descriptor.c $(top_srcdir)/src/filter_tools.c -DHAVE_CONFIG_H -I$(top_builddir)/src -lm
|
||||
+make_modem_filter$(BUILD_EXEEXT): $(top_srcdir)/src/make_modem_filter.c $(top_srcdir)/src/filter_tools.c
|
||||
+ $(LINK_FOR_BUILD.c) -o $@ $^ -lm
|
||||
|
||||
|
||||
-make_t43_gray_code_tables$(EXEEXT): $(top_srcdir)/src/make_t43_gray_code_tables.c
|
||||
- $(CC_FOR_BUILD) -o make_t43_gray_code_tables$(EXEEXT) $(top_srcdir)/src/make_t43_gray_code_tables.c -DHAVE_CONFIG_H -I$(top_builddir)/src -lm
|
||||
+make_modem_godard_coefficients$(BUILD_EXEEXT): $(top_srcdir)/src/make_modem_godard_coefficients.c $(top_srcdir)/src/filter_tools.c
|
||||
+make_modem_godard_descriptor$(BUILD_EXEEXT): $(top_srcdir)/src/make_modem_godard_descriptor.c $(top_srcdir)/src/filter_tools.c
|
||||
+ $(LINK_FOR_BUILD.c) -o $@ $^ -lm
|
||||
|
||||
|
||||
-make_v17_v32_constellation_map$(EXEEXT): $(top_srcdir)/src/make_v17_v32_constellation_map.c $(top_srcdir)/src/g711.c $(top_srcdir)/src/alloc.c
|
||||
- $(CC_FOR_BUILD) -o make_v17_v32_constellation_map$(EXEEXT) $(top_srcdir)/src/make_v17_v32_constellation_map.c $(top_srcdir)/src/g711.c $(top_srcdir)/src/alloc.c -DHAVE_CONFIG_H -I$(top_builddir)/src -lm
|
||||
+make_t43_gray_code_tables$(BUILD_EXEEXT): $(top_srcdir)/src/make_t43_gray_code_tables.c
|
||||
+ $(LINK_FOR_BUILD.c) -o $@ $^ -lm
|
||||
|
||||
|
||||
-make_v17_v32_convolutional_encoder$(EXEEXT): $(top_srcdir)/src/make_v17_v32_convolutional_encoder.c $(top_srcdir)/src/g711.c $(top_srcdir)/src/alloc.c
|
||||
- $(CC_FOR_BUILD) -o make_v17_v32_convolutional_encoder$(EXEEXT) $(top_srcdir)/src/make_v17_v32_convolutional_encoder.c $(top_srcdir)/src/g711.c $(top_srcdir)/src/alloc.c -DHAVE_CONFIG_H -I$(top_builddir)/src -lm
|
||||
+make_v17_v32_constellation_map$(BUILD_EXEEXT): $(top_srcdir)/src/make_v17_v32_constellation_map.c $(top_srcdir)/src/g711.c $(top_srcdir)/src/alloc.c
|
||||
+ $(LINK_FOR_BUILD.c) -o $@ $^ -lm
|
||||
|
||||
|
||||
-make_v29_constellation_map$(EXEEXT): $(top_srcdir)/src/make_v29_constellation_map.c $(top_srcdir)/src/g711.c $(top_srcdir)/src/alloc.c
|
||||
- $(CC_FOR_BUILD) -o make_v29_constellation_map$(EXEEXT) $(top_srcdir)/src/make_v29_constellation_map.c $(top_srcdir)/src/g711.c $(top_srcdir)/src/alloc.c -DHAVE_CONFIG_H -I$(top_builddir)/src -lm
|
||||
+make_v17_v32_convolutional_encoder$(BUILD_EXEEXT): $(top_srcdir)/src/make_v17_v32_convolutional_encoder.c $(top_srcdir)/src/g711.c $(top_srcdir)/src/alloc.c
|
||||
+ $(LINK_FOR_BUILD.c) -o $@ $^ -lm
|
||||
|
||||
|
||||
-make_v34_convolutional_coders$(EXEEXT): $(top_srcdir)/src/make_v34_convolutional_coders.c
|
||||
- $(CC_FOR_BUILD) -o make_v34_convolutional_coders$(EXEEXT) $(top_srcdir)/src/make_v34_convolutional_coders.c -DHAVE_CONFIG_H -I$(top_builddir)/src -lm
|
||||
+make_v29_constellation_map$(BUILD_EXEEXT): $(top_srcdir)/src/make_v29_constellation_map.c $(top_srcdir)/src/g711.c $(top_srcdir)/src/alloc.c
|
||||
+ $(LINK_FOR_BUILD.c) -o $@ $^ -lm
|
||||
|
||||
|
||||
-make_v34_probe_signals$(EXEEXT): $(top_srcdir)/src/make_v34_probe_signals.c $(top_srcdir)/src/g711.c $(top_srcdir)/src/alloc.c
|
||||
- $(CC_FOR_BUILD) -o make_v34_probe_signals$(EXEEXT) $(top_srcdir)/src/make_v34_probe_signals.c $(top_srcdir)/src/g711.c $(top_srcdir)/src/alloc.c -DHAVE_CONFIG_H -I$(top_builddir)/src -lm
|
||||
+make_v34_convolutional_coders$(BUILD_EXEEXT): $(top_srcdir)/src/make_v34_convolutional_coders.c
|
||||
+ $(LINK_FOR_BUILD.c) -o $@ $^ -lm
|
||||
|
||||
|
||||
-make_v34_shell_map$(EXEEXT): $(top_srcdir)/src/make_v34_shell_map.c
|
||||
- $(CC_FOR_BUILD) -o make_v34_shell_map$(EXEEXT) $(top_srcdir)/src/make_v34_shell_map.c -DHAVE_CONFIG_H -I$(top_builddir)/src
|
||||
+make_v34_probe_signals$(BUILD_EXEEXT): $(top_srcdir)/src/make_v34_probe_signals.c $(top_srcdir)/src/g711.c $(top_srcdir)/src/alloc.c
|
||||
+ $(LINK_FOR_BUILD.c) -o $@ $^ -I$(top_srcdir)/src -lm
|
||||
|
||||
|
||||
-make_v34_tx_pre_emphasis_filters$(EXEEXT): $(top_srcdir)/src/make_v34_tx_pre_emphasis_filters.c $(top_srcdir)/tools/meteor-engine.c
|
||||
- $(CC_FOR_BUILD) -o make_v34_tx_pre_emphasis_filters$(EXEEXT) $(top_srcdir)/src/make_v34_tx_pre_emphasis_filters.c $(top_srcdir)/tools/meteor-engine.c -DHAVE_CONFIG_H -I$(top_builddir)/src -I$(top_builddir)/tools -lm
|
||||
+make_v34_shell_map$(BUILD_EXEEXT): $(top_srcdir)/src/make_v34_shell_map.c
|
||||
@@ -153,9 +156,6 @@ index e05fad5..9b409a1 100644
|
||||
+
|
||||
+make_v34_tx_pre_emphasis_filters$(BUILD_EXEEXT): $(top_srcdir)/src/make_v34_tx_pre_emphasis_filters.c $(top_srcdir)/tools/meteor-engine.c
|
||||
+ $(LINK_FOR_BUILD.c) -o $@ $^ -I$(top_srcdir)/tools -lm
|
||||
|
||||
|
||||
# We need to run make_at_dictionary, so it generates the
|
||||
# at_interpreter_dictionary.h file
|
||||
--
|
||||
2.34.1
|
||||
|
||||
@@ -20,14 +20,13 @@ PV = "3.0.0+git"
|
||||
|
||||
SRC_URI = "\
|
||||
git://github.com/freeswitch/spandsp.git;protocol=https;branch=master \
|
||||
file://configure.patch \
|
||||
file://makefile.patch \
|
||||
file://0001-configure-Replace-manual-search-for-libxml-by-AC_CHE.patch \
|
||||
file://0002-configure-Use-AX_PROG_CC_FOR_BUILD-for-cross-compili.patch \
|
||||
"
|
||||
# Fails to build with Clang since 5394b2cae6c482ccb835335b769469977e6802ae
|
||||
# https://github.com/freeswitch/spandsp/issues/67
|
||||
# https://lists.openembedded.org/g/openembedded-devel/message/109325
|
||||
SRCREV = "df1282eb9af538ab1aadb6d66146e258451d4fe4"
|
||||
|
||||
SRCREV = "797760168945c96e91af55bde9d4edaea2e654f9"
|
||||
|
||||
inherit autotools
|
||||
|
||||
|
||||
Reference in New Issue
Block a user