All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 01/49 v2] package/asterisk: new package
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-09 22:12   ` Marcus Hoffmann
  2017-09-23 17:13   ` Arnout Vandecappelle
  2017-09-09 21:39 ` [Buildroot] [PATCH 02/49 v2] package/asterisk: enable backtrace when available Yann E. MORIN
                   ` (48 subsequent siblings)
  49 siblings, 2 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

Asterisk: the flagship of telephony on Linux. These are the lines of
code whose continuous mission is to power small and large enterprises
telephony systems, to boldly provide IP PBX where no one has done so
before.

But it is a hell to get compiled... :-(

For starters, it needs a host tool, menuselect, to prepare its build
configuration. Unfortunately, the way it handles menuselect does not
paly very well for cross-compilation: the main ./configure calls out to
menuselect's own ./configure, and of course that runs with the same
environement, which is wrong for croos-compilation (because of variables
like CC, CFLAGS and the likes).

Furthermore, the paths to menuselect are imbricated about everywhere in
the main Makefile, so making it find menuselect in PATH is a lost cause.

Instead, we just patch-out the handling of menuselect, build it as the
host variant and copy it in place.

Now, asterisk wants to install a default set of sound files (for
answering machine stuff, I guess). They come come pre-bundled in the
official archive [0], but the buildsystem will want to download (at
install time) the sah1 files for each sound archive, to validate that
said archive is correct. However, the download is done via plain http,
so it still risks an MITM attack. And for Buildroot, it is not always
possible to download at install time, so we patch-out the sha1 check.

[0] http://downloads.asterisk.org/pub/telephony/asterisk/releases/

The official archive contains the sound archives plus a full set of
documentation. This makes it very big. Unfotunately, the hosting site is
rather slow, topping at about ~204kbps. So we get the archive from the
official mirror on Github. But that archive is missing the sound
archives, so we download them separately.

Some tests, like the crypt() one, are broken and could not have ever
possibly worked at all. Worse, the FFmpeg test is looking for headers
that FFmpeg removed more than 10 years ago and are virtually no longer
available in any distro. So, FFmpeg support is definitely not tested
by upstream and can't possibly work at all. Finally, trying to run
test-code does not work in cross-compilation.

As a final stroke of genius, asterisk checks for the re-entrant variant
of res_ninit(), and concludes that all such functions are available, of
which res_nsearch(). Uclibc-ng has the former but not the latter, so the
build fails. Since there is no cache variable for that check, we can't
pre-feed that result to configure, and fixing it is a bigger endeavour.
So we make asterisk depend on glibc for now, until someone is brave
enough to fix it.

Almost all features are disabled for now. Support for additional
features will be added in subsequent patches now that we have a working
base.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Romain Naour <romain.naour@openwide.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

---
Changes v1 -> v2:
  - fix typo in variable name  (Romain)
  - set LDCONFIG=true to avoid running ldconfig from the host  (Romain)
  - build menuselect as a host package  (Thomas)
  - fix/cleanup the menuselect build wrt. libxml2

---
Note: this is not the truly latest version, because each time I work to
update the packaging in Buildroot, upstream decides to release a new
version in the following days... So I stop playing catch-me-if-you-can
and just submit it now. We can still update later. ;-)
---
 package/Config.in                                  |   1 +
 ...-configure-do-not-configure-in-menuselect.patch |  58 +++++++
 ...02-sounds-do-not-download-and-check-sha1s.patch |  52 +++++++
 .../0003-configure-fix-detection-of-libcrypt.patch |  43 +++++
 ...n-cross-complation-assimne-eventfd-are-av.patch |  37 +++++
 package/asterisk/Config.in                         |  25 +++
 package/asterisk/asterisk.hash                     |   9 ++
 package/asterisk/asterisk.mk                       | 173 +++++++++++++++++++++
 8 files changed, 398 insertions(+)
 create mode 100644 package/asterisk/0001-configure-do-not-configure-in-menuselect.patch
 create mode 100644 package/asterisk/0002-sounds-do-not-download-and-check-sha1s.patch
 create mode 100644 package/asterisk/0003-configure-fix-detection-of-libcrypt.patch
 create mode 100644 package/asterisk/0004-configure-in-cross-complation-assimne-eventfd-are-av.patch
 create mode 100644 package/asterisk/Config.in
 create mode 100644 package/asterisk/asterisk.hash
 create mode 100644 package/asterisk/asterisk.mk

diff --git a/package/Config.in b/package/Config.in
index d926f7e020..9df758e796 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1568,6 +1568,7 @@ menu "Networking applications"
 	source "package/argus/Config.in"
 	source "package/arp-scan/Config.in"
 	source "package/arptables/Config.in"
+	source "package/asterisk/Config.in"
 	source "package/atftp/Config.in"
 	source "package/autossh/Config.in"
 	source "package/avahi/Config.in"
diff --git a/package/asterisk/0001-configure-do-not-configure-in-menuselect.patch b/package/asterisk/0001-configure-do-not-configure-in-menuselect.patch
new file mode 100644
index 0000000000..33c917d7fa
--- /dev/null
+++ b/package/asterisk/0001-configure-do-not-configure-in-menuselect.patch
@@ -0,0 +1,58 @@
+From cc5daff874779475742bdb89a9328bb4fc4c4e09 Mon Sep 17 00:00:00 2001
+From: "Yann E. MORIN" <yann.morin.1998@free.fr>
+Date: Tue, 27 Dec 2016 11:20:19 +0100
+Subject: [PATCH] configure: do not configure in menuselect
+
+When cross-compiling, the arguments and environment for ./configure are
+different for the host and the target, and we want menuselect to be
+compiled for the build machine, not the target.
+
+Although we do not pass any option to ./configure for menuselect, the
+environment may still reference variables for the tagert, like CC or
+CFLAGS and so on... We can not build menuselect with those variables.
+
+Intead, just assume that menuselect will be pre-compiled.
+
+Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
+---
+ configure    | 16 ----------------
+ configure.ac | 16 ----------------
+ 2 files changed, 32 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 66c8971..121dd93 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -2662,12 +2662,6 @@ fi
+ 
+ AC_SUBST([PBX_SYSLOG])
+ 
+-if test -f makeopts; then
+-	${ac_cv_path_EGREP} 'CURSES|GTK2|OSARCH|NEWT' makeopts > makeopts.acbak
+-else
+-	touch makeopts.acbak
+-fi
+-
+ AC_CONFIG_FILES([build_tools/menuselect-deps makeopts])
+ AST_CHECK_MANDATORY
+ 
+@@ -2683,16 +2677,6 @@ fi
+ 
+ AC_OUTPUT
+ 
+-${ac_cv_path_EGREP} 'CURSES|GTK2|OSARCH|NEWT' makeopts > makeopts.acbak2
+-if test "x${ac_cv_path_CMP}" = "x:"; then
+-	( cd `pwd`/menuselect && ./configure )
+-else if ${ac_cv_path_CMP} -s makeopts.acbak makeopts.acbak2; then : ; else
+-	( cd `pwd`/menuselect && ./configure )
+-fi ; fi
+-
+-rm makeopts.acbak makeopts.acbak2
+-
+-
+ if test "x${silent}" != "xyes" ; then
+ echo
+ echo "               .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=..      "
+-- 
+2.7.4
+
diff --git a/package/asterisk/0002-sounds-do-not-download-and-check-sha1s.patch b/package/asterisk/0002-sounds-do-not-download-and-check-sha1s.patch
new file mode 100644
index 0000000000..8412843d13
--- /dev/null
+++ b/package/asterisk/0002-sounds-do-not-download-and-check-sha1s.patch
@@ -0,0 +1,52 @@
+From 3e8a9e9a1c7eae515eb628778c3c8a04338b3bb3 Mon Sep 17 00:00:00 2001
+From: "Yann E. MORIN" <yann.morin.1998@free.fr>
+Date: Tue, 27 Dec 2016 11:21:09 +0100
+Subject: [PATCH] sounds: do not download and check sha1s
+
+To validate the sound archives, the corresponding sha1s are also
+downloaded from the same location, and that download is done at install
+time.
+
+However, that poses at least two problems:
+
+  - in Buildroot, we already have validated the downloads with the sha1s
+    anyway, and trying to download anything at install time is not
+    always possible (e.g. for off-line builds);
+
+  - since the download scheme is not secured (plain http), a
+    man-in-the-middle for the sounds will also be able to MITM the
+    download of the sha1s, so there is absolutely no additional safety
+    in doing so.
+
+So we just do without the sha1 download and checks.
+
+Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
+---
+ sounds/Makefile | 10 ----------
+ 1 file changed, 10 deletions(-)
+
+diff --git a/sounds/Makefile b/sounds/Makefile
+index 84d0f45..7a80d56 100644
+--- a/sounds/Makefile
++++ b/sounds/Makefile
+@@ -100,17 +100,7 @@ ifneq ($(SOUNDS_CACHE_DIR),)
+ 	  if test ! -f "$$(SOUNDS_CACHE_DIR)/$$@"; then \
+ 	    (cd "$$(SOUNDS_CACHE_DIR)"; $$(DOWNLOAD) $$(SOUNDS_URL)/$$@); \
+ 	  fi; \
+-	  if test ! -f "$$(SOUNDS_CACHE_DIR)/$$@.sha1"; then \
+-	    (cd "$$(SOUNDS_CACHE_DIR)"; $$(DOWNLOAD) $$(SOUNDS_URL)/$$@.sha1); \
+-	  fi; \
+ 	  $$(LN) -sf "$$(SOUNDS_CACHE_DIR)/$$@" .; \
+-	  $$(LN) -sf "$$(SOUNDS_CACHE_DIR)/$$@.sha1" .; \
+-	  $$(SHA1SUM) -c --status $$@.sha1 || \
+-	    ( \
+-	      rm -f "$$(SOUNDS_CACHE_DIR)/$$@" "$$(SOUNDS_CACHE_DIR)/$$@.sha1" $$@ $$@.sha1; \
+-	      echo "Bad checksum: $$@" 1>&2; \
+-	      exit 1; \
+-	    ) || exit 1; \
+ 	fi
+ else
+ 	$(CMD_PREFIX) \
+-- 
+2.7.4
+
diff --git a/package/asterisk/0003-configure-fix-detection-of-libcrypt.patch b/package/asterisk/0003-configure-fix-detection-of-libcrypt.patch
new file mode 100644
index 0000000000..b92fc9a13d
--- /dev/null
+++ b/package/asterisk/0003-configure-fix-detection-of-libcrypt.patch
@@ -0,0 +1,43 @@
+From 8996503f6c55e55f326ab11c18278954ad7abaf3 Mon Sep 17 00:00:00 2001
+From: "Yann E. MORIN" <yann.morin.1998@free.fr>
+Date: Tue, 27 Dec 2016 11:21:57 +0100
+Subject: [PATCH] configure: fix detection of libcrypt
+
+The crypt() function is searched in two locations: -lcrypt and the
+standard C library.
+
+The result of the forner is stored in the LIBCRYPT 'scheme' while that
+of the latter is stored in the 'SYSCRYPT' scheme.
+
+However, the check for mandatory modules looks at the CRYPT 'scheme',
+and thus concludes that crypt is missing when it was successfully found.
+
+Fix that by also storing the result of either check in the 'CRYPT'
+scheme.
+
+Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
+---
+ configure    | 2 ++
+ configure.ac | 2 ++
+ 2 files changed, 4 insertions(+)
+
+diff --git a/configure.ac b/configure.ac
+index 121dd93..d459ff5 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -2406,10 +2406,12 @@ AC_CHECK_FUNC([crypt], [SYSCRYPT=true], [SYSCRYPT=""])
+ if test "x$LIBCRYPT_LIB" != "x" ; then
+     CRYPT_LIB="$LIBCRYPT_LIB"
+     CRYPT_INCLUDE="$LIBCRYPT_INCLUDE"
++    PBX_CRYPT=1
+     AC_DEFINE([HAVE_CRYPT], [1], [Define to 1 if you have the 'crypt' function.])
+ elif test "x$SYSCRYPT" != "x" ; then
+     CRYPT_LIB=""
+     CRYPT_INCLUDE=""
++    PBX_CRYPT=1
+     AC_DEFINE([HAVE_CRYPT], [1], [Define to 1 if you have the 'crypt' function.])
+ fi
+ 
+-- 
+2.7.4
+
diff --git a/package/asterisk/0004-configure-in-cross-complation-assimne-eventfd-are-av.patch b/package/asterisk/0004-configure-in-cross-complation-assimne-eventfd-are-av.patch
new file mode 100644
index 0000000000..38214c38c0
--- /dev/null
+++ b/package/asterisk/0004-configure-in-cross-complation-assimne-eventfd-are-av.patch
@@ -0,0 +1,37 @@
+From e7de812c979d219765fbf1292f0e150bfa087716 Mon Sep 17 00:00:00 2001
+From: "Yann E. MORIN" <yann.morin.1998@free.fr>
+Date: Sun, 18 Jun 2017 21:54:16 +0200
+Subject: [PATCH] configure: in cross-complation, assume eventfd are available
+
+eventfd have been in the kernel since 2.6.22, and in glibc since 2.8,
+repectively released in July 2007 and April 2008, almost a decade ago
+now.
+
+Assume that noone building from now on for cross-compilation will be
+unlucky enough to get versions older than that...
+
+As such, in cross-compilation, assumne eventfd are available.
+
+Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
+---
+ configure.ac | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 1c20517864..474d17ae55 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1107,7 +1107,9 @@ AC_RUN_IFELSE(
+       [return eventfd(0, EFD_NONBLOCK | EFD_SEMAPHORE) == -1;])],
+   AC_MSG_RESULT(yes)
+   AC_DEFINE([HAVE_EVENTFD], 1, [Define to 1 if your system supports eventfd and the EFD_NONBLOCK and EFD_SEMAPHORE flags.]),
+-  AC_MSG_RESULT(no)
++  AC_MSG_RESULT(no),
++  AC_MSG_RESULT([cross-compile; assume yes])
++  AC_DEFINE([HAVE_EVENTFD], 1, [Define to 1 if your system supports eventfd and the EFD_NONBLOCK and EFD_SEMAPHORE flags.])
+ )
+ 
+ AST_GCC_ATTRIBUTE(pure)
+-- 
+2.11.0
+
diff --git a/package/asterisk/Config.in b/package/asterisk/Config.in
new file mode 100644
index 0000000000..202dae39ac
--- /dev/null
+++ b/package/asterisk/Config.in
@@ -0,0 +1,25 @@
+config BR2_PACKAGE_ASTERISK
+	bool "asterisk"
+	# Uses glibc resolver function res_nsearch()
+	depends on BR2_TOOLCHAIN_USES_GLIBC
+	depends on BR2_INSTALL_LIBSTDCPP
+	select BR2_PACKAGE_JANSSON
+	select BR2_PACKAGE_LIBCURL
+	select BR2_PACKAGE_LIBXML2
+	select BR2_PACKAGE_NCURSES
+	select BR2_PACKAGE_SQLITE
+	select BR2_PACKAGE_UTIL_LINUX
+	select BR2_PACKAGE_UTIL_LINUX_LIBUUID
+	help
+	  Asterisk is an open source framework for building
+	  communications applications. Asterisk turns an ordinary
+	  computer into a communications server. Asterisk powers
+	  IP PBX systems, VoIP gateways, conference servers and
+	  other custom solutions. It is used by small businesses,
+	  large businesses, call centers, carriers and government
+	  agencies, worldwide. Asterisk is free and open source.
+
+	  http://www.asterisk.org/
+
+comment "asterisk needs a glibc toolchain w/ C++"
+	depends on !BR2_TOOLCHAIN_USES_GLIBC || !BR2_INSTALL_LIBSTDCPP
diff --git a/package/asterisk/asterisk.hash b/package/asterisk/asterisk.hash
new file mode 100644
index 0000000000..5c4ba44d93
--- /dev/null
+++ b/package/asterisk/asterisk.hash
@@ -0,0 +1,9 @@
+# Locally computed
+sha256  c122fbe88e089737fa2c80356762ceed38498aa26da1dfdd4da5506f9b135696  asterisk-14.5.0.tar.gz
+
+# sha1 from: http://downloads.asterisk.org/pub/telephony/sounds/releases
+# sha256 locally computed
+sha1    65ee068462c6645ed14a28d6b34eb0e9aa7a6c8d                          asterisk-core-sounds-en-gsm-1.5.tar.gz
+sha256  8d1118c6e0a0c614fafe297e3789f924ef5b04285cf6a8cffb8501dfcf5bbf07  asterisk-core-sounds-en-gsm-1.5.tar.gz
+sha1    f40fd6ea03dfe8d72ada2540b2288bfdc006381d                          asterisk-moh-opsound-wav-2.03.tar.gz
+sha256  449fb810d16502c3052fedf02f7e77b36206ac5a145f3dacf4177843a2fcb538  asterisk-moh-opsound-wav-2.03.tar.gz
diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
new file mode 100644
index 0000000000..21326ab046
--- /dev/null
+++ b/package/asterisk/asterisk.mk
@@ -0,0 +1,173 @@
+################################################################################
+#
+# asterisk
+#
+################################################################################
+
+ASTERISK_VERSION = 14.5.0
+# Use the github mirror: it's an official mirror maintained by Digium, and
+# provides tarballs, which the main Asterisk git tree (behind Gerrit) does not.
+ASTERISK_SITE = $(call github,asterisk,asterisk,$(ASTERISK_VERSION))
+
+ASTERISK_SOUNDS_BASE_URL = http://downloads.asterisk.org/pub/telephony/sounds/releases
+ASTERISK_EXTRA_DOWNLOADS = \
+	$(ASTERISK_SOUNDS_BASE_URL)/asterisk-core-sounds-en-gsm-1.5.tar.gz \
+	$(ASTERISK_SOUNDS_BASE_URL)/asterisk-moh-opsound-wav-2.03.tar.gz
+
+# For patches 0001, 0003 and 0004
+ASTERISK_AUTORECONF = YES
+ASTERISK_AUTORECONF_OPTS = -Iautoconf -Ithird-party -Ithird-party/pjproject
+
+ASTERISK_DEPENDENCIES = \
+	host-asterisk \
+	jansson \
+	libcurl \
+	libxml2 \
+	ncurses \
+	sqlite \
+	util-linux
+
+# Asterisk wants to run its menuselect tool (a highly tweaked derivative of
+# kconfig), but builds it using the target tools. So we build it in the host
+# variant (see below), and copy the full build tree of menuselect.
+define ASTERISK_COPY_MENUSELECT
+	rm -rf $(@D)/menuselect
+	cp -a $(HOST_ASTERISK_DIR)/menuselect $(@D)/menuselect
+endef
+ASTERISK_PRE_CONFIGURE_HOOKS += ASTERISK_COPY_MENUSELECT
+
+ASTERISK_CONF_OPTS = \
+	--disable-xmldoc \
+	--disable-internal-poll \
+	--disable-asteriskssl \
+	--disable-rpath \
+	--without-asound \
+	--without-bfd \
+	--without-execinfo \
+	--without-bluetooth \
+	--without-cap \
+	--without-cpg \
+	--without-curses \
+	--without-dahdi \
+	--without-gsm \
+	--without-ilbc \
+	--without-gtk2 \
+	--without-gmime \
+	--without-h323 \
+	--without-hoard \
+	--without-ical \
+	--without-iconv \
+	--without-iksemel \
+	--without-imap \
+	--without-inotify \
+	--without-iodbc \
+	--without-isdnnet \
+	--without-jack \
+	--without-uriparser \
+	--without-kqueue \
+	--without-ldap \
+	--without-libedit \
+	--without-libxslt \
+	--without-ltdl \
+	--without-lua \
+	--without-misdn \
+	--without-mysqlclient \
+	--without-nbs \
+	--without-neon \
+	--without-neon29 \
+	--without-netsnmp \
+	--without-newt \
+	--without-ogg \
+	--without-openr2 \
+	--without-opus \
+	--without-osptk \
+	--without-oss \
+	--without-postgres \
+	--without-pjproject \
+	--without-popt \
+	--without-portaudio \
+	--without-pri \
+	--without-pwlib \
+	--without-radius \
+	--without-resample \
+	--without-sdl \
+	--without-SDL_image \
+	--without-spandsp \
+	--without-ss7 \
+	--without-speex \
+	--without-speexdsp \
+	--without-sqlite \
+	--without-srtp \
+	--without-ssl \
+	--without-suppserv \
+	--without-tds \
+	--without-termcap \
+	--without-timerfd \
+	--without-tinfo \
+	--without-tonezone \
+	--without-unbound \
+	--without-unixodbc \
+	--without-vorbis \
+	--without-vpb \
+	--without-x11 \
+	--without-z \
+	--with-crypt \
+	--with-jansson \
+	--with-libcurl \
+	--with-libxml2 \
+	--with-ncurses="$(STAGING_DIR)/usr" \
+	--with-sqlite3="$(STAGING_DIR)/usr" \
+	--with-sounds-cache=$(BR2_DL_DIR)
+
+# avcodec are from ffmpeg. There is virtually zero chance this could
+# even work; asterisk is looking for ffmpeg/avcodec.h which has not
+# been installed in this location since early 2007 (~10 years ago at
+# the time of this writing).
+ASTERISK_CONF_OPTS += --without-avcodec
+
+ASTERISK_CONF_ENV = \
+	ac_cv_path_CONFIG_LIBXML2=$(STAGING_DIR)/usr/bin/xml2-config
+
+ASTERISK_DIRS = \
+	ASTVARLIBDIR="/usr/lib/asterisk" \
+	ASTDATADIR="/usr/lib/asterisk" \
+	ASTKEYDIR="/usr/lib/asterisk" \
+	ASTDBDIR="/usr/lib/asterisk"
+
+ASTERISK_MAKE_OPTS = $(ASTERISK_DIRS)
+
+# We want to install sample configuration files, too.
+ASTERISK_INSTALL_TARGET_OPTS = \
+	$(ASTERISK_DIRS) \
+	DESTDIR=$(TARGET_DIR) \
+	LDCONFIG=true \
+	install samples
+
+$(eval $(autotools-package))
+
+#-------------------------------------------------------------------------------
+# This part deals with building the menuselect tool as a host package
+
+HOST_ASTERISK_DEPENDENCIES = host-pkgconf host-libxml2 host-ncurses
+HOST_ASTERISK_SUBDIR = menuselect
+
+# No need to autoreconf for the host variant,
+# so do not inherit the target setup.
+HOST_ASTERISK_AUTORECONF = NO
+
+HOST_ASTERISK_CONF_ENV = CONFIG_LIBXML2=$(HOST_DIR)/usr/bin/xml2-config
+
+HOST_ASTERISK_CONF_OPTS = \
+	--without-newt \
+	--without-curses \
+	--with-ncurses=$(HOST_DIR)/usr \
+
+# Even though menuselect is an autotools package, it is *not* installed,
+# as asterisk does expect it to be in a sub-directory of its source tree,
+# which do by copying the full menuselect build tree as a pre-configure
+# hook in the target variant.
+define HOST_ASTERISK_INSTALL_CMDS
+	@:
+endef
+
+$(eval $(host-autotools-package))
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 02/49 v2] package/asterisk: enable backtrace when available
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
  2017-09-09 21:39 ` [Buildroot] [PATCH 01/49 v2] package/asterisk: new package Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-09 21:39 ` [Buildroot] [PATCH 03/49 v2] package/asterisk: add optional libgsm dependency Yann E. MORIN
                   ` (47 subsequent siblings)
  49 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

asterisk uses backtrace() from execinfo.h to print beuatiful backtraces
when it fails. But execinfo is only reliably available with glibc, while
it is optionbal in uClibc and completely missing in musl.

So, only enable backtrace support for glibc toolchains.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/asterisk/asterisk.mk | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
index 21326ab046..82d69afe49 100644
--- a/package/asterisk/asterisk.mk
+++ b/package/asterisk/asterisk.mk
@@ -43,7 +43,6 @@ ASTERISK_CONF_OPTS = \
 	--disable-rpath \
 	--without-asound \
 	--without-bfd \
-	--without-execinfo \
 	--without-bluetooth \
 	--without-cap \
 	--without-cpg \
@@ -128,6 +127,12 @@ ASTERISK_CONF_OPTS += --without-avcodec
 ASTERISK_CONF_ENV = \
 	ac_cv_path_CONFIG_LIBXML2=$(STAGING_DIR)/usr/bin/xml2-config
 
+ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),y)
+ASTERISK_CONF_OPTS += --with-execinfo
+else
+ASTERISK_CONF_OPTS += --without-execinfo
+endif
+
 ASTERISK_DIRS = \
 	ASTVARLIBDIR="/usr/lib/asterisk" \
 	ASTDATADIR="/usr/lib/asterisk" \
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 03/49 v2] package/asterisk: add optional libgsm dependency
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
  2017-09-09 21:39 ` [Buildroot] [PATCH 01/49 v2] package/asterisk: new package Yann E. MORIN
  2017-09-09 21:39 ` [Buildroot] [PATCH 02/49 v2] package/asterisk: enable backtrace when available Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-09 21:39 ` [Buildroot] [PATCH 04/49 v2] package/asterisk: add optional zlib dependency Yann E. MORIN
                   ` (46 subsequent siblings)
  49 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/asterisk/asterisk.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
index 82d69afe49..3509783e66 100644
--- a/package/asterisk/asterisk.mk
+++ b/package/asterisk/asterisk.mk
@@ -48,7 +48,6 @@ ASTERISK_CONF_OPTS = \
 	--without-cpg \
 	--without-curses \
 	--without-dahdi \
-	--without-gsm \
 	--without-ilbc \
 	--without-gtk2 \
 	--without-gmime \
@@ -133,6 +132,13 @@ else
 ASTERISK_CONF_OPTS += --without-execinfo
 endif
 
+ifeq ($(BR2_PACKAGE_LIBGSM),y)
+ASTERISK_DEPENDENCIES += libgsm
+ASTERISK_CONF_OPTS += --with-gsm
+else
+ASTERISK_CONF_OPTS += --without-gsm
+endif
+
 ASTERISK_DIRS = \
 	ASTVARLIBDIR="/usr/lib/asterisk" \
 	ASTDATADIR="/usr/lib/asterisk" \
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 04/49 v2] package/asterisk: add optional zlib dependency
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (2 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 03/49 v2] package/asterisk: add optional libgsm dependency Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-09 21:39 ` [Buildroot] [PATCH 05/49 v2] package/asterisk: add optional support for SSL Yann E. MORIN
                   ` (45 subsequent siblings)
  49 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/asterisk/asterisk.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
index 3509783e66..3051a651c2 100644
--- a/package/asterisk/asterisk.mk
+++ b/package/asterisk/asterisk.mk
@@ -108,7 +108,6 @@ ASTERISK_CONF_OPTS = \
 	--without-vorbis \
 	--without-vpb \
 	--without-x11 \
-	--without-z \
 	--with-crypt \
 	--with-jansson \
 	--with-libcurl \
@@ -139,6 +138,13 @@ else
 ASTERISK_CONF_OPTS += --without-gsm
 endif
 
+ifeq ($(BR2_PACKAGE_ZLIB),y)
+ASTERISK_DEPENDENCIES += zlib
+ASTERISK_CONF_OPTS += --with-z
+else
+ASTERISK_CONF_OPTS += --without-z
+endif
+
 ASTERISK_DIRS = \
 	ASTVARLIBDIR="/usr/lib/asterisk" \
 	ASTDATADIR="/usr/lib/asterisk" \
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 05/49 v2] package/asterisk: add optional support for SSL
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (3 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 04/49 v2] package/asterisk: add optional zlib dependency Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-09 21:39 ` [Buildroot] [PATCH 06/49 v2] package/asterisk: add optional alsa-lib dependency Yann E. MORIN
                   ` (44 subsequent siblings)
  49 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/asterisk/asterisk.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
index 3051a651c2..f947362906 100644
--- a/package/asterisk/asterisk.mk
+++ b/package/asterisk/asterisk.mk
@@ -96,7 +96,6 @@ ASTERISK_CONF_OPTS = \
 	--without-speexdsp \
 	--without-sqlite \
 	--without-srtp \
-	--without-ssl \
 	--without-suppserv \
 	--without-tds \
 	--without-termcap \
@@ -138,6 +137,13 @@ else
 ASTERISK_CONF_OPTS += --without-gsm
 endif
 
+ifeq ($(BR2_PACKAGE_OPENSSL),y)
+ASTERISK_DEPENDENCIES += openssl
+ASTERISK_CONF_OPTS += --with-ssl
+else
+ASTERISK_CONF_OPTS += --without-ssl
+endif
+
 ifeq ($(BR2_PACKAGE_ZLIB),y)
 ASTERISK_DEPENDENCIES += zlib
 ASTERISK_CONF_OPTS += --with-z
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 06/49 v2] package/asterisk: add optional alsa-lib dependency
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (4 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 05/49 v2] package/asterisk: add optional support for SSL Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-09 21:39 ` [Buildroot] [PATCH 07/49 v2] package/asterisk: add optional curl dependency Yann E. MORIN
                   ` (43 subsequent siblings)
  49 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/asterisk/asterisk.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
index f947362906..6e68cd1912 100644
--- a/package/asterisk/asterisk.mk
+++ b/package/asterisk/asterisk.mk
@@ -41,7 +41,6 @@ ASTERISK_CONF_OPTS = \
 	--disable-internal-poll \
 	--disable-asteriskssl \
 	--disable-rpath \
-	--without-asound \
 	--without-bfd \
 	--without-bluetooth \
 	--without-cap \
@@ -137,6 +136,13 @@ else
 ASTERISK_CONF_OPTS += --without-gsm
 endif
 
+ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
+ASTERISK_DEPENDENCIES += alsa-lib
+ASTERISK_CONF_OPTS += --with-asound
+else
+ASTERISK_CONF_OPTS += --without-asound
+endif
+
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
 ASTERISK_DEPENDENCIES += openssl
 ASTERISK_CONF_OPTS += --with-ssl
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 07/49 v2] package/asterisk: add optional curl dependency
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (5 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 06/49 v2] package/asterisk: add optional alsa-lib dependency Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-23 17:14   ` Arnout Vandecappelle
  2017-09-09 21:39 ` [Buildroot] [PATCH 08/49 v2] package/asterisk: add optional neon dependency Yann E. MORIN
                   ` (42 subsequent siblings)
  49 siblings, 1 reply; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/asterisk/asterisk.mk | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
