Re: Package Definition Place

2014-01-05 Thread Ludovic Courtès
Kete skribis: > On Saturday, January 04, 2014 08:15:40 AM John Darrington wrote: >> The example in bash.scm is over complicated. Look at some of the examples >> in xorg.scm to see how to set configure-flags. > > That got me a little further. > Src/../Src/mkmakemod.sh: line 467: /bin/sh: No

Re: Package Definition Place

2014-01-05 Thread Ludovic Courtès
Kete skribis: > On Saturday, January 04, 2014 12:47:06 PM Ludovic Courtès wrote: >> I’d recommend looking at how that tcsetpgrp check is implemented, to see >> what makes it think it doesn’t work. In particular what does >> ‘config.log’ report about this test? > > I didn't find any mention. Hmm

Re: Package Definition Place

2014-01-04 Thread John Darrington
This is where you have to start doing some detective work and probably some patching! Based on what you pasted, it looks as if CONFIG_SHELL isn't getting passed to the mkmakemod.sh file. Probably the zsh devs have done something wierd. What I do at this stage is to build with the -K flag, then

Re: Package Definition Place

2014-01-04 Thread Kete
On Saturday, January 04, 2014 12:47:06 PM Ludovic Courtès wrote: > I’d recommend looking at how that tcsetpgrp check is implemented, to see > what makes it think it doesn’t work. In particular what does > ‘config.log’ report about this test? I didn't find any mention. > The ‘license’ field shou

Re: Package Definition Place

2014-01-04 Thread Kete
On Saturday, January 04, 2014 08:15:40 AM John Darrington wrote: > The example in bash.scm is over complicated. Look at some of the examples > in xorg.scm to see how to set configure-flags. That got me a little further. Src/../Src/mkmakemod.sh: line 467: /bin/sh: No such file or directory

Re: Package Definition Place

2014-01-04 Thread Ludovic Courtès
Kete skribis: > Thanks, that did help, but I got the following error: > checking if tcsetpgrp() actually works... notty > configure: error: no controlling tty > Try running configure with --with-tcsetpgrp or --without-tcsetpgrp Ah, that’s an issue with the ‘configure’ script of

Re: Package Definition Place

