From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CJ4/JBpIgWCrFgAAgWs5BA (envelope-from ) for ; Thu, 22 Apr 2021 11:55:38 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id iKQNIBpIgWAwUQAA1q6Kng (envelope-from ) for ; Thu, 22 Apr 2021 09:55:38 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4EE5CC612 for ; Thu, 22 Apr 2021 11:55:38 +0200 (CEST) Received: from localhost ([::1]:43766 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZW3d-0006IR-Ev for larch@yhetil.org; Thu, 22 Apr 2021 05:55:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45926) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZW35-0006GO-Hc for guix-patches@gnu.org; Thu, 22 Apr 2021 05:55:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49482) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lZW34-00089Z-KO for guix-patches@gnu.org; Thu, 22 Apr 2021 05:55:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lZW34-000520-Jo for guix-patches@gnu.org; Thu, 22 Apr 2021 05:55:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47947] [PATCH 3/5] gnu: alsa-lib: Use alsa-ucm-conf and alsa-topology-conf. Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 22 Apr 2021 09:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47947 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47947@debbugs.gnu.org Cc: Mathieu Othacehe Received: via spool by 47947-submit@debbugs.gnu.org id=B47947.161908527819274 (code B ref 47947); Thu, 22 Apr 2021 09:55:02 +0000 Received: (at 47947) by debbugs.gnu.org; 22 Apr 2021 09:54:38 +0000 Received: from localhost ([127.0.0.1]:32787 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZW2g-00050m-52 for submit@debbugs.gnu.org; Thu, 22 Apr 2021 05:54:38 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33234) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZW2c-000509-HO for 47947@debbugs.gnu.org; Thu, 22 Apr 2021 05:54:34 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46534) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZW2X-0007v7-5y for 47947@debbugs.gnu.org; Thu, 22 Apr 2021 05:54:29 -0400 Received: from [2a01:e0a:19b:d9a0:9576:8bbf:4795:82ee] (port=53380 helo=localhost.localdomain) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lZW2W-0004Ex-42; Thu, 22 Apr 2021 05:54:28 -0400 From: Mathieu Othacehe Date: Thu, 22 Apr 2021 11:54:19 +0200 Message-Id: <20210422095421.10358-3-othacehe@gnu.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210422095421.10358-1-othacehe@gnu.org> References: <20210422095421.10358-1-othacehe@gnu.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619085338; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=dQts2eiN4Mv6jqU9OeWMn0tbVDpw8ruuStvziXyrRNY=; b=f1ISSKdA1HUL7vDYG91Veqkx3rQUr7pVkWkH+U8QPqldba75oKUEsuF+nGf54zI9fO/LXY rh5Rbu4IpDxMYsREKUfclrlsOJa9b56J+sXR6XdZL+V1eVnrlS6dPv/hXUG2MmratHdCmJ SA4zFe+VMOKQpaqB3cVm1SEoEattd+O/MGPZClpTnN8SVD277Us0jceBK4gHETJjcfV8fd fG5FwljzVfFPFJ1I2qxDsS7bB2bAkaRhVMrzwWM0W6CRXz5CQkqHwAekoKo7GfQyC49dOI NOcA3GtyF/nMLjVgeSOMvwOlhJQOC0pN0W+ZSw0dSSXXemiLyiDo6u02znCLbg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619085338; a=rsa-sha256; cv=none; b=fPGDs2vx7iltzedYJ+lqN9hGNlTlaj2o8e3Bmo4ZeuPjYaRepBmPiMSPBuE1GN4uRqNlqh RT+WQhm0j+PxngXY4p1oDZWxCKfrAdbnjqiehUTebkJIz2ItuuVX9bxLSVZ38fzs+Cyg4/ Oma4Q2EIWZXWL8uA+aDIyDtJhAkgUtD+GGrruhj6c3Els/TmJTxR7sjKEchZYXT/vlr2kU l/e05fSGmAZ+RKxBTiUd0fmcng5VhHVwllZo3chxskROvYCgfIwwvTAdhejd5T9yPI+zOF Q8ySGNIjAUgbm1Q47YH0lCY45Ch/0EPHoKaUirFpjD0Q6fODXG7kw0uY3cfQCg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 2.06 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 4EE5CC612 X-Spam-Score: 2.06 X-Migadu-Scanner: scn0.migadu.com X-TUID: rZDl9UAGQKWg * gnu/packages/linux.scm (alsa)[arguments]: Add a pre-install phase that creates symlinks to alsa-ucm-conf and alsa-topology-conf files. --- gnu/packages/linux.scm | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index b60e6ad392..e5fe79b4b6 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -2198,7 +2198,31 @@ configuration files that can be used for specific audio hardware.") (arguments '(#:configure-flags (list (string-append "LDFLAGS=-Wl,-rpath=" (assoc-ref %outputs "out") - "/lib")))) + "/lib")) + #:phases + (modify-phases %standard-phases + (add-before 'install 'pre-install + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((ucm + (string-append (assoc-ref inputs "alsa-ucm-conf"))) + (topology + (string-append (assoc-ref inputs "alsa-topology-conf"))) + (alsa + (string-append (assoc-ref outputs "out") "/share/alsa")) + (ucm-share + (string-append ucm "/share/alsa/ucm")) + (ucm2-share + (string-append ucm "/share/alsa/ucm2")) + (topology-share + (string-append topology "/share/alsa/topology"))) + (mkdir-p alsa) + (symlink ucm-share (string-append alsa "/ucm")) + (symlink ucm2-share (string-append alsa "/ucm2")) + (symlink topology-share (string-append alsa "/topology"))) + #t))))) + (inputs + `(("alsa-ucm-conf" ,alsa-ucm-conf) + ("alsa-topology-conf" ,alsa-topology-conf))) (home-page "https://www.alsa-project.org/") (synopsis "The Advanced Linux Sound Architecture libraries") (description -- 2.31.1