index 6e68cd1912..29e52aef46 100644
--- a/package/asterisk/asterisk.mk
+++ b/package/asterisk/asterisk.mk
@@ -143,6 +143,13 @@ else
 ASTERISK_CONF_OPTS += --without-asound
 endif
 
+ifeq ($(BR2_PACKAGE_LIBCURL),y)
+ASTERISK_DEPENDENCIES += libcurl
+ASTERISK_CONF_OPTS += --with-libcurl
+else
+ASTERISK_CONF_OPTS += --without-libcurl
+endif
+
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
 ASTERISK_DEPENDENCIES += openssl
 ASTERISK_CONF_OPTS += --with-ssl
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 08/49 v2] package/asterisk: add optional neon dependency
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (6 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 07/49 v2] package/asterisk: add optional curl dependency Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-09 21:39 ` [Buildroot] [PATCH 09/49 v2] package/asterisk: add optional libogg dependency Yann E. MORIN
                   ` (41 subsequent siblings)
  49 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/asterisk/asterisk.mk | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
index 29e52aef46..ed2bfd3d13 100644
--- a/package/asterisk/asterisk.mk
+++ b/package/asterisk/asterisk.mk
@@ -70,7 +70,6 @@ ASTERISK_CONF_OPTS = \
 	--without-misdn \
 	--without-mysqlclient \
 	--without-nbs \
-	--without-neon \
 	--without-neon29 \
 	--without-netsnmp \
 	--without-newt \
@@ -150,6 +149,15 @@ else
 ASTERISK_CONF_OPTS += --without-libcurl
 endif
 
+ifeq ($(BR2_PACKAGE_NEON),y)
+ASTERISK_DEPENDENCIES += neon
+ASTERISK_CONF_OPTS += --with-neon
+ASTERISK_CONF_ENV += \
+	ac_cv_path_CONFIG_NEON=$(STAGING_DIR)/usr/bin/neon-config
+else
+ASTERISK_CONF_OPTS += --without-neon
+endif
+
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
 ASTERISK_DEPENDENCIES += openssl
 ASTERISK_CONF_OPTS += --with-ssl
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 09/49 v2] package/asterisk: add optional libogg dependency
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (7 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 08/49 v2] package/asterisk: add optional neon dependency Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-09 21:39 ` [Buildroot] [PATCH 10/49 v2] package/asterisk: add optional bluez_utils dependency Yann E. MORIN
                   ` (40 subsequent siblings)
  49 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/asterisk/asterisk.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
index ed2bfd3d13..e632863138 100644
--- a/package/asterisk/asterisk.mk
+++ b/package/asterisk/asterisk.mk
@@ -73,7 +73,6 @@ ASTERISK_CONF_OPTS = \
 	--without-neon29 \
 	--without-netsnmp \
 	--without-newt \
-	--without-ogg \
 	--without-openr2 \
 	--without-opus \
 	--without-osptk \
@@ -158,6 +157,13 @@ else
 ASTERISK_CONF_OPTS += --without-neon
 endif
 
+ifeq ($(BR2_PACKAGE_LIBOGG),y)
+ASTERISK_DEPENDENCIES += libogg
+ASTERISK_CONF_OPTS += --with-ogg
+else
+ASTERISK_CONF_OPTS += --without-ogg
+endif
+
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
 ASTERISK_DEPENDENCIES += openssl
 ASTERISK_CONF_OPTS += --with-ssl
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 10/49 v2] package/asterisk: add optional bluez_utils dependency
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (8 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 09/49 v2] package/asterisk: add optional libogg dependency Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-09 21:39 ` [Buildroot] [PATCH 11/49 v2] package/asterisk: add optional opus dependency Yann E. MORIN
                   ` (39 subsequent siblings)
  49 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/asterisk/asterisk.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
index e632863138..cdcb18f5a5 100644
--- a/package/asterisk/asterisk.mk
+++ b/package/asterisk/asterisk.mk
@@ -42,7 +42,6 @@ ASTERISK_CONF_OPTS = \
 	--disable-asteriskssl \
 	--disable-rpath \
 	--without-bfd \
-	--without-bluetooth \
 	--without-cap \
 	--without-cpg \
 	--without-curses \
@@ -141,6 +140,13 @@ else
 ASTERISK_CONF_OPTS += --without-asound
 endif
 
+ifeq ($(BR2_PACKAGE_BLUEZ_UTILS),y)
+ASTERISK_DEPENDENCIES += bluez_utils
+ASTERISK_CONF_OPTS += --with-bluetooth
+else
+ASTERISK_CONF_OPTS += --without-bluetooth
+endif
+
 ifeq ($(BR2_PACKAGE_LIBCURL),y)
 ASTERISK_DEPENDENCIES += libcurl
 ASTERISK_CONF_OPTS += --with-libcurl
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 11/49 v2] package/asterisk: add optional opus dependency
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (9 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 10/49 v2] package/asterisk: add optional bluez_utils dependency Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-09 21:39 ` [Buildroot] [PATCH 12/49 v2] package/asterisk: add optional speex dependency Yann E. MORIN
                   ` (38 subsequent siblings)
  49 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/asterisk/asterisk.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
index cdcb18f5a5..7ac17d7063 100644
--- a/package/asterisk/asterisk.mk
+++ b/package/asterisk/asterisk.mk
@@ -73,7 +73,6 @@ ASTERISK_CONF_OPTS = \
 	--without-netsnmp \
 	--without-newt \
 	--without-openr2 \
-	--without-opus \
 	--without-osptk \
 	--without-oss \
 	--without-postgres \
@@ -170,6 +169,13 @@ else
 ASTERISK_CONF_OPTS += --without-ogg
 endif
 
+ifeq ($(BR2_PACKAGE_OPUS),y)
+ASTERISK_DEPENDENCIES += opus
+ASTERISK_CONF_OPTS += --with-opus
+else
+ASTERISK_CONF_OPTS += --without-opus
+endif
+
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
 ASTERISK_DEPENDENCIES += openssl
 ASTERISK_CONF_OPTS += --with-ssl
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 12/49 v2] package/asterisk: add optional speex dependency
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (10 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 11/49 v2] package/asterisk: add optional opus dependency Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-09 21:39 ` [Buildroot] [PATCH 13/49 v2] package/asterisk: add optional libvorbis dependency Yann E. MORIN
                   ` (37 subsequent siblings)
  49 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/asterisk/asterisk.mk | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
index 7ac17d7063..4a7fd8c6d5 100644
--- a/package/asterisk/asterisk.mk
+++ b/package/asterisk/asterisk.mk
@@ -87,8 +87,6 @@ ASTERISK_CONF_OPTS = \
 	--without-SDL_image \
 	--without-spandsp \
 	--without-ss7 \
-	--without-speex \
-	--without-speexdsp \
 	--without-sqlite \
 	--without-srtp \
 	--without-suppserv \
@@ -183,6 +181,13 @@ else
 ASTERISK_CONF_OPTS += --without-ssl
 endif
 
+ifeq ($(BR2_PACKAGE_SPEEX),y)
+ASTERISK_DEPENDENCIES += speex
+ASTERISK_CONF_OPTS += --with-speex --with-speexdsp
+else
+ASTERISK_CONF_OPTS += --without-speex  --without-speexdsp
+endif
+
 ifeq ($(BR2_PACKAGE_ZLIB),y)
 ASTERISK_DEPENDENCIES += zlib
 ASTERISK_CONF_OPTS += --with-z
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 13/49 v2] package/asterisk: add optional libvorbis dependency
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (11 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 12/49 v2] package/asterisk: add optional speex dependency Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-09 21:39 ` [Buildroot] [PATCH 14/49 v2] package/asterisk: add optional libilbc dependency Yann E. MORIN
                   ` (36 subsequent siblings)
  49 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/asterisk/asterisk.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
index 4a7fd8c6d5..342c642feb 100644
--- a/package/asterisk/asterisk.mk
+++ b/package/asterisk/asterisk.mk
@@ -97,7 +97,6 @@ ASTERISK_CONF_OPTS = \
 	--without-tonezone \
 	--without-unbound \
 	--without-unixodbc \
-	--without-vorbis \
 	--without-vpb \
 	--without-x11 \
 	--with-crypt \
@@ -188,6 +187,13 @@ else
 ASTERISK_CONF_OPTS += --without-speex  --without-speexdsp
 endif
 
+ifeq ($(BR2_PACKAGE_LIBVORBIS),y)
+ASTERISK_DEPENDENCIES += libvorbis
+ASTERISK_CONF_OPTS += --with-vorbis
+else
+ASTERISK_CONF_OPTS += --without-vorbis
+endif
+
 ifeq ($(BR2_PACKAGE_ZLIB),y)
 ASTERISK_DEPENDENCIES += zlib
 ASTERISK_CONF_OPTS += --with-z
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 14/49 v2] package/asterisk: add optional libilbc dependency
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (12 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 13/49 v2] package/asterisk: add optional libvorbis dependency Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-23 17:14   ` Arnout Vandecappelle
  2017-09-09 21:39 ` [Buildroot] [PATCH 15/49 v2] package/asterisk: add optional portaudio dependency Yann E. MORIN
                   ` (35 subsequent siblings)
  49 siblings, 1 reply; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/asterisk/asterisk.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
index 342c642feb..bd5b794117 100644
--- a/package/asterisk/asterisk.mk
+++ b/package/asterisk/asterisk.mk
@@ -46,7 +46,6 @@ ASTERISK_CONF_OPTS = \
 	--without-cpg \
 	--without-curses \
 	--without-dahdi \
-	--without-ilbc \
 	--without-gtk2 \
 	--without-gmime \
 	--without-h323 \
@@ -143,6 +142,13 @@ else
 ASTERISK_CONF_OPTS += --without-bluetooth
 endif
 
+ifeq ($(BR2_PACKAGE_LIBILBC),y)
+ASTERISK_DEPENDENCIES += libilbc
+ASTERISK_CONF_OPTS += --with-ilbc
+else
+ASTERISK_CONF_OPTS += --without-ilbc
+endif
+
 ifeq ($(BR2_PACKAGE_LIBCURL),y)
 ASTERISK_DEPENDENCIES += libcurl
 ASTERISK_CONF_OPTS += --with-libcurl
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 15/49 v2] package/asterisk: add optional portaudio dependency
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (13 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 14/49 v2] package/asterisk: add optional libilbc dependency Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-09 21:39 ` [Buildroot] [PATCH 16/49 v2] package/asterisk: add optional libical dependency Yann E. MORIN
                   ` (34 subsequent siblings)
  49 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/asterisk/asterisk.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
index bd5b794117..99f66aeeb0 100644
--- a/package/asterisk/asterisk.mk
+++ b/package/asterisk/asterisk.mk
@@ -77,7 +77,6 @@ ASTERISK_CONF_OPTS = \
 	--without-postgres \
 	--without-pjproject \
 	--without-popt \
-	--without-portaudio \
 	--without-pri \
 	--without-pwlib \
 	--without-radius \
@@ -179,6 +178,13 @@ else
 ASTERISK_CONF_OPTS += --without-opus
 endif
 
+ifeq ($(BR2_PACKAGE_PORTAUDIO),y)
+ASTERISK_DEPENDENCIES += portaudio
+ASTERISK_CONF_OPTS += --with-portaudio
+else
+ASTERISK_CONF_OPTS += --without-portaudio
+endif
+
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
 ASTERISK_DEPENDENCIES += openssl
 ASTERISK_CONF_OPTS += --with-ssl
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 16/49 v2] package/asterisk: add optional libical dependency
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (14 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 15/49 v2] package/asterisk: add optional portaudio dependency Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-09 21:39 ` [Buildroot] [PATCH 17/49 v2] package/asterisk: add optional openldap dependency Yann E. MORIN
                   ` (33 subsequent siblings)
  49 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/asterisk/asterisk.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
index 99f66aeeb0..279b2b2eb3 100644
--- a/package/asterisk/asterisk.mk
+++ b/package/asterisk/asterisk.mk
@@ -50,7 +50,6 @@ ASTERISK_CONF_OPTS = \
 	--without-gmime \
 	--without-h323 \
 	--without-hoard \
-	--without-ical \
 	--without-iconv \
 	--without-iksemel \
 	--without-imap \
@@ -141,6 +140,13 @@ else
 ASTERISK_CONF_OPTS += --without-bluetooth
 endif
 
+ifeq ($(BR2_PACKAGE_LIBICAL),y)
+ASTERISK_DEPENDENCIES += libical
+ASTERISK_CONF_OPTS += --with-ical
+else
+ASTERISK_CONF_OPTS += --without-ical
+endif
+
 ifeq ($(BR2_PACKAGE_LIBILBC),y)
 ASTERISK_DEPENDENCIES += libilbc
 ASTERISK_CONF_OPTS += --with-ilbc
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 17/49 v2] package/asterisk: add optional openldap dependency
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (15 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 16/49 v2] package/asterisk: add optional libical dependency Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-14 14:36   ` Bernd Kuhls
  2017-09-09 21:39 ` [Buildroot] [PATCH 18/49 v2] package/asterisk: add optional freeradius-client dependency Yann E. MORIN
                   ` (32 subsequent siblings)
  49 siblings, 1 reply; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/asterisk/asterisk.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
index 279b2b2eb3..e46538db17 100644
--- a/package/asterisk/asterisk.mk
+++ b/package/asterisk/asterisk.mk
@@ -59,7 +59,6 @@ ASTERISK_CONF_OPTS = \
 	--without-jack \
 	--without-uriparser \
 	--without-kqueue \
-	--without-ldap \
 	--without-libedit \
 	--without-libxslt \
 	--without-ltdl \
@@ -154,6 +153,13 @@ else
 ASTERISK_CONF_OPTS += --without-ilbc
 endif
 
+ifeq ($(BR2_PACKAGE_OPENLDAP),y)
+ASTERISK_DEPENDENCIES += openldap
+ASTERISK_CONF_OPTS += --without-ldap
+else
+ASTERISK_CONF_OPTS += --without-ldap
+endif
+
 ifeq ($(BR2_PACKAGE_LIBCURL),y)
 ASTERISK_DEPENDENCIES += libcurl
 ASTERISK_CONF_OPTS += --with-libcurl
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 18/49 v2] package/asterisk: add optional freeradius-client dependency
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (16 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 17/49 v2] package/asterisk: add optional openldap dependency Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-09 21:39 ` [Buildroot] [PATCH 19/49 v2] package/asterisk: add optional libsrtp dependency Yann E. MORIN
                   ` (31 subsequent siblings)
  49 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/asterisk/asterisk.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
index e46538db17..611eb673a7 100644
--- a/package/asterisk/asterisk.mk
+++ b/package/asterisk/asterisk.mk
@@ -77,7 +77,6 @@ ASTERISK_CONF_OPTS = \
 	--without-popt \
 	--without-pri \
 	--without-pwlib \
-	--without-radius \
 	--without-resample \
 	--without-sdl \
 	--without-SDL_image \
@@ -197,6 +196,13 @@ else
 ASTERISK_CONF_OPTS += --without-portaudio
 endif
 
+ifeq ($(BR2_PACKAGE_FREERADIUS_CLIENT),y)
+ASTERISK_DEPENDENCIES += freeradius-client
+ASTERISK_CONF_OPTS += --with-radius
+else
+ASTERISK_CONF_OPTS += --without-radius
+endif
+
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
 ASTERISK_DEPENDENCIES += openssl
 ASTERISK_CONF_OPTS += --with-ssl
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 19/49 v2] package/asterisk: add optional libsrtp dependency
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (17 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 18/49 v2] package/asterisk: add optional freeradius-client dependency Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-09 21:39 ` [Buildroot] [PATCH 20/49 v2] package/dahdi-linux: new package Yann E. MORIN
                   ` (30 subsequent siblings)
  49 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/asterisk/asterisk.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
index 611eb673a7..5a9eb2ced3 100644
--- a/package/asterisk/asterisk.mk
+++ b/package/asterisk/asterisk.mk
@@ -83,7 +83,6 @@ ASTERISK_CONF_OPTS = \
 	--without-spandsp \
 	--without-ss7 \
 	--without-sqlite \
-	--without-srtp \
 	--without-suppserv \
 	--without-tds \
 	--without-termcap \
@@ -217,6 +216,13 @@ else
 ASTERISK_CONF_OPTS += --without-speex  --without-speexdsp
 endif
 
+ifeq ($(BR2_PACKAGE_LIBSRTP),y)
+ASTERISK_DEPENDENCIES += libsrtp
+ASTERISK_CONF_OPTS += --with-srtp
+else
+ASTERISK_CONF_OPTS += --without-srtp
+endif
+
 ifeq ($(BR2_PACKAGE_LIBVORBIS),y)
 ASTERISK_DEPENDENCIES += libvorbis
 ASTERISK_CONF_OPTS += --with-vorbis
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 20/49 v2] package/dahdi-linux: new package
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (18 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 19/49 v2] package/asterisk: add optional libsrtp dependency Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-09 21:39 ` [Buildroot] [PATCH 21/49 v2] package/dahdi-tools: " Yann E. MORIN
                   ` (29 subsequent siblings)
  49 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

dahdi-linux provides kernel modules to drive a variety of telephony
cards, ranging from low-end one-channel to higher-end multi-channel
cards. It also provides headers for userland to talk to those cards.

With a bit of love, dahdi-linux can use our kernel-module
infrastructure. Wee! :-)

Still, there are a few specificities about dahdi-linux.

First, it needs to install a few binary firmware blobs, which it wants
to download at install time. Since we do want to be able to do
completely off-line builds, we need to downlaod them manually. So we
have the full list of firmware blobs (even if some can only be used on
an i386/x86_64 target, we still uconditionally download them), for which
we have locally-computed sha256 (no hash provided by upstream for the
blobs).

Second, the install procedure for the firmware blobs needs to have
access to the Linux kernel .config file, so it can decide whether to
install the blobs or not. We can force not to install them, but we can't
force to install them... :-/ And anyway, we'd have to do the same check
as is already done by dahdi-linux, so no need to duplicate that.

Finally, the licensing is relatively weird. Although it is obvious and
straightforward for the most part of dahdi-linux, consisting of mostly
GPLv2 and a few LGPLv2.1, there is one gotcha.

Of the firmware blobs, one is provided as a .o file, with no licensing
information whatsoever, without any source available from upstream, but
is directly linked to a GPLv2 file.

This is very concerning, but there is not much we can do about it,
except delegate to the legal reviewer whether that is acceptable or not.

AS an aside, dahdi-linux drivers do not build with a kernel 4.0 or
later, as it uses internals that have been removed in linux-4.0. There
has been no update upstream dahdi-linux to fix that. There's not much we
can do, except warn the user in the help text.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/Config.in                    |  1 +
 package/dahdi-linux/Config.in        | 19 ++++++++
 package/dahdi-linux/dahdi-linux.hash | 23 ++++++++++
 package/dahdi-linux/dahdi-linux.mk   | 88 ++++++++++++++++++++++++++++++++++++
 4 files changed, 131 insertions(+)
 create mode 100644 package/dahdi-linux/Config.in
 create mode 100644 package/dahdi-linux/dahdi-linux.hash
 create mode 100644 package/dahdi-linux/dahdi-linux.mk

diff --git a/package/Config.in b/package/Config.in
index 9df758e796..b529bfecfd 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -382,6 +382,7 @@ endmenu
 	source "package/cdrkit/Config.in"
 	source "package/cryptsetup/Config.in"
 	source "package/cwiid/Config.in"
+	source "package/dahdi-linux/Config.in"
 	source "package/dbus/Config.in"
 	source "package/dbus-cpp/Config.in"
 	source "package/dbus-glib/Config.in"
diff --git a/package/dahdi-linux/Config.in b/package/dahdi-linux/Config.in
new file mode 100644
index 0000000000..f2a370917c
--- /dev/null
+++ b/package/dahdi-linux/Config.in
@@ -0,0 +1,19 @@
+config BR2_PACKAGE_DAHDI_LINUX
+	bool "dhadi-linux"
+	depends on BR2_LINUX_KERNEL
+	help
+	  DAHDI (Digium/Asterisk Hardware Device Interface) is the open
+	  source device interface technology used to control Digium and
+	  other legacy telephony interface cards.
+
+	  DAHDI Linux is the open source device driver framework used to
+	  interface Asterisk with telephony hardware.
+
+	  http://www.asterisk.org/downloads/dahdi
+
+	  Note: DAHDI Linux drivers won't build on a kernel v4.0 or more
+	  recent, because they use internals that have been removed in
+	  v4.0.
+
+comment "dahdi-linux needs a Linux kernel to be built"
+	depends on !BR2_LINUX_KERNEL
diff --git a/package/dahdi-linux/dahdi-linux.hash b/package/dahdi-linux/dahdi-linux.hash
new file mode 100644
index 0000000000..532c0a8256
--- /dev/null
+++ b/package/dahdi-linux/dahdi-linux.hash
@@ -0,0 +1,23 @@
+# sha1 from: http://downloads.asterisk.org/pub/telephony/dahdi-linux/releases
+# sha256 locally computed
+sha1    8cbd55b8611c6ed80bcdf84d537566b4934f3def  dahdi-linux-2.11.1.tar.gz
+sha256  f59f382365118205e77d2874f1c0e1546e936247bcc45f07a43bc21778bee9df  dahdi-linux-2.11.1.tar.gz
+
+# Firmware files have no upstream hash, so sha56 locally computed
+sha256  3ff26cf80555fd7470b43a87c51d03c1db2a75abcd4561d79f69b6c48298e4a1  dahdi-fwload-vpmadt032-1.25.0.tar.gz
+sha256  d5b6ab6851e431afcfec2ecc39d95fa88fe3939ffdb2e3d4f28a43cabf30e95b  dahdi-fw-a4a-a0017.tar.gz
+sha256  e039af8bec36407b74e1dd9ebdd49ba077469eda79d4e6093721ed2836d4536f  dahdi-fw-a4b-d001e.tar.gz
+sha256  5064f9877b8aec99b19fd57988216fe1a9c0b7c07853dd3b32b5a55ab7b418e6  dahdi-fw-a8a-1d0017.tar.gz
+sha256  09a8992786309e025aa60b400a2c7d21226ac9bb6f1b66f562a5e7e9dc892b03  dahdi-fw-a8b-1f001e.tar.gz
+sha256  449ab3fd03d55d808e999efb7677cd04de202b92c9fcb039539a7e48a39a80f5  dahdi-fw-hx8-2.06.tar.gz
+sha256  7a006073202d67e45f1d5ff1e9c6e8663e6056cef9dc4c5abae86a1018db349c  dahdi-fw-oct6114-032-1.05.01.tar.gz
+sha256  56bac1f2024c76ecf9b6f40992eeea29a1fbee676bb2a37a058179bacfbb1c91  dahdi-fw-oct6114-064-1.05.01.tar.gz
+sha256  e1146749d205c41603b9b76852c3f8104dac233d0025d700db24504d10c99775  dahdi-fw-oct6114-128-1.05.01.tar.gz
+sha256  5fe5036a2766cf0e8a968b0c58b700507d86e1cde9296ca437170cc626a9c79c  dahdi-fw-oct6114-256-1.05.01.tar.gz
+sha256  11dd8d009809e41fc9a3a36766f59ff73d29075eede5b8724331d9a6e5259774  dahdi-fw-tc400m-MR6.12.tar.gz
+sha256  511c1966295a20df673bb87af30245f0ad165efd6ccb92b4d8ed535ca7f5ac65  dahdi-fw-te133-7a001e.tar.gz
+sha256  99f7c410bf47d2a5ae687d717e51448ce5b52aca902830bf39bffe683150fa2d  dahdi-fw-te134-780017.tar.gz
+sha256  c8f55d57cc0bf332e8d96cdf9ff6dd0e322f33581e1efc24c2b9a0e0c5eb7ee4  dahdi-fw-te435-13001e.tar.gz
+sha256  0980f4a8d191c6872aa27d971758046f0e7827ac161549f2cc1b0eeab0ae9333  dahdi-fw-te436-10017.tar.gz
+sha256  5b823e25828e2c1c6548886ad408b2e31dbc8cd17170c52592792d9c754a199c  dahdi-fw-te820-1.76.tar.gz
+sha256  6b199cf836f150f9cb35f763f0f502fb52cfa2724a449b500429c746973904ad  dahdi-fw-vpmoct032-1.12.0.tar.gz
diff --git a/package/dahdi-linux/dahdi-linux.mk b/package/dahdi-linux/dahdi-linux.mk
new file mode 100644
index 0000000000..33db9fb408
--- /dev/null
+++ b/package/dahdi-linux/dahdi-linux.mk
@@ -0,0 +1,88 @@
+################################################################################
+#
+# dahdi-linux
+#
+################################################################################
+
+DAHDI_LINUX_VERSION = 2.11.1
+DAHDI_LINUX_SITE = http://downloads.asterisk.org/pub/telephony/dahdi-linux/releases
+
+# We need to download all thoe firmware blobs ourselves, otherwise
+# dahdi-linux will try to download them at install time.
+DAHDI_LINUX_FW_SITE = http://downloads.digium.com/pub/telephony/firmware/releases
+DAHDI_LINUX_FW_FILES = \
+	dahdi-fwload-vpmadt032-1.25.0.tar.gz \
+	dahdi-fw-oct6114-032-1.05.01.tar.gz \
+	dahdi-fw-oct6114-064-1.05.01.tar.gz \
+	dahdi-fw-oct6114-128-1.05.01.tar.gz \
+	dahdi-fw-oct6114-256-1.05.01.tar.gz \
+	dahdi-fw-tc400m-MR6.12.tar.gz \
+	dahdi-fw-hx8-2.06.tar.gz \
+	dahdi-fw-vpmoct032-1.12.0.tar.gz \
+	dahdi-fw-te820-1.76.tar.gz \
+	dahdi-fw-te133-7a001e.tar.gz \
+	dahdi-fw-te134-780017.tar.gz \
+	dahdi-fw-a8b-1f001e.tar.gz \
+	dahdi-fw-a8a-1d0017.tar.gz \
+	dahdi-fw-a4b-d001e.tar.gz \
+	dahdi-fw-a4a-a0017.tar.gz \
+	dahdi-fw-te435-13001e.tar.gz \
+	dahdi-fw-te436-10017.tar.gz
+
+DAHDI_LINUX_EXTRA_DOWNLOADS = \
+	$(patsubst %,$(DAHDI_LINUX_FW_SITE)/%,$(DAHDI_LINUX_FW_FILES))
+
+# dahdi-linux claims to be GPLv2 with parts LGPLv2.1 (not 'or later'),
+# but there are the so-called firmware files (downloaded above) for
+# which the license is unclear: the header claims to be GPLv2, the
+# 'loader-wrapper' claims to be GPLv2, but there are two so-called
+# 'firmware' binary-only .o blobs for which the license is not
+# explicited, which look like they end up as part of a kernel module,
+# and for which the source is nowhere to be found on the upstream site
+# (they are only for x86/x86_64, but we still list them unconditionally).
+DAHDI_LINUX_LICENSE = GPLv2, LGPLv2.1, unknown (firmware files)
+DAHDI_LINUX_LICENSE_FILES = LICENSE LICENSE.LGPL
+
+DAHDI_LINUX_INSTALL_STAGING = YES
+
+DAHDI_LINUX_MODULE_SUBDIRS = drivers/dahdi
+
+DAHDI_LINUX_MODULE_MAKE_OPTS = \
+	KSRC=$(LINUX_DIR) \
+	KVERS=$(LINUX_VERSION_PROBED) \
+	DAHDI_BUILD_ALL=m \
+	DAHDI_INCLUDE=$(@D)/include \
+	INSTALL_MOD_DIR=dahdi
+
+define DAHDI_LINUX_EXTRACT_FW
+	$(foreach f,$(DAHDI_LINUX_FW_FILES),\
+		cp $(BR2_DL_DIR)/$(f) $(@D)/drivers/dahdi/firmware/$(f)$(sep))
+endef
+DAHDI_LINUX_POST_EXTRACT_HOOKS += DAHDI_LINUX_EXTRACT_FW
+
+# Need to pass the same options as for building the modules, because
+# it wants to scan Linux' .config file to check whether some options
+# are set or not (like CONFIG_FW_LOADER).
+define DAHDI_LINUX_CONFIGURE_CMDS
+	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
+		$(DAHDI_LINUX_MODULE_MAKE_OPTS) \
+		prereq
+endef
+
+define DAHDI_LINUX_INSTALL_STAGING_CMDS
+	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
+		$(DAHDI_LINUX_MODULE_MAKE_OPTS) \
+		DESTDIR=$(STAGING_DIR) \
+		install-include
+endef
+
+define DAHDI_LINUX_INSTALL_TARGET_CMDS
+	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
+		$(DAHDI_LINUX_MODULE_MAKE_OPTS) \
+		DESTDIR=$(TARGET_DIR) \
+		install-firmware \
+		install-xpp-firm
+endef
+
+$(eval $(kernel-module))
+$(eval $(generic-package))
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 21/49 v2] package/dahdi-tools: new package
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (19 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 20/49 v2] package/dahdi-linux: new package Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-09 21:39 ` [Buildroot] [PATCH 22/49 v2] package/dahdi-tools: add USB support Yann E. MORIN
                   ` (28 subsequent siblings)
  49 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

Also provides libraries, so install in staging as well.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/Config.in                               |  1 +
 package/dahdi-tools/0001-no-build-docs.patch    | 16 +++++++++++
 package/dahdi-tools/0002-no-perl-manpages.patch | 37 +++++++++++++++++++++++++
 package/dahdi-tools/Config.in                   | 23 +++++++++++++++
 package/dahdi-tools/dahdi-tools.hash            |  4 +++
 package/dahdi-tools/dahdi-tools.mk              | 32 +++++++++++++++++++++
 6 files changed, 113 insertions(+)
 create mode 100644 package/dahdi-tools/0001-no-build-docs.patch
 create mode 100644 package/dahdi-tools/0002-no-perl-manpages.patch
 create mode 100644 package/dahdi-tools/Config.in
 create mode 100644 package/dahdi-tools/dahdi-tools.hash
 create mode 100644 package/dahdi-tools/dahdi-tools.mk

diff --git a/package/Config.in b/package/Config.in
index b529bfecfd..db34a37475 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -383,6 +383,7 @@ endmenu
 	source "package/cryptsetup/Config.in"
 	source "package/cwiid/Config.in"
 	source "package/dahdi-linux/Config.in"
+	source "package/dahdi-tools/Config.in"
 	source "package/dbus/Config.in"
 	source "package/dbus-cpp/Config.in"
 	source "package/dbus-glib/Config.in"
diff --git a/package/dahdi-tools/0001-no-build-docs.patch b/package/dahdi-tools/0001-no-build-docs.patch
new file mode 100644
index 0000000000..311a129efe
--- /dev/null
+++ b/package/dahdi-tools/0001-no-build-docs.patch
@@ -0,0 +1,16 @@
+Do not build the documentation.
+
+Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
+
+diff -durN dahdi-tools-2.11.0.orig/Makefile.am dahdi-tools-2.11.0/Makefile.am
+--- dahdi-tools-2.11.0.orig/Makefile.am	2015-12-22 21:19:12.000000000 +0100
++++ dahdi-tools-2.11.0/Makefile.am	2016-01-04 23:23:34.201304133 +0100
+@@ -17,7 +17,7 @@
+ 	#-Wformat=2
+ endif
+ 
+-SUBDIRS	= xpp doc hotplug
++SUBDIRS	= xpp hotplug
+ 
+ if PPPD
+ SUBDIRS	+= ppp
diff --git a/package/dahdi-tools/0002-no-perl-manpages.patch b/package/dahdi-tools/0002-no-perl-manpages.patch
new file mode 100644
index 0000000000..dae1b6c3c0
--- /dev/null
+++ b/package/dahdi-tools/0002-no-perl-manpages.patch
@@ -0,0 +1,37 @@
+xpp: do not try to install the manpages for the perl tools
+
+The man pages are generated neither at build time nor at install time,
+so the install step fails.
+
+Just disable them.
+
+Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
+
+diff -durN dahdi-tools-2.11.0.orig/xpp/Makefile.am dahdi-tools-2.11.0/xpp/Makefile.am
+--- dahdi-tools-2.11.0.orig/xpp/Makefile.am	2015-12-22 21:19:12.000000000 +0100
++++ dahdi-tools-2.11.0/xpp/Makefile.am	2016-01-04 23:56:31.851820973 +0100
+@@ -3,7 +3,6 @@
+ 
+ SUBDIRS		=
+ 
+-man_MANS	=
+ 
+ 
+ # FIXME: try to improve code, so we can use $(PEDANTIC)
+@@ -59,7 +58,6 @@
+ udevrules_DATA	= xpp.rules
+ 
+ dist_sbin_SCRIPTS	= $(perl_scripts)
+-man_MANS		+= $(perl_mans)
+ CLEANFILES		= $(perl_checks) $(perl_mans)
+ 
+ if	PBX_USB
+@@ -147,8 +145,6 @@
+ 		astribank_allow.8 \
+ 		astribank_is_starting.8
+ 
+-man_MANS	+= $(man_pages)
+-
+ endif
+ 
+ EXTRA_DIST	= \
diff --git a/package/dahdi-tools/Config.in b/package/dahdi-tools/Config.in
new file mode 100644
index 0000000000..39042df041
--- /dev/null
+++ b/package/dahdi-tools/Config.in
@@ -0,0 +1,23 @@
+config BR2_PACKAGE_DAHDI_TOOLS
+	bool "dahdi-tools"
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	depends on BR2_LINUX_KERNEL # dahdi-linux
+	depends on BR2_USE_MMU # perl
+	select BR2_PACKAGE_DAHDI_LINUX
+	select BR2_PACKAGE_PERL
+	help
+	  DAHDI (Digium/Asterisk Hardware Device Interface) is the open
+	  source device interface technology used to control Digium and
+	  other legacy telephony interface cards.
+
+	  DAHDI Tools is a package of utilities for managing and
+	  monitoring DAHDI devices.
+
+	  http://www.asterisk.org/downloads/dahdi
+
+# Two comments, otherwise it may not fit in menuconfig for narrow terminals
+comment "dahdi-tools needs a toolchain w/ threads"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_LINUX_KERNEL
+
+comment "dahdi-tools needs a Linux kernel to be built"
+	depends on !BR2_LINUX_KERNEL
diff --git a/package/dahdi-tools/dahdi-tools.hash b/package/dahdi-tools/dahdi-tools.hash
new file mode 100644
index 0000000000..10e122a234
--- /dev/null
+++ b/package/dahdi-tools/dahdi-tools.hash
@@ -0,0 +1,4 @@
+# sha1 from http://downloads.asterisk.org/pub/telephony/dahdi-tools/releases
+# sha256 locally computed
+sha1    5da944e6d59a977f814230253f3ddf2847e7f31b                          dahdi-tools-2.11.1.tar.gz
+sha256  53ffeb333f3e44b0c88e5b17475cdbf87d3f652eb81a6422de76250c061e2909  dahdi-tools-2.11.1.tar.gz
diff --git a/package/dahdi-tools/dahdi-tools.mk b/package/dahdi-tools/dahdi-tools.mk
new file mode 100644
index 0000000000..e97d944c52
--- /dev/null
+++ b/package/dahdi-tools/dahdi-tools.mk
@@ -0,0 +1,32 @@
+################################################################################
+#
+# dahdi-tools
+#
+################################################################################
+
+DAHDI_TOOLS_VERSION = 2.11.1
+DAHDI_TOOLS_SITE = http://downloads.asterisk.org/pub/telephony/dahdi-tools/releases
+
+DAHDI_TOOLS_LICENSE = GPLv2, LGPLv2.1
+DAHDI_TOOLS_LICENSE_FILES = LICENSE LICENSE.LGPL
+
+DAHDI_TOOLS_DEPENDENCIES = dahdi-linux perl
+
+DAHDI_TOOLS_INSTALL_STAGING = YES
+DAHDI_TOOLS_AUTORECONF = YES
+
+# Buildroot globally exports PERL with the value it has on the host, so we need
+# to override it with the location where it will be on the target.
+DAHDI_TOOLS_CONF_ENV = PERL=/usr/bin/perl
+
+DAHDI_TOOLS_CONF_OPTS = \
+	--without-newt \
+	--without-usb \
+	--without-pcap \
+	--without-libusbx \
+	--without-libusb \
+	--without-selinux \
+	--without-ppp \
+	--with-perllib=/usr/lib/perl5/$(PERL_VERSION)
+
+$(eval $(autotools-package))
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 22/49 v2] package/dahdi-tools: add USB support
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (20 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 21/49 v2] package/dahdi-tools: " Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-23 16:28   ` Arnout Vandecappelle
  2017-09-09 21:39 ` [Buildroot] [PATCH 23/49 v2] package/asterisk: add support for dahdi Yann E. MORIN
                   ` (27 subsequent siblings)
  49 siblings, 1 reply; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

dahdi-tools can use either libusb-1.0.x or libusb-0.1.x, and Buildroot
packages both, respectively as libusb and as libusb-compat.

However, the terminology used by dahdi-tools is a little bit confusing.
dahdi-tools references libusb-1.0.x as libusbx, while it knows
libusb-0.1.x as just plain libusb.

So, here's a samll summary table;

    Those tools   |       libusb version        |
    know it as... | 0.1.x         | 1.0.x       |
    --------------+---------------+-------------+
    Buildroot     | libusb-compat | libusb      |
    dahdi-tools   | libusb        | libusbx     |

However, in Buildroot, libusb-compat (0.1.x) depends on libusb (1.0.x).
So, whenever libusb-compat is enabled, we can be sure that libusb is
enabled too.

So, from the perspective of dahdi-tools, we need not care about libusb
(0.1.x) since we will always have libusbx (1.0.x).

Ergo, we only care about Buildroot libusb (1.0.x) to decide whether or
not to enable USB support in dahdi-tools with libusbx, while libusb is
always disabled.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/dahdi-tools/dahdi-tools.mk | 29 +++++++++++++++++++++++++++--
 1 file changed, 27 insertions(+), 2 deletions(-)

diff --git a/package/dahdi-tools/dahdi-tools.mk b/package/dahdi-tools/dahdi-tools.mk
index e97d944c52..3930968042 100644
--- a/package/dahdi-tools/dahdi-tools.mk
+++ b/package/dahdi-tools/dahdi-tools.mk
@@ -21,12 +21,37 @@ DAHDI_TOOLS_CONF_ENV = PERL=/usr/bin/perl
 
 DAHDI_TOOLS_CONF_OPTS = \
 	--without-newt \
-	--without-usb \
 	--without-pcap \
-	--without-libusbx \
 	--without-libusb \
 	--without-selinux \
 	--without-ppp \
 	--with-perllib=/usr/lib/perl5/$(PERL_VERSION)
 
+# dahdi-tools can use either libusb-1.0.x (libusb in Buildroot)
+# or libusb-0.9.x (libusb-compat in Buildroot). The former is
+# enabled using --with-libusbx, while the latter is enabled using
+# --with-libusb. Both require --with-usb for USB support to be
+# effectively enabled.
+#
+# Note: libsubx was a fork of libusb, which was merged back into
+# libusb for the 1.0.18 release in early 2014, but it looks like
+# dahdi-tools uses the libusbx vs. libusb to differentiate whether
+# to use the 1.0.x vs. 0.9.x libusb. Since in Buildroot, libusb-compat
+# anyway depends on libusb, presence of libusb-compat means that
+# libusb is enabled, so we only support libusb for dahdi-tools.
+#
+# Yet, we must ensure build-ordering in case libusb-compat id enabled.
+#
+# Yes, this is very confusing.
+#
+ifeq ($(BR2_PACKAGE_LIBUSB),y)
+DAHDI_TOOLS_DEPENDENCIES += libusb
+DAHDI_TOOLS_CONF_OPTS += --with-usb --with-libusbx
+ifeq ($(BR2_PACKAGE_LIBUSB_COMPAT),y)
+DAHDI_TOOLS_DEPENDENCIES += libusb-comapt
+endif
+else
+DAHDI_TOOLS_CONF_OPTS += --without-usb --without-libusbx
+endif
+
 $(eval $(autotools-package))
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 23/49 v2] package/asterisk: add support for dahdi
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (21 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 22/49 v2] package/dahdi-tools: add USB support Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-09 21:39 ` [Buildroot] [PATCH 24/49 v2] package/libss7: new package Yann E. MORIN
                   ` (26 subsequent siblings)
  49 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

DAHDI is the 'framework' to drive actual telehony cards. Using telephony
cards without signalling is pretty much meaningless, so signalling will
be added in later commits.

libtonezone is provided by dhadi-tools, while the dahdi headers are
provided by dahdi-linux. Go figure.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/asterisk/asterisk.mk | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
index 5a9eb2ced3..27448fda0d 100644
--- a/package/asterisk/asterisk.mk
+++ b/package/asterisk/asterisk.mk
@@ -45,7 +45,6 @@ ASTERISK_CONF_OPTS = \
 	--without-cap \
 	--without-cpg \
 	--without-curses \
-	--without-dahdi \
 	--without-gtk2 \
 	--without-gmime \
 	--without-h323 \
@@ -88,7 +87,6 @@ ASTERISK_CONF_OPTS = \
 	--without-termcap \
 	--without-timerfd \
 	--without-tinfo \
-	--without-tonezone \
 	--without-unbound \
 	--without-unixodbc \
 	--without-vpb \
@@ -202,6 +200,13 @@ else
 ASTERISK_CONF_OPTS += --without-radius
 endif
 
+ifeq ($(BR2_PACKAGE_DAHDI_LINUX)$(BR2_PACKAGE_DAHDI_TOOLS),yy)
+ASTERISK_DEPENDENCIES += dahdi-linux dahdi-tools
+ASTERISK_CONF_OPTS += --with-dahdi --with-tonezone
+else
+ASTERISK_CONF_OPTS += --without-dahdi --without-tonezone
+endif # DAHDI
+
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
 ASTERISK_DEPENDENCIES += openssl
 ASTERISK_CONF_OPTS += --with-ssl
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 24/49 v2] package/libss7: new package
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (22 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 23/49 v2] package/asterisk: add support for dahdi Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-09 21:39 ` [Buildroot] [PATCH 25/49 v2] package/asterisk: add support for SS7 Yann E. MORIN
                   ` (25 subsequent siblings)
  49 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

The Makefile in the package is not very versatile, so we need to go our
way to only build and install what we can.

Fixing the Makefile is not worth it, considering that we can quite
easily do all of that in our .mk.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/Config.in          |  1 +
 package/libss7/Config.in   | 18 +++++++++++++++
 package/libss7/libss7.hash |  3 +++
 package/libss7/libss7.mk   | 55 ++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 77 insertions(+)
 create mode 100644 package/libss7/Config.in
 create mode 100644 package/libss7/libss7.hash
 create mode 100644 package/libss7/libss7.mk

diff --git a/package/Config.in b/package/Config.in
index db34a37475..b3e733b618 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1165,6 +1165,7 @@ menu "Hardware handling"
 	source "package/libsigrok/Config.in"
 	source "package/libsigrokdecode/Config.in"
 	source "package/libsoc/Config.in"
+	source "package/libss7/Config.in"
 	source "package/libusb/Config.in"
 	source "package/libusb-compat/Config.in"
 	source "package/libusbgx/Config.in"
diff --git a/package/libss7/Config.in b/package/libss7/Config.in
new file mode 100644
index 0000000000..b99c578182
--- /dev/null
+++ b/package/libss7/Config.in
@@ -0,0 +1,18 @@
+config BR2_PACKAGE_LIBSS7
+	bool "libss7"
+	depends on BR2_LINUX_KERNEL
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	select BR2_PACKAGE_DAHDI_LINUX
+	select BR2_PACKAGE_DAHDI_TOOLS
+	help
+	  libss7 is an open source library that encapsulates the
+	  protocols used to communicate using Signaling System 7
+	  over ISDN (T1, E1).
+
+	  http://www.asterisk.org/downloads/libss7
+
+comment "libss7 needs a kernel to be built"
+	depends on !BR2_LINUX_KERNEL
+
+comment "libss7 needs a toolchain w/ threads"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/libss7/libss7.hash b/package/libss7/libss7.hash
new file mode 100644
index 0000000000..e5eb55e0bb
--- /dev/null
+++ b/package/libss7/libss7.hash
@@ -0,0 +1,3 @@
+# Hashes from http://downloads.asterisk.org/pub/telephony/libss7/releases/
+sha1    7112a0717293fc273d5d488e1387ad28abe4e9b3  libss7-2.0.0.tar.gz
+sha256  5af00853cfb2bc6bcf050947804db132ae6872db0cd2ab24b5378828f78eda52  libss7-2.0.0.tar.gz
diff --git a/package/libss7/libss7.mk b/package/libss7/libss7.mk
new file mode 100644
index 0000000000..f01e2d117b
--- /dev/null
+++ b/package/libss7/libss7.mk
@@ -0,0 +1,55 @@
+################################################################################
+#
+# libss7
+#
+################################################################################
+
+LIBSS7_VERSION = 2.0.0
+LIBSS7_SITE = http://downloads.asterisk.org/pub/telephony/libss7/releases
+
+LIBSS7_LICENSE = GPLv2
+LIBSS7_LICENSE_FILES = LICENSE
+
+LIBSS7_DEPENDENCIES = dahdi-linux dahdi-tools
+LIBSS7_INSTALL_STAGING = YES
+
+# The Makefile default rule will always try to generate both libraries.
+# So we need to explicitly build only what we can.
+ifneq ($(BR2_SHARED_LIBS),y)
+LIBSS7_LIBS = libss7.a
+define LIBSS7_INSTALL_A
+	$(INSTALL) -D -m 0644 $(@D)/libss7.a $(1)/usr/lib/libss7.a
+endef
+endif
+
+ifneq ($(BR2_STATIC_LIBS),y)
+LIBSS7_LIBS += libss7.so.2.0
+define LIBSS7_INSTALL_SO
+	$(INSTALL) -D -m 0644 $(@D)/libss7.so.2.0 $(1)/usr/lib/libss7.so.2.0
+	ln -sf libss7.so.2.0 $(1)/usr/lib/libss7.so
+endef
+endif
+
+# The Makefile erroneously looks for host headers to decide what utilities
+# to build, and thus misses the test utilities. So we explicitly build them
+# as they can be usefull to validate that the hardware does work.
+LIBSS7_UTILS = parser_debug ss7test ss7linktest
+
+define LIBSS7_BUILD_CMDS
+	$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
+		$(LIBSS7_LIBS) $(LIBSS7_UTILS)
+endef
+
+define LIBSS7_INSTALL_STAGING_CMDS
+	$(call LIBSS7_INSTALL_A,$(STAGING_DIR))
+	$(call LIBSS7_INSTALL_SO,$(STAGING_DIR))
+	$(INSTALL) -D -m 0644 $(@D)/libss7.h $(STAGING_DIR)/usr/include/libss7.h
+endef
+
+define LIBSS7_INSTALL_TARGET_CMDS
+	$(foreach u,$(LIBSS7_UTILS),\
+		$(INSTALL) -D -m 0755 $(@D)/$(u) $(TARGET_DIR)/usr/sbin/$(u)$(sep))
+	$(call LIBSS7_INSTALL_SO,$(TARGET_DIR))
+endef
+
+$(eval $(generic-package))
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 25/49 v2] package/asterisk: add support for SS7
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (23 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 24/49 v2] package/libss7: new package Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-09 21:39 ` [Buildroot] [PATCH 26/49 v2] package/libpri: new package Yann E. MORIN
                   ` (24 subsequent siblings)
  49 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/asterisk/asterisk.mk | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
index 27448fda0d..3fe512e0ed 100644
--- a/package/asterisk/asterisk.mk
+++ b/package/asterisk/asterisk.mk
@@ -80,7 +80,6 @@ ASTERISK_CONF_OPTS = \
 	--without-sdl \
 	--without-SDL_image \
 	--without-spandsp \
-	--without-ss7 \
 	--without-sqlite \
 	--without-suppserv \
 	--without-tds \
@@ -203,8 +202,16 @@ endif
 ifeq ($(BR2_PACKAGE_DAHDI_LINUX)$(BR2_PACKAGE_DAHDI_TOOLS),yy)
 ASTERISK_DEPENDENCIES += dahdi-linux dahdi-tools
 ASTERISK_CONF_OPTS += --with-dahdi --with-tonezone
+
+ifeq ($(BR2_PACKAGE_LIBSS7),y)
+ASTERISK_DEPENDENCIES += libss7
+ASTERISK_CONF_OPTS += --with-ss7
 else
-ASTERISK_CONF_OPTS += --without-dahdi --without-tonezone
+ASTERISK_CONF_OPTS += --without-ss7
+endif # SS7
+
+else
+ASTERISK_CONF_OPTS += --without-dahdi --without-tonezone --without-ss7
 endif # DAHDI
 
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 26/49 v2] package/libpri: new package
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (24 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 25/49 v2] package/asterisk: add support for SS7 Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-09 21:39 ` [Buildroot] [PATCH 27/49 v2] package/asterisk: add support for PRI signalling Yann E. MORIN
                   ` (23 subsequent siblings)
  49 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

The Makefile in the package is not very versatile, so we need to go our
way to only build and install what we can.

Fixing the Makefile is not worth it, considering that we can quite
easily do all of that in our .mk.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/Config.in          |  1 +
 package/libpri/Config.in   | 21 +++++++++++++++++++
 package/libpri/libpri.hash |  3 +++
 package/libpri/libpri.mk   | 52 ++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 77 insertions(+)
 create mode 100644 package/libpri/Config.in
 create mode 100644 package/libpri/libpri.hash
 create mode 100644 package/libpri/libpri.mk

diff --git a/package/Config.in b/package/Config.in
index b3e733b618..764ae73c8b 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1156,6 +1156,7 @@ menu "Hardware handling"
 	source "package/libnfc/Config.in"
 	source "package/libpciaccess/Config.in"
 	source "package/libphidget/Config.in"
+	source "package/libpri/Config.in"
 	source "package/libqmi/Config.in"
 	source "package/libraw1394/Config.in"
 	source "package/librtas/Config.in"
diff --git a/package/libpri/Config.in b/package/libpri/Config.in
new file mode 100644
index 0000000000..de2d96fcc4
--- /dev/null
+++ b/package/libpri/Config.in
@@ -0,0 +1,21 @@
+config BR2_PACKAGE_LIBPRI
+	bool "libpri"
+	depends on BR2_USE_MMU # fork()
+	depends on BR2_LINUX_KERNEL
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	select BR2_PACKAGE_DAHDI_LINUX
+	select BR2_PACKAGE_DAHDI_TOOLS
+	help
+	  libpri is an open source library that encapsulates the
+	  protocols used to communicate over ISDN Primary Rate
+	  Interfaces (T1, E1, J1).
+
+	  http://www.asterisk.org/downloads/libpri
+
+comment "libpri needs a kernel to be built"
+	depends on BR2_USE_MMU
+	depends on !BR2_LINUX_KERNEL
+
+comment "libpri needs a toolchain w/ threads"
+	depends on BR2_USE_MMU
+	depends on !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/libpri/libpri.hash b/package/libpri/libpri.hash
new file mode 100644
index 0000000000..408779f203
--- /dev/null
+++ b/package/libpri/libpri.hash
@@ -0,0 +1,3 @@
+# sha1 and sha256 from http://downloads.asterisk.org/pub/telephony/libpri/releases/
+sha1    63536f3300fb007dfd5fe8064406992ca938bd9a                          libpri-1.5.0.tar.gz
+sha256  ee224bc4aa65c54546bd09675c3f0b71817ce9e277332bce86989d8dcd556a24  libpri-1.5.0.tar.gz
diff --git a/package/libpri/libpri.mk b/package/libpri/libpri.mk
new file mode 100644
index 0000000000..f4ebdb71d2
--- /dev/null
+++ b/package/libpri/libpri.mk
@@ -0,0 +1,52 @@
+################################################################################
+#
+# libpri
+#
+################################################################################
+
+LIBPRI_VERSION = 1.5.0
+LIBPRI_SITE = http://downloads.asterisk.org/pub/telephony/libpri/releases
+
+LIBPRI_LICENSE = GPLv2 w/ OpenH323 exception
+LIBPRI_LICENSE_FILES = LICENSE README
+
+LIBPRI_DEPENDENCIES = dahdi-linux dahdi-tools
+LIBPRI_INSTALL_STAGING = YES
+
+# The Makefile default rule will always try to generate both libraries.
+#    16 # So we need to explicitly build only what we can.
+ifneq ($(BR2_SHARED_LIBS),y)
+LIBPRI_LIBS = libpri.a
+define LIBPRI_INSTALL_A
+	$(INSTALL) -D -m 0644 $(@D)/libpri.a $(1)/usr/lib/libpri.a
+endef
+endif
+
+ifneq ($(BR2_STATIC_LIBS),y)
+LIBPRI_LIBS += libpri.so.1.4
+define LIBPRI_INSTALL_SO
+	$(INSTALL) -D -m 0644 $(@D)/libpri.so.1.4 $(1)/usr/lib/libpri.so.1.4
+	ln -sf libpri.so.1.4 $(1)/usr/lib/libpri.so
+endef
+endif
+
+LIBPRI_UTILS = pridump pritest rosetest testprilib
+
+define LIBPRI_BUILD_CMDS
+	$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
+		$(LIBPRI_LIBS) $(LIBPRI_UTILS)
+endef
+
+define LIBPRI_INSTALL_STAGING_CMDS
+	$(call LIBPRI_INSTALL_A,$(STAGING_DIR))
+	$(call LIBPRI_INSTALL_SO,$(STAGING_DIR))
+	$(INSTALL) -D -m 0644 $(@D)/libpri.h $(STAGING_DIR)/usr/include/libpri.h
+endef
+
+define LIBPRI_INSTALL_TARGET_CMDS
+	$(foreach u,$(LIBPRI_UTILS),\
+		$(INSTALL) -D -m 0755 $(@D)/$(u) $(TARGET_DIR)/usr/sbin/$(u)$(sep))
+	$(call LIBPRI_INSTALL_SO,$(TARGET_DIR))
+endef
+
+$(eval $(generic-package))
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 27/49 v2] package/asterisk: add support for PRI signalling
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (25 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 26/49 v2] package/libpri: new package Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-09 21:39 ` [Buildroot] [PATCH 28/49 v2] package/spandsp: new package Yann E. MORIN
                   ` (22 subsequent siblings)
  49 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/asterisk/asterisk.mk | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
