From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: [PATCH 0/3] Fix bash:include and build recutils' Bash builtin. Date: Sun, 18 Oct 2015 15:40:05 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49509) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZntoY-0000KE-Jc for guix-devel@gnu.org; Sun, 18 Oct 2015 15:40:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZntoV-0006ox-DX for guix-devel@gnu.org; Sun, 18 Oct 2015 15:40:18 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:47484) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZntoV-0006oN-6q for guix-devel@gnu.org; Sun, 18 Oct 2015 15:40:15 -0400 Received: from jasmine.lan (c-69-249-5-231.hsd1.pa.comcast.net [69.249.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id 7A827680152 for ; Sun, 18 Oct 2015 15:40:12 -0400 (EDT) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org The Bash patches update the install-headers-phase to make all the Bash headers available in bash:include. Basically, I copied the relevant portions of the Debian rules file for the bash-builtins package [1]. There is still some work that could be done — e.g. there are examples of loadable Bash builtins that could go in the docs. The regex should be selecting any file whose name ends in .h in the "include/" directory of the source tarball (someone better double-check it though — I'm no regex expert!). I separated it from the existing file-copying routines because the contents of "include/" should go in the top-level of the output's "include/bash" directory. This is different from the files copied from other tarball directories — they get copied along with their folders. I also altered the code to use 'install-file' instead of 'mkdir-p' and 'copy-file', reducing the amount of boilerplate code. The recutils patch tells recutils where to find the Bash headers so that the recutils' Bash builtin 'readrec' can be built. [1] line 254 onwards: https://sources.debian.net/src/bash/4.3-11/debian/rules/ Leo Famulari (3): gnu: bash: Install more headers in "include" output. gnu: bash: Use 'install-file' instead of 'mkdir-p' and 'copy-file'. gnu: recutils: Build the Bash builtin, readrec. gnu/packages/bash.scm | 10 ++++++---- gnu/packages/databases.scm | 12 ++++++++---- 2 files changed, 14 insertions(+), 8 deletions(-) -- 2.6.1