From patchwork Sun Jan 31 17:44:07 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Bernd Kuhls X-Patchwork-Id: 576226 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 75604140B95 for ; Mon, 1 Feb 2016 04:44:17 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 307EB95533; Sun, 31 Jan 2016 17:44:16 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id a9oiHzdif5K1; Sun, 31 Jan 2016 17:44:14 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id D8E259550F; Sun, 31 Jan 2016 17:44:13 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 7B56F1C0F4A for ; Sun, 31 Jan 2016 17:44:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 76AEC84676 for ; Sun, 31 Jan 2016 17:44:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oQw5nk6lzBTj for ; Sun, 31 Jan 2016 17:44:11 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailout02.t-online.de (mailout02.t-online.de [194.25.134.17]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 68CB8840D4 for ; Sun, 31 Jan 2016 17:44:11 +0000 (UTC) Received: from fwd08.aul.t-online.de (fwd08.aul.t-online.de [172.20.26.151]) by mailout02.t-online.de (Postfix) with SMTP id 6B07A4DAF2 for ; Sun, 31 Jan 2016 18:44:09 +0100 (CET) Received: from fli4l.lan.fli4l (VT8WR6ZZYhqo7VohtH3OGU1wBi36HGJF+AYPEEPd12BMdR0KLMfMG7mCPuNFSkSgoZ@[84.191.216.131]) by fwd08.t-online.de with (TLSv1:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1aPw2j-2DR9Xc0; Sun, 31 Jan 2016 18:44:09 +0100 Received: from mahler.lan.fli4l ([192.168.1.1]:44026 helo=kuhls.lan.fli4l) by fli4l.lan.fli4l with esmtp (Exim 4.86) (envelope-from ) id 1aPw2i-0004VV-2p; Sun, 31 Jan 2016 18:44:08 +0100 From: Bernd Kuhls To: buildroot@buildroot.org Date: Sun, 31 Jan 2016 18:44:07 +0100 Message-Id: <1454262247-30214-1-git-send-email-bernd.kuhls@t-online.de> X-Mailer: git-send-email 2.7.0 MIME-Version: 1.0 X-ID: VT8WR6ZZYhqo7VohtH3OGU1wBi36HGJF+AYPEEPd12BMdR0KLMfMG7mCPuNFSkSgoZ X-TOI-MSGID: 54eee30d-69b4-45c2-a5a6-933831cadc6c Cc: Bernd Kuhls Subject: [Buildroot] [PATCH 1/1] package/squeezelite: fix musl build X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" The build error was not yet found by the autobuilders: output_alsa.c: In function ‘output_init_alsa’: output_alsa.c:865:10: error: ‘M_TRIM_THRESHOLD’ undeclared (first use in this function) mallopt(M_TRIM_THRESHOLD, -1); ^ output_alsa.c:865:10: note: each undeclared identifier is reported only once for each function it appears in output_alsa.c:866:10: error: ‘M_MMAP_MAX’ undeclared (first use in this function) mallopt(M_MMAP_MAX, 0); ^ Signed-off-by: Bernd Kuhls --- ...02-only-run-glibc-specific-hacks-on-glibc.patch | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 package/squeezelite/0002-only-run-glibc-specific-hacks-on-glibc.patch diff --git a/package/squeezelite/0002-only-run-glibc-specific-hacks-on-glibc.patch b/package/squeezelite/0002-only-run-glibc-specific-hacks-on-glibc.patch new file mode 100644 index 0000000..12237e4 --- /dev/null +++ b/package/squeezelite/0002-only-run-glibc-specific-hacks-on-glibc.patch @@ -0,0 +1,30 @@ +From d898fac929cd093bb39af3f517158777c21c06ef Mon Sep 17 00:00:00 2001 +From: Carlo Landmeter +Date: Tue, 31 Mar 2015 10:07:14 +0000 +Subject: [PATCH] only run glibc specific hacks on glibc + +--- +Patch downloaded from upstream PR: +https://github.com/robadenshi/squeezelite/issues/97 + +Signed-off-by: Bernd Kuhls + + output_alsa.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/output_alsa.c b/output_alsa.c +index aa01560..c1b5435 100644 +--- a/output_alsa.c ++++ b/output_alsa.c +@@ -853,7 +853,7 @@ void output_init_alsa(log_level level, const char *device, unsigned output_buf_s + set_mixer(output.device, volume_mixer_name, volume_mixer_index ? atoi(volume_mixer_index) : 0, true, 0, 0); + } + +-#if LINUX ++#if defined(__GLIBC__) + // RT linux - aim to avoid pagefaults by locking memory: + // https://rt.wiki.kernel.org/index.php/Threaded_RT-application_with_memory_locking_and_stack_handling_example + if (mlockall(MCL_CURRENT | MCL_FUTURE) == -1) { +-- +2.3.4 +