From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tristan Colgate-McFarlane Newsgroups: gmane.lisp.guile.user Subject: Re: Installing scheme only programs Date: Thu, 10 Mar 2011 09:57:56 +0000 Message-ID: <1299751076.3717.591.camel@gbgh-dsk-01148.sig.ads> References: <20110310.035029.58396821684886596.diogofsr@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1299751124 4780 80.91.229.12 (10 Mar 2011 09:58:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 10 Mar 2011 09:58:44 +0000 (UTC) Cc: guile-user@gnu.org To: "Diogo F.S.Ramos" Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Mar 10 10:58:40 2011 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pxcda-0002E8-Ce for guile-user@m.gmane.org; Thu, 10 Mar 2011 10:58:31 +0100 Original-Received: from localhost ([127.0.0.1]:54071 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PxcdZ-0006Sn-L0 for guile-user@m.gmane.org; Thu, 10 Mar 2011 04:58:29 -0500 Original-Received: from [140.186.70.92] (port=49348 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pxcd7-0006RB-Hr for guile-user@gnu.org; Thu, 10 Mar 2011 04:58:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pxcd6-0005EA-Bp for guile-user@gnu.org; Thu, 10 Mar 2011 04:58:01 -0500 Original-Received: from mail-ww0-f49.google.com ([74.125.82.49]:55608) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pxcd6-0005Di-7E for guile-user@gnu.org; Thu, 10 Mar 2011 04:58:00 -0500 Original-Received: by wwc33 with SMTP id 33so1422291wwc.30 for ; Thu, 10 Mar 2011 01:57:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:from:to:cc:in-reply-to:references :content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=l5FY1U1cljWhuvzyHmARH2A9EMzNhkOzVcHl21h1P6k=; b=uZYwtgPC5XgpfVOnXNAd9c1Z0Z4WznZY7mnr1zD3jgNnu0qIcbY+6NeQ0IOy4aNRTg twqSWG6dZcN/r1aAF9ygFSxkgbw+KLvKmEdpsoil0r3r/3KtqwPT6E7dA8hnMdrNBF6S 0rXjOP0uugJI3fR/MBY/SU2BofaREfUx0kaZ8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=foSlMvSilSfffVRolNwl6TZjH9tEbyN/84uUFjBPEJkssC2rNT0T/AN1BiMYHvxuQZ jKIUxLLD1Yu/WQ7KXiMrkrunanPh37BpxwSQQWZg0m4YFRyQn+nYayjHbjkLQkAPMt17 SZP0SbrQlmgjHAwngAraI9L0/dLI60iWtpzbs= Original-Received: by 10.216.213.37 with SMTP id z37mr6728805weo.2.1299751078656; Thu, 10 Mar 2011 01:57:58 -0800 (PST) Original-Received: from [10.10.5.32] (83-244-202-4.cust-83.exponential-e.net [83.244.202.4]) by mx.google.com with ESMTPS id r80sm1422260wei.15.2011.03.10.01.57.57 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 10 Mar 2011 01:57:57 -0800 (PST) In-Reply-To: <20110310.035029.58396821684886596.diogofsr@gmail.com> X-Mailer: Evolution 2.30.3 (2.30.3-1.fc13) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.49 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:8513 Archived-At: I use the following trick to get things into the guile site directory (and still pass a make distcheck). In configure.ac GUILE_PROGS GUILE_FLAGS GUILE_SITE_DIR GUILE_PREFIX=`$GUILE_CONFIG info prefix` AC_SUBST(GUILE_PREFIX) In src/Makefile.am: SUFFIXES = .scm .go .scm.go: $(top_srcdir)/build-environ $(GUILE_COMPILE) -o "$@" "$<" guilesite = @GUILE_SITE@ guileprefix = @GUILE_PREFIX@ guilesitesuffix = `echo $(guilesite) | sed -e 's!^$(guileprefix)!!'` guilesnmpdir = $(exec_prefix)/$(guilesitesuffix)/snmp guilesnmp_DATA = $(SCHEMESOURCES) $(GOBJECTS) On Thu, 2011-03-10 at 03:50 -0300, Diogo F.S.Ramos wrote: > I have a program written entirely in guile's scheme and I use > autotools to distribute it. > > Is there a guide to distribute guile programs? > > I know that some languages have, but I can see any in the guile docs. > > My biggest concern is about the .scm files that makes up my program. > > For those who know autotools, I'm using pkgdata to install the files > and them I use (load "/path/to/.scm") from a simple executable > script. But it got me thinking that the .scm files are not exactly > data. > > I was thinking that the 'module' facility of guile could be the > solution. I install them where guile's modules are installed and use > (use-modules) to load. But then again, my .scm are not exactly modules > because they are not, in any way, made for general purpose use. > > I recently learn a technique where, during 'make', one 'cat' all the > sources files together, forming a big, single executable script. Doing > so, there is no need to install the .scm files, because they are all > inside the same executable file. > > This technique needs a little care, but is definitely doable, as I did > a scratch of it and it works, although I felt that the bigger file > made my application take a little more time to start than separate > loaded files. I didn't do any benchmark, so don't take my word on it. > > So, what do you guys think? > > Is there a proper way to distribute and install scheme only programs? >