From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#25425: cannot express search path Date: Thu, 12 Jan 2017 15:38:04 +0100 Message-ID: <87bmvc2vjn.fsf@gnu.org> References: <87shoo7dgx.fsf@mdc-berlin.de> <87r34879o1.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47255) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRgWz-0008Sq-Qy for bug-guix@gnu.org; Thu, 12 Jan 2017 09:39:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cRgWs-0004vQ-Bm for bug-guix@gnu.org; Thu, 12 Jan 2017 09:39:09 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:35336) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cRgWs-0004vJ-8s for bug-guix@gnu.org; Thu, 12 Jan 2017 09:39:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cRgWs-0005bj-3O for bug-guix@gnu.org; Thu, 12 Jan 2017 09:39:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87r34879o1.fsf@elephly.net> (Ricardo Wurmus's message of "Thu, 12 Jan 2017 13:19:26 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Ricardo Wurmus Cc: 25425@debbugs.gnu.org Ricardo Wurmus skribis: > It seems that the =E2=80=9Csearch-path-specification=E2=80=9D cannot be u= sed to include > placeholders such as =E2=80=9C?=E2=80=9D as required by LUA_PATH and LUA_= CPATH. The > search paths in Lua are not directories and they are not actual file > names. Indeed. > I suggest adding an optional =E2=80=9Cplaceholder=E2=80=9D field to > =E2=80=9Csearch-path-specification=E2=80=9D, which would hold a string li= ke =E2=80=9C?/?.lua=E2=80=9D in > this case. I think this should work: (search-path-specification (variable "LUA_PATH") (separator ";") (files '("share/lua/5.3")) (file-pattern "\\.lua$") (file-type 'regular)) See libxml2 for an example with similar requirements. HTH! Ludo=E2=80=99.