From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:48420) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVGr4-00087A-Vd for guix-patches@gnu.org; Mon, 27 May 2019 10:44:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hVGr4-0001aI-1a for guix-patches@gnu.org; Mon, 27 May 2019 10:44:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40204) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hVGr3-0001aD-Vi for guix-patches@gnu.org; Mon, 27 May 2019 10:44:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hVGr3-0007tM-Tb for guix-patches@gnu.org; Mon, 27 May 2019 10:44:01 -0400 Subject: bug#35345: [PATCH 2/2] gnu: tlp: Add required x86-energy-perf-policy input dependency. Resent-To: guix-patches@gnu.org Resent-Message-ID: From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: Date: Mon, 27 May 2019 16:43:24 +0200 In-Reply-To: ("Stefan \=\?utf-8\?Q\?Stefanovi\=C4\=87\=22's\?\= message of "Sat, 20 Apr 2019 16:48:19 +0000") Message-ID: <87woict0tv.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Stefan =?UTF-8?Q?Stefanovi=C4=87?= Cc: 35345-done@debbugs.gnu.org Hi, Stefan Stefanovi=C4=87 skribis: > From a7264289ba328478a1dab1978fe080a5b4f392c2 Mon Sep 17 00:00:00 2001 > From: =3D?UTF-8?q?Stefan=3D20Stefanovi=3DC4=3D87?=3D > Date: Sat, 20 Apr 2019 16:13:37 +0200 > Subject: [PATCH 2/2] gnu: tlp: Add required x86-energy-perf-policy input > dependency. > > * gnu/packages/linux.scm (tlp) > [inputs]: Add system specific x86-energy-perf-policy dependency. > [arguments]<#:phases>['wrap]: > Adjust bin-directory procedure to return #f on missing input, > a guard against system specific input dependencies. > Filter only strings in the path list. Reformat for-each block. > Add x86-energy-perf-policy in bin-directory input-name list. I reworded it to use =E2=80=98filter-map=E2=80=99 intead of (filter string?= =E2=80=A6). > + ,@(if (member (or (%current-target-system) (%current-syste= m)) > + (package-supported-systems x86-energy-perf-p= olicy)) This would not work, because =E2=80=98%current-target-system=E2=80=99 retur= ns a =E2=80=9Ctriplet=E2=80=9D, not a =E2=80=9Csystem type=E2=80=9D, so I=E2=80= =99ve also rephrased it. Let me know if something=E2=80=99s broken! Thanks, Ludo=E2=80=99.