From mboxrd@z Thu Jan 1 00:00:00 1970 From: Catonano Subject: Re: read-o-phobia and guile packages Date: Sat, 3 Jun 2017 12:39:54 +0200 Message-ID: References: <20170603102505.6e7qlo5fktf5bnmu@abyayala> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c1cd388fa1e2d05510be353" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41801) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dH6TP-0003UR-TZ for help-guix@gnu.org; Sat, 03 Jun 2017 06:40:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dH6TM-0004uS-Bb for help-guix@gnu.org; Sat, 03 Jun 2017 06:39:59 -0400 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]:37844) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dH6TM-0004tz-0Y for help-guix@gnu.org; Sat, 03 Jun 2017 06:39:56 -0400 Received: by mail-wm0-x236.google.com with SMTP id d127so43362737wmf.0 for ; Sat, 03 Jun 2017 03:39:55 -0700 (PDT) In-Reply-To: <20170603102505.6e7qlo5fktf5bnmu@abyayala> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Catonano , help-guix --94eb2c1cd388fa1e2d05510be353 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 2017-06-03 12:25 GMT+02:00 ng0 : > Catonano transcribed 4.6K bytes: > > Dear Guix, > > > > some time ago I packaged Freexl for Guix > > > > https://git.savannah.gnu.org/cgit/guix.git/commit/?id=3D > 623fb4d1629adfa97e3fe412d394ca0490742f29 > > > > I would like to write a guile module to wrap Freexl and then use my > module > > to import data from a bunch of .xls[x] files into a postgresql db > > > > II would like my guile module to be packaged in Guix of course > > > > The problem is that I can't make a proper package of a guile module > > containing also some C code =F0=9F=98=95 > > > > I took a look at Paroneayea's guile-gcrypt and I don't understand very > much > > of all that m4 macros kung fu > > > > I think amz3 is having similarly a hard time in packaging his guile bas= ed > > wrap around the Wiredtiger C API > > > > Just to give you an example, in this excerpt (from guile-gcrypt > configure.ac > > ) > > > > dnl Prepare a version of $datadir that does not contain references to > > dnl shell variables. (Borrowed from Sly, which borrowed from Guix...) > > guile_gcrypt_prefix=3D"`eval echo $prefix | sed -e"s|NONE|/usr/local|g"= `" > > guile_gcrypt_datadir=3D"`eval eval echo $datadir | sed -e > > "s|NONE|$guile_gcrypt_prefix|g"`" > > AC_SUBST([guile_gcrypt_datadir]) > > > > What does "Prepare a version of $datadir that does not contain > references to > > shell variables." mean ? > > > > I don't even understand the problem being stated here > > > > And then I think we are substituting "/usr//local" withh NONE in the > prefix > > > > But why ? > > > > Of course all the remaining configure.ac is obscure to me and the same > goes > > for Makefile.am and the contents of the "m4" folder > > > > It would be useful to have a tutorial about how to do that > > > > Or even some hints about what certain things mean, in there > > > > Maybe using a different build system would be easier ? > > > > Maybe WAF or Meson or any other ? > > My (limited) experience is limited to Leiningen and Boot, on this > > > > As for the read-o-fobia in the subect: please, don't suggest me to read > the > > autotools manual. Please =F0=9F=98=95 > > Do you absolutely require autotools? > No. I just want something that works > I provide a config.mk, Makefile, and if necessary Makefile.system (for systems other than > GNU/Linux)... this is in all my published and non-public > software. > If your software has a guile part and a C part, that could fit my needs So, do a confiig.mk and a Makefile, without configure.ac make for a simpler solution ? How so ? I'm not sure I understand Can you point me to a repository of yours with a Guile based proect with a C library and such config.mk and Makefile files ? Thanks --94eb2c1cd388fa1e2d05510be353 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


2017-06-03 12:25 GMT+02:00 ng0 <ng0@pragmatique.xyz>:<= br>
Catonano transcribed 4.6K bytes:
> Dear Guix,
>
> some time ago I packaged Freexl for Guix
>
> https://git.savannah.gnu.org/cgit/guix.git/commit/?id=3D623fb4d1= 629adfa97e3fe412d394ca0490742f29
>
> I would like to write a guile module to wrap Freexl and then use my mo= dule
> to import data from a bunch of .xls[x] files into a postgresql db
>
> II would like my guile module to be packaged in Guix of course
>
> The problem is that I can't make a proper package of a=C2=A0 guile= module
> containing also some C code =F0=9F=98=95
>
> I took a look at Paroneayea's guile-gcrypt and I don't underst= and very much
> of all that m4 macros kung fu
>
> I think amz3 is having similarly a hard time in packaging his guile ba= sed
> wrap around the Wiredtiger C API
>
> Just to give you an example, in this excerpt (from guile-gcrypt configure.ac=
> )
>
> dnl Prepare a version of $datadir that does not contain references to<= br> > dnl shell variables.=C2=A0 (Borrowed from Sly, which borrowed from Gui= x...)
> guile_gcrypt_prefix=3D"`eval echo $prefix | sed -e"s|NONE|/u= sr/local|g"`"
> guile_gcrypt_datadir=3D"`eval eval echo $datadir | sed -e
> "s|NONE|$guile_gcrypt_prefix|g"`"
> AC_SUBST([guile_gcrypt_datadir])
>
> What does "Prepare a version of $datadir that does not contain re= ferences to
> shell variables." mean ?
>
> I don't even understand the problem being stated here
>
> And then I think we are substituting "/usr//local" withh NON= E in the prefix
>
> But why ?
>
> Of course all the remaining configure.ac is obscure to me and the same g= oes
> for Makefile.am and the contents of the "m4" folder
>
> It would be useful to have a tutorial about how to do that
>
> Or even some hints about what certain things mean, in there
>
> Maybe using a different build system would be easier ?
>
> Maybe WAF or Meson or any other ?
> My (limited) experience is limited to Leiningen and Boot, on this
>
> As for the read-o-fobia in the subect: please, don't suggest me to= read the
> autotools manual. Please =F0=9F=98=95

Do you absolutely require autotools?

<= /div>
No. I just want something that works
=C2=A0
I provide a config.mk, Makefile,=C2=A0
confiig.mk and a Makefile, without configure.ac make for a simpler solution ?
How so ?
I'm not sure I understand
= Can you point me to a repository of yours with a Guile based proect with a = C library and such config.mk and Makefile = files ?

Thanks
--94eb2c1cd388fa1e2d05510be353--