* read-o-phobia and guile packages
@ 2017-06-03 9:23 Catonano
2017-06-03 10:25 ` ng0
0 siblings, 1 reply; 4+ messages in thread
From: Catonano @ 2017-06-03 9:23 UTC (permalink / raw)
To: help-guix
[-- Attachment #1: Type: text/plain, Size: 1903 bytes --]
Dear Guix,
some time ago I packaged Freexl for Guix
https://git.savannah.gnu.org/cgit/guix.git/commit/?id=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 😕
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.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="`eval echo $prefix | sed -e"s|NONE|/usr/local|g"`"
guile_gcrypt_datadir="`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 😕
[-- Attachment #2: Type: text/html, Size: 2478 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: read-o-phobia and guile packages
2017-06-03 9:23 read-o-phobia and guile packages Catonano
@ 2017-06-03 10:25 ` ng0
2017-06-03 10:39 ` Catonano
0 siblings, 1 reply; 4+ messages in thread
From: ng0 @ 2017-06-03 10:25 UTC (permalink / raw)
To: Catonano; +Cc: help-guix
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=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 😕
>
> 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.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="`eval echo $prefix | sed -e"s|NONE|/usr/local|g"`"
> guile_gcrypt_datadir="`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 😕
Do you absolutely require autotools?
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.
--
ng0
OpenPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: read-o-phobia and guile packages
2017-06-03 10:25 ` ng0
@ 2017-06-03 10:39 ` Catonano
2017-06-03 10:48 ` ng0
0 siblings, 1 reply; 4+ messages in thread
From: Catonano @ 2017-06-03 10:39 UTC (permalink / raw)
To: Catonano, help-guix
[-- Attachment #1: Type: text/plain, Size: 2816 bytes --]
2017-06-03 12:25 GMT+02:00 ng0 <ng0@pragmatique.xyz>:
> 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=
> 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 😕
> >
> > 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.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="`eval echo $prefix | sed -e"s|NONE|/usr/local|g"`"
> > guile_gcrypt_datadir="`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 😕
>
> 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
[-- Attachment #2: Type: text/html, Size: 4298 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: read-o-phobia and guile packages
2017-06-03 10:39 ` Catonano
@ 2017-06-03 10:48 ` ng0
0 siblings, 0 replies; 4+ messages in thread
From: ng0 @ 2017-06-03 10:48 UTC (permalink / raw)
To: Catonano; +Cc: help-guix
Catonano transcribed 7.3K bytes:
> 2017-06-03 12:25 GMT+02:00 ng0 <ng0@pragmatique.xyz>:
>
> > 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=
> > 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 😕
> > >
> > > 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.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="`eval echo $prefix | sed -e"s|NONE|/usr/local|g"`"
> > > guile_gcrypt_datadir="`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 😕
> >
> > 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
I don't have such a mix. But you could give it a try.
For reference just look at everything at git.2f30.org
or git.suckless.org
My own things are currently in-between servers.
--
ng0
OpenPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-06-03 10:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-03 9:23 read-o-phobia and guile packages Catonano
2017-06-03 10:25 ` ng0
2017-06-03 10:39 ` Catonano
2017-06-03 10:48 ` ng0
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).