From b6e34c45a22379fce5f5b948b2d60fc3146ee5f6 Mon Sep 17 00:00:00 2001
From: Richard Muzik <richard.muzik@nic.cz>
Date: Tue, 2 Jul 2024 09:50:24 +0200
Subject: [PATCH] Revert "patches/telephony/baresip: fix init script and
 parallel build"

This reverts commit 269671362514d54c675bf5fe38bd74caf63161d3.
---
 ...01-baresip-use-return-in-init-script.patch | 31 ---------
 .../0002-baresip-fix-parallel-build.patch     | 68 -------------------
 2 files changed, 99 deletions(-)
 delete mode 100644 patches/telephony/pending/0001-baresip-use-return-in-init-script.patch
 delete mode 100644 patches/telephony/pending/0002-baresip-fix-parallel-build.patch

diff --git a/patches/telephony/pending/0001-baresip-use-return-in-init-script.patch b/patches/telephony/pending/0001-baresip-use-return-in-init-script.patch
deleted file mode 100644
index 9819e5f3a..000000000
--- a/patches/telephony/pending/0001-baresip-use-return-in-init-script.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From 83c0aef587c7d86819376b35003dc5f6c62ab72d Mon Sep 17 00:00:00 2001
-From: Sebastian Kemper <sebastian_ml@gmx.net>
-Date: Tue, 8 Nov 2022 21:10:52 +0100
-Subject: [PATCH 1/2] baresip: use return in init script
-
-"start_service()" is a function, hence "return" should be used instead
-of "exit".
-
-Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
-(cherry picked from commit b69ae7b9344228e1e83aaee2f62cebbd599c1388)
-Signed-off-by: Richard Muzik <richard.muzik@nic.cz>
----
- net/baresip/files/baresip.init | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/net/baresip/files/baresip.init b/net/baresip/files/baresip.init
-index 72149be..d48e5d6 100644
---- a/net/baresip/files/baresip.init
-+++ b/net/baresip/files/baresip.init
-@@ -21,7 +21,7 @@ start_service() {
-   if [ "$ENABLE_BARESIP" != yes ]; then
-     $LOGGER User configuration incomplete - not starting $DAEMON
-     $LOGGER Check ENABLE_BARESIP in $DEFAULT
--    exit 1
-+    return 1
-   fi
- 
-   procd_open_instance
--- 
-2.45.2
-
diff --git a/patches/telephony/pending/0002-baresip-fix-parallel-build.patch b/patches/telephony/pending/0002-baresip-fix-parallel-build.patch
deleted file mode 100644
index 9a263aa60..000000000
--- a/patches/telephony/pending/0002-baresip-fix-parallel-build.patch
+++ /dev/null
@@ -1,68 +0,0 @@
-From 865469f45a9b9c32e2ec4b02d4649dd76d9183b3 Mon Sep 17 00:00:00 2001
-From: Eneas U de Queiroz <cotequeiroz@gmail.com>
-Date: Fri, 10 Feb 2023 08:30:44 -0300
-Subject: [PATCH 2/2] baresip: fix parallel build
-
-Include an upstream patch to fix random parallel build failures, such
-as:
-
-  CC [M]  build-arm/modules/ctrl_dbus/ctrl_dbus.o
-modules/ctrl_dbus/ctrl_dbus.c:69:10: fatal error: baresipbus.h: No such
-file or directory
-   69 | #include "baresipbus.h"
-      |          ^~~~~~~~~~~~~~
-
-Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
-(cherry picked from commit d1d08eae09fc09f610a3cac76d9710c16ee641ef)
-Signed-off-by: Richard Muzik <richard.muzik@nic.cz>
----
- net/baresip/Makefile                          |  2 +-
- .../patches/010-fix-parallel-build.patch      | 23 +++++++++++++++++++
- 2 files changed, 24 insertions(+), 1 deletion(-)
- create mode 100644 net/baresip/patches/010-fix-parallel-build.patch
-
-diff --git a/net/baresip/Makefile b/net/baresip/Makefile
-index 225ebf2..a377d8e 100644
---- a/net/baresip/Makefile
-+++ b/net/baresip/Makefile
-@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
- 
- PKG_NAME:=baresip
- PKG_VERSION:=1.1.0
--PKG_RELEASE:=$(AUTORELEASE)
-+PKG_RELEASE:=6
- 
- PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
- PKG_SOURCE_URL:=https://codeload.github.com/baresip/baresip/tar.gz/v$(PKG_VERSION)?
-diff --git a/net/baresip/patches/010-fix-parallel-build.patch b/net/baresip/patches/010-fix-parallel-build.patch
-new file mode 100644
-index 0000000..25f9013
---- /dev/null
-+++ b/net/baresip/patches/010-fix-parallel-build.patch
-@@ -0,0 +1,23 @@
-+From d7aeb9393876af3746dacdbacd70c4a5d6dfcf39 Mon Sep 17 00:00:00 2001
-+From: Christian Spielberger <c.spielberger@commend.com>
-+Date: Sun, 23 May 2021 10:01:04 +0200
-+Subject: [PATCH] ctrl_dbus: add dependency to baresipbus.h (#1447) (#1457)
-+
-+---
-+ modules/ctrl_dbus/module.mk | 5 ++++-
-+ 1 file changed, 4 insertions(+), 1 deletion(-)
-+
-+--- a/modules/ctrl_dbus/module.mk
-++++ b/modules/ctrl_dbus/module.mk
-+@@ -16,7 +16,10 @@ $(MOD)_CFLAGS	+= -Wno-unused-parameter -
-+ 
-+ $(MOD)_CCHECK_OPT	= -e baresipbus.h -e baresipbus.c
-+ 
-+-modules/ctrl_dbus/baresipbus.h modules/ctrl_dbus/baresipbus.c: \
-++modules/$(MOD)/baresipbus.o :	modules/$(MOD)/baresipbus.h
-++modules/$(MOD)/ctrl_dbus.o :	modules/$(MOD)/baresipbus.h
-++
-++modules/$(MOD)/baresipbus.h modules/$(MOD)/baresipbus.c: \
-+ 	modules/ctrl_dbus/com.github.Baresip.xml
-+ 	@cd $(dir $@) && ./gen.sh
-+ 
--- 
-2.45.2
-
-- 
GitLab