From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20003 invoked by alias); 12 Jul 2014 05:01:24 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 19989 invoked by uid 89); 12 Jul 2014 05:01:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f46.google.com Received: from mail-pa0-f46.google.com (HELO mail-pa0-f46.google.com) (209.85.220.46) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sat, 12 Jul 2014 05:01:20 +0000 Received: by mail-pa0-f46.google.com with SMTP id eu11so2548159pac.33 for ; Fri, 11 Jul 2014 22:01:18 -0700 (PDT) X-Received: by 10.70.53.169 with SMTP id c9mr326957pdp.148.1405141278739; Fri, 11 Jul 2014 22:01:18 -0700 (PDT) Received: from seba.sebabeach.org.gmail.com (173-13-178-50-sfba.hfc.comcastbusiness.net. [173.13.178.50]) by mx.google.com with ESMTPSA id pm7sm5285546pdb.77.2014.07.11.22.01.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Jul 2014 22:01:18 -0700 (PDT) From: Doug Evans To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Cc: gdb-patches@sourceware.org Subject: Re: [PATCH] guile: Compile and install Scheme files. References: <87bntnl0wt.fsf@gnu.org> Date: Sat, 12 Jul 2014 12:37:00 -0000 In-Reply-To: <87bntnl0wt.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Fri, 20 Jun 2014 23:35:30 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2014-07/txt/msg00301.txt.bz2 ludo@gnu.org (Ludovic Court=C3=A8s) writes: > This patch compiles Scheme code under data-directory/. > > Another option would have been to compile them from gdb/Makefile, and > then simply copy them to data-directory/. It seemed more consistent to > handle everything under data-directory/ though. WDYT? > > Thanks, > Ludo=E2=80=99. > > gdb/ > 2014-06-20 Ludovic Court=C3=A8s > > * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro. > * configure.ac ["${have_libguile}" !=3D no]: Use it. > * configure: Regenerate. > * data-directory/Makefile.in (GUILE_FILES): Rename to... > (GUILE_SOURCE_FILES): ... this. New variable. > (GUILE_COMPILED_FILES): New variable. > (GUILE_FILES, GUILD, GUILD_COMPILE_FLAGS, COMPILE_SCM_FILE) > (.SUFFIXES): New variables. > (stamp-guile): Depend on $(GUILE_SOURCE_FILES). Build all of > $(GUILE_SOURCE_FILES) with $(COMPILE_SCM_FILE). > * guile/guile.c (boot_guile_support, handle_boot_error): New > functions. > (initialize_scheme_side): Use them and 'scm_c_catch' in lieu of > 'gdbscm_safe_source_script'. > * guile/lib/gdb.scm: Remove 'add-to-load-path' call. > * guile/lib/boot.scm: Augment '%load-path' and > '%load-compiled-path'. Remove 'load' call, and use > 'load-compiled' for 'gdb.go'. > * guile/lib/init.scm (%initialize): Remove 'add-to-load-path' > call. Hi. I couldn't get this to work with guile 2.0.5. The -L flag to guild compile doesn't seem to work. Can you give it a try? Maybe I was doing something wrong. My main concern is handling cross builds (build !=3D host). I haven't tried it yet, but we should before this patch goes in. I don't mind not compiling the files in that case for the time being. If the current patch only works for native builds (does it?), can we provide a script that compiles all the files and run it from gdb? Then the build could use that, and we could ship it for use with cross builds (to be available to be run as part of a post-installation step). WDYT?