From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id ABvHJ3ANGmKIOQEAgWs5BA (envelope-from ) for ; Sat, 26 Feb 2022 12:22:24 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 2IqCJHANGmLF5QAAauVa8A (envelope-from ) for ; Sat, 26 Feb 2022 12:22:24 +0100 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 5FEF52F635 for ; Sat, 26 Feb 2022 12:22:24 +0100 (CET) Received: from localhost ([::1]:53850 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nNv9b-0007Yq-05 for larch@yhetil.org; Sat, 26 Feb 2022 06:22:23 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57244) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNv9H-0007Yc-H0 for guix-patches@gnu.org; Sat, 26 Feb 2022 06:22:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:60454) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nNv9G-0005iX-4s for guix-patches@gnu.org; Sat, 26 Feb 2022 06:22:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nNv9F-0000J4-RG for guix-patches@gnu.org; Sat, 26 Feb 2022 06:22:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#54069] [PATCH v2 3/4] gnu: libosinfo: Unbundle usb.ids, pci.ids. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 26 Feb 2022 11:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54069 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Brendan Tildesley , 54069@debbugs.gnu.org Cc: John Kehayias , Maxim Cournoyer Received: via spool by 54069-submit@debbugs.gnu.org id=B54069.16458744701103 (code B ref 54069); Sat, 26 Feb 2022 11:22:01 +0000 Received: (at 54069) by debbugs.gnu.org; 26 Feb 2022 11:21:10 +0000 Received: from localhost ([127.0.0.1]:54351 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNv8Q-0000Hj-El for submit@debbugs.gnu.org; Sat, 26 Feb 2022 06:21:10 -0500 Received: from michel.telenet-ops.be ([195.130.137.88]:41634) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNv8N-0000HV-90 for 54069@debbugs.gnu.org; Sat, 26 Feb 2022 06:21:09 -0500 Received: from [192.168.104.254] ([188.189.133.236]) by michel.telenet-ops.be with bizsmtp id znM42600856BEPw06nM4HD; Sat, 26 Feb 2022 12:21:05 +0100 Message-ID: From: Maxime Devos Date: Sat, 26 Feb 2022 12:21:01 +0100 In-Reply-To: <20220226043238.2657-3-mail@brendan.scot> References: <20220226043238.2657-1-mail@brendan.scot> <20220226043238.2657-3-mail@brendan.scot> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-x/Fzms7QwSl2gvVcNLvq" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1645874465; bh=Dd5OReGpn80L2k+WQxXZ6sHZVcVR+HLDp9dyqD+RrHw=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=XqPejRGeFCpRQdcVQBhzLdWEnHxz4p65GRlAuffrGssHJ0Fvs3dcT3T6xBWrjt8vs JjKgo+iCXQVi9GgB1h5j3Bc0jH8+pG8/TgsYN5Zf9bUJTQEM1ePI2CdoemhJlAylXO 88wmGry7FSu7KHR4Hf/7dAs3DywOgKNhV/69IYiYzI9ez2BT5N9usO7QmOhOc32ukj p0aNvCwyR9nGtZ4gCCN3xl+TfYh5uaYNpFS+I985mbQRz6zbZXidUZYjSwu++rZny0 kReVqWE8HVzbPq0y+6zhmqmz+nzJZ7CkyHI2s/kRjc+u4ROSczPcD4Oi1TmyTtyBKJ Fck+SCo+TyDkQ== 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 X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1645874544; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: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: dkim-signature; bh=Dd5OReGpn80L2k+WQxXZ6sHZVcVR+HLDp9dyqD+RrHw=; b=YSiSucJ/yoKBNSeL0bdN93kqB4d9ZT6k1B7fpDOAcyJnF4mnkDow9n4/vRJn9ndDzRkSDy MGBO5/HXKYIVbW49VXgCitoAoUlvzTs9IFcFiS+o90Ds8GHYPstg8h9IWBbQvxJ1+pvN8r z1t6jGw0uHq59NStnw0UE6QHxut2rktNxMFPuMFNF1SWKXZqD08v2t5NGRxLwfnx6TNRY7 aoA5Dr/UAd4/Nx93fgy5yoBYntpEYQ5M08TFs8Aco6dZyZoZJ41go/BUJUzdsRbCx3ddLK s6llBs4FKKp9F47BQihw4gAELEafw/j+G9xk3GFrvF4AyQyftMu3O9r1lhznAg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645874544; a=rsa-sha256; cv=none; b=S0Xd31rRubGLVKhRQf/5VYLx8ZJFl+JdSb7RykzQbswmnHrZ/XbG6OKrhhcFdKh77JOvGC khds+fyaekl+cR+3FqizRUjeH3lWxv1LfQ7Rxtxanh+u9jb7cNE6X0SJ5PUYyHiTOCIraR /xXikZMlvNLstFOs876zTR7IHIYMDtxDzzKMFtG2JwUMFWpchgrg25Y9tZWjn+NkWhvCQ+ RdzPW5UhRXh31HkMeV4dVg9pUaspZug2vXyggUVmilL/AkqUWNpeXMraorOty40J5sdtzp yanvMhJeWE2qnPjAJy3j9PfXm20SY2UmAcyG9dD7s/sLK5M9sJ5W6hAqT3CWHg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=XqPejRGe; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 4.28 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=XqPejRGe; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 5FEF52F635 X-Spam-Score: 4.28 X-Migadu-Scanner: scn0.migadu.com X-TUID: tSGJ5B/g7oQF --=-x/Fzms7QwSl2gvVcNLvq Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Brendan Tildesley schreef op za 26-02-2022 om 15:32 [+1100]: > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (string-append "-Dwith-= usb-ids-path=3D" #$hwdata:usb "/share/hwdata/usb.ids") > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (string-append "-Dwith-= pci-ids-path=3D" #$hwdata:pci "/share/hwdata/pci.ids")) To allow for package transformations, I recommend using this-package-input or the like instead of hardcoding a particular package: #~(list (string-append "-Dwith-usb-ids-path=3D" #$(this-package-input "hwdata:usb") "/share/hwdata/usb.ids")) [...]) it might also be possible to use 'search-input-file' instead, avoiding input labels (untested): #~(let* ((inputs #$(input-tuples->gexp (package-inputs this-package))) (usb.ids (search-input-file inputs "/share/hwdata/usb.ids")) (pci.ids (search-input-file inputs "/share/hwdata/pci.ids"))) (list (string-append "-Dwith-usb-ids-path=3D" usb.ids) [...])) Greetings, Maxime. =20 --=-x/Fzms7QwSl2gvVcNLvq Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYhoNHRccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7pLdAQCkZNcgN3MvSO3qBNGNectyRuvN Wxy6xg7ds+JW9LMn0gEAuYlqPn4sb5ZgBxaLiuRWU8lR3VOSzy705Dm9bEj/Iw8= =+HFP -----END PGP SIGNATURE----- --=-x/Fzms7QwSl2gvVcNLvq--