index 3fe512e0ed..1fdb5c6902 100644
--- a/package/asterisk/asterisk.mk
+++ b/package/asterisk/asterisk.mk
@@ -74,7 +74,6 @@ ASTERISK_CONF_OPTS = \
 	--without-postgres \
 	--without-pjproject \
 	--without-popt \
-	--without-pri \
 	--without-pwlib \
 	--without-resample \
 	--without-sdl \
@@ -203,6 +202,13 @@ ifeq ($(BR2_PACKAGE_DAHDI_LINUX)$(BR2_PACKAGE_DAHDI_TOOLS),yy)
 ASTERISK_DEPENDENCIES += dahdi-linux dahdi-tools
 ASTERISK_CONF_OPTS += --with-dahdi --with-tonezone
 
+ifeq ($(BR2_PACKAGE_LIBPRI),y)
+ASTERISK_DEPENDENCIES += libpri
+ASTERISK_CONF_OPTS += --with-pri
+else
+ASTERISK_CONF_OPTS += --without-pri
+endif # PRI
+
 ifeq ($(BR2_PACKAGE_LIBSS7),y)
 ASTERISK_DEPENDENCIES += libss7
 ASTERISK_CONF_OPTS += --with-ss7
@@ -211,7 +217,9 @@ ASTERISK_CONF_OPTS += --without-ss7
 endif # SS7
 
 else
-ASTERISK_CONF_OPTS += --without-dahdi --without-tonezone --without-ss7
+ASTERISK_CONF_OPTS += \
+	--without-dahdi --without-tonezone \
+	--without-pri --without-ss7
 endif # DAHDI
 
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 28/49 v2] package/spandsp: new package
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (26 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 27/49 v2] package/asterisk: add support for PRI signalling Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-23 16:40   ` Arnout Vandecappelle
  2017-09-09 21:39 ` [Buildroot] [PATCH 29/49 v2] package/asterisk: add optional spandsp support Yann E. MORIN
                   ` (21 subsequent siblings)
  49 siblings, 1 reply; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/Config.in                      |  1 +
 package/spandsp/0001-fix-msse4.x.patch | 29 +++++++++++++++++++++++++++++
 package/spandsp/Config.in              |  9 +++++++++
 package/spandsp/spandsp.hash           |  2 ++
 package/spandsp/spandsp.mk             | 28 ++++++++++++++++++++++++++++
 5 files changed, 69 insertions(+)
 create mode 100644 package/spandsp/0001-fix-msse4.x.patch
 create mode 100644 package/spandsp/Config.in
 create mode 100644 package/spandsp/spandsp.hash
 create mode 100644 package/spandsp/spandsp.mk

diff --git a/package/Config.in b/package/Config.in
index 764ae73c8b..2243d6bdcd 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -964,6 +964,7 @@ menu "Audio/Sound"
 	source "package/opusfile/Config.in"
 	source "package/portaudio/Config.in"
 	source "package/sbc/Config.in"
+	source "package/spandsp/Config.in"
 	source "package/speex/Config.in"
 	source "package/taglib/Config.in"
 	source "package/tinyalsa/Config.in"
diff --git a/package/spandsp/0001-fix-msse4.x.patch b/package/spandsp/0001-fix-msse4.x.patch
new file mode 100644
index 0000000000..ba3a3e55e3
--- /dev/null
+++ b/package/spandsp/0001-fix-msse4.x.patch
@@ -0,0 +1,29 @@
+diff -durN spandsp-20170713.orig/configure.ac spandsp-20170713/configure.ac
+--- spandsp-20170713.orig/configure.ac	2014-08-09 10:19:27.000000000 +0200
++++ spandsp-20170713/configure.ac	2017-09-07 21:38:36.990854021 +0200
+@@ -354,10 +354,10 @@
+         COMP_VENDOR_CFLAGS="-msse4a $COMP_VENDOR_CFLAGS"
+     fi
+     if test "$enable_sse4_2" = "yes" ; then
+-        COMP_VENDOR_CFLAGS="-msse42 $COMP_VENDOR_CFLAGS"
++        COMP_VENDOR_CFLAGS="-msse4.2 $COMP_VENDOR_CFLAGS"
+     fi
+     if test "$enable_sse4_1" = "yes" ; then
+-        COMP_VENDOR_CFLAGS="-msse41 $COMP_VENDOR_CFLAGS"
++        COMP_VENDOR_CFLAGS="-msse4.1 $COMP_VENDOR_CFLAGS"
+     fi
+     if test "$enable_ssse3" = "yes" ; then
+         COMP_VENDOR_CFLAGS="-mssse3 $COMP_VENDOR_CFLAGS"
+@@ -418,10 +418,10 @@
+         COMP_VENDOR_CFLAGS="-msse4a $COMP_VENDOR_CFLAGS"
+     fi
+     if test "$enable_sse4_2" = "yes" ; then
+-        COMP_VENDOR_CFLAGS="-msse42 $COMP_VENDOR_CFLAGS"
++        COMP_VENDOR_CFLAGS="-msse4.2 $COMP_VENDOR_CFLAGS"
+     fi
+     if test "$enable_sse4_1" = "yes" ; then
+-        COMP_VENDOR_CFLAGS="-msse41 $COMP_VENDOR_CFLAGS"
++        COMP_VENDOR_CFLAGS="-msse4.1 $COMP_VENDOR_CFLAGS"
+     fi
+     if test "$enable_ssse3" = "yes" ; then
+         COMP_VENDOR_CFLAGS="-mssse3 $COMP_VENDOR_CFLAGS"
diff --git a/package/spandsp/Config.in b/package/spandsp/Config.in
new file mode 100644
index 0000000000..a2d5b85d79
--- /dev/null
+++ b/package/spandsp/Config.in
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_SPANDSP
+	bool "spandsp"
+	select BR2_PACKAGE_TIFF
+	help
+	  Spandsp is a library of many DSP functions for telephony.
+	  These range from simple modules, such as DTMF detection, to
+	  a complete software FAX machine.
+
+	  http://www.soft-switch.org/
diff --git a/package/spandsp/spandsp.hash b/package/spandsp/spandsp.hash
new file mode 100644
index 0000000000..6c7b772ac7
--- /dev/null
+++ b/package/spandsp/spandsp.hash
@@ -0,0 +1,2 @@
+# sha256 locally computed
+sha256  fcdc49aafbd4999514f2851f0dcfdc0bfa497eda600e66335a621cdead8b44cb  spandsp-20170713.tar.gz
diff --git a/package/spandsp/spandsp.mk b/package/spandsp/spandsp.mk
new file mode 100644
index 0000000000..5e7034e340
--- /dev/null
+++ b/package/spandsp/spandsp.mk
@@ -0,0 +1,28 @@
+################################################################################
+#
+# spandsp
+#
+################################################################################
+
+SPANDSP_VERSION = 20170713
+SPANDSP_SITE = https://www.soft-switch.org/downloads/spandsp/snapshots
+
+SPANDSP_LICENSE = LGPLv2.1 (library), GPLv2 (test suite)
+SPANDSP_LICENSE_FILES = COPYING
+
+SPANDSP_AUTORECONF = YES
+SPANDSP_DEPENDENCIES = tiff
+SPANDSP_INSTALL_STAGING = YES
+
+SPANDSP_CONF_OPTS = \
+	--disable-doc \
+	--disable-builtin-tiff \
+	$(if $(BR2_X86_CPU_HAS_MMX),--enable-mmx,--disable-mmx) \
+	$(if $(BR2_X86_CPU_HAS_SSE),--enable-sse,--disable-sse) \
+	$(if $(BR2_X86_CPU_HAS_SSE2),--enable-sse2,--disable-sse2) \
+	$(if $(BR2_X86_CPU_HAS_SSE3),--enable-sse3,--disable-sse3) \
+	$(if $(BR2_X86_CPU_HAS_SSSE3),--enable-ssse3,--disable-ssse3) \
+	$(if $(BR2_X86_CPU_HAS_SSE4),--enable-sse4-1,--disable-sse4-1) \
+	$(if $(BR2_X86_CPU_HAS_SSE42),--enable-sse4-2,--disable-sse4-2)
+
+$(eval $(autotools-package))
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 29/49 v2] package/asterisk: add optional spandsp support
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (27 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 28/49 v2] package/spandsp: new package Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-09 21:39 ` [Buildroot] [PATCH 30/49 v2] package/libqb: new package Yann E. MORIN
                   ` (20 subsequent siblings)
  49 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/asterisk/asterisk.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
index 1fdb5c6902..1a56894f8f 100644
--- a/package/asterisk/asterisk.mk
+++ b/package/asterisk/asterisk.mk
@@ -78,7 +78,6 @@ ASTERISK_CONF_OPTS = \
 	--without-resample \
 	--without-sdl \
 	--without-SDL_image \
-	--without-spandsp \
 	--without-sqlite \
 	--without-suppserv \
 	--without-tds \
@@ -229,6 +228,13 @@ else
 ASTERISK_CONF_OPTS += --without-ssl
 endif
 
+ifeq ($(BR2_PACKAGE_SPANDSP),y)
+ASTERISK_DEPENDENCIES += spandsp
+ASTERISK_CONF_OPTS += --with-spandsp
+else
+ASTERISK_CONF_OPTS += --without-spandsp
+endif
+
 ifeq ($(BR2_PACKAGE_SPEEX),y)
 ASTERISK_DEPENDENCIES += speex
 ASTERISK_CONF_OPTS += --with-speex --with-speexdsp
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 30/49 v2] package/libqb: new package
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (28 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 29/49 v2] package/asterisk: add optional spandsp support Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-23 16:51   ` Arnout Vandecappelle
  2017-09-09 21:39 ` [Buildroot] [PATCH 31/49 v2] package/corosync: " Yann E. MORIN
                   ` (19 subsequent siblings)
  49 siblings, 1 reply; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/Config.in                                  |  1 +
 ...fix-CLOCK_MONOTONIC-check-for-cross-compi.patch | 33 ++++++++++++++++++++++
 package/libqb/Config.in                            | 12 ++++++++
 package/libqb/libqb.hash                           |  2 ++
 package/libqb/libqb.mk                             | 32 +++++++++++++++++++++
 5 files changed, 80 insertions(+)
 create mode 100644 package/libqb/0001-bconfigure-fix-CLOCK_MONOTONIC-check-for-cross-compi.patch
 create mode 100644 package/libqb/Config.in
 create mode 100644 package/libqb/libqb.hash
 create mode 100644 package/libqb/libqb.mk

diff --git a/package/Config.in b/package/Config.in
index 2243d6bdcd..a6c63a0ad9 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1453,6 +1453,7 @@ menu "Other"
 	source "package/libpthread-stubs/Config.in"
 	source "package/libpthsem/Config.in"
 	source "package/libpwquality/Config.in"
+	source "package/libqb/Config.in"
 	source "package/libseccomp/Config.in"
 	source "package/libsigc/Config.in"
 	source "package/libsigsegv/Config.in"
diff --git a/package/libqb/0001-bconfigure-fix-CLOCK_MONOTONIC-check-for-cross-compi.patch b/package/libqb/0001-bconfigure-fix-CLOCK_MONOTONIC-check-for-cross-compi.patch
new file mode 100644
index 0000000000..6d22649ce5
--- /dev/null
+++ b/package/libqb/0001-bconfigure-fix-CLOCK_MONOTONIC-check-for-cross-compi.patch
@@ -0,0 +1,33 @@
+From f9857721bfe5c47253bc2cf487d9dcc94cbce3c2 Mon Sep 17 00:00:00 2001
+From: "Yann E. MORIN" <yann.morin.1998@free.fr>
+Date: Mon, 26 Dec 2016 19:38:45 +0100
+Subject: [PATCH] bconfigure: fix CLOCK_MONOTONIC check for cross-compilation
+
+In cross-compilation, we can't run test programs, so configure just
+bails out. Since there is no cache variable (e.g. ac_cv_blabla, we can't
+even provide the correct result.
+
+But in thise case, we don't really need to run to start with; we just
+need to check if the toolchain headers know about CLOCK_MONOTONIC.
+
+Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 560b330..6972213 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -179,7 +179,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
+                  )
+ 
+ AC_MSG_CHECKING(for a working clock_getres(CLOCK_MONOTONIC, &ts))
+-AC_RUN_IFELSE([AC_LANG_PROGRAM(
++AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
+ [[#include <time.h>]],
+ [[struct timespec ts; if(clock_getres(CLOCK_MONOTONIC, &ts)) return -1;]])],
+                     [
+-- 
+2.7.4
+
diff --git a/package/libqb/Config.in b/package/libqb/Config.in
new file mode 100644
index 0000000000..1bfea8b210
--- /dev/null
+++ b/package/libqb/Config.in
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_LIBQB
+	bool "libqb"
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	help
+	  libqb is a library with the primary purpose of providing high
+	  performance client server reusable features. It provides high
+	  performance logging, tracing, ipc, and poll.
+
+	  https://github.com/clusterlabs/libqb/wiki
+
+comment "libqb needs a toolchain w/ threads"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/libqb/libqb.hash b/package/libqb/libqb.hash
new file mode 100644
index 0000000000..b1a93201b9
--- /dev/null
+++ b/package/libqb/libqb.hash
@@ -0,0 +1,2 @@
+# sha256 locally computed
+sha256  98a6f8d7b83013747788ff7f1aace387ec532a8e7fbecc354ad9260f426dd518  libqb-v1.0.1.tar.gz
diff --git a/package/libqb/libqb.mk b/package/libqb/libqb.mk
new file mode 100644
index 0000000000..5ca2480b03
--- /dev/null
+++ b/package/libqb/libqb.mk
@@ -0,0 +1,32 @@
+################################################################################
+#
+# libqb
+#
+################################################################################
+
+LIBQB_VERSION = v1.0.1
+LIBQB_SITE = $(call github,ClusterLabs,libqb,$(LIBQB_VERSION))
+
+LIBQB_LICENSE = LGPLv2.1+
+LIBQB_LICENSE_FILES = COPYING
+
+LIBQB_DEPENDENCIES = host-pkgconf
+
+# Straight out of the repository, no configure present. Also, we do patch
+# configure.ac.
+LIBQB_AUTORECONF = YES
+
+LIBQB_INSTALL_STAGING = YES
+
+define LIBQB_M4
+	$(INSTALL) -d -m 0755 $(@D)/m4
+endef
+LIBQB_POST_EXTRACT_HOOKS += LIBQB_M4
+
+# Don't build docs
+LIBQB_CONF_ENV = ac_cv_prog_DOXYGEN=
+
+# Don't use -Werror
+LIBQB_CONF_OPTS = --disable-fatal-warnings
+
+$(eval $(autotools-package))
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 31/49 v2] package/corosync: new package
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (29 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 30/49 v2] package/libqb: new package Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-23 16:58   ` Arnout Vandecappelle
  2017-09-09 21:39 ` [Buildroot] [PATCH 32/49 v2] package/corosync: add optional dbus support Yann E. MORIN
                   ` (18 subsequent siblings)
  49 siblings, 1 reply; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/Config.in              |  1 +
 package/corosync/Config.in     | 20 ++++++++++++++++++
 package/corosync/corosync.hash |  2 ++
 package/corosync/corosync.mk   | 47 ++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 70 insertions(+)
 create mode 100644 package/corosync/Config.in
 create mode 100644 package/corosync/corosync.hash
 create mode 100644 package/corosync/corosync.mk

diff --git a/package/Config.in b/package/Config.in
index a6c63a0ad9..104acbb3ad 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1405,6 +1405,7 @@ menu "Other"
 	source "package/boost/Config.in"
 	source "package/clapack/Config.in"
 	source "package/classpath/Config.in"
+	source "package/corosync/Config.in"
 	source "package/cppcms/Config.in"
 	source "package/cracklib/Config.in"
 	source "package/dawgdic/Config.in"
diff --git a/package/corosync/Config.in b/package/corosync/Config.in
new file mode 100644
index 0000000000..1dda488109
--- /dev/null
+++ b/package/corosync/Config.in
@@ -0,0 +1,20 @@
+config BR2_PACKAGE_COROSYNC
+	bool "corosync"
+	depends on BR2_USE_MMU # fork()
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	depends on BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT # libnss -> libnsp
+	depends on !BR2_STATIC_LIBS # libnss
+	select BR2_PACKAGE_LIBNSS
+	select BR2_PACKAGE_LIBQB
+	select BR2_PACKAGE_ZLIB
+	help
+	  The Corosync Cluster Engine is a Group Communication System
+	  with additional features for implementing high availability
+	  within applications.
+
+	  https://corosync.github.io/corosync/
+
+comment "corosync needs a toolchain w/ threads, dunamic library"
+	depends on BR2_USE_MMU
+	depends on BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT
+	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
diff --git a/package/corosync/corosync.hash b/package/corosync/corosync.hash
new file mode 100644
index 0000000000..5c009dee19
--- /dev/null
+++ b/package/corosync/corosync.hash
@@ -0,0 +1,2 @@
+# sha256 locally computed
+sha256  0dd0ee718253c18c5090e0304eec72a7be8b18b6fe5e03de59ce095fa08c8b63  corosync-v2.4.2.tar.gz
diff --git a/package/corosync/corosync.mk b/package/corosync/corosync.mk
new file mode 100644
index 0000000000..865f5e0f8d
--- /dev/null
+++ b/package/corosync/corosync.mk
@@ -0,0 +1,47 @@
+################################################################################
+#
+# corosync
+#
+################################################################################
+
+COROSYNC_VERSION = v2.4.2
+COROSYNC_SITE = $(call github,corosync,corosync,$(COROSYNC_VERSION))
+
+COROSYNC_LICENSE = BSD-3c
+COROSYNC_LICENSE_FILES = LICENSE
+
+COROSYNC_DEPENDENCIES = libnss libqb zlib
+COROSYNC_AUTORECONF = YES
+COROSYNC_INSTALL_STAGING = YES
+
+define COROSYNC_M4
+	$(INSTALL) -d -m 0755 $(@D)/m4
+endef
+COROSYNC_POST_EXTRACT_HOOKS += COROSYNC_M4
+
+# Don't build HTML manpages
+COROSYNC_CONF_ENV = ac_cv_prog_GROFF=
+
+COROSYNC_CONF_OPTS = \
+	--disable-fatal-warnings \
+	$(if $(BR2_ENABLE_DEBUG),--enable-debug,--disable-debug) \
+	--enable-secure-build \
+	--disable-user-flags \
+	--disable-coverage \
+	--disable-small-memory-footprint \
+	--disable-dbus \
+	--disable-testagents \
+	--disable-rdma \
+	--disable-monitoring \
+	--disable-watchdog \
+	--disable-augeas \
+	--disable-systemd \
+	--disable-upstart \
+	$(if $(BR2_INIT_SYSTEMD),--enable-systemd,--disable-systemd) \
+	--disable-upstart \
+	--disable-snmp \
+	--disable-xmlconf \
+	--disable-qdevices \
+	--disable-qnet
+
+$(eval $(autotools-package))
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 32/49 v2] package/corosync: add optional dbus support
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (30 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 31/49 v2] package/corosync: " Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-09 21:39 ` [Buildroot] [PATCH 33/49 v2] package/corosync: add optional snmp support Yann E. MORIN
                   ` (17 subsequent siblings)
  49 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/corosync/corosync.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/package/corosync/corosync.mk b/package/corosync/corosync.mk
index 865f5e0f8d..a20edd4535 100644
--- a/package/corosync/corosync.mk
+++ b/package/corosync/corosync.mk
@@ -29,7 +29,6 @@ COROSYNC_CONF_OPTS = \
 	--disable-user-flags \
 	--disable-coverage \
 	--disable-small-memory-footprint \
-	--disable-dbus \
 	--disable-testagents \
 	--disable-rdma \
 	--disable-monitoring \
@@ -44,4 +43,11 @@ COROSYNC_CONF_OPTS = \
 	--disable-qdevices \
 	--disable-qnet
 
+ifeq ($(BR2_PACKAGE_DBUS),y)
+COROSYNC_DEPENDENCIES += dbus
+COROSYNC_CONF_OPTS += --enable-dbus
+else
+COROSYNC_CONF_OPTS += --disable-dbus
+endif
+
 $(eval $(autotools-package))
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 33/49 v2] package/corosync: add optional snmp support
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (31 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 32/49 v2] package/corosync: add optional dbus support Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-09 21:39 ` [Buildroot] [PATCH 34/49 v2] package/asterisk: add optional corosync dependency Yann E. MORIN
                   ` (16 subsequent siblings)
  49 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/corosync/corosync.mk | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/package/corosync/corosync.mk b/package/corosync/corosync.mk
index a20edd4535..ca73043319 100644
--- a/package/corosync/corosync.mk
+++ b/package/corosync/corosync.mk
@@ -38,7 +38,6 @@ COROSYNC_CONF_OPTS = \
 	--disable-upstart \
 	$(if $(BR2_INIT_SYSTEMD),--enable-systemd,--disable-systemd) \
 	--disable-upstart \
-	--disable-snmp \
 	--disable-xmlconf \
 	--disable-qdevices \
 	--disable-qnet
@@ -50,4 +49,12 @@ else
 COROSYNC_CONF_OPTS += --disable-dbus
 endif
 
+ifeq ($(BR2_PACKAGE_NETSNMP),y)
+COROSYNC_DEPENDENCIES += netsnmp
+COROSYNC_CONF_OPTS += --enable-snmp
+COROSYNC_CONF_ENV += SNMPCONFIG=$(STAGING_DIR)/usr/bin/net-snmp-config
+else
+COROSYNC_CONF_OPTS += --disable-snmp
+endif
+
 $(eval $(autotools-package))
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 34/49 v2] package/asterisk: add optional corosync dependency
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (32 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 33/49 v2] package/corosync: add optional snmp support Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-09 21:39 ` [Buildroot] [PATCH 35/49 v2] package/libpjsip: add option to enable GSM codec Yann E. MORIN
                   ` (15 subsequent siblings)
  49 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/asterisk/asterisk.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
index 1a56894f8f..452f61ba67 100644
--- a/package/asterisk/asterisk.mk
+++ b/package/asterisk/asterisk.mk
@@ -43,7 +43,6 @@ ASTERISK_CONF_OPTS = \
 	--disable-rpath \
 	--without-bfd \
 	--without-cap \
-	--without-cpg \
 	--without-curses \
 	--without-gtk2 \
 	--without-gmime \
@@ -132,6 +131,13 @@ else
 ASTERISK_CONF_OPTS += --without-bluetooth
 endif
 
+ifeq ($(BR2_PACKAGE_COROSYNC),y)
+ASTERISK_DEPENDENCIES += corosync
+ASTERISK_CONF_OPTS += --with-cpg
+else
+ASTERISK_CONF_OPTS += --without-cpg
+endif
+
 ifeq ($(BR2_PACKAGE_LIBICAL),y)
 ASTERISK_DEPENDENCIES += libical
 ASTERISK_CONF_OPTS += --with-ical
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 35/49 v2] package/libpjsip: add option to enable GSM codec
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (33 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 34/49 v2] package/asterisk: add optional corosync dependency Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-23 17:05   ` Arnout Vandecappelle
  2017-09-09 21:39 ` [Buildroot] [PATCH 36/49 v2] package/asterisk: add optional netsnmp dependency Yann E. MORIN
                   ` (14 subsequent siblings)
  49 siblings, 1 reply; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/libpjsip/Config.in   | 12 ++++++++++++
 package/libpjsip/libpjsip.mk | 14 +++++++++++++-
 2 files changed, 25 insertions(+), 1 deletion(-)

diff --git a/package/libpjsip/Config.in b/package/libpjsip/Config.in
index 727d2ec3d0..ce15a20567 100644
--- a/package/libpjsip/Config.in
+++ b/package/libpjsip/Config.in
@@ -10,5 +10,17 @@ config BR2_PACKAGE_LIBPJSIP
 
 	  http://www.pjsip.org
 
+if BR2_PACKAGE_LIBPJSIP
+
+config BR2_PACKAGE_LIBPJSIP_CODEC_GSM
+    bool "GSM codec"
+    depends on !BR2_STATIC_LIBS # libgsm
+    select BR2_PACKAGE_LIBGSM
+
+comment "GSM codec needs a toolchain w/ shared libraries"
+    depends on BR2_STATIC_LIBS
+
+endif # BR2_PACKAGE_LIBPJSIP
+
 comment "libpjsip needs a toolchain w/ C++, threads"
 	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/libpjsip/libpjsip.mk b/package/libpjsip/libpjsip.mk
index 4e2da7d32d..9b25dad2f8 100644
--- a/package/libpjsip/libpjsip.mk
+++ b/package/libpjsip/libpjsip.mk
@@ -26,7 +26,6 @@ LIBPJSIP_CONF_ENV = \
 
 LIBPJSIP_CONF_OPTS = \
 	--disable-sound \
-	--disable-gsm-codec \
 	--disable-speex-codec \
 	--disable-speex-aec \
 	--disable-resample \
@@ -70,4 +69,17 @@ ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y)
 LIBPJSIP_DEPENDENCIES += util-linux
 endif
 
+# Codecs can only be disabled. If explictly enabled, the check is
+# omitted (but successful), and there is no configure trace "Checking
+# if [codec] codec is disabled...no". So we only explicitly disable it
+# and we do not explictly enable it, so we get the configure log in
+# both cases.
+
+ifeq ($(BR2_PACKAGE_LIBPJSIP_CODEC_GSM),y)
+LIBPJSIP_DEPENDENCIES += libgsm
+LIBPJSIP_CONF_OPTS += --with-external-gsm
+else
+LIBPJSIP_CONF_OPTS += --disable-gsm-codec
+endif
+
 $(eval $(autotools-package))
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 36/49 v2] package/asterisk: add optional netsnmp dependency
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (34 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 35/49 v2] package/libpjsip: add option to enable GSM codec Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-09 21:39 ` [Buildroot] [PATCH 37/49 v2] package/libpjsip: add option to enable SPEEX codec Yann E. MORIN
                   ` (13 subsequent siblings)
  49 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/asterisk/asterisk.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
index 452f61ba67..284b338cb3 100644
--- a/package/asterisk/asterisk.mk
+++ b/package/asterisk/asterisk.mk
@@ -65,7 +65,6 @@ ASTERISK_CONF_OPTS = \
 	--without-mysqlclient \
 	--without-nbs \
 	--without-neon29 \
-	--without-netsnmp \
 	--without-newt \
 	--without-openr2 \
 	--without-osptk \
@@ -175,6 +174,13 @@ else
 ASTERISK_CONF_OPTS += --without-neon
 endif
 
+ifeq ($(BR2_PACKAGE_NETSNMP),y)
+ASTERISK_DEPENDENCIES += netsnmp
+ASTERISK_CONF_OPTS += --with-netsnmp=$(STAGING_DIR)/usr
+else
+ASTERISK_CONF_OPTS += --without-netsnmp
+endif
+
 ifeq ($(BR2_PACKAGE_LIBOGG),y)
 ASTERISK_DEPENDENCIES += libogg
 ASTERISK_CONF_OPTS += --with-ogg
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 37/49 v2] package/libpjsip: add option to enable SPEEX codec
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (35 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 36/49 v2] package/asterisk: add optional netsnmp dependency Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-09 21:39 ` [Buildroot] [PATCH 38/49 v2] package/libpjsip: add option to enable G.711 codec Yann E. MORIN
                   ` (12 subsequent siblings)
  49 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/libpjsip/Config.in   | 4 ++++
 package/libpjsip/libpjsip.mk | 9 +++++++--
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/package/libpjsip/Config.in b/package/libpjsip/Config.in
index ce15a20567..0bb446e9d9 100644
--- a/package/libpjsip/Config.in
+++ b/package/libpjsip/Config.in
@@ -20,6 +20,10 @@ config BR2_PACKAGE_LIBPJSIP_CODEC_GSM
 comment "GSM codec needs a toolchain w/ shared libraries"
     depends on BR2_STATIC_LIBS
 
+config BR2_PACKAGE_LIBPJSIP_CODEC_SPEEX
+	bool "Speex codec"
+	select BR2_PACKAGE_SPEEX
+
 endif # BR2_PACKAGE_LIBPJSIP
 
 comment "libpjsip needs a toolchain w/ C++, threads"
diff --git a/package/libpjsip/libpjsip.mk b/package/libpjsip/libpjsip.mk
index 9b25dad2f8..1259a292e4 100644
--- a/package/libpjsip/libpjsip.mk
+++ b/package/libpjsip/libpjsip.mk
@@ -26,8 +26,6 @@ LIBPJSIP_CONF_ENV = \
 
 LIBPJSIP_CONF_OPTS = \
 	--disable-sound \
-	--disable-speex-codec \
-	--disable-speex-aec \
 	--disable-resample \
 	--disable-video \
 	--disable-opencore-amr \
@@ -82,4 +80,11 @@ else
 LIBPJSIP_CONF_OPTS += --disable-gsm-codec
 endif
 
+ifeq ($(BR2_PACKAGE_LIBPJSIP_CODEC_SPEEX),y)
+LIBPJSIP_DEPENDENCIES += speex
+LIBPJSIP_CONF_OPTS += --with-external-speex
+else
+LIBPJSIP_CONF_OPTS += --disable-speex-codec --disable-speex-aec
+endif
+
 $(eval $(autotools-package))
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 38/49 v2] package/libpjsip: add option to enable G.711 codec
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (36 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 37/49 v2] package/libpjsip: add option to enable SPEEX codec Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-23 17:06   ` Arnout Vandecappelle
  2017-09-09 21:39 ` [Buildroot] [PATCH 39/49 v2] package/libpjsip: add option to enable G.722 codec Yann E. MORIN
                   ` (11 subsequent siblings)
  49 siblings, 1 reply; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/libpjsip/Config.in   | 3 +++
 package/libpjsip/libpjsip.mk | 5 ++++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/package/libpjsip/Config.in b/package/libpjsip/Config.in
index 0bb446e9d9..1c9d2ce900 100644
--- a/package/libpjsip/Config.in
+++ b/package/libpjsip/Config.in
@@ -12,6 +12,9 @@ config BR2_PACKAGE_LIBPJSIP
 
 if BR2_PACKAGE_LIBPJSIP
 
+config BR2_PACKAGE_LIBPJSIP_CODEC_G711
+	bool "G.711 codec"
+
 config BR2_PACKAGE_LIBPJSIP_CODEC_GSM
     bool "GSM codec"
     depends on !BR2_STATIC_LIBS # libgsm
diff --git a/package/libpjsip/libpjsip.mk b/package/libpjsip/libpjsip.mk
index 1259a292e4..10016fa732 100644
--- a/package/libpjsip/libpjsip.mk
+++ b/package/libpjsip/libpjsip.mk
@@ -37,7 +37,6 @@ LIBPJSIP_CONF_OPTS = \
 	--disable-ext-sound \
 	--disable-small-filter \
 	--disable-large-filter \
-	--disable-g711-codec \
 	--disable-l16-codec \
 	--disable-g722-codec \
 	--disable-libsamplerate \
@@ -73,6 +72,10 @@ endif
 # and we do not explictly enable it, so we get the configure log in
 # both cases.
 
+ifneq ($(BR2_PACKAGE_LIBPJSIP_CODEC_G711),y)
+LIBPJSIP_CONF_OPTS += --disable-g711-codec
+endif
+
 ifeq ($(BR2_PACKAGE_LIBPJSIP_CODEC_GSM),y)
 LIBPJSIP_DEPENDENCIES += libgsm
 LIBPJSIP_CONF_OPTS += --with-external-gsm
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 39/49 v2] package/libpjsip: add option to enable G.722 codec
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (37 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 38/49 v2] package/libpjsip: add option to enable G.711 codec Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-09 21:39 ` [Buildroot] [PATCH 40/49 v2] package/libpjsip: add option to enable G.7221 codec Yann E. MORIN
                   ` (10 subsequent siblings)
  49 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/libpjsip/Config.in   | 3 +++
 package/libpjsip/libpjsip.mk | 5 ++++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/package/libpjsip/Config.in b/package/libpjsip/Config.in
index 1c9d2ce900..903dd1d693 100644
--- a/package/libpjsip/Config.in
+++ b/package/libpjsip/Config.in
@@ -15,6 +15,9 @@ if BR2_PACKAGE_LIBPJSIP
 config BR2_PACKAGE_LIBPJSIP_CODEC_G711
 	bool "G.711 codec"
 
+config BR2_PACKAGE_LIBPJSIP_CODEC_G722
+	bool "G.722 codec"
+
 config BR2_PACKAGE_LIBPJSIP_CODEC_GSM
     bool "GSM codec"
     depends on !BR2_STATIC_LIBS # libgsm
diff --git a/package/libpjsip/libpjsip.mk b/package/libpjsip/libpjsip.mk
index 10016fa732..9992e14795 100644
--- a/package/libpjsip/libpjsip.mk
+++ b/package/libpjsip/libpjsip.mk
@@ -38,7 +38,6 @@ LIBPJSIP_CONF_OPTS = \
 	--disable-small-filter \
 	--disable-large-filter \
 	--disable-l16-codec \
-	--disable-g722-codec \
 	--disable-libsamplerate \
 	--disable-sdl \
 	--disable-ffmpeg \
@@ -76,6 +75,10 @@ ifneq ($(BR2_PACKAGE_LIBPJSIP_CODEC_G711),y)
 LIBPJSIP_CONF_OPTS += --disable-g711-codec
 endif
 
+ifneq ($(BR2_PACKAGE_LIBPJSIP_CODEC_G722),y)
+LIBPJSIP_CONF_OPTS += --disable-g722-codec
+endif
+
 ifeq ($(BR2_PACKAGE_LIBPJSIP_CODEC_GSM),y)
 LIBPJSIP_DEPENDENCIES += libgsm
 LIBPJSIP_CONF_OPTS += --with-external-gsm
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 40/49 v2] package/libpjsip: add option to enable G.7221 codec
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (38 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 39/49 v2] package/libpjsip: add option to enable G.722 codec Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-09 21:39 ` [Buildroot] [PATCH 41/49 v2] package/libpjsip: add option to enable iLBC codec Yann E. MORIN
                   ` (9 subsequent siblings)
  49 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

We do have a standalone libg7221 package, but pjsip can only use a
bundled version.

Patching pjsip so it can use the standalone version is not trivial, so
we have to live with that... :-(

Fortunately, the library that pjsip installs does not conflict with the
one from the libg7221 package, as it is named differently.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Adam Duskett <aduskett@gmail.com>

---
Changes v1 -> v2:
  - fix variable name  (Adam)
---
 package/libpjsip/Config.in   | 3 +++
 package/libpjsip/libpjsip.mk | 6 +++++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/package/libpjsip/Config.in b/package/libpjsip/Config.in
index 903dd1d693..2e0178c692 100644
--- a/package/libpjsip/Config.in
+++ b/package/libpjsip/Config.in
@@ -18,6 +18,9 @@ config BR2_PACKAGE_LIBPJSIP_CODEC_G711
 config BR2_PACKAGE_LIBPJSIP_CODEC_G722
 	bool "G.722 codec"
 
+config BR2_PACKAGE_LIBPJSIP_CODEC_G7221
+	bool "G.722.1 codec"
+
 config BR2_PACKAGE_LIBPJSIP_CODEC_GSM
     bool "GSM codec"
     depends on !BR2_STATIC_LIBS # libgsm
diff --git a/package/libpjsip/libpjsip.mk b/package/libpjsip/libpjsip.mk
index 9992e14795..11e2287a1c 100644
--- a/package/libpjsip/libpjsip.mk
+++ b/package/libpjsip/libpjsip.mk
@@ -29,7 +29,6 @@ LIBPJSIP_CONF_OPTS = \
 	--disable-resample \
 	--disable-video \
 	--disable-opencore-amr \
-	--disable-g7221-codec \
 	--disable-ilbc-codec \
 	--disable-libwebrtc \
 	--disable-opus \
@@ -79,6 +78,11 @@ ifneq ($(BR2_PACKAGE_LIBPJSIP_CODEC_G722),y)
 LIBPJSIP_CONF_OPTS += --disable-g722-codec
 endif
 
+# libpjsip can only use a bundled version of libg7221
+ifneq ($(BR2_PACKAGE_LIBPJSIP_CODEC_G7221),y)
+LIBPJSIP_CONF_OPTS += --disable-g7221-codec
+endif
+
 ifeq ($(BR2_PACKAGE_LIBPJSIP_CODEC_GSM),y)
 LIBPJSIP_DEPENDENCIES += libgsm
 LIBPJSIP_CONF_OPTS += --with-external-gsm
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 41/49 v2] package/libpjsip: add option to enable iLBC codec
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (39 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 40/49 v2] package/libpjsip: add option to enable G.7221 codec Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-09 21:39 ` [Buildroot] [PATCH 42/49 v2] package/libpjsip: add option to enable L16 codec Yann E. MORIN
                   ` (8 subsequent siblings)
  49 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

We do have a standalone libgilbc package, but pjsip can only use a
bundled version.

Patching pjsip so it can use the standalone version is not trivial, so
we have to live with that... :-(

Fortunately, the library that pjsip installs does nto conflict with the
one from the libilbc package, as it is named differently.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/libpjsip/Config.in   | 3 +++
 package/libpjsip/libpjsip.mk | 6 +++++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/package/libpjsip/Config.in b/package/libpjsip/Config.in
index 2e0178c692..c7cdd68c69 100644
--- a/package/libpjsip/Config.in
+++ b/package/libpjsip/Config.in
@@ -29,6 +29,9 @@ config BR2_PACKAGE_LIBPJSIP_CODEC_GSM
 comment "GSM codec needs a toolchain w/ shared libraries"
     depends on BR2_STATIC_LIBS
 
+config BR2_PACKAGE_LIBPJSIP_CODEC_ILBC
+	bool "iLBC codec"
+
 config BR2_PACKAGE_LIBPJSIP_CODEC_SPEEX
 	bool "Speex codec"
 	select BR2_PACKAGE_SPEEX
diff --git a/package/libpjsip/libpjsip.mk b/package/libpjsip/libpjsip.mk
index 11e2287a1c..e55ee86060 100644
--- a/package/libpjsip/libpjsip.mk
+++ b/package/libpjsip/libpjsip.mk
@@ -29,7 +29,6 @@ LIBPJSIP_CONF_OPTS = \
 	--disable-resample \
 	--disable-video \
 	--disable-opencore-amr \
-	--disable-ilbc-codec \
 	--disable-libwebrtc \
 	--disable-opus \
 	--disable-oss \
@@ -90,6 +89,11 @@ else
 LIBPJSIP_CONF_OPTS += --disable-gsm-codec
 endif
 
+# libpjsip can only use a bundled version of libgilbc
+ifneq ($(BR2_PACKAGE_LIBPJSIP_CODEC_ILBC),y)
+LIBPJSIP_CONF_OPTS += --disable-ilbc-codec
+endif
+
 ifeq ($(BR2_PACKAGE_LIBPJSIP_CODEC_SPEEX),y)
 LIBPJSIP_DEPENDENCIES += speex
 LIBPJSIP_CONF_OPTS += --with-external-speex
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 42/49 v2] package/libpjsip: add option to enable L16 codec
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (40 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 41/49 v2] package/libpjsip: add option to enable iLBC codec Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-09 21:39 ` [Buildroot] [PATCH 43/49 v2] package/libpjsip: add optional portaudio support Yann E. MORIN
                   ` (7 subsequent siblings)
  49 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/libpjsip/Config.in   | 3 +++
 package/libpjsip/libpjsip.mk | 5 ++++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/package/libpjsip/Config.in b/package/libpjsip/Config.in
index c7cdd68c69..ee09e4646a 100644
--- a/package/libpjsip/Config.in
+++ b/package/libpjsip/Config.in
@@ -32,6 +32,9 @@ comment "GSM codec needs a toolchain w/ shared libraries"
 config BR2_PACKAGE_LIBPJSIP_CODEC_ILBC
 	bool "iLBC codec"
 
+config BR2_PACKAGE_LIBPJSIP_L16_CODEC
+	bool "L16 codec"
+
 config BR2_PACKAGE_LIBPJSIP_CODEC_SPEEX
 	bool "Speex codec"
 	select BR2_PACKAGE_SPEEX
diff --git a/package/libpjsip/libpjsip.mk b/package/libpjsip/libpjsip.mk
index e55ee86060..e090b406c3 100644
--- a/package/libpjsip/libpjsip.mk
+++ b/package/libpjsip/libpjsip.mk
@@ -35,7 +35,6 @@ LIBPJSIP_CONF_OPTS = \
 	--disable-ext-sound \
 	--disable-small-filter \
 	--disable-large-filter \
-	--disable-l16-codec \
 	--disable-libsamplerate \
 	--disable-sdl \
 	--disable-ffmpeg \
@@ -94,6 +93,10 @@ ifneq ($(BR2_PACKAGE_LIBPJSIP_CODEC_ILBC),y)
 LIBPJSIP_CONF_OPTS += --disable-ilbc-codec
 endif
 
+ifneq ($(BR2_PACKAGE_LIBPJSIP_L16_CODEC),y)
+LIBPJSIP_CONF_OPTS += --disable-l16-codec
+endif
+
 ifeq ($(BR2_PACKAGE_LIBPJSIP_CODEC_SPEEX),y)
 LIBPJSIP_DEPENDENCIES += speex
 LIBPJSIP_CONF_OPTS += --with-external-speex
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack
@ 2017-09-09 21:39 Yann E. MORIN
  2017-09-09 21:39 ` [Buildroot] [PATCH 01/49 v2] package/asterisk: new package Yann E. MORIN
                   ` (49 more replies)
  0 siblings, 50 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

Hello All!

This series adds a complete asterisk stack. Not much to state, except
for two special outliers.

First, asterisk is not trivial to package; a lot of details are
explained in the commit log of the first patch, that adds asterisk.
Updating asterisk takes a bit of time, and as soon as I got the
packaging sorted out, a new version was available... So I stuck with
the current version and will update once this has been applied upstream.

The second outlier are the dahdi-linux kernel modules. Again, the
commit log has all the nitty-gritty details.

The rest is just a bunch of new packages without much of an issue, or a
few new options to existing packages. Boring...

The whole series has been tested with test-pkg and this config fragment
(while yielded a few SKIPPED but no FAILED).
    BR2_PACKAGE_ALSA_UTILS=y
    BR2_PACKAGE_JACK2=y
    BR2_PACKAGE_LIBILBC=y
    BR2_PACKAGE_LIBVORBIS=y
    BR2_PACKAGE_OPUS=y
    BR2_PACKAGE_PORTAUDIO=y
    BR2_PACKAGE_SPANDSP=y
    BR2_PACKAGE_OPENSSL=y
    BR2_PACKAGE_UNIXODBC=y
    BR2_PACKAGE_FREERADIUS_CLIENT=y
    BR2_PACKAGE_LIBPJSIP=y
    BR2_PACKAGE_LIBPJSIP_CODEC_G711=y
    BR2_PACKAGE_LIBPJSIP_CODEC_G722=y
    BR2_PACKAGE_LIBPJSIP_CODEC_G7221=y
    BR2_PACKAGE_LIBPJSIP_CODEC_GSM=y
    BR2_PACKAGE_LIBPJSIP_CODEC_ILBC=y
    BR2_PACKAGE_LIBPJSIP_L16_CODEC=y
    BR2_PACKAGE_LIBPJSIP_CODEC_SPEEX=y
    BR2_PACKAGE_NEON=y
    BR2_PACKAGE_OPENLDAP=y
    BR2_PACKAGE_COROSYNC=y
    BR2_PACKAGE_LIBCAP=y
    BR2_PACKAGE_LIBICAL=y
    BR2_PACKAGE_ASTERISK=y
    BR2_PACKAGE_BLUEZ_UTILS=y
    BR2_PACKAGE_NETSNMP=y

Additionally, this defconfig was built, to test the dahdi-linux build:
    BR2_arm=y
    BR2_arm1176jzf_s=y
    BR2_ARM_EABI=y
    BR2_TOOLCHAIN_EXTERNAL=y
    BR2_LINUX_KERNEL=y
    BR2_LINUX_KERNEL_CUSTOM_VERSION=y
    BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.19.8"
    BR2_LINUX_KERNEL_DEFCONFIG="bcm2835"
    BR2_PACKAGE_ALSA_UTILS=y
    BR2_PACKAGE_JACK2=y
    BR2_PACKAGE_LIBILBC=y
    BR2_PACKAGE_LIBVORBIS=y
    BR2_PACKAGE_OPUS=y
    BR2_PACKAGE_PORTAUDIO=y
    BR2_PACKAGE_SPANDSP=y
    BR2_PACKAGE_OPENSSL=y
    BR2_PACKAGE_UNIXODBC=y
    BR2_PACKAGE_LIBPRI=y
    BR2_PACKAGE_LIBSS7=y
    BR2_PACKAGE_FREERADIUS_CLIENT=y
    BR2_PACKAGE_LIBCURL=y
    BR2_PACKAGE_LIBPJSIP=y
    BR2_PACKAGE_LIBPJSIP_CODEC_G711=y
    BR2_PACKAGE_LIBPJSIP_CODEC_G722=y
    BR2_PACKAGE_LIBPJSIP_CODEC_G7221=y
    BR2_PACKAGE_LIBPJSIP_CODEC_GSM=y
    BR2_PACKAGE_LIBPJSIP_CODEC_ILBC=y
    BR2_PACKAGE_LIBPJSIP_L16_CODEC=y
    BR2_PACKAGE_LIBPJSIP_CODEC_SPEEX=y
    BR2_PACKAGE_NEON=y
    BR2_PACKAGE_OPENLDAP=y
    BR2_PACKAGE_COROSYNC=y
    BR2_PACKAGE_LIBCAP=y
    BR2_PACKAGE_LIBICAL=y
    BR2_PACKAGE_BLUEZ_UTILS=y
    BR2_PACKAGE_NETSNMP=y
    # BR2_TARGET_ROOTFS_TAR is not set

---
Chamnges v1 -> v2:
  - too much changed, too long ago...


Regards,
Yann E. MORIN.


The following changes since commit 670a5ebe4698f99534bbcf209431f62af0ef3d51

  DEVELOPERS: add myself for modem-manager related packages (2017-09-09 23:10:07 +0200)


are available in the git repository at:

  git://git.buildroot.org/~ymorin/git/buildroot.git

for you to fetch changes up to 52f266829b294499545ad7b38d32e884fa20d86d

  package/asterisk: add optional jack2 dependency (2017-09-09 23:37:58 +0200)


----------------------------------------------------------------
Yann E. MORIN (49):
      package/asterisk: new package
      package/asterisk: enable backtrace when available
      package/asterisk: add optional libgsm dependency
      package/asterisk: add optional zlib dependency
      package/asterisk: add optional support for SSL
      package/asterisk: add optional alsa-lib dependency
      package/asterisk: add optional curl dependency
      package/asterisk: add optional neon dependency
      package/asterisk: add optional libogg dependency
      package/asterisk: add optional bluez_utils dependency
      package/asterisk: add optional opus dependency
      package/asterisk: add optional speex dependency
      package/asterisk: add optional libvorbis dependency
      package/asterisk: add optional libilbc dependency
      package/asterisk: add optional portaudio dependency
      package/asterisk: add optional libical dependency
      package/asterisk: add optional openldap dependency
      package/asterisk: add optional freeradius-client dependency
      package/asterisk: add optional libsrtp dependency
      package/dahdi-linux: new package
      package/dahdi-tools: new package
      package/dahdi-tools: add USB support
      package/asterisk: add support for dahdi
      package/libss7: new package
      package/asterisk: add support for SS7
      package/libpri: new package
      package/asterisk: add support for PRI signalling
      package/spandsp: new package
      package/asterisk: add optional spandsp support
      package/libqb: new package
      package/corosync: new package
      package/corosync: add optional dbus support
      package/corosync: add optional snmp support
      package/asterisk: add optional corosync dependency
      package/libpjsip: add option to enable GSM codec
      package/asterisk: add optional netsnmp dependency
      package/libpjsip: add option to enable SPEEX codec
      package/libpjsip: add option to enable G.711 codec
      package/libpjsip: add option to enable G.722 codec
      package/libpjsip: add option to enable G.7221 codec
      package/libpjsip: add option to enable iLBC codec
      package/libpjsip: add option to enable L16 codec
      package/libpjsip: add optional portaudio support
      package/asterisk: add optional pjsip support
      package/asterisk: add optional libcap dependency
      package/asterisk: add optional iconv support
      package/asterisk: enable inotify when possible
      package/asterisk: add optional unixodbc dependency
      package/asterisk: add optional jack2 dependency

 package/Config.in                                  |   8 +
 ...-configure-do-not-configure-in-menuselect.patch |  58 ++++
 ...02-sounds-do-not-download-and-check-sha1s.patch |  52 +++
 .../0003-configure-fix-detection-of-libcrypt.patch |  43 +++
 ...n-cross-complation-assimne-eventfd-are-av.patch |  37 +++
 package/asterisk/Config.in                         |  25 ++
 package/asterisk/asterisk.hash                     |   9 +
 package/asterisk/asterisk.mk                       | 356 +++++++++++++++++++++
 package/corosync/Config.in                         |  20 ++
 package/corosync/corosync.hash                     |   2 +
 package/corosync/corosync.mk                       |  60 ++++
 package/dahdi-linux/Config.in                      |  19 ++
 package/dahdi-linux/dahdi-linux.hash               |  23 ++
 package/dahdi-linux/dahdi-linux.mk                 |  88 +++++
 package/dahdi-tools/0001-no-build-docs.patch       |  16 +
 package/dahdi-tools/0002-no-perl-manpages.patch    |  37 +++
 package/dahdi-tools/Config.in                      |  23 ++
 package/dahdi-tools/dahdi-tools.hash               |   4 +
 package/dahdi-tools/dahdi-tools.mk                 |  57 ++++
 package/libpjsip/Config.in                         |  31 ++
 package/libpjsip/libpjsip.mk                       |  55 +++-
 package/libpri/Config.in                           |  21 ++
 package/libpri/libpri.hash                         |   3 +
 package/libpri/libpri.mk                           |  52 +++
 ...fix-CLOCK_MONOTONIC-check-for-cross-compi.patch |  33 ++
 package/libqb/Config.in                            |  12 +
 package/libqb/libqb.hash                           |   2 +
 package/libqb/libqb.mk                             |  32 ++
 package/libss7/Config.in                           |  18 ++
 package/libss7/libss7.hash                         |   3 +
 package/libss7/libss7.mk                           |  55 ++++
 package/spandsp/0001-fix-msse4.x.patch             |  29 ++
 package/spandsp/Config.in                          |   9 +
 package/spandsp/spandsp.hash                       |   2 +
 package/spandsp/spandsp.mk                         |  28 ++
 35 files changed, 1314 insertions(+), 8 deletions(-)
 create mode 100644 package/asterisk/0001-configure-do-not-configure-in-menuselect.patch
 create mode 100644 package/asterisk/0002-sounds-do-not-download-and-check-sha1s.patch
 create mode 100644 package/asterisk/0003-configure-fix-detection-of-libcrypt.patch
 create mode 100644 package/asterisk/0004-configure-in-cross-complation-assimne-eventfd-are-av.patch
 create mode 100644 package/asterisk/Config.in
 create mode 100644 package/asterisk/asterisk.hash
 create mode 100644 package/asterisk/asterisk.mk
 create mode 100644 package/corosync/Config.in
 create mode 100644 package/corosync/corosync.hash
 create mode 100644 package/corosync/corosync.mk
 create mode 100644 package/dahdi-linux/Config.in
 create mode 100644 package/dahdi-linux/dahdi-linux.hash
 create mode 100644 package/dahdi-linux/dahdi-linux.mk
 create mode 100644 package/dahdi-tools/0001-no-build-docs.patch
 create mode 100644 package/dahdi-tools/0002-no-perl-manpages.patch
 create mode 100644 package/dahdi-tools/Config.in
 create mode 100644 package/dahdi-tools/dahdi-tools.hash
 create mode 100644 package/dahdi-tools/dahdi-tools.mk
 create mode 100644 package/libpri/Config.in
 create mode 100644 package/libpri/libpri.hash
 create mode 100644 package/libpri/libpri.mk
 create mode 100644 package/libqb/0001-bconfigure-fix-CLOCK_MONOTONIC-check-for-cross-compi.patch
 create mode 100644 package/libqb/Config.in
 create mode 100644 package/libqb/libqb.hash
 create mode 100644 package/libqb/libqb.mk
 create mode 100644 package/libss7/Config.in
 create mode 100644 package/libss7/libss7.hash
 create mode 100644 package/libss7/libss7.mk
 create mode 100644 package/spandsp/0001-fix-msse4.x.patch
 create mode 100644 package/spandsp/Config.in
 create mode 100644 package/spandsp/spandsp.hash
 create mode 100644 package/spandsp/spandsp.mk

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 43/49 v2] package/libpjsip: add optional portaudio support
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (41 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 42/49 v2] package/libpjsip: add option to enable L16 codec Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-09 21:39 ` [Buildroot] [PATCH 44/49 v2] package/asterisk: add optional pjsip support Yann E. MORIN
                   ` (6 subsequent siblings)
  49 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/libpjsip/libpjsip.mk | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/package/libpjsip/libpjsip.mk b/package/libpjsip/libpjsip.mk
index e090b406c3..f9d24d4aa4 100644
--- a/package/libpjsip/libpjsip.mk
+++ b/package/libpjsip/libpjsip.mk
@@ -62,6 +62,11 @@ ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y)
 LIBPJSIP_DEPENDENCIES += util-linux
 endif
 
+ifeq ($(BR2_PACKAGE_PORTAUDIO),y)
+LIBPJSIP_DEPENDENCIES += portaudio
+LIBPJSIP_CONF_OPTS += --with-external-pa
+endif
+
 # Codecs can only be disabled. If explictly enabled, the check is
 # omitted (but successful), and there is no configure trace "Checking
 # if [codec] codec is disabled...no". So we only explicitly disable it
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 44/49 v2] package/asterisk: add optional pjsip support
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (42 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 43/49 v2] package/libpjsip: add optional portaudio support Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-23 17:07   ` Arnout Vandecappelle
  2017-09-09 21:39 ` [Buildroot] [PATCH 45/49 v2] package/asterisk: add optional libcap dependency Yann E. MORIN
                   ` (5 subsequent siblings)
  49 siblings, 1 reply; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/asterisk/asterisk.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
index 284b338cb3..9327451254 100644
--- a/package/asterisk/asterisk.mk
+++ b/package/asterisk/asterisk.mk
@@ -70,7 +70,6 @@ ASTERISK_CONF_OPTS = \
 	--without-osptk \
 	--without-oss \
 	--without-postgres \
