From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6EB5EECAAA1 for ; Sun, 30 Oct 2022 19:26:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id EEAE0402F8; Sun, 30 Oct 2022 19:26:07 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org EEAE0402F8 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id o7fh57hBEH5P; Sun, 30 Oct 2022 19:26:06 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 82F3C402E0; Sun, 30 Oct 2022 19:26:05 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 82F3C402E0 Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 7D55B1BF2A1 for ; Sun, 30 Oct 2022 19:26:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 5784360888 for ; Sun, 30 Oct 2022 19:26:04 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 5784360888 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Krw5tJ_OKRZ1 for ; Sun, 30 Oct 2022 19:26:03 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org E7AD2605F6 Received: from smtp1-g21.free.fr (smtp1-g21.free.fr [212.27.42.1]) by smtp3.osuosl.org (Postfix) with ESMTPS id E7AD2605F6 for ; Sun, 30 Oct 2022 19:26:02 +0000 (UTC) Received: from ymorin.is-a-geek.org (unknown [IPv6:2a01:cb19:8b51:cb00:afdc:c5f1:f1be:8b47]) (Authenticated sender: yann.morin.1998@free.fr) by smtp1-g21.free.fr (Postfix) with ESMTPSA id 5939FB00539; Sun, 30 Oct 2022 20:25:57 +0100 (CET) Received: by ymorin.is-a-geek.org (sSMTP sendmail emulation); Sun, 30 Oct 2022 20:25:57 +0100 Date: Sun, 30 Oct 2022 20:25:57 +0100 From: "Yann E. MORIN" To: Julien Olivain Message-ID: <20221030192557.GC1058960@scaer> References: <20221029115321.718694-1-ju.o@free.fr> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20221029115321.718694-1-ju.o@free.fr> User-Agent: Mutt/1.5.22 (2013-10-16) X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr; s=smtp-20201208; t=1667157960; bh=jXScCH8fw2ftSCQA2v8RowxNe7EsyPdZiMaOfMdo3dE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UmszujPlF/7I7QHmbWuK8bHsw1M0QaoCX0FhkrJji8Hk4uFYACt3Tts1C7SERJNKN zKPWckjWTQcHr1ICXVGHg6aduP6s1/sqvXhazavvvsw11AdpV8JYlx//mZp1bpXDlw i88Tg4IUhr2jdW8+mL3Vqt56ezYTTsvet1lMxU9DM9s0xYDwwRLTapjRrussetCDYi GG4Avg5NeDzuYflaS1t4KKdBgH6BkCj8ljGCPlHwDb0Es8lOEt0s2KI9kI+J2eJNSi wzSlL9F+hLToilpQb4Ev3kldcC7tbjS12I5wzlmaLY2FQcrjAuNh0hJ0lpnkmVOBbS KJVPAH1Q7GHiQ== X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key) header.d=free.fr header.i=@free.fr header.a=rsa-sha256 header.s=smtp-20201208 header.b=UmszujPl Subject: Re: [Buildroot] [PATCH 1/1] package/tinycompress: new package X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Petazzoni , buildroot@buildroot.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Julien, All, On 2022-10-29 13:53 +0200, Julien Olivain spake thusly: > tinycompress is a library for compress audio offload in alsa. > It also contains the "cplay" and "crecord" programs. > tinycompress is part of the ALSA project. And bizarrely enough, it does not depend on alsa-lib. Except for a tool, fcplay, that is disabled by default. > https://www.alsa-project.org/ > > Signed-off-by: Julien Olivain Applied to master, thanks. Regards, Yann E. MORIN. > --- > Tested on master branch, commit 014ec19 with commands: > > make check-package > ... > 0 warnings generated > > ./utils/test-pkg -a -p tinycompress > ... > 44 builds, 3 skipped, 1 build failed, 0 legal-info failed, 0 show-info failed > > Note: > The build failure is not related to this package. It is related to the > toolchain "bootlin-xtensa-uclibc" for which a fix was proposed in: > https://patchwork.ozlabs.org/project/buildroot/patch/20221010030937.6432-1-ju.o@free.fr/ > --- > DEVELOPERS | 1 + > package/Config.in | 1 + > ...-add-time.h-missing-header-inclusion.patch | 39 +++++++++++++++++++ > package/tinycompress/Config.in | 10 +++++ > package/tinycompress/tinycompress.hash | 5 +++ > package/tinycompress/tinycompress.mk | 13 +++++++ > 6 files changed, 69 insertions(+) > create mode 100644 package/tinycompress/0001-wave-add-time.h-missing-header-inclusion.patch > create mode 100644 package/tinycompress/Config.in > create mode 100644 package/tinycompress/tinycompress.hash > create mode 100644 package/tinycompress/tinycompress.mk > > diff --git a/DEVELOPERS b/DEVELOPERS > index dac8fefd0b..df6b3f7b42 100644 > --- a/DEVELOPERS > +++ b/DEVELOPERS > @@ -1684,6 +1684,7 @@ F: package/python-distro/ > F: package/python-gnupg/ > F: package/python-pyalsa/ > F: package/riscv-isa-sim/ > +F: package/tinycompress/ > F: package/zynaddsubfx/ > F: support/testing/tests/package/sample_python_distro.py > F: support/testing/tests/package/sample_python_gnupg.py > diff --git a/package/Config.in b/package/Config.in > index e4eb2b7434..d691471877 100644 > --- a/package/Config.in > +++ b/package/Config.in > @@ -52,6 +52,7 @@ menu "Audio and video applications" > source "package/pulseaudio/Config.in" > source "package/sox/Config.in" > source "package/squeezelite/Config.in" > + source "package/tinycompress/Config.in" > source "package/tovid/Config.in" > source "package/tstools/Config.in" > source "package/twolame/Config.in" > diff --git a/package/tinycompress/0001-wave-add-time.h-missing-header-inclusion.patch b/package/tinycompress/0001-wave-add-time.h-missing-header-inclusion.patch > new file mode 100644 > index 0000000000..4068a54074 > --- /dev/null > +++ b/package/tinycompress/0001-wave-add-time.h-missing-header-inclusion.patch > @@ -0,0 +1,39 @@ > +From 7d3b8ac47789545af5a4cd2fc1cf9bcfb91ae3b0 Mon Sep 17 00:00:00 2001 > +From: Julien Olivain > +Date: Sat, 29 Oct 2022 12:51:17 +0200 > +Subject: [PATCH] wave: add missing header inclusion > + > +When compiling tinycompress with some libc other than glibc > +(e.g. musl libc), compilation fails with the following error: > + > + In file included from wave.c:11:0: > + /path/to/gcc/sysroot/usr/include/sound/asound.h:404:18: error: field 'trigger_tstamp' has incomplete type > + struct timespec trigger_tstamp; /* time when stream was started/stopped/paused */ > + [...] > + > +According to POSIX, "struct timespec" is defined in . See: > +https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/time.h.html > + > +This patch fixes this build failure by including prior > +. > + > +Signed-off-by: Julien Olivain > +--- > + src/utils/wave.c | 1 + > + 1 file changed, 1 insertion(+) > + > +diff --git a/src/utils/wave.c b/src/utils/wave.c > +index a74149a..d17f66a 100644 > +--- a/src/utils/wave.c > ++++ b/src/utils/wave.c > +@@ -8,6 +8,7 @@ > + #include > + #include > + #include > ++#include > + #include > + > + #include "tinycompress/tinywave.h" > +-- > +2.38.1 > + > diff --git a/package/tinycompress/Config.in b/package/tinycompress/Config.in > new file mode 100644 > index 0000000000..aff1943c78 > --- /dev/null > +++ b/package/tinycompress/Config.in > @@ -0,0 +1,10 @@ > +config BR2_PACKAGE_TINYCOMPRESS > + bool "tinycompress" > + depends on !BR2_STATIC_LIBS # dlfcn.h > + help > + tinycompress is a library for compress audio offload in alsa. > + > + https://www.alsa-project.org/ > + > +comment "tinycompress needs a toolchain w/ dynamic library" > + depends on BR2_STATIC_LIBS > diff --git a/package/tinycompress/tinycompress.hash b/package/tinycompress/tinycompress.hash > new file mode 100644 > index 0000000000..164f3a36c3 > --- /dev/null > +++ b/package/tinycompress/tinycompress.hash > @@ -0,0 +1,5 @@ > +# Locally calculated after checking pgp signature > +sha256 2f897e5112cd3bca6790b5cecfda6e0662c8bc5ee0fbab972b247a0cc620d66c tinycompress-1.2.8.tar.bz2 > + > +# Locally calculated > +sha256 912ea37a4435594a3b3c35f04efa4b5b7af2e68a05f5319c16c881711a31e4b7 COPYING > diff --git a/package/tinycompress/tinycompress.mk b/package/tinycompress/tinycompress.mk > new file mode 100644 > index 0000000000..062233ec80 > --- /dev/null > +++ b/package/tinycompress/tinycompress.mk > @@ -0,0 +1,13 @@ > +################################################################################ > +# > +# tinycompress > +# > +################################################################################ > + > +TINYCOMPRESS_VERSION = 1.2.8 > +TINYCOMPRESS_SOURCE = tinycompress-$(TINYCOMPRESS_VERSION).tar.bz2 > +TINYCOMPRESS_SITE = https://www.alsa-project.org/files/pub/tinycompress > +TINYCOMPRESS_LICENSE = BSD-3-Clause and LGPL-2.1 > +TINYCOMPRESS_LICENSE_FILES = COPYING > + > +$(eval $(autotools-package)) > -- > 2.38.1 > > _______________________________________________ > buildroot mailing list > buildroot@buildroot.org > https://lists.buildroot.org/mailman/listinfo/buildroot -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot