From mboxrd@z Thu Jan 1 00:00:00 1970 From: Catonano Subject: read-o-phobia and guile packages Date: Sat, 3 Jun 2017 11:23:59 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="f403045c283e7e409e05510ad462" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60471) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dH5Hx-0003Ke-5y for help-guix@gnu.org; Sat, 03 Jun 2017 05:24:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dH5Hv-00081z-6j for help-guix@gnu.org; Sat, 03 Jun 2017 05:24:05 -0400 Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]:38429) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dH5Hu-000814-UN for help-guix@gnu.org; Sat, 03 Jun 2017 05:24:03 -0400 Received: by mail-wm0-x22c.google.com with SMTP id n195so42653773wmg.1 for ; Sat, 03 Jun 2017 02:24:01 -0700 (PDT) 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: help-guix --f403045c283e7e409e05510ad462 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dear Guix, some time ago I packaged Freexl for Guix https://git.savannah.gnu.org/cgit/guix.git/commit/?id=3D623fb4d1629adfa97e3= fe412d394ca0490742f29 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 based wrap around the Wiredtiger C API Just to give you an example, in this excerpt (from guile-gcrypt configure.a= c ) 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 t= o 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 --f403045c283e7e409e05510ad462 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I would like to write a guile mod= ule to wrap Freexl and then use my module to import data from a bunch of .x= ls[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= 9;t make a proper package of a=C2=A0 guile module containing also some C co= de =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 gu= ile based wrap around the Wiredtiger C API

Just to give y= ou 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. =C2=A0(Borrowed from Sly= , which borrowed from Guix...)
guile_gcrypt_prefix=3D"`eval echo $p= refix | sed -e"s|NONE|/usr/local|g"`"
guile_gcrypt_datadi= r=3D"`eval eval echo $datadir | sed -e "s|NONE|$guile_gcrypt_pref= ix|g"`"
AC_SUBST([guile_gcrypt_datadir])

Wha= t does "Prepare a version of $datadir that does not contain references= to
shell variables." mean ?

I don't even un= derstand 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 goe= s for Makefile.am and the contents of the "m4" folder

It w= ould 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 ma= nual. Please =F0=9F=98=95
--f403045c283e7e409e05510ad462--