2014-01-03 Thread John Darrington
On Fri, Jan 03, 2014 at 08:10:56PM -0500, Kete wrote: On Friday, January 03, 2014 04:19:26 PM Ludovic Courtès wrote: > It is called ‘x11’ (to avoid ambiguity with other licenses originating > from MIT) in the (guix licenses) module. So you would write > >(define-modul

Re: Package Definition Place

2014-01-03 Thread Kete
On Friday, January 03, 2014 04:19:26 PM Ludovic Courtès wrote: > It is called ‘x11’ (to avoid ambiguity with other licenses originating > from MIT) in the (guix licenses) module. So you would write > >(define-module (gnu packages zsh) > ... >(license (x11-style "http://url-of/th

Re: Package Definition Place

2014-01-03 Thread Ludovic Courtès
Kete skribis: > On Friday, January 03, 2014 06:50:40 AM John Darrington wrote: >> This would suggest that you haven't got a guix daemon running. >> >> Install guix and set up the daemon as described in Chapter 2 of the GUIX >> manual. > > Thanks, here are the results: > > gnu/packages/zsh.

Re: Package Definition Place

2014-01-03 Thread Nikita Karetnikov
> Thanks, here are the results: > > gnu/packages/zsh.scm:12:2: warning: possibly unbound variable `mit' > > The license is like MIT. > > guix build: error: zsh: unknown package I guess it would be easier to help if you provide the code. pgpy4oI5TndsZ.pgp Description: PGP signature

Re: Package Definition Place

2014-01-03 Thread Kete
On Friday, January 03, 2014 06:50:40 AM John Darrington wrote: > This would suggest that you haven't got a guix daemon running. > > Install guix and set up the daemon as described in Chapter 2 of the GUIX > manual. Thanks, here are the results: gnu/packages/zsh.scm:12:2: warning: possibl

Re: Package Definition Place

2014-01-02 Thread John Darrington
On Thu, Jan 02, 2014 at 09:28:24PM -0500, Kete wrote: On Thursday, January 02, 2014 06:44:00 AM Nikita Karetnikov wrote: > $ git clone git://git.sv.gnu.org/guix.git > $ cd guix > $ ./bootstrap && ./configure --localstatedir=/nix/var && make && make check > > (See ‘HA

Re: Package Definition Place

2014-01-02 Thread Kete
On Thursday, January 02, 2014 06:44:00 AM Nikita Karetnikov wrote: > $ git clone git://git.sv.gnu.org/guix.git > $ cd guix > $ ./bootstrap && ./configure --localstatedir=/nix/var && make && make check > > (See ‘HACKING’ for more information.) > > Then you could add a recipe (i.e., the definition

Re: Package Definition Place

2014-01-02 Thread Kete
On Thursday, January 02, 2014 06:58:47 PM Nikita Karetnikov wrote: > Hm, I’m a bit puzzled. How did you change ‘gnu-system.am’, then? gnu-system.am was at the top level. I didn't have a packages folder in my gnu dir. > Did you clone the repository or download the tarball? If not, could you > p

Re: Package Definition Place

2014-01-02 Thread Kete
On Thursday, January 02, 2014 06:50:25 AM Nikita Karetnikov wrote: > > make[2]: *** No rule to make target `gnu/packages/zsh.scm', needed by > > `all- > > am'. Stop. > > Sorry, I totally misunderstood the context. Are you trying to add Zsh? > > It seems you added a line to ‘gnu-system.am’ but f

Re: Package Definition Place

2014-01-02 Thread Nikita Karetnikov
> Yes, I don't know where 'gnu/packages' is except for savannah. Hm, I’m a bit puzzled. How did you change ‘gnu-system.am’, then? ‘gnu/packages’ should be in the same directory (on your machine) as ‘gnu-system.am’. Did you clone the repository or download the tarball? If not, could you please f

Re: Package Definition Place

2014-01-01 Thread Nikita Karetnikov
> make[2]: *** No rule to make target `gnu/packages/zsh.scm', needed by `all- > am'. Stop. Sorry, I totally misunderstood the context. Are you trying to add Zsh? It seems you added a line to ‘gnu-system.am’ but forgot to add a file to ‘gnu/packages’. Could you confirm? pgphZ6mz0EGJx.pgp Desc

Re: Package Definition Place

2014-01-01 Thread Nikita Karetnikov
> Am I supposed to add a module to gnu-system.am? Yes, here’s an example [1]. > make[2]: *** No rule to make target `gnu/packages/zsh.scm', needed by `all- > am'. Stop. I’ve just tried the following. Could you do the same and report any issues? $ git clone git://git.sv.gnu.org/guix.git $ cd g

Re: Package Definition Place

2014-01-01 Thread Kete
make[2]: *** No rule to make target `gnu/packages/zsh.scm', needed by `all- am'. Stop.

Re: Package Definition Place

2014-01-01 Thread Kete
On Wednesday, January 01, 2014 08:55:07 PM John Darrington wrote: > the > pre-inst-env file should exist in your build directory (after you have built > guix of course) If I finish this process, maybe somebody could use the instructions. The location of pre-inst-env was one of my earlier questio

Re: Package Definition Place

2014-01-01 Thread John Darrington
Are you working from Git or from a released tarball? Either way, the pre-inst-env file should exist in your build directory (after you have built guix of course) On Wed, Jan 01, 2014 at 02:13:42PM -0500, Kete wrote: On Wednesday, January 01, 2014 05:50:05 PM John Darrington wrote: >

Re: Package Definition Place

2014-01-01 Thread Kete
On Wednesday, January 01, 2014 05:50:05 PM John Darrington wrote: > make && ./pre-inst-env guix build "no such file or directory: ./pre-inst-env" So I need this: http://git.savannah.gnu.org/cgit/guix.git/tree/pre-inst-env.in? can't cd to @abs_top_srcdir@ or @abs_top_builddir@ ERROR: no code for

Re: Package Definition Place

2014-01-01 Thread John Darrington
On Wed, Jan 01, 2014 at 11:32:35AM -0500, Kete wrote: On Wednesday, January 01, 2014 05:09:18 PM John Darrington wrote: > When it's ready rpPost a patch to the list. Ludovic will commit it to the > repository (if he likes it). This is my problem. How do I know if it work

Re: Package Definition Place

2014-01-01 Thread Kete
On Wednesday, January 01, 2014 05:09:18 PM John Darrington wrote: > When it's ready rpPost a patch to the list. Ludovic will commit it to the > repository (if he likes it). This is my problem. How do I know if it works if I can't test it by building the package? Thanks

Re: Package Definition Place

2014-01-01 Thread Kete
On Wednesday, January 01, 2014 01:52:35 PM you wrote: > The .scm file usually stays in the directory gnu/packages/ If you mean http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/, then how do I contribute to the project? > "guix download" is a convenience function for package developers

Re: Package Definition Place

2014-01-01 Thread John Darrington
On Mon, Dec 30, 2013 at 07:37:26PM -0500, Kete wrote: > make && ./pre-inst-env guix build Thanks, what do you do with the scm (Scheme) package definition file? Does it play a part in that? Do we place it in the current directory? The .scm file usually stays in the director

Re: Package Definition Place

2013-12-30 Thread Kete
On Monday, December 30, 2013 08:16:01 AM John Darrington wrote: > Package definitions reside in gnu/package/*.scm The packages themselves, > once built, get automatically put into /nix/store. > Sorry, I always forget to 'Reply all'. I hope you don't mind if I take this back public. On Monday, D

Re: Package Definition Place

2013-12-29 Thread John Darrington
I'm not sure that I understand the question correctly. Package definitions reside in gnu/package/*.scm The packages themselves, once built, get automatically put into /nix/store. J' On Sun, Dec 29, 2013 at 10:55:59PM -0500, Kete wrote: Where does a package definition go to build a local

Package Definition Place

2013-12-29 Thread Kete
Where does a package definition go to build a local package with Guix: /nix/store?