From patchwork Tue Dec 3 18:05:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1203820 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Ic5NcZcy"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47S8yl1PPKz9sP6 for ; Wed, 4 Dec 2019 05:05:03 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id DB2E187592; Tue, 3 Dec 2019 18:05:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LDXFi0K0ZygV; Tue, 3 Dec 2019 18:04:59 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id A91A38761E; Tue, 3 Dec 2019 18:04:59 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id B3DF81BF57C for ; Tue, 3 Dec 2019 18:04:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id B0840227B1 for ; Tue, 3 Dec 2019 18:04:57 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id e5S4wDLHeTzA for ; Tue, 3 Dec 2019 18:04:54 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by silver.osuosl.org (Postfix) with ESMTPS id A62612045D for ; Tue, 3 Dec 2019 18:04:54 +0000 (UTC) Received: by mail-wm1-f66.google.com with SMTP id p17so4635180wma.1 for ; Tue, 03 Dec 2019 10:04:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=EecvhY8XZzWHGmn+r2Q9xyfsvv3NyTy0Tpqj8LRMhvM=; b=Ic5NcZcyznjwObOZ33/926v7xNGf/C/lQ6RZ1w6ckW1b8obntDMt3By0QiLBrNB4Ft 8WJu0bjl0KSp2RuAFO3JFJyxf7R9PpfBLXafNwARlIUU5SmgtUNhBz5mXXsN6SPiuKB9 vnUfYqoHTe6heSxpI0LfQxEjsibIDHpzsjInKdowQaYFF8S90o+V2HmKR77NvY2W3M4I WV0+mVaY1Fxk1DP98CpB5glVp3eR2ju7eohVBfzRQWHeIABIePVLHJwYsxqgFLvtuJ7I 7qkCuYiGC5qwBQ3+mIVmDMC+pdSG2v1X88aBHXKjCDg8I+61qkIcKabrNT2o/1lS9+X9 Vjww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=EecvhY8XZzWHGmn+r2Q9xyfsvv3NyTy0Tpqj8LRMhvM=; b=QNvjd/O6qiO4VOUqMwxAEEwBUtnKpKO8mnognFpFAhrG7HVfVnQz0Km0FHA3UntEOw RzWGzcWRlwuHcIsUQdYIQaTLfct6oZm0lH/T4nRg7ZZk4JfYdTL9nvFaZQKSxtqNaEFr VNgWlrXWGAyJ4sKkXhwGxQpyNZ0kvL4NcGex4+Gf8RndJier7wkmPiyFqZhQ3+CdZXKN 2485yCruHhxI8n22MLDNTB1aPfMZZPQWC2oXMOcOeTIraAweZ4dJCJpxz/vXV8wI2iz7 b80uesMB0Fexce5i7P+n4043MOkdzGV/JZW4dnzdry54Yhej2aosg+FwCJ4t4Jj3nSmV +Zzg== X-Gm-Message-State: APjAAAW51098OaiEeR7YXiAGKJ3MuLfr0rfNE5wh+wKRpIARZOfgnyVN ++eS5icrkCYWXleW7+41l9aSyd8+ X-Google-Smtp-Source: APXvYqwD2D3Hfg8UYFLMDQaPTw3wyUxpZ1SXQfNQJYSQ7Eb0X9amXJGv/W/Cgqiss1ksCM20ymisGQ== X-Received: by 2002:a05:600c:230d:: with SMTP id 13mr31737458wmo.13.1575396292445; Tue, 03 Dec 2019 10:04:52 -0800 (PST) Received: from kali.home (lfbn-ren-1-602-70.w81-53.abo.wanadoo.fr. [81.53.179.70]) by smtp.gmail.com with ESMTPSA id e6sm3858705wru.44.2019.12.03.10.04.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Dec 2019 10:04:51 -0800 (PST) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Tue, 3 Dec 2019 19:05:14 +0100 Message-Id: <20191203180514.1931424-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/alsa-lib: fix build without mixer X-BeenThere: buildroot@busybox.net 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: Bernd Kuhls , Fabrice Fontaine Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Fixes: - http://autobuild.buildroot.org/results/4d91c9f82a2a61c50c457a851073b85cc09ea345 Signed-off-by: Fabrice Fontaine --- ...c-ucm-main.c-fix-build-without-mixer.patch | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 package/alsa-lib/0002-src-ucm-main.c-fix-build-without-mixer.patch diff --git a/package/alsa-lib/0002-src-ucm-main.c-fix-build-without-mixer.patch b/package/alsa-lib/0002-src-ucm-main.c-fix-build-without-mixer.patch new file mode 100644 index 0000000000..4d3ad11175 --- /dev/null +++ b/package/alsa-lib/0002-src-ucm-main.c-fix-build-without-mixer.patch @@ -0,0 +1,39 @@ +From 65eb51668f87668d994f260f36a6325f248cdff3 Mon Sep 17 00:00:00 2001 +From: Fabrice Fontaine +Date: Tue, 3 Dec 2019 18:56:40 +0100 +Subject: [PATCH] src/ucm/main.c: fix build without mixer + +Commit 4ce38a5ff466d18039b2606938f866ea3a6c9f3c breaks the build without +mixer on: + + CCLD libasound.la +/home/buildroot/autobuild/instance-1/output-1/host/lib/gcc/xtensa-buildroot-linux-uclibc/8.3.0/../../../../xtensa-buildroot-linux-uclibc/bin/ld: ucm/.libs/libucm.a(main.o): in function `snd_use_case_set': +main.c:(.text+0x185c): undefined reference to `snd_mixer_selem_id_parse' + +Fixes: + - http://autobuild.buildroot.org/results/4d91c9f82a2a61c50c457a851073b85cc09ea345 + +Signed-off-by: Fabrice Fontaine +[Upstream status: https://github.com/alsa-project/alsa-lib/pull/15] +--- + src/ucm/main.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/ucm/main.c b/src/ucm/main.c +index d2078a23..61922f10 100644 +--- a/src/ucm/main.c ++++ b/src/ucm/main.c +@@ -2115,8 +2115,10 @@ int snd_use_case_parse_selem_id(snd_mixer_selem_id_t *dst, + const char *ucm_id, + const char *value) + { ++#ifdef BUILD_MIXER + if (strcmp(ucm_id, "PlaybackMixerId") == 0 || + strcmp(ucm_id, "CaptureMixerId") == 0) + return snd_mixer_selem_id_parse(dst, value); ++#endif + return -EINVAL; + } +-- +2.24.0 +