-	--without-pjproject \
 	--without-popt \
 	--without-pwlib \
 	--without-resample \
@@ -240,6 +239,13 @@ else
 ASTERISK_CONF_OPTS += --without-ssl
 endif
 
+ifeq ($(BR2_PACKAGE_LIBPJSIP),y)
+ASTERISK_DEPENDENCIES += libpjsip
+ASTERISK_CONF_OPTS += --with-pjproject
+else
+ASTERISK_CONF_OPTS += --without-pjproject
+endif
+
 ifeq ($(BR2_PACKAGE_SPANDSP),y)
 ASTERISK_DEPENDENCIES += spandsp
 ASTERISK_CONF_OPTS += --with-spandsp
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 45/49 v2] package/asterisk: add optional libcap dependency
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (43 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 44/49 v2] package/asterisk: add optional pjsip support Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-09 21:39 ` [Buildroot] [PATCH 46/49 v2] package/asterisk: add optional iconv support Yann E. MORIN
                   ` (4 subsequent siblings)
  49 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/asterisk/asterisk.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
index 9327451254..cd3325ce9e 100644
--- a/package/asterisk/asterisk.mk
+++ b/package/asterisk/asterisk.mk
@@ -42,7 +42,6 @@ ASTERISK_CONF_OPTS = \
 	--disable-asteriskssl \
 	--disable-rpath \
 	--without-bfd \
-	--without-cap \
 	--without-curses \
 	--without-gtk2 \
 	--without-gmime \
@@ -157,6 +156,13 @@ else
 ASTERISK_CONF_OPTS += --without-ldap
 endif
 
+ifeq ($(BR2_PACKAGE_LIBCAP),y)
+ASTERISK_DEPENDENCIES += libcap
+ASTERISK_CONF_OPTS += --with-cap
+else
+ASTERISK_CONF_OPTS += --without-cap
+endif
+
 ifeq ($(BR2_PACKAGE_LIBCURL),y)
 ASTERISK_DEPENDENCIES += libcurl
 ASTERISK_CONF_OPTS += --with-libcurl
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 46/49 v2] package/asterisk: add optional iconv support
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (44 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 45/49 v2] package/asterisk: add optional libcap dependency Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-09 21:39 ` [Buildroot] [PATCH 47/49 v2] package/asterisk: enable inotify when possible Yann E. MORIN
                   ` (3 subsequent siblings)
  49 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

iconv support is available if iether the toolchain has iconv built-in
(glibc, musl, or uclibc-with-iconv) or if the libiconv package is
enabled. Both are exclusive one to the other, so we need only test one.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/asterisk/asterisk.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
index cd3325ce9e..cd8bf9fab6 100644
--- a/package/asterisk/asterisk.mk
+++ b/package/asterisk/asterisk.mk
@@ -47,7 +47,6 @@ ASTERISK_CONF_OPTS = \
 	--without-gmime \
 	--without-h323 \
 	--without-hoard \
-	--without-iconv \
 	--without-iksemel \
 	--without-imap \
 	--without-inotify \
@@ -149,6 +148,13 @@ else
 ASTERISK_CONF_OPTS += --without-ilbc
 endif
 
+ifeq ($(BR2_ENABLE_LOCALE)$(BR2_PACKAGE_LIBICONV),y)
+ASTERISK_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBICONV),libiconv)
+ASTERISK_CONF_OPTS += --with-iconv
+else
+ASTERISK_CONF_OPTS += --without-iconv
+endif
+
 ifeq ($(BR2_PACKAGE_OPENLDAP),y)
 ASTERISK_DEPENDENCIES += openldap
 ASTERISK_CONF_OPTS += --without-ldap
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 47/49 v2] package/asterisk: enable inotify when possible
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (45 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 46/49 v2] package/asterisk: add optional iconv support Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-09 21:39 ` [Buildroot] [PATCH 48/49 v2] package/asterisk: add optional unixodbc dependency Yann E. MORIN
                   ` (2 subsequent siblings)
  49 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

As for DBus, we disable support for inotify only for microblaze, because
the toolchain does not provide a complete inotify.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/asterisk/asterisk.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
index cd8bf9fab6..54007f46b3 100644
--- a/package/asterisk/asterisk.mk
+++ b/package/asterisk/asterisk.mk
@@ -49,7 +49,6 @@ ASTERISK_CONF_OPTS = \
 	--without-hoard \
 	--without-iksemel \
 	--without-imap \
-	--without-inotify \
 	--without-iodbc \
 	--without-isdnnet \
 	--without-jack \
@@ -100,6 +99,13 @@ ASTERISK_CONF_OPTS += --without-avcodec
 ASTERISK_CONF_ENV = \
 	ac_cv_path_CONFIG_LIBXML2=$(STAGING_DIR)/usr/bin/xml2-config
 
+ifeq ($(BR2_microblaze),y)
+# microblaze toolchain doesn't provide inotify_rm_* but does have sys/inotify.h
+ASTERISK_CONF_OPTS += --without-inotify
+else
+ASTERISK_CONF_OPTS += --with-inotify
+endif
+
 ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),y)
 ASTERISK_CONF_OPTS += --with-execinfo
 else
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 48/49 v2] package/asterisk: add optional unixodbc dependency
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (46 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 47/49 v2] package/asterisk: enable inotify when possible Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-09 21:39 ` [Buildroot] [PATCH 49/49 v2] package/asterisk: add optional jack2 dependency Yann E. MORIN
  2017-09-23 17:18 ` [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Arnout Vandecappelle
  49 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/asterisk/asterisk.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
index 54007f46b3..3bf37da709 100644
--- a/package/asterisk/asterisk.mk
+++ b/package/asterisk/asterisk.mk
@@ -79,7 +79,6 @@ ASTERISK_CONF_OPTS = \
 	--without-timerfd \
 	--without-tinfo \
 	--without-unbound \
-	--without-unixodbc \
 	--without-vpb \
 	--without-x11 \
 	--with-crypt \
@@ -292,6 +291,13 @@ else
 ASTERISK_CONF_OPTS += --without-vorbis
 endif
 
+ifeq ($(BR2_PACKAGE_UNIXODBC),y)
+ASTERISK_DEPENDENCIES += unixodbc
+ASTERISK_CONF_OPTS += --with-unixodbc
+else
+ASTERISK_CONF_OPTS += --without-unixodbc
+endif
+
 ifeq ($(BR2_PACKAGE_ZLIB),y)
 ASTERISK_DEPENDENCIES += zlib
 ASTERISK_CONF_OPTS += --with-z
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 49/49 v2] package/asterisk: add optional jack2 dependency
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (47 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 48/49 v2] package/asterisk: add optional unixodbc dependency Yann E. MORIN
@ 2017-09-09 21:39 ` Yann E. MORIN
  2017-09-23 17:18 ` [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Arnout Vandecappelle
  49 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-09 21:39 UTC (permalink / raw)
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/asterisk/asterisk.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
index 3bf37da709..489fc49e30 100644
--- a/package/asterisk/asterisk.mk
+++ b/package/asterisk/asterisk.mk
@@ -51,7 +51,6 @@ ASTERISK_CONF_OPTS = \
 	--without-imap \
 	--without-iodbc \
 	--without-isdnnet \
-	--without-jack \
 	--without-uriparser \
 	--without-kqueue \
 	--without-libedit \
@@ -139,6 +138,13 @@ else
 ASTERISK_CONF_OPTS += --without-cpg
 endif
 
+ifeq ($(BR2_PACKAGE_JACK2),y)
+ASTERISK_DEPENDENCIES += jack2
+ASTERISK_CONF_OPTS += --with-jack
+else
+ASTERISK_CONF_OPTS += --without-jack
+endif
+
 ifeq ($(BR2_PACKAGE_LIBICAL),y)
 ASTERISK_DEPENDENCIES += libical
 ASTERISK_CONF_OPTS += --with-ical
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 01/49 v2] package/asterisk: new package
  2017-09-09 21:39 ` [Buildroot] [PATCH 01/49 v2] package/asterisk: new package Yann E. MORIN
@ 2017-09-09 22:12   ` Marcus Hoffmann
  2017-09-10  9:02     ` Yann E. MORIN
  2017-09-23 17:13   ` Arnout Vandecappelle
  1 sibling, 1 reply; 76+ messages in thread
From: Marcus Hoffmann @ 2017-09-09 22:12 UTC (permalink / raw)
  To: buildroot

Hey Yann,

I found a few typos :-).

On 09.09.2017 23:39, Yann E. MORIN wrote:
> Asterisk: the flagship of telephony on Linux. These are the lines of
> code whose continuous mission is to power small and large enterprises
> telephony systems, to boldly provide IP PBX where no one has done so
> before.
> 
> But it is a hell to get compiled... :-(
> 
> For starters, it needs a host tool, menuselect, to prepare its build
> configuration. Unfortunately, the way it handles menuselect does not
> paly very well for cross-compilation: the main ./configure calls out to

"paly" --> apply?

> menuselect's own ./configure, and of course that runs with the same
> environement, which is wrong for croos-compilation (because of variables

"croos-compilation"

> like CC, CFLAGS and the likes).
> 

[..]

> [0] http://downloads.asterisk.org/pub/telephony/asterisk/releases/
> 
> The official archive contains the sound archives plus a full set of
> documentation. This makes it very big. Unfotunately, the hosting site is

"Unfotunately" - missing an r. What does 'very big' actually mean?

> rather slow, topping at about ~204kbps. So we get the archive from the
> official mirror on Github. But that archive is missing the sound
> archives, so we download them separately.
> 
> Some tests, like the crypt() one, are broken and could not have ever
> possibly worked at all. Worse, the FFmpeg test is looking for headers
> that FFmpeg removed more than 10 years ago and are virtually no longer
> available in any distro. So, FFmpeg support is definitely not tested
> by upstream and can't possibly work at all. Finally, trying to run
> test-code does not work in cross-compilation.
> 
> As a final stroke of genius, asterisk checks for the re-entrant variant
> of res_ninit(), and concludes that all such functions are available, 
> of which res_nsearch(). 

I think a word is probably missing here?

[...]

> diff --git a/package/asterisk/0001-configure-do-not-configure-in-menuselect.patch b/package/asterisk/0001-configure-do-not-configure-in-menuselect.patch
> new file mode 100644
> index 0000000000..33c917d7fa
> --- /dev/null
> +++ b/package/asterisk/0001-configure-do-not-configure-in-menuselect.patch
> @@ -0,0 +1,58 @@
> +From cc5daff874779475742bdb89a9328bb4fc4c4e09 Mon Sep 17 00:00:00 2001
> +From: "Yann E. MORIN" <yann.morin.1998@free.fr>
> +Date: Tue, 27 Dec 2016 11:20:19 +0100
> +Subject: [PATCH] configure: do not configure in menuselect
> +
> +When cross-compiling, the arguments and environment for ./configure are
> +different for the host and the target, and we want menuselect to be
> +compiled for the build machine, not the target.
> +
> +Although we do not pass any option to ./configure for menuselect, the
> +environment may still reference variables for the tagert, like CC or
> +CFLAGS and so on... We can not build menuselect with those variables.
> +
> +Intead, just assume that menuselect will be pre-compiled.

Intead -> Instead

[...]

> diff --git a/package/asterisk/0003-configure-fix-detection-of-libcrypt.patch b/package/asterisk/0003-configure-fix-detection-of-libcrypt.patch
> new file mode 100644
> index 0000000000..b92fc9a13d
> --- /dev/null
> +++ b/package/asterisk/0003-configure-fix-detection-of-libcrypt.patch
> @@ -0,0 +1,43 @@
> +From 8996503f6c55e55f326ab11c18278954ad7abaf3 Mon Sep 17 00:00:00 2001
> +From: "Yann E. MORIN" <yann.morin.1998@free.fr>
> +Date: Tue, 27 Dec 2016 11:21:57 +0100
> +Subject: [PATCH] configure: fix detection of libcrypt
> +
> +The crypt() function is searched in two locations: -lcrypt and the
> +standard C library.
> +
> +The result of the forner is stored in the LIBCRYPT 'scheme' while that

forner -> former

[...]

> diff --git a/package/asterisk/0004-configure-in-cross-complation-assimne-eventfd-are-av.patch b/package/asterisk/0004-configure-in-cross-complation-assimne-eventfd-are-av.patch
> new file mode 100644
> index 0000000000..38214c38c0
> --- /dev/null
> +++ b/package/asterisk/0004-configure-in-cross-complation-assimne-eventfd-are-av.patch
> @@ -0,0 +1,37 @@
> +From e7de812c979d219765fbf1292f0e150bfa087716 Mon Sep 17 00:00:00 2001
> +From: "Yann E. MORIN" <yann.morin.1998@free.fr>
> +Date: Sun, 18 Jun 2017 21:54:16 +0200
> +Subject: [PATCH] configure: in cross-complation, assume eventfd are available
> +
> +eventfd have been in the kernel since 2.6.22, and in glibc since 2.8,
> +repectively released in July 2007 and April 2008, almost a decade ago
> +now.
> +
> +Assume that noone building from now on for cross-compilation will be

'noone' -> no one

> +unlucky enough to get versions older than that...
> +
> +As such, in cross-compilation, assumne eventfd are available.

'assumne '-> assume

[...]

> +++ b/package/asterisk/asterisk.mk
> @@ -0,0 +1,173 @@
> +################################################################################
> +#
> +# asterisk
> +#
> +################################################################################
> +
> +ASTERISK_VERSION = 14.5.0
> +# Use the github mirror: it's an official mirror maintained by Digium, and
> +# provides tarballs, which the main Asterisk git tree (behind Gerrit) does not.
> +ASTERISK_SITE = $(call github,asterisk,asterisk,$(ASTERISK_VERSION))
> +
> +ASTERISK_SOUNDS_BASE_URL = http://downloads.asterisk.org/pub/telephony/sounds/releases
> +ASTERISK_EXTRA_DOWNLOADS = \
> +	$(ASTERISK_SOUNDS_BASE_URL)/asterisk-core-sounds-en-gsm-1.5.tar.gz \
> +	$(ASTERISK_SOUNDS_BASE_URL)/asterisk-moh-opsound-wav-2.03.tar.gz
> +
> +# For patches 0001, 0003 and 0004
> +ASTERISK_AUTORECONF = YES
> +ASTERISK_AUTORECONF_OPTS = -Iautoconf -Ithird-party -Ithird-party/pjproject
> +
> +ASTERISK_DEPENDENCIES = \
> +	host-asterisk \
> +	jansson \
> +	libcurl \
> +	libxml2 \
> +	ncurses \
> +	sqlite \
> +	util-linux
> +
> +# Asterisk wants to run its menuselect tool (a highly tweaked derivative of
> +# kconfig), but builds it using the target tools. So we build it in the host
> +# variant (see below), and copy the full build tree of menuselect.
> +define ASTERISK_COPY_MENUSELECT
> +	rm -rf $(@D)/menuselect
> +	cp -a $(HOST_ASTERISK_DIR)/menuselect $(@D)/menuselect
> +endef
> +ASTERISK_PRE_CONFIGURE_HOOKS += ASTERISK_COPY_MENUSELECT
> +
> +ASTERISK_CONF_OPTS = \
> +	--disable-xmldoc \
> +	--disable-internal-poll \
> +	--disable-asteriskssl \
> +	--disable-rpath \
> +	--without-asound \
> +	--without-bfd \
> +	--without-execinfo \
> +	--without-bluetooth \
> +	--without-cap \
> +	--without-cpg \
> +	--without-curses \
> +	--without-dahdi \
> +	--without-gsm \
> +	--without-ilbc \
> +	--without-gtk2 \
> +	--without-gmime \
> +	--without-h323 \
> +	--without-hoard \
> +	--without-ical \
> +	--without-iconv \
> +	--without-iksemel \
> +	--without-imap \
> +	--without-inotify \
> +	--without-iodbc \
> +	--without-isdnnet \
> +	--without-jack \
> +	--without-uriparser \
> +	--without-kqueue \
> +	--without-ldap \
> +	--without-libedit \
> +	--without-libxslt \
> +	--without-ltdl \
> +	--without-lua \
> +	--without-misdn \
> +	--without-mysqlclient \
> +	--without-nbs \
> +	--without-neon \
> +	--without-neon29 \
> +	--without-netsnmp \
> +	--without-newt \
> +	--without-ogg \
> +	--without-openr2 \
> +	--without-opus \
> +	--without-osptk \
> +	--without-oss \
> +	--without-postgres \
> +	--without-pjproject \
> +	--without-popt \
> +	--without-portaudio \
> +	--without-pri \
> +	--without-pwlib \
> +	--without-radius \
> +	--without-resample \
> +	--without-sdl \
> +	--without-SDL_image \
> +	--without-spandsp \
> +	--without-ss7 \
> +	--without-speex \
> +	--without-speexdsp \
> +	--without-sqlite \
> +	--without-srtp \
> +	--without-ssl \
> +	--without-suppserv \
> +	--without-tds \
> +	--without-termcap \
> +	--without-timerfd \
> +	--without-tinfo \
> +	--without-tonezone \
> +	--without-unbound \
> +	--without-unixodbc \
> +	--without-vorbis \
> +	--without-vpb \
> +	--without-x11 \
> +	--without-z \
> +	--with-crypt \
> +	--with-jansson \
> +	--with-libcurl \
> +	--with-libxml2 \
> +	--with-ncurses="$(STAGING_DIR)/usr" \
> +	--with-sqlite3="$(STAGING_DIR)/usr" \
> +	--with-sounds-cache=$(BR2_DL_DIR)
> +
> +# avcodec are from ffmpeg. There is virtually zero chance this could
> +# even work; 

"could have ever worked"?

[...]

Best wishes,
Marcus

^ permalink raw reply	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 01/49 v2] package/asterisk: new package
  2017-09-09 22:12   ` Marcus Hoffmann
@ 2017-09-10  9:02     ` Yann E. MORIN
  2017-09-10  9:17       ` Yann E. MORIN
  0 siblings, 1 reply; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-10  9:02 UTC (permalink / raw)
  To: buildroot

Markus, All,

On 2017-09-10 00:12 +0200, Marcus Hoffmann spake thusly:
> I found a few typos :-).

Given the size of the commit log, I would have been surprised of the
opposite! ;-)

> On 09.09.2017 23:39, Yann E. MORIN wrote:
> > For starters, it needs a host tool, menuselect, to prepare its build
> > configuration. Unfortunately, the way it handles menuselect does not
> > paly very well for cross-compilation: the main ./configure calls out to
> "paly" --> apply?

play

> > [0] http://downloads.asterisk.org/pub/telephony/asterisk/releases/
> > 
> > The official archive contains the sound archives plus a full set of
> > documentation. This makes it very big. Unfotunately, the hosting site is
> 
> "Unfotunately" - missing an r. What does 'very big' actually mean?

The archive is not very big by today's standard: 39MiB. But the site is
really slow, which makes it look like it is bigger than it really is...

Grabbing from the github mirror gives a smaller archive, but more
importantly, it downloads at very high speed.

And since we then only download the strictly minimal set of sounds, we
grab only about 17MiB from asterisk.org instead of 39MiB, which makes
the download at least twice as fast.

> > As a final stroke of genius, asterisk checks for the re-entrant variant
> > of res_ninit(), and concludes that all such functions are available, 
> > of which res_nsearch(). 
> 
> I think a word is probably missing here?

Not that I can think of. The sentence is gramatically equivalent to:

    [it] concludes that all such functions, of which res_nsearch(),
    are available.

except the the part 'of which res_nsearch()' has been relegated to the
end of the sentence, as a mean for it to stand out.

> > +Assume that noone building from now on for cross-compilation will be
> 'noone' -> no one

noone is internet slang from the good ol' days. Seems the young ones
nowadays no longer recognise it! ;-) I'll fix.

> > +# avcodec are from ffmpeg. There is virtually zero chance this could
> > +# even work; 
> 
> "could have ever worked"?

Probably, yes.

Thanks for the review! :-)

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 01/49 v2] package/asterisk: new package
  2017-09-10  9:02     ` Yann E. MORIN
@ 2017-09-10  9:17       ` Yann E. MORIN
  0 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-10  9:17 UTC (permalink / raw)
  To: buildroot

Marcus, All,

On 2017-09-10 11:02 +0200, Yann E. MORIN spake thusly:
> Markus, All,

I'm so sorry about that one typo. That's what I get for not waiting for
the caffeine to kick in. Apologies.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 17/49 v2] package/asterisk: add optional openldap dependency
  2017-09-09 21:39 ` [Buildroot] [PATCH 17/49 v2] package/asterisk: add optional openldap dependency Yann E. MORIN
@ 2017-09-14 14:36   ` Bernd Kuhls
  2017-09-16 16:46     ` Yann E. MORIN
  0 siblings, 1 reply; 76+ messages in thread
From: Bernd Kuhls @ 2017-09-14 14:36 UTC (permalink / raw)
  To: buildroot

Hi Yann,

Am Sat, 09 Sep 2017 23:39:23 +0200 schrieb Yann E. MORIN:

> +ifeq ($(BR2_PACKAGE_OPENLDAP),y)
> +ASTERISK_DEPENDENCIES += openldap
> +ASTERISK_CONF_OPTS += --without-ldap

this should be "--with-ldap"

> +else
> +ASTERISK_CONF_OPTS += --without-ldap
> +endif

Regards, Bernd

^ permalink raw reply	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 17/49 v2] package/asterisk: add optional openldap dependency
  2017-09-14 14:36   ` Bernd Kuhls
@ 2017-09-16 16:46     ` Yann E. MORIN
  0 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-16 16:46 UTC (permalink / raw)
  To: buildroot

Bernd, All,

On 2017-09-14 16:36 +0200, Bernd Kuhls spake thusly:
> Hi Yann,
> 
> Am Sat, 09 Sep 2017 23:39:23 +0200 schrieb Yann E. MORIN:
> 
> > +ifeq ($(BR2_PACKAGE_OPENLDAP),y)
> > +ASTERISK_DEPENDENCIES += openldap
> > +ASTERISK_CONF_OPTS += --without-ldap
> 
> this should be "--with-ldap"

Uhu... Good catch. ;-)

Regards,
Yann E. MORIN.

> > +else
> > +ASTERISK_CONF_OPTS += --without-ldap
> > +endif
> 
> Regards, Bernd
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 22/49 v2] package/dahdi-tools: add USB support
  2017-09-09 21:39 ` [Buildroot] [PATCH 22/49 v2] package/dahdi-tools: add USB support Yann E. MORIN
@ 2017-09-23 16:28   ` Arnout Vandecappelle
  2017-09-24 14:57     ` Yann E. MORIN
  0 siblings, 1 reply; 76+ messages in thread
From: Arnout Vandecappelle @ 2017-09-23 16:28 UTC (permalink / raw)
  To: buildroot

 Hi Yann,

 I'm in the process of applying this series. Small problem here.

On 09-09-17 23:39, Yann E. MORIN wrote:
> dahdi-tools can use either libusb-1.0.x or libusb-0.1.x, and Buildroot
> packages both, respectively as libusb and as libusb-compat.

[snip]
> +# Note: libsubx was a fork of libusb, which was merged back into
> +# libusb for the 1.0.18 release in early 2014, but it looks like
> +# dahdi-tools uses the libusbx vs. libusb to differentiate whether
> +# to use the 1.0.x vs. 0.9.x libusb. Since in Buildroot, libusb-compat
> +# anyway depends on libusb, presence of libusb-compat means that
> +# libusb is enabled, so we only support libusb for dahdi-tools.
> +#
> +# Yet, we must ensure build-ordering in case libusb-compat id enabled.

 That bit doesn't make sense to me. Since we always pass --without-libusb, why
would this be needed?

> +#
> +# Yes, this is very confusing.
> +#
> +ifeq ($(BR2_PACKAGE_LIBUSB),y)
> +DAHDI_TOOLS_DEPENDENCIES += libusb
> +DAHDI_TOOLS_CONF_OPTS += --with-usb --with-libusbx
> +ifeq ($(BR2_PACKAGE_LIBUSB_COMPAT),y)
> +DAHDI_TOOLS_DEPENDENCIES += libusb-comapt

 This will surely give a build error :-)

 Regards,
 Arnout

> +endif
> +else
> +DAHDI_TOOLS_CONF_OPTS += --without-usb --without-libusbx
> +endif
> +
>  $(eval $(autotools-package))
> 

-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF

^ permalink raw reply	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 28/49 v2] package/spandsp: new package
  2017-09-09 21:39 ` [Buildroot] [PATCH 28/49 v2] package/spandsp: new package Yann E. MORIN
@ 2017-09-23 16:40   ` Arnout Vandecappelle
  2017-09-24 18:39     ` Yann E. MORIN
  0 siblings, 1 reply; 76+ messages in thread
From: Arnout Vandecappelle @ 2017-09-23 16:40 UTC (permalink / raw)
  To: buildroot



On 09-09-17 23:39, Yann E. MORIN wrote:
[snip]
> diff --git a/package/spandsp/0001-fix-msse4.x.patch b/package/spandsp/0001-fix-msse4.x.patch
> new file mode 100644
> index 0000000000..ba3a3e55e3
> --- /dev/null
> +++ b/package/spandsp/0001-fix-msse4.x.patch
> @@ -0,0 +1,29 @@
> +diff -durN spandsp-20170713.orig/configure.ac spandsp-20170713/configure.ac
> +--- spandsp-20170713.orig/configure.ac	2014-08-09 10:19:27.000000000 +0200
> ++++ spandsp-20170713/configure.ac	2017-09-07 21:38:36.990854021 +0200
> +@@ -354,10 +354,10 @@

 Missing message + SoB. I'd add it myself but I'm not sure what to add :-)

> +         COMP_VENDOR_CFLAGS="-msse4a $COMP_VENDOR_CFLAGS"
> +     fi
> +     if test "$enable_sse4_2" = "yes" ; then
> +-        COMP_VENDOR_CFLAGS="-msse42 $COMP_VENDOR_CFLAGS"
> ++        COMP_VENDOR_CFLAGS="-msse4.2 $COMP_VENDOR_CFLAGS"

 Are we sure that e.g. GCC 4.3 didn't have the -msse42 flag? So I checked, and
the flag was added in 4.3, so exactly right :-)


[snip]
> +
> +SPANDSP_LICENSE = LGPLv2.1 (library), GPLv2 (test suite)

 Please use SPDX license codes.

> +SPANDSP_LICENSE_FILES = COPYING

 And add license hashes.

 I'm doing that for the other packages while I'm committing, but since you're
going to respin this one...

 Regards,
 Arnout

> +
> +SPANDSP_AUTORECONF = YES
> +SPANDSP_DEPENDENCIES = tiff
> +SPANDSP_INSTALL_STAGING = YES
> +
> +SPANDSP_CONF_OPTS = \
> +	--disable-doc \
> +	--disable-builtin-tiff \
> +	$(if $(BR2_X86_CPU_HAS_MMX),--enable-mmx,--disable-mmx) \
> +	$(if $(BR2_X86_CPU_HAS_SSE),--enable-sse,--disable-sse) \
> +	$(if $(BR2_X86_CPU_HAS_SSE2),--enable-sse2,--disable-sse2) \
> +	$(if $(BR2_X86_CPU_HAS_SSE3),--enable-sse3,--disable-sse3) \
> +	$(if $(BR2_X86_CPU_HAS_SSSE3),--enable-ssse3,--disable-ssse3) \
> +	$(if $(BR2_X86_CPU_HAS_SSE4),--enable-sse4-1,--disable-sse4-1) \
> +	$(if $(BR2_X86_CPU_HAS_SSE42),--enable-sse4-2,--disable-sse4-2)
> +
> +$(eval $(autotools-package))
> 

-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF

^ permalink raw reply	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 30/49 v2] package/libqb: new package
  2017-09-09 21:39 ` [Buildroot] [PATCH 30/49 v2] package/libqb: new package Yann E. MORIN
@ 2017-09-23 16:51   ` Arnout Vandecappelle
  2017-09-24 19:45     ` Yann E. MORIN
  0 siblings, 1 reply; 76+ messages in thread
From: Arnout Vandecappelle @ 2017-09-23 16:51 UTC (permalink / raw)
  To: buildroot



On 09-09-17 23:39, Yann E. MORIN wrote:
[snip]
> +From f9857721bfe5c47253bc2cf487d9dcc94cbce3c2 Mon Sep 17 00:00:00 2001
> +From: "Yann E. MORIN" <yann.morin.1998@free.fr>
> +Date: Mon, 26 Dec 2016 19:38:45 +0100
> +Subject: [PATCH] bconfigure: fix CLOCK_MONOTONIC check for cross-compilation

 Upstream status?

> +
> +In cross-compilation, we can't run test programs, so configure just
> +bails out. Since there is no cache variable (e.g. ac_cv_blabla, we can't
> +even provide the correct result.
> +
> +But in thise case, we don't really need to run to start with; we just
> +need to check if the toolchain headers know about CLOCK_MONOTONIC.
> +
> +Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> +---
> + configure.ac | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/configure.ac b/configure.ac
> +index 560b330..6972213 100644
> +--- a/configure.ac
> ++++ b/configure.ac
> +@@ -179,7 +179,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
> +                  )
> + 
> + AC_MSG_CHECKING(for a working clock_getres(CLOCK_MONOTONIC, &ts))
> +-AC_RUN_IFELSE([AC_LANG_PROGRAM(
> ++AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
> + [[#include <time.h>]],
> + [[struct timespec ts; if(clock_getres(CLOCK_MONOTONIC, &ts)) return -1;]])> +                     [
> +-- 
> +2.7.4
> +
> diff --git a/package/libqb/Config.in b/package/libqb/Config.in
> new file mode 100644
> index 0000000000..1bfea8b210
> --- /dev/null
> +++ b/package/libqb/Config.in
> @@ -0,0 +1,12 @@
> +config BR2_PACKAGE_LIBQB
> +	bool "libqb"
> +	depends on BR2_TOOLCHAIN_HAS_THREADS
> +	help
> +	  libqb is a library with the primary purpose of providing high
> +	  performance client server reusable features. It provides high
> +	  performance logging, tracing, ipc, and poll.
> +
> +	  https://github.com/clusterlabs/libqb/wiki
> +
> +comment "libqb needs a toolchain w/ threads"
> +	depends on !BR2_TOOLCHAIN_HAS_THREADS
> diff --git a/package/libqb/libqb.hash b/package/libqb/libqb.hash
> new file mode 100644
> index 0000000000..b1a93201b9
> --- /dev/null
> +++ b/package/libqb/libqb.hash
> @@ -0,0 +1,2 @@
> +# sha256 locally computed
> +sha256  98a6f8d7b83013747788ff7f1aace387ec532a8e7fbecc354ad9260f426dd518  libqb-v1.0.1.tar.gz
> diff --git a/package/libqb/libqb.mk b/package/libqb/libqb.mk
> new file mode 100644
> index 0000000000..5ca2480b03
> --- /dev/null
> +++ b/package/libqb/libqb.mk
> @@ -0,0 +1,32 @@
> +################################################################################
> +#
> +# libqb
> +#
> +################################################################################
> +
> +LIBQB_VERSION = v1.0.1
> +LIBQB_SITE = $(call github,ClusterLabs,libqb,$(LIBQB_VERSION))

 There is an uploaded tarball (which probably contains a configure script).

 There's also a 1.0.2 now.

> +
> +LIBQB_LICENSE = LGPLv2.1+
> +LIBQB_LICENSE_FILES = COPYING

 SPDX + license hash.


> +
> +LIBQB_DEPENDENCIES = host-pkgconf
> +
> +# Straight out of the repository, no configure present. Also, we do patch
> +# configure.ac.
> +LIBQB_AUTORECONF = YES
> +
> +LIBQB_INSTALL_STAGING = YES
> +
> +define LIBQB_M4
> +	$(INSTALL) -d -m 0755 $(@D)/m4

 We use mkdir -p everywhere else.

> +endef
> +LIBQB_POST_EXTRACT_HOOKS += LIBQB_M4
> +
> +# Don't build docs

 We don't usually have these comments, do we?


 Regards,
 Arnout

> +LIBQB_CONF_ENV = ac_cv_prog_DOXYGEN=
> +
> +# Don't use -Werror
> +LIBQB_CONF_OPTS = --disable-fatal-warnings
> +
> +$(eval $(autotools-package))
> 

-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF

^ permalink raw reply	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 31/49 v2] package/corosync: new package
  2017-09-09 21:39 ` [Buildroot] [PATCH 31/49 v2] package/corosync: " Yann E. MORIN
@ 2017-09-23 16:58   ` Arnout Vandecappelle
  2017-09-24 20:52     ` Yann E. MORIN
  0 siblings, 1 reply; 76+ messages in thread
From: Arnout Vandecappelle @ 2017-09-23 16:58 UTC (permalink / raw)
  To: buildroot



On 09-09-17 23:39, Yann E. MORIN wrote:
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> ---
>  package/Config.in              |  1 +
>  package/corosync/Config.in     | 20 ++++++++++++++++++
>  package/corosync/corosync.hash |  2 ++
>  package/corosync/corosync.mk   | 47 ++++++++++++++++++++++++++++++++++++++++++
>  4 files changed, 70 insertions(+)
>  create mode 100644 package/corosync/Config.in
>  create mode 100644 package/corosync/corosync.hash
>  create mode 100644 package/corosync/corosync.mk
> 
> diff --git a/package/Config.in b/package/Config.in
> index a6c63a0ad9..104acbb3ad 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -1405,6 +1405,7 @@ menu "Other"
>  	source "package/boost/Config.in"
>  	source "package/clapack/Config.in"
>  	source "package/classpath/Config.in"
> +	source "package/corosync/Config.in"
>  	source "package/cppcms/Config.in"
>  	source "package/cracklib/Config.in"
>  	source "package/dawgdic/Config.in"
> diff --git a/package/corosync/Config.in b/package/corosync/Config.in
> new file mode 100644
> index 0000000000..1dda488109
> --- /dev/null
> +++ b/package/corosync/Config.in
> @@ -0,0 +1,20 @@
> +config BR2_PACKAGE_COROSYNC
> +	bool "corosync"
> +	depends on BR2_USE_MMU # fork()
> +	depends on BR2_TOOLCHAIN_HAS_THREADS
> +	depends on BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT # libnss -> libnsp

 Put arch deps in the beginning.

> +	depends on !BR2_STATIC_LIBS # libnss
> +	select BR2_PACKAGE_LIBNSS
> +	select BR2_PACKAGE_LIBQB
> +	select BR2_PACKAGE_ZLIB
> +	help
> +	  The Corosync Cluster Engine is a Group Communication System
> +	  with additional features for implementing high availability
> +	  within applications.
> +
> +	  https://corosync.github.io/corosync/
> +
> +comment "corosync needs a toolchain w/ threads, dunamic library"

 dynamic

> +	depends on BR2_USE_MMU
> +	depends on BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT
> +	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
> diff --git a/package/corosync/corosync.hash b/package/corosync/corosync.hash
> new file mode 100644
> index 0000000000..5c009dee19
> --- /dev/null
> +++ b/package/corosync/corosync.hash
> @@ -0,0 +1,2 @@
> +# sha256 locally computed
> +sha256  0dd0ee718253c18c5090e0304eec72a7be8b18b6fe5e03de59ce095fa08c8b63  corosync-v2.4.2.tar.gz
> diff --git a/package/corosync/corosync.mk b/package/corosync/corosync.mk
> new file mode 100644
> index 0000000000..865f5e0f8d
> --- /dev/null
> +++ b/package/corosync/corosync.mk
> @@ -0,0 +1,47 @@
> +################################################################################
> +#
> +# corosync
> +#
> +################################################################################
> +
> +COROSYNC_VERSION = v2.4.2
> +COROSYNC_SITE = $(call github,corosync,corosync,$(COROSYNC_VERSION))

 Anything wrong with the official
http://build.clusterlabs.org/corosync/releases/corosync-2.4.2.tar.gz download
location?

> +
> +COROSYNC_LICENSE = BSD-3c
> +COROSYNC_LICENSE_FILES = LICENSE
> +
> +COROSYNC_DEPENDENCIES = libnss libqb zlib
> +COROSYNC_AUTORECONF = YES
> +COROSYNC_INSTALL_STAGING = YES
> +
> +define COROSYNC_M4
> +	$(INSTALL) -d -m 0755 $(@D)/m4
> +endef
> +COROSYNC_POST_EXTRACT_HOOKS += COROSYNC_M4
> +
> +# Don't build HTML manpages
> +COROSYNC_CONF_ENV = ac_cv_prog_GROFF=
> +
> +COROSYNC_CONF_OPTS = \
> +	--disable-fatal-warnings \
> +	$(if $(BR2_ENABLE_DEBUG),--enable-debug,--disable-debug) \
> +	--enable-secure-build \
> +	--disable-user-flags \
> +	--disable-coverage \
> +	--disable-small-memory-footprint \
> +	--disable-dbus \
> +	--disable-testagents \
> +	--disable-rdma \
> +	--disable-monitoring \
> +	--disable-watchdog \
> +	--disable-augeas \
> +	--disable-systemd \

 Hm, below you add a --enable-systemd...

> +	--disable-upstart \
> +	$(if $(BR2_INIT_SYSTEMD),--enable-systemd,--disable-systemd) \

 No dependency on systemd needed? It just installs units?

 Regards,
 Arnout

> +	--disable-upstart \
> +	--disable-snmp \
> +	--disable-xmlconf \
> +	--disable-qdevices \
> +	--disable-qnet
> +
> +$(eval $(autotools-package))
> 

-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF

^ permalink raw reply	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 35/49 v2] package/libpjsip: add option to enable GSM codec
  2017-09-09 21:39 ` [Buildroot] [PATCH 35/49 v2] package/libpjsip: add option to enable GSM codec Yann E. MORIN
@ 2017-09-23 17:05   ` Arnout Vandecappelle
  2017-09-25 16:19     ` Yann E. MORIN
  0 siblings, 1 reply; 76+ messages in thread
From: Arnout Vandecappelle @ 2017-09-23 17:05 UTC (permalink / raw)
  To: buildroot



On 09-09-17 23:39, Yann E. MORIN wrote:
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> ---
>  package/libpjsip/Config.in   | 12 ++++++++++++
>  package/libpjsip/libpjsip.mk | 14 +++++++++++++-
>  2 files changed, 25 insertions(+), 1 deletion(-)
> 
> diff --git a/package/libpjsip/Config.in b/package/libpjsip/Config.in
> index 727d2ec3d0..ce15a20567 100644
> --- a/package/libpjsip/Config.in
> +++ b/package/libpjsip/Config.in
> @@ -10,5 +10,17 @@ config BR2_PACKAGE_LIBPJSIP
>  
>  	  http://www.pjsip.org
>  
> +if BR2_PACKAGE_LIBPJSIP
> +
> +config BR2_PACKAGE_LIBPJSIP_CODEC_GSM
> +    bool "GSM codec"
> +    depends on !BR2_STATIC_LIBS # libgsm
> +    select BR2_PACKAGE_LIBGSM

 Is there a good reason to make this an explicit suboption rather than an
automatic one like we usually do?

 I would be more inclined to add something like this to the pjsip help text:

pjsip will include the following codecs if the corresponding package is enabled
in Buildroot: GSM, Speex, iLBC.

 Regards,
 Arnout

> +
> +comment "GSM codec needs a toolchain w/ shared libraries"
> +    depends on BR2_STATIC_LIBS
> +
> +endif # BR2_PACKAGE_LIBPJSIP
> +
>  comment "libpjsip needs a toolchain w/ C++, threads"
>  	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
> diff --git a/package/libpjsip/libpjsip.mk b/package/libpjsip/libpjsip.mk
> index 4e2da7d32d..9b25dad2f8 100644
> --- a/package/libpjsip/libpjsip.mk
> +++ b/package/libpjsip/libpjsip.mk
> @@ -26,7 +26,6 @@ LIBPJSIP_CONF_ENV = \
>  
>  LIBPJSIP_CONF_OPTS = \
>  	--disable-sound \
> -	--disable-gsm-codec \
>  	--disable-speex-codec \
>  	--disable-speex-aec \
>  	--disable-resample \
> @@ -70,4 +69,17 @@ ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y)
>  LIBPJSIP_DEPENDENCIES += util-linux
>  endif
>  
> +# Codecs can only be disabled. If explictly enabled, the check is
> +# omitted (but successful), and there is no configure trace "Checking
> +# if [codec] codec is disabled...no". So we only explicitly disable it
> +# and we do not explictly enable it, so we get the configure log in
> +# both cases.
> +
> +ifeq ($(BR2_PACKAGE_LIBPJSIP_CODEC_GSM),y)
> +LIBPJSIP_DEPENDENCIES += libgsm
> +LIBPJSIP_CONF_OPTS += --with-external-gsm
> +else
> +LIBPJSIP_CONF_OPTS += --disable-gsm-codec
> +endif
> +
>  $(eval $(autotools-package))
> 

-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF

^ permalink raw reply	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 38/49 v2] package/libpjsip: add option to enable G.711 codec
  2017-09-09 21:39 ` [Buildroot] [PATCH 38/49 v2] package/libpjsip: add option to enable G.711 codec Yann E. MORIN
@ 2017-09-23 17:06   ` Arnout Vandecappelle
  2017-09-25 16:20     ` Yann E. MORIN
  0 siblings, 1 reply; 76+ messages in thread
From: Arnout Vandecappelle @ 2017-09-23 17:06 UTC (permalink / raw)
  To: buildroot



On 09-09-17 23:39, Yann E. MORIN wrote:
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> ---
>  package/libpjsip/Config.in   | 3 +++
>  package/libpjsip/libpjsip.mk | 5 ++++-
>  2 files changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/package/libpjsip/Config.in b/package/libpjsip/Config.in
> index 0bb446e9d9..1c9d2ce900 100644
> --- a/package/libpjsip/Config.in
> +++ b/package/libpjsip/Config.in
> @@ -12,6 +12,9 @@ config BR2_PACKAGE_LIBPJSIP
>  
>  if BR2_PACKAGE_LIBPJSIP
>  
> +config BR2_PACKAGE_LIBPJSIP_CODEC_G711
> +	bool "G.711 codec"

 I believe this codec (and the other ones as well) is rather small. Is there any
reason to make it optional?

 Regards,
 Arnout

> +
>  config BR2_PACKAGE_LIBPJSIP_CODEC_GSM
>      bool "GSM codec"
>      depends on !BR2_STATIC_LIBS # libgsm
> diff --git a/package/libpjsip/libpjsip.mk b/package/libpjsip/libpjsip.mk
> index 1259a292e4..10016fa732 100644
> --- a/package/libpjsip/libpjsip.mk
> +++ b/package/libpjsip/libpjsip.mk
> @@ -37,7 +37,6 @@ LIBPJSIP_CONF_OPTS = \
>  	--disable-ext-sound \
>  	--disable-small-filter \
>  	--disable-large-filter \
> -	--disable-g711-codec \
>  	--disable-l16-codec \
>  	--disable-g722-codec \
>  	--disable-libsamplerate \
> @@ -73,6 +72,10 @@ endif
>  # and we do not explictly enable it, so we get the configure log in
>  # both cases.
>  
> +ifneq ($(BR2_PACKAGE_LIBPJSIP_CODEC_G711),y)
> +LIBPJSIP_CONF_OPTS += --disable-g711-codec
> +endif
> +
>  ifeq ($(BR2_PACKAGE_LIBPJSIP_CODEC_GSM),y)
>  LIBPJSIP_DEPENDENCIES += libgsm
>  LIBPJSIP_CONF_OPTS += --with-external-gsm
> 

-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF

^ permalink raw reply	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 44/49 v2] package/asterisk: add optional pjsip support
  2017-09-09 21:39 ` [Buildroot] [PATCH 44/49 v2] package/asterisk: add optional pjsip support Yann E. MORIN
@ 2017-09-23 17:07   ` Arnout Vandecappelle
  2017-09-25 16:25     ` Yann E. MORIN
  0 siblings, 1 reply; 76+ messages in thread
From: Arnout Vandecappelle @ 2017-09-23 17:07 UTC (permalink / raw)
  To: buildroot



On 09-09-17 23:39, Yann E. MORIN wrote:
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> ---
>  package/asterisk/asterisk.mk | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
> index 284b338cb3..9327451254 100644
> --- a/package/asterisk/asterisk.mk
> +++ b/package/asterisk/asterisk.mk
> @@ -70,7 +70,6 @@ ASTERISK_CONF_OPTS = \
>  	--without-osptk \
>  	--without-oss \
>  	--without-postgres \
> -	--without-pjproject \
>  	--without-popt \
>  	--without-pwlib \
>  	--without-resample \
> @@ -240,6 +239,13 @@ else
>  ASTERISK_CONF_OPTS += --without-ssl
>  endif
>  
> +ifeq ($(BR2_PACKAGE_LIBPJSIP),y)
> +ASTERISK_DEPENDENCIES += libpjsip
> +ASTERISK_CONF_OPTS += --with-pjproject

 I believe Asterisk maintains a fork of pjsip with some specific patches. Does
it work well with upstream pjsip?

 Regards,
 Arnout

> +else
> +ASTERISK_CONF_OPTS += --without-pjproject
> +endif
> +
>  ifeq ($(BR2_PACKAGE_SPANDSP),y)
>  ASTERISK_DEPENDENCIES += spandsp
>  ASTERISK_CONF_OPTS += --with-spandsp
> 

-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF

^ permalink raw reply	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 01/49 v2] package/asterisk: new package
  2017-09-09 21:39 ` [Buildroot] [PATCH 01/49 v2] package/asterisk: new package Yann E. MORIN
  2017-09-09 22:12   ` Marcus Hoffmann
@ 2017-09-23 17:13   ` Arnout Vandecappelle
  1 sibling, 0 replies; 76+ messages in thread
From: Arnout Vandecappelle @ 2017-09-23 17:13 UTC (permalink / raw)
  To: buildroot



On 09-09-17 23:39, Yann E. MORIN wrote:
> Asterisk: the flagship of telephony on Linux. These are the lines of
> code whose continuous mission is to power small and large enterprises
> telephony systems, to boldly provide IP PBX where no one has done so
> before.
[snip]

> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> Cc: Romain Naour <romain.naour@openwide.fr>
> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

 I have applied to master with the following changes:

     - make libilbc a mandatory dependency instead of using the bundled one;
     - add license, license files, and license file hashes;
     - minor spelling corrections;
     - remove redundant trailing backslash reported by check-package;
     - rewrap help text to 72 columns instead of 68

 Note the first change: when --without-ilbc is specified, it will actually build
its internal fork.

 Regards,
 Arnout
-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF

^ permalink raw reply	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 07/49 v2] package/asterisk: add optional curl dependency
  2017-09-09 21:39 ` [Buildroot] [PATCH 07/49 v2] package/asterisk: add optional curl dependency Yann E. MORIN
@ 2017-09-23 17:14   ` Arnout Vandecappelle
  0 siblings, 0 replies; 76+ messages in thread
From: Arnout Vandecappelle @ 2017-09-23 17:14 UTC (permalink / raw)
  To: buildroot



On 09-09-17 23:39, Yann E. MORIN wrote:
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

 Curl was already a mandatory dependency so I rejected this.

 Regards,
 Arnout

> ---
>  package/asterisk/asterisk.mk | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
> index 6e68cd1912..29e52aef46 100644
> --- a/package/asterisk/asterisk.mk
> +++ b/package/asterisk/asterisk.mk
> @@ -143,6 +143,13 @@ else
>  ASTERISK_CONF_OPTS += --without-asound
>  endif
>  
> +ifeq ($(BR2_PACKAGE_LIBCURL),y)
> +ASTERISK_DEPENDENCIES += libcurl
> +ASTERISK_CONF_OPTS += --with-libcurl
> +else
> +ASTERISK_CONF_OPTS += --without-libcurl
> +endif
> +
>  ifeq ($(BR2_PACKAGE_OPENSSL),y)
>  ASTERISK_DEPENDENCIES += openssl
>  ASTERISK_CONF_OPTS += --with-ssl
> 

-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF

^ permalink raw reply	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 14/49 v2] package/asterisk: add optional libilbc dependency
  2017-09-09 21:39 ` [Buildroot] [PATCH 14/49 v2] package/asterisk: add optional libilbc dependency Yann E. MORIN
@ 2017-09-23 17:14   ` Arnout Vandecappelle
  0 siblings, 0 replies; 76+ messages in thread
From: Arnout Vandecappelle @ 2017-09-23 17:14 UTC (permalink / raw)
  To: buildroot



On 09-09-17 23:39, Yann E. MORIN wrote:
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

 Since I turned libilbc into a mandatory dependency, I rejected this patch.

 Regards,
 Arnout

> ---
>  package/asterisk/asterisk.mk | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
> index 342c642feb..bd5b794117 100644
> --- a/package/asterisk/asterisk.mk
> +++ b/package/asterisk/asterisk.mk
> @@ -46,7 +46,6 @@ ASTERISK_CONF_OPTS = \
>  	--without-cpg \
>  	--without-curses \
>  	--without-dahdi \
> -	--without-ilbc \
>  	--without-gtk2 \
>  	--without-gmime \
>  	--without-h323 \
> @@ -143,6 +142,13 @@ else
>  ASTERISK_CONF_OPTS += --without-bluetooth
>  endif
>  
> +ifeq ($(BR2_PACKAGE_LIBILBC),y)
> +ASTERISK_DEPENDENCIES += libilbc
> +ASTERISK_CONF_OPTS += --with-ilbc
> +else
> +ASTERISK_CONF_OPTS += --without-ilbc
> +endif
> +
>  ifeq ($(BR2_PACKAGE_LIBCURL),y)
>  ASTERISK_DEPENDENCIES += libcurl
>  ASTERISK_CONF_OPTS += --with-libcurl
> 

-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF

^ permalink raw reply	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack
  2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
                   ` (48 preceding siblings ...)
  2017-09-09 21:39 ` [Buildroot] [PATCH 49/49 v2] package/asterisk: add optional jack2 dependency Yann E. MORIN
@ 2017-09-23 17:18 ` Arnout Vandecappelle
  49 siblings, 0 replies; 76+ messages in thread
From: Arnout Vandecappelle @ 2017-09-23 17:18 UTC (permalink / raw)
  To: buildroot



On 09-09-17 23:39, Yann E. MORIN wrote:
[snip]
> ----------------------------------------------------------------
> Yann E. MORIN (49):
>       package/asterisk: new package
>       package/asterisk: enable backtrace when available
>       package/asterisk: add optional libgsm dependency
>       package/asterisk: add optional zlib dependency
>       package/asterisk: add optional support for SSL
>       package/asterisk: add optional alsa-lib dependency
>       package/asterisk: add optional curl dependency
>       package/asterisk: add optional neon dependency
>       package/asterisk: add optional libogg dependency
>       package/asterisk: add optional bluez_utils dependency
>       package/asterisk: add optional opus dependency
>       package/asterisk: add optional speex dependency
>       package/asterisk: add optional libvorbis dependency
>       package/asterisk: add optional libilbc dependency
>       package/asterisk: add optional portaudio dependency
>       package/asterisk: add optional libical dependency
>       package/asterisk: add optional openldap dependency
>       package/asterisk: add optional freeradius-client dependency
>       package/asterisk: add optional libsrtp dependency
>       package/dahdi-linux: new package
>       package/dahdi-tools: new package
>       package/dahdi-tools: add USB support
>       package/asterisk: add support for dahdi
>       package/libss7: new package
>       package/asterisk: add support for SS7
>       package/libpri: new package
>       package/asterisk: add support for PRI signalling

 All of the above is applied except the two I rejected.

>       package/spandsp: new package
>       package/asterisk: add optional spandsp support
>       package/libqb: new package
>       package/corosync: new package
>       package/corosync: add optional dbus support
>       package/corosync: add optional snmp support
>       package/asterisk: add optional corosync dependency

 I had comments on the above so marked as changes requested.

>       package/libpjsip: add option to enable GSM codec

 Maybe you have a good reason to make this an explicit option, so I have kept it
as New.

>       package/asterisk: add optional netsnmp dependency

 This one I applied.

>       package/libpjsip: add option to enable SPEEX codec
>       package/libpjsip: add option to enable G.711 codec
>       package/libpjsip: add option to enable G.722 codec
>       package/libpjsip: add option to enable G.7221 codec
>       package/libpjsip: add option to enable iLBC codec
>       package/libpjsip: add option to enable L16 codec
>       package/libpjsip: add optional portaudio support
>       package/asterisk: add optional pjsip support
>       package/asterisk: add optional libcap dependency

 I could have applied this one and the following ones, but it gives conflicts
because the rest is not yet applied, so I didn't bother.


 Regards,
 Arnout

>       package/asterisk: add optional iconv support
>       package/asterisk: enable inotify when possible
>       package/asterisk: add optional unixodbc dependency
>       package/asterisk: add optional jack2 dependency
> 
>  package/Config.in                                  |   8 +
>  ...-configure-do-not-configure-in-menuselect.patch |  58 ++++
>  ...02-sounds-do-not-download-and-check-sha1s.patch |  52 +++
>  .../0003-configure-fix-detection-of-libcrypt.patch |  43 +++
>  ...n-cross-complation-assimne-eventfd-are-av.patch |  37 +++
>  package/asterisk/Config.in                         |  25 ++
>  package/asterisk/asterisk.hash                     |   9 +
>  package/asterisk/asterisk.mk                       | 356 +++++++++++++++++++++
>  package/corosync/Config.in                         |  20 ++
>  package/corosync/corosync.hash                     |   2 +
>  package/corosync/corosync.mk                       |  60 ++++
>  package/dahdi-linux/Config.in                      |  19 ++
>  package/dahdi-linux/dahdi-linux.hash               |  23 ++
>  package/dahdi-linux/dahdi-linux.mk                 |  88 +++++
>  package/dahdi-tools/0001-no-build-docs.patch       |  16 +
>  package/dahdi-tools/0002-no-perl-manpages.patch    |  37 +++
>  package/dahdi-tools/Config.in                      |  23 ++
>  package/dahdi-tools/dahdi-tools.hash               |   4 +
>  package/dahdi-tools/dahdi-tools.mk                 |  57 ++++
>  package/libpjsip/Config.in                         |  31 ++
>  package/libpjsip/libpjsip.mk                       |  55 +++-
>  package/libpri/Config.in                           |  21 ++
>  package/libpri/libpri.hash                         |   3 +
>  package/libpri/libpri.mk                           |  52 +++
>  ...fix-CLOCK_MONOTONIC-check-for-cross-compi.patch |  33 ++
>  package/libqb/Config.in                            |  12 +
>  package/libqb/libqb.hash                           |   2 +
>  package/libqb/libqb.mk                             |  32 ++
>  package/libss7/Config.in                           |  18 ++
>  package/libss7/libss7.hash                         |   3 +
>  package/libss7/libss7.mk                           |  55 ++++
>  package/spandsp/0001-fix-msse4.x.patch             |  29 ++
>  package/spandsp/Config.in                          |   9 +
>  package/spandsp/spandsp.hash                       |   2 +
>  package/spandsp/spandsp.mk                         |  28 ++
>  35 files changed, 1314 insertions(+), 8 deletions(-)
>  create mode 100644 package/asterisk/0001-configure-do-not-configure-in-menuselect.patch
>  create mode 100644 package/asterisk/0002-sounds-do-not-download-and-check-sha1s.patch
>  create mode 100644 package/asterisk/0003-configure-fix-detection-of-libcrypt.patch
>  create mode 100644 package/asterisk/0004-configure-in-cross-complation-assimne-eventfd-are-av.patch
>  create mode 100644 package/asterisk/Config.in
>  create mode 100644 package/asterisk/asterisk.hash
>  create mode 100644 package/asterisk/asterisk.mk
>  create mode 100644 package/corosync/Config.in
>  create mode 100644 package/corosync/corosync.hash
>  create mode 100644 package/corosync/corosync.mk
>  create mode 100644 package/dahdi-linux/Config.in
>  create mode 100644 package/dahdi-linux/dahdi-linux.hash
>  create mode 100644 package/dahdi-linux/dahdi-linux.mk
>  create mode 100644 package/dahdi-tools/0001-no-build-docs.patch
>  create mode 100644 package/dahdi-tools/0002-no-perl-manpages.patch
>  create mode 100644 package/dahdi-tools/Config.in
>  create mode 100644 package/dahdi-tools/dahdi-tools.hash
>  create mode 100644 package/dahdi-tools/dahdi-tools.mk
>  create mode 100644 package/libpri/Config.in
>  create mode 100644 package/libpri/libpri.hash
>  create mode 100644 package/libpri/libpri.mk
>  create mode 100644 package/libqb/0001-bconfigure-fix-CLOCK_MONOTONIC-check-for-cross-compi.patch
>  create mode 100644 package/libqb/Config.in
>  create mode 100644 package/libqb/libqb.hash
>  create mode 100644 package/libqb/libqb.mk
>  create mode 100644 package/libss7/Config.in
>  create mode 100644 package/libss7/libss7.hash
>  create mode 100644 package/libss7/libss7.mk
>  create mode 100644 package/spandsp/0001-fix-msse4.x.patch
>  create mode 100644 package/spandsp/Config.in
>  create mode 100644 package/spandsp/spandsp.hash
>  create mode 100644 package/spandsp/spandsp.mk
> 

-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF

^ permalink raw reply	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 22/49 v2] package/dahdi-tools: add USB support
  2017-09-23 16:28   ` Arnout Vandecappelle
@ 2017-09-24 14:57     ` Yann E. MORIN
  0 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-24 14:57 UTC (permalink / raw)
  To: buildroot

On 2017-09-23 18:28 +0200, Arnout Vandecappelle spake thusly:
>  Hi Yann,
> 
>  I'm in the process of applying this series. Small problem here.
> 
> On 09-09-17 23:39, Yann E. MORIN wrote:
> > dahdi-tools can use either libusb-1.0.x or libusb-0.1.x, and Buildroot
> > packages both, respectively as libusb and as libusb-compat.
> 
> [snip]
> > +# Note: libsubx was a fork of libusb, which was merged back into
> > +# libusb for the 1.0.18 release in early 2014, but it looks like
> > +# dahdi-tools uses the libusbx vs. libusb to differentiate whether
> > +# to use the 1.0.x vs. 0.9.x libusb. Since in Buildroot, libusb-compat
> > +# anyway depends on libusb, presence of libusb-compat means that
> > +# libusb is enabled, so we only support libusb for dahdi-tools.
> > +#
> > +# Yet, we must ensure build-ordering in case libusb-compat id enabled.
> 
>  That bit doesn't make sense to me. Since we always pass --without-libusb, why
> would this be needed?

Hmm.. Lemme get my mind back together...

Well, even since we do not enforce ordering at all in fact, this is
probasbly a leftover from a previous tentative...

> > +#
> > +# Yes, this is very confusing.
> > +#
> > +ifeq ($(BR2_PACKAGE_LIBUSB),y)
> > +DAHDI_TOOLS_DEPENDENCIES += libusb
> > +DAHDI_TOOLS_CONF_OPTS += --with-usb --with-libusbx
> > +ifeq ($(BR2_PACKAGE_LIBUSB_COMPAT),y)
> > +DAHDI_TOOLS_DEPENDENCIES += libusb-comapt
> 
>  This will surely give a build error :-)

Meh... It means I did not try-build with libusb enabled... :-/

Regards,
Yann E. MORIN.

>  Regards,
>  Arnout
> 
> > +endif
> > +else
> > +DAHDI_TOOLS_CONF_OPTS += --without-usb --without-libusbx
> > +endif
> > +
> >  $(eval $(autotools-package))
> > 
> 
> -- 
> Arnout Vandecappelle                          arnout at mind be
> Senior Embedded Software Architect            +32-16-286500
> Essensium/Mind                                http://www.mind.be
> G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
> LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
> GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 28/49 v2] package/spandsp: new package
  2017-09-23 16:40   ` Arnout Vandecappelle
@ 2017-09-24 18:39     ` Yann E. MORIN
  0 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-24 18:39 UTC (permalink / raw)
  To: buildroot

Arnout, All,

On 2017-09-23 18:40 +0200, Arnout Vandecappelle spake thusly:
> On 09-09-17 23:39, Yann E. MORIN wrote:
> [snip]
> > diff --git a/package/spandsp/0001-fix-msse4.x.patch b/package/spandsp/0001-fix-msse4.x.patch
> > new file mode 100644
> > index 0000000000..ba3a3e55e3
> > --- /dev/null
> > +++ b/package/spandsp/0001-fix-msse4.x.patch
> > @@ -0,0 +1,29 @@
> > +diff -durN spandsp-20170713.orig/configure.ac spandsp-20170713/configure.ac
> > +--- spandsp-20170713.orig/configure.ac	2014-08-09 10:19:27.000000000 +0200
> > ++++ spandsp-20170713/configure.ac	2017-09-07 21:38:36.990854021 +0200
> > +@@ -354,10 +354,10 @@
> 
>  Missing message + SoB. I'd add it myself but I'm not sure what to add :-)

Well, there's not much to say: the flags are incorrectly named in the
configure script, so we just fix them...

> > +         COMP_VENDOR_CFLAGS="-msse4a $COMP_VENDOR_CFLAGS"
> > +     fi
> > +     if test "$enable_sse4_2" = "yes" ; then
> > +-        COMP_VENDOR_CFLAGS="-msse42 $COMP_VENDOR_CFLAGS"
> > ++        COMP_VENDOR_CFLAGS="-msse4.2 $COMP_VENDOR_CFLAGS"
> 
>  Are we sure that e.g. GCC 4.3 didn't have the -msse42 flag? So I checked, and
> the flag was added in 4.3, so exactly right :-)

Thanks for answering your own question! ;-)

> > +
> > +SPANDSP_LICENSE = LGPLv2.1 (library), GPLv2 (test suite)
>  Please use SPDX license codes.

ACK.

> > +SPANDSP_LICENSE_FILES = COPYING
>  And add license hashes.

ACK.

>  I'm doing that for the other packages while I'm committing, but since you're
> going to respin this one...

Thanks! :-)

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 30/49 v2] package/libqb: new package
  2017-09-23 16:51   ` Arnout Vandecappelle
@ 2017-09-24 19:45     ` Yann E. MORIN
  2017-09-24 19:52       ` Yann E. MORIN
  0 siblings, 1 reply; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-24 19:45 UTC (permalink / raw)
  To: buildroot

Arnout, All,

On 2017-09-23 18:51 +0200, Arnout Vandecappelle spake thusly:
> 
> 
> On 09-09-17 23:39, Yann E. MORIN wrote:
> [snip]
> > +From f9857721bfe5c47253bc2cf487d9dcc94cbce3c2 Mon Sep 17 00:00:00 2001
> > +From: "Yann E. MORIN" <yann.morin.1998@free.fr>
> > +Date: Mon, 26 Dec 2016 19:38:45 +0100
> > +Subject: [PATCH] bconfigure: fix CLOCK_MONOTONIC check for cross-compilation
> 
>  Upstream status?

PR #279. ;-)

OK, I admit: I just sent it. ;-)

[--SNIP--]
> > +LIBQB_VERSION = v1.0.1
> > +LIBQB_SITE = $(call github,ClusterLabs,libqb,$(LIBQB_VERSION))
> 
>  There is an uploaded tarball (which probably contains a configure script).

That tarball was uploaded in May 2017, while the release  was tagged in
November 2017. Of course, I did the package in-between those two
dates...

>  There's also a 1.0.2 now.

Yup, I've now seen that.

> > +LIBQB_LICENSE = LGPLv2.1+
> > +LIBQB_LICENSE_FILES = COPYING
> 
>  SPDX + license hash.

ACK.

> > +LIBQB_DEPENDENCIES = host-pkgconf
> > +
> > +# Straight out of the repository, no configure present. Also, we do patch
> > +# configure.ac.
> > +LIBQB_AUTORECONF = YES
> > +
> > +LIBQB_INSTALL_STAGING = YES
> > +
> > +define LIBQB_M4
> > +	$(INSTALL) -d -m 0755 $(@D)/m4
> 
>  We use mkdir -p everywhere else.

ACK.

> > +endef
> > +LIBQB_POST_EXTRACT_HOOKS += LIBQB_M4
> > +
> > +# Don't build docs
> 
>  We don't usually have these comments, do we?

ACK.

Thanks!

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 30/49 v2] package/libqb: new package
  2017-09-24 19:45     ` Yann E. MORIN
@ 2017-09-24 19:52       ` Yann E. MORIN
  0 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-24 19:52 UTC (permalink / raw)
  To: buildroot

Arnout, All,

On 2017-09-24 21:45 +0200, Yann E. MORIN spake thusly:
> On 2017-09-23 18:51 +0200, Arnout Vandecappelle spake thusly:
> > On 09-09-17 23:39, Yann E. MORIN wrote:
> > [snip]
> > > +LIBQB_VERSION = v1.0.1
> > > +LIBQB_SITE = $(call github,ClusterLabs,libqb,$(LIBQB_VERSION))
> > 
> >  There is an uploaded tarball (which probably contains a configure script).

And even if there is a configure script, we still need to autoreconf,
since we still need to patch configure.ac.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 31/49 v2] package/corosync: new package
  2017-09-23 16:58   ` Arnout Vandecappelle
@ 2017-09-24 20:52     ` Yann E. MORIN
  2017-09-25  7:22       ` Arnout Vandecappelle
  0 siblings, 1 reply; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-24 20:52 UTC (permalink / raw)
  To: buildroot

Arnout, All,

On 2017-09-23 18:58 +0200, Arnout Vandecappelle spake thusly:
> On 09-09-17 23:39, Yann E. MORIN wrote:
> > Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
[--SNIP--]
> > diff --git a/package/corosync/corosync.mk b/package/corosync/corosync.mk
> > new file mode 100644
> > index 0000000000..865f5e0f8d
> > --- /dev/null
> > +++ b/package/corosync/corosync.mk
> > @@ -0,0 +1,47 @@
> > +################################################################################
> > +#
> > +# corosync
> > +#
> > +################################################################################
> > +
> > +COROSYNC_VERSION = v2.4.2
> > +COROSYNC_SITE = $(call github,corosync,corosync,$(COROSYNC_VERSION))
> 
>  Anything wrong with the official
> http://build.clusterlabs.org/corosync/releases/corosync-2.4.2.tar.gz download
> location?

No thing wrong I guess. I can't remember why I went for the github
repository... Fixed.

[--SNIP--]
> > +	--disable-systemd \
>  Hm, below you add a --enable-systemd...

Arg, forgot to remove...

> > +	--disable-upstart \
> > +	$(if $(BR2_INIT_SYSTEMD),--enable-systemd,--disable-systemd) \
>  No dependency on systemd needed? It just installs units?

Yes, it only installs unit files.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 31/49 v2] package/corosync: new package
  2017-09-24 20:52     ` Yann E. MORIN
@ 2017-09-25  7:22       ` Arnout Vandecappelle
  0 siblings, 0 replies; 76+ messages in thread
From: Arnout Vandecappelle @ 2017-09-25  7:22 UTC (permalink / raw)
  To: buildroot



On 24-09-17 22:52, Yann E. MORIN wrote:
>>> +	--disable-upstart \
>>> +	$(if $(BR2_INIT_SYSTEMD),--enable-systemd,--disable-systemd) \
>>  No dependency on systemd needed? It just installs units?
> Yes, it only installs unit files.

 Could you mention that in the commit message? Adding a comment for it is
probably overkill, but it's nice to have a record somewhere of such things.

 Regards,
 Arnout
-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF

^ permalink raw reply	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 35/49 v2] package/libpjsip: add option to enable GSM codec
  2017-09-23 17:05   ` Arnout Vandecappelle
@ 2017-09-25 16:19     ` Yann E. MORIN
  2017-09-25 20:41       ` Arnout Vandecappelle
  0 siblings, 1 reply; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-25 16:19 UTC (permalink / raw)
  To: buildroot

Arnout, All,

On 2017-09-23 19:05 +0200, Arnout Vandecappelle spake thusly:
> On 09-09-17 23:39, Yann E. MORIN wrote:
> > Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> > ---
> >  package/libpjsip/Config.in   | 12 ++++++++++++
> >  package/libpjsip/libpjsip.mk | 14 +++++++++++++-
> >  2 files changed, 25 insertions(+), 1 deletion(-)
> > 
> > diff --git a/package/libpjsip/Config.in b/package/libpjsip/Config.in
> > index 727d2ec3d0..ce15a20567 100644
> > --- a/package/libpjsip/Config.in
> > +++ b/package/libpjsip/Config.in
> > @@ -10,5 +10,17 @@ config BR2_PACKAGE_LIBPJSIP
> >  
> >  	  http://www.pjsip.org
> >  
> > +if BR2_PACKAGE_LIBPJSIP
> > +
> > +config BR2_PACKAGE_LIBPJSIP_CODEC_GSM
> > +    bool "GSM codec"
> > +    depends on !BR2_STATIC_LIBS # libgsm
> > +    select BR2_PACKAGE_LIBGSM
> 
>  Is there a good reason to make this an explicit suboption rather than an
> automatic one like we usually do?

The issue I see is that the handling of codecs is not orthogonal
(accounting for your reply to the G711 codec):

  - codecs without external dependency will always be built, 

  - codecs with external dependencies need those dependencies to be
    manually selected.

By adding a config for each codec, the behaviour is then the same for
all codecs, so the user experiences a _consistent_ behaviour.

>  I would be more inclined to add something like this to the pjsip help text:
> 
> pjsip will include the following codecs if the corresponding package is enabled
> in Buildroot: GSM, Speex, iLBC.

Well, that is what I originally thought, yes, but as explained above, I
still believe that usrr experience should be more consistent.

Regards,
Yann E. MORIN.

>  Regards,
>  Arnout
> 
> > +
> > +comment "GSM codec needs a toolchain w/ shared libraries"
> > +    depends on BR2_STATIC_LIBS
> > +
> > +endif # BR2_PACKAGE_LIBPJSIP
> > +
> >  comment "libpjsip needs a toolchain w/ C++, threads"
> >  	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
> > diff --git a/package/libpjsip/libpjsip.mk b/package/libpjsip/libpjsip.mk
> > index 4e2da7d32d..9b25dad2f8 100644
> > --- a/package/libpjsip/libpjsip.mk
> > +++ b/package/libpjsip/libpjsip.mk
> > @@ -26,7 +26,6 @@ LIBPJSIP_CONF_ENV = \
> >  
> >  LIBPJSIP_CONF_OPTS = \
> >  	--disable-sound \
> > -	--disable-gsm-codec \
> >  	--disable-speex-codec \
> >  	--disable-speex-aec \
> >  	--disable-resample \
> > @@ -70,4 +69,17 @@ ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y)
> >  LIBPJSIP_DEPENDENCIES += util-linux
> >  endif
> >  
> > +# Codecs can only be disabled. If explictly enabled, the check is
> > +# omitted (but successful), and there is no configure trace "Checking
> > +# if [codec] codec is disabled...no". So we only explicitly disable it
> > +# and we do not explictly enable it, so we get the configure log in
> > +# both cases.
> > +
> > +ifeq ($(BR2_PACKAGE_LIBPJSIP_CODEC_GSM),y)
> > +LIBPJSIP_DEPENDENCIES += libgsm
> > +LIBPJSIP_CONF_OPTS += --with-external-gsm
> > +else
> > +LIBPJSIP_CONF_OPTS += --disable-gsm-codec
> > +endif
> > +
> >  $(eval $(autotools-package))
> > 
> 
> -- 
> Arnout Vandecappelle                          arnout at mind be
> Senior Embedded Software Architect            +32-16-286500
> Essensium/Mind                                http://www.mind.be
> G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
> LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
> GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 38/49 v2] package/libpjsip: add option to enable G.711 codec
  2017-09-23 17:06   ` Arnout Vandecappelle
@ 2017-09-25 16:20     ` Yann E. MORIN
  0 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-25 16:20 UTC (permalink / raw)
  To: buildroot

Arnout, All,

On 2017-09-23 19:06 +0200, Arnout Vandecappelle spake thusly:
> On 09-09-17 23:39, Yann E. MORIN wrote:
> > Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> > ---
> >  package/libpjsip/Config.in   | 3 +++
> >  package/libpjsip/libpjsip.mk | 5 ++++-
> >  2 files changed, 7 insertions(+), 1 deletion(-)
> > 
> > diff --git a/package/libpjsip/Config.in b/package/libpjsip/Config.in
> > index 0bb446e9d9..1c9d2ce900 100644
> > --- a/package/libpjsip/Config.in
> > +++ b/package/libpjsip/Config.in
> > @@ -12,6 +12,9 @@ config BR2_PACKAGE_LIBPJSIP
> >  
> >  if BR2_PACKAGE_LIBPJSIP
> >  
> > +config BR2_PACKAGE_LIBPJSIP_CODEC_G711
> > +	bool "G.711 codec"
> 
>  I believe this codec (and the other ones as well) is rather small. Is there any
> reason to make it optional?

Please see my reply to your comment on adding the GSM codec.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 44/49 v2] package/asterisk: add optional pjsip support
  2017-09-23 17:07   ` Arnout Vandecappelle
@ 2017-09-25 16:25     ` Yann E. MORIN
  0 siblings, 0 replies; 76+ messages in thread
From: Yann E. MORIN @ 2017-09-25 16:25 UTC (permalink / raw)
  To: buildroot

Arnout, All,

On 2017-09-23 19:07 +0200, Arnout Vandecappelle spake thusly:
> On 09-09-17 23:39, Yann E. MORIN wrote:
> > Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> > ---
> >  package/asterisk/asterisk.mk | 8 +++++++-
> >  1 file changed, 7 insertions(+), 1 deletion(-)
> > 
> > diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
> > index 284b338cb3..9327451254 100644
> > --- a/package/asterisk/asterisk.mk
> > +++ b/package/asterisk/asterisk.mk
> > @@ -70,7 +70,6 @@ ASTERISK_CONF_OPTS = \
> >  	--without-osptk \
> >  	--without-oss \
> >  	--without-postgres \
> > -	--without-pjproject \
> >  	--without-popt \
> >  	--without-pwlib \
> >  	--without-resample \
> > @@ -240,6 +239,13 @@ else
> >  ASTERISK_CONF_OPTS += --without-ssl
> >  endif
> >  
> > +ifeq ($(BR2_PACKAGE_LIBPJSIP),y)
> > +ASTERISK_DEPENDENCIES += libpjsip
> > +ASTERISK_CONF_OPTS += --with-pjproject
> 
>  I believe Asterisk maintains a fork of pjsip with some specific patches. Does
> it work well with upstream pjsip?

Asterisk at least has a configure option to use an externalk pjsip
instead of the bundeld one.

I spotted an issue with this patch, so I'll have to respin it anyway.

Regards,
Yann E. MORIN.

> > +else
> > +ASTERISK_CONF_OPTS += --without-pjproject
> > +endif
> > +
> >  ifeq ($(BR2_PACKAGE_SPANDSP),y)
> >  ASTERISK_DEPENDENCIES += spandsp
> >  ASTERISK_CONF_OPTS += --with-spandsp
> > 
> 
> -- 
> Arnout Vandecappelle                          arnout at mind be
> Senior Embedded Software Architect            +32-16-286500
> Essensium/Mind                                http://www.mind.be
> G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
> LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
> GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply	[flat|nested] 76+ messages in thread

* [Buildroot] [PATCH 35/49 v2] package/libpjsip: add option to enable GSM codec
  2017-09-25 16:19     ` Yann E. MORIN
@ 2017-09-25 20:41       ` Arnout Vandecappelle
  0 siblings, 0 replies; 76+ messages in thread
From: Arnout Vandecappelle @ 2017-09-25 20:41 UTC (permalink / raw)
  To: buildroot



On 25-09-17 18:19, Yann E. MORIN wrote:
> Arnout, All,
> 
> On 2017-09-23 19:05 +0200, Arnout Vandecappelle spake thusly:
>> On 09-09-17 23:39, Yann E. MORIN wrote:
>>> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
>>> ---
>>>  package/libpjsip/Config.in   | 12 ++++++++++++
>>>  package/libpjsip/libpjsip.mk | 14 +++++++++++++-
>>>  2 files changed, 25 insertions(+), 1 deletion(-)
>>>
>>> diff --git a/package/libpjsip/Config.in b/package/libpjsip/Config.in
>>> index 727d2ec3d0..ce15a20567 100644
>>> --- a/package/libpjsip/Config.in
>>> +++ b/package/libpjsip/Config.in
>>> @@ -10,5 +10,17 @@ config BR2_PACKAGE_LIBPJSIP
>>>  
>>>  	  http://www.pjsip.org
>>>  
>>> +if BR2_PACKAGE_LIBPJSIP
>>> +
>>> +config BR2_PACKAGE_LIBPJSIP_CODEC_GSM
>>> +    bool "GSM codec"
>>> +    depends on !BR2_STATIC_LIBS # libgsm
>>> +    select BR2_PACKAGE_LIBGSM
>>  Is there a good reason to make this an explicit suboption rather than an
>> automatic one like we usually do?
> The issue I see is that the handling of codecs is not orthogonal
> (accounting for your reply to the G711 codec):
> 
>   - codecs without external dependency will always be built, 
> 
>   - codecs with external dependencies need those dependencies to be
>     manually selected.
> 
> By adding a config for each codec, the behaviour is then the same for
> all codecs, so the user experiences a _consistent_ behaviour.

 So how does this differ with e.g. freeswitch, where e.g. speex is enabled if it
is enabled, while zrtp (with no external dependencies) is always enabled? I'm
taking this example because it is one I could fine where we explicitly pass
--enable-zrtp from Buildroot, but there are many others where we don't pass
anything explicitly.

 The general guideline is: enable everything if it doesn't increase the size
much, automatically enable things with external dependencies if it doesn't
increase the size much, and only add explicit options if there is a good reason,
like it would increase the size too much, or the external dependency is not
obvious, or something exceptional.

 Clearly, we have (many) exceptions to these principles. I just want to make
sure that we spend conscious thought on such exceptions and don't do it randomly.

 Note that personally I have nothing against adding config options all over the
place. I just want to make sure we follow consistent principles.

 Regards,
 Arnout

-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF

^ permalink raw reply	[flat|nested] 76+ messages in thread

end of thread, other threads:[~2017-09-25 20:41 UTC | newest]

Thread overview: 76+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-09 21:39 [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 01/49 v2] package/asterisk: new package Yann E. MORIN
2017-09-09 22:12   ` Marcus Hoffmann
2017-09-10  9:02     ` Yann E. MORIN
2017-09-10  9:17       ` Yann E. MORIN
2017-09-23 17:13   ` Arnout Vandecappelle
2017-09-09 21:39 ` [Buildroot] [PATCH 02/49 v2] package/asterisk: enable backtrace when available Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 03/49 v2] package/asterisk: add optional libgsm dependency Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 04/49 v2] package/asterisk: add optional zlib dependency Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 05/49 v2] package/asterisk: add optional support for SSL Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 06/49 v2] package/asterisk: add optional alsa-lib dependency Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 07/49 v2] package/asterisk: add optional curl dependency Yann E. MORIN
2017-09-23 17:14   ` Arnout Vandecappelle
2017-09-09 21:39 ` [Buildroot] [PATCH 08/49 v2] package/asterisk: add optional neon dependency Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 09/49 v2] package/asterisk: add optional libogg dependency Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 10/49 v2] package/asterisk: add optional bluez_utils dependency Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 11/49 v2] package/asterisk: add optional opus dependency Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 12/49 v2] package/asterisk: add optional speex dependency Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 13/49 v2] package/asterisk: add optional libvorbis dependency Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 14/49 v2] package/asterisk: add optional libilbc dependency Yann E. MORIN
2017-09-23 17:14   ` Arnout Vandecappelle
2017-09-09 21:39 ` [Buildroot] [PATCH 15/49 v2] package/asterisk: add optional portaudio dependency Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 16/49 v2] package/asterisk: add optional libical dependency Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 17/49 v2] package/asterisk: add optional openldap dependency Yann E. MORIN
2017-09-14 14:36   ` Bernd Kuhls
2017-09-16 16:46     ` Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 18/49 v2] package/asterisk: add optional freeradius-client dependency Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 19/49 v2] package/asterisk: add optional libsrtp dependency Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 20/49 v2] package/dahdi-linux: new package Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 21/49 v2] package/dahdi-tools: " Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 22/49 v2] package/dahdi-tools: add USB support Yann E. MORIN
2017-09-23 16:28   ` Arnout Vandecappelle
2017-09-24 14:57     ` Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 23/49 v2] package/asterisk: add support for dahdi Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 24/49 v2] package/libss7: new package Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 25/49 v2] package/asterisk: add support for SS7 Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 26/49 v2] package/libpri: new package Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 27/49 v2] package/asterisk: add support for PRI signalling Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 28/49 v2] package/spandsp: new package Yann E. MORIN
2017-09-23 16:40   ` Arnout Vandecappelle
2017-09-24 18:39     ` Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 29/49 v2] package/asterisk: add optional spandsp support Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 30/49 v2] package/libqb: new package Yann E. MORIN
2017-09-23 16:51   ` Arnout Vandecappelle
2017-09-24 19:45     ` Yann E. MORIN
2017-09-24 19:52       ` Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 31/49 v2] package/corosync: " Yann E. MORIN
2017-09-23 16:58   ` Arnout Vandecappelle
2017-09-24 20:52     ` Yann E. MORIN
2017-09-25  7:22       ` Arnout Vandecappelle
2017-09-09 21:39 ` [Buildroot] [PATCH 32/49 v2] package/corosync: add optional dbus support Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 33/49 v2] package/corosync: add optional snmp support Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 34/49 v2] package/asterisk: add optional corosync dependency Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 35/49 v2] package/libpjsip: add option to enable GSM codec Yann E. MORIN
2017-09-23 17:05   ` Arnout Vandecappelle
2017-09-25 16:19     ` Yann E. MORIN
2017-09-25 20:41       ` Arnout Vandecappelle
2017-09-09 21:39 ` [Buildroot] [PATCH 36/49 v2] package/asterisk: add optional netsnmp dependency Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 37/49 v2] package/libpjsip: add option to enable SPEEX codec Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 38/49 v2] package/libpjsip: add option to enable G.711 codec Yann E. MORIN
2017-09-23 17:06   ` Arnout Vandecappelle
2017-09-25 16:20     ` Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 39/49 v2] package/libpjsip: add option to enable G.722 codec Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 40/49 v2] package/libpjsip: add option to enable G.7221 codec Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 41/49 v2] package/libpjsip: add option to enable iLBC codec Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 42/49 v2] package/libpjsip: add option to enable L16 codec Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 43/49 v2] package/libpjsip: add optional portaudio support Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 44/49 v2] package/asterisk: add optional pjsip support Yann E. MORIN
2017-09-23 17:07   ` Arnout Vandecappelle
2017-09-25 16:25     ` Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 45/49 v2] package/asterisk: add optional libcap dependency Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 46/49 v2] package/asterisk: add optional iconv support Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 47/49 v2] package/asterisk: enable inotify when possible Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 48/49 v2] package/asterisk: add optional unixodbc dependency Yann E. MORIN
2017-09-09 21:39 ` [Buildroot] [PATCH 49/49 v2] package/asterisk: add optional jack2 dependency Yann E. MORIN
2017-09-23 17:18 ` [Buildroot] [PATCH 00/49 v2] package/asterisk: add a complete asterisk stack Arnout Vandecappelle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.