all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Guix package steps
@ 2015-06-17  0:15 Daniel Pimentel
  2015-06-17  3:57 ` Mark H Weaver
  0 siblings, 1 reply; 7+ messages in thread
From: Daniel Pimentel @ 2015-06-17  0:15 UTC (permalink / raw)
  To: guix-devel

Hi guix,

I tried create new packages (ipcalc, nmap, xfburn and others) but 
without success.

My steps (based on talk GNU Guix packaging by Andreas Enge):
0. Git clone guix repository by savannah;
1. Copy gnu/package/indent.scm to mypackage.scm in this same folder;
2. Add module to gnu-system.am
3. Download mypackage;
4. Edit mypackage.scm and add hash, license and other information;
5. ./pre-inst-env guix build mypackage -K
6. Erro: bash: ./pre-inst-env: No such file or directory

But there is pre-inst-env.in only. The script pre-inst-env not exist in 
repository. So where is pre-inst-env?

Thanks for help and sorry for my noob question kkk.

-- 
Daniel Pimentel (d4n1)
GnuPG (0B1A1914)
FSF (13054)

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Guix package steps
  2015-06-17  0:15 Guix package steps Daniel Pimentel
@ 2015-06-17  3:57 ` Mark H Weaver
  2015-06-22  2:13   ` Daniel Pimentel
  0 siblings, 1 reply; 7+ messages in thread
From: Mark H Weaver @ 2015-06-17  3:57 UTC (permalink / raw)
  To: Daniel Pimentel; +Cc: guix-devel

Daniel Pimentel <d4n1@openmailbox.org> writes:

> I tried create new packages (ipcalc, nmap, xfburn and others) but
> without success.
>
> My steps (based on talk GNU Guix packaging by Andreas Enge):
> 0. Git clone guix repository by savannah;
> 1. Copy gnu/package/indent.scm to mypackage.scm in this same folder;
> 2. Add module to gnu-system.am
> 3. Download mypackage;
> 4. Edit mypackage.scm and add hash, license and other information;
> 5. ./pre-inst-env guix build mypackage -K
> 6. Erro: bash: ./pre-inst-env: No such file or directory
>
> But there is pre-inst-env.in only. The script pre-inst-env not exist
> in repository. So where is pre-inst-env?

You have to build guix before you can run it.  See
doc/contributing.texi, especially the "Building from Git" section.
Also, you should pass --localstatedir=/var to ./configure.

     Mark

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Guix package steps
  2015-06-17  3:57 ` Mark H Weaver
@ 2015-06-22  2:13   ` Daniel Pimentel
  2015-06-22  6:09     ` Mark H Weaver
  0 siblings, 1 reply; 7+ messages in thread
From: Daniel Pimentel @ 2015-06-22  2:13 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: guix-devel

On 2015-06-17 00:57, Mark H Weaver wrote:
> Daniel Pimentel <d4n1@openmailbox.org> writes:
> 
>> I tried create new packages (ipcalc, nmap, xfburn and others) but
>> without success.
>> 
>> My steps (based on talk GNU Guix packaging by Andreas Enge):
>> 0. Git clone guix repository by savannah;
>> 1. Copy gnu/package/indent.scm to mypackage.scm in this same folder;
>> 2. Add module to gnu-system.am
>> 3. Download mypackage;
>> 4. Edit mypackage.scm and add hash, license and other information;
>> 5. ./pre-inst-env guix build mypackage -K
>> 6. Erro: bash: ./pre-inst-env: No such file or directory
>> 
>> But there is pre-inst-env.in only. The script pre-inst-env not exist
>> in repository. So where is pre-inst-env?
> 
> You have to build guix before you can run it.  See
> doc/contributing.texi, especially the "Building from Git" section.
> Also, you should pass --localstatedir=/var to ./configure.
> 
>      Mark

I tried again, follow README file but there's a error (dot command?) 
when I run "make":

/bin/sh /home/dani/Desktop/development/git/guix/build-aux/missing dot 
-Tpng -Gratio=.9 -Gnodesep=.005 -Granksep=.00005 -Nfontsize=9 
-Nheight=.1 -Nwidth=.1 < "doc/images/bootstrap-graph.dot" > 
"doc/images/bootstrap-graph.png.tmp"
/home/dani/Desktop/development/git/guix/build-aux/missing: line 81: dot: 
command not found
WARNING: 'dot' is missing on your system.
          You might have modified some files without having the proper
          tools for further handling them.  Check the 'README' file, it
          often tells you about the needed prerequisites for installing
          this package.  You may also peek at any GNU archive site, in
          case some other package contains this missing 'dot' program.
Makefile:4359: recipe for target 'doc/images/bootstrap-graph.png' failed
make[2]: *** [doc/images/bootstrap-graph.png] Error 127
make[2]: Leaving directory '/home/dani/Desktop/development/git/guix'
Makefile:3503: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/dani/Desktop/development/git/guix'
Makefile:2136: recipe for target 'all' failed
make: *** [all] Error 2

-- 
Daniel Pimentel (d4n1 3:)

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Guix package steps
  2015-06-22  2:13   ` Daniel Pimentel
@ 2015-06-22  6:09     ` Mark H Weaver
  2015-06-22 13:42       ` Daniel Pimentel
  0 siblings, 1 reply; 7+ messages in thread
From: Mark H Weaver @ 2015-06-22  6:09 UTC (permalink / raw)
  To: Daniel Pimentel; +Cc: guix-devel

Daniel Pimentel <d4n1@openmailbox.org> writes:

> On 2015-06-17 00:57, Mark H Weaver wrote:
>> Daniel Pimentel <d4n1@openmailbox.org> writes:
>>
>>> I tried create new packages (ipcalc, nmap, xfburn and others) but
>>> without success.
>>>
>>> My steps (based on talk GNU Guix packaging by Andreas Enge):
>>> 0. Git clone guix repository by savannah;
>>> 1. Copy gnu/package/indent.scm to mypackage.scm in this same folder;
>>> 2. Add module to gnu-system.am
>>> 3. Download mypackage;
>>> 4. Edit mypackage.scm and add hash, license and other information;
>>> 5. ./pre-inst-env guix build mypackage -K
>>> 6. Erro: bash: ./pre-inst-env: No such file or directory
>>>
>>> But there is pre-inst-env.in only. The script pre-inst-env not exist
>>> in repository. So where is pre-inst-env?
>>
>> You have to build guix before you can run it.  See
>> doc/contributing.texi, especially the "Building from Git" section.
>> Also, you should pass --localstatedir=/var to ./configure.
>>
>>      Mark
>
> I tried again, follow README file but there's a error (dot command?)
> when I run "make":
>
> /bin/sh /home/dani/Desktop/development/git/guix/build-aux/missing dot
> -Tpng -Gratio=.9 -Gnodesep=.005 -Granksep=.00005 -Nfontsize=9
> -Nheight=.1 -Nwidth=.1 < "doc/images/bootstrap-graph.dot" >
> "doc/images/bootstrap-graph.png.tmp"
> /home/dani/Desktop/development/git/guix/build-aux/missing: line 81:
> dot: command not found

'dot' is part of the graphviz package, which is listed as a required
package in the "Building from Git" section that I cited above.

      Mark

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Guix package steps
  2015-06-22  6:09     ` Mark H Weaver
@ 2015-06-22 13:42       ` Daniel Pimentel
  2015-06-22 13:49         ` Amirouche Boubekki
  2015-06-22 19:31         ` Ludovic Courtès
  0 siblings, 2 replies; 7+ messages in thread
From: Daniel Pimentel @ 2015-06-22 13:42 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: guix-devel, guix-devel-bounces+d4n1=opmbx.org

On 2015-06-22 03:09, Mark H Weaver wrote:
> Daniel Pimentel <d4n1@openmailbox.org> writes:
> 
>> On 2015-06-17 00:57, Mark H Weaver wrote:
>>> Daniel Pimentel <d4n1@openmailbox.org> writes:
>>> 
>>>> I tried create new packages (ipcalc, nmap, xfburn and others) but
>>>> without success.
>>>> 
>>>> My steps (based on talk GNU Guix packaging by Andreas Enge):
>>>> 0. Git clone guix repository by savannah;
>>>> 1. Copy gnu/package/indent.scm to mypackage.scm in this same folder;
>>>> 2. Add module to gnu-system.am
>>>> 3. Download mypackage;
>>>> 4. Edit mypackage.scm and add hash, license and other information;
>>>> 5. ./pre-inst-env guix build mypackage -K
>>>> 6. Erro: bash: ./pre-inst-env: No such file or directory
>>>> 
>>>> But there is pre-inst-env.in only. The script pre-inst-env not exist
>>>> in repository. So where is pre-inst-env?
>>> 
>>> You have to build guix before you can run it.  See
>>> doc/contributing.texi, especially the "Building from Git" section.
>>> Also, you should pass --localstatedir=/var to ./configure.
>>> 
>>>      Mark
>> 
>> I tried again, follow README file but there's a error (dot command?)
>> when I run "make":
>> 
>> /bin/sh /home/dani/Desktop/development/git/guix/build-aux/missing dot
>> -Tpng -Gratio=.9 -Gnodesep=.005 -Granksep=.00005 -Nfontsize=9
>> -Nheight=.1 -Nwidth=.1 < "doc/images/bootstrap-graph.dot" >
>> "doc/images/bootstrap-graph.png.tmp"
>> /home/dani/Desktop/development/git/guix/build-aux/missing: line 81:
>> dot: command not found
> 
> 'dot' is part of the graphviz package, which is listed as a required
> package in the "Building from Git" section that I cited above.
> 
>       Mark

Hi Guix,

After:
-clone Guix repository -> ok
-Read README and install requirements -> ok
-guix environment guix -> ok
-./configure --with-libgcrypt-prefix=$HOME/.guix-profile/ -> ok
-make -> ok
-make check -> error: FAIL: tests/lint.scm

I tried again build (./pre-inst-env guix build ipcalc -K): guix build: 
error: failed to connect to `/usr/local/var/guix/daemon-socket/socket': 
No such file or directory

Thanks Mark and Guix team.

-- 
Daniel Pimentel (d4n1 3:)

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Guix package steps
  2015-06-22 13:42       ` Daniel Pimentel
@ 2015-06-22 13:49         ` Amirouche Boubekki
  2015-06-22 19:31         ` Ludovic Courtès
  1 sibling, 0 replies; 7+ messages in thread
From: Amirouche Boubekki @ 2015-06-22 13:49 UTC (permalink / raw)
  To: Daniel Pimentel
  Cc: guix-devel, guix-devel-bounces+amirouche=hypermove.net,
	guix-devel-bounces+d4n1=opmbx.org

On 2015-06-22 15:42, Daniel Pimentel wrote:
> On 2015-06-22 03:09, Mark H Weaver wrote:
>> Daniel Pimentel <d4n1@openmailbox.org> writes:
>> 
>>> On 2015-06-17 00:57, Mark H Weaver wrote:
>>>> Daniel Pimentel <d4n1@openmailbox.org> writes:
>>>> 
>>>>> I tried create new packages (ipcalc, nmap, xfburn and others) but
>>>>> without success.
>>>>> 
>>>>> My steps (based on talk GNU Guix packaging by Andreas Enge):
>>>>> 0. Git clone guix repository by savannah;
>>>>> 1. Copy gnu/package/indent.scm to mypackage.scm in this same 
>>>>> folder;
>>>>> 2. Add module to gnu-system.am
>>>>> 3. Download mypackage;
>>>>> 4. Edit mypackage.scm and add hash, license and other information;
>>>>> 5. ./pre-inst-env guix build mypackage -K
>>>>> 6. Erro: bash: ./pre-inst-env: No such file or directory
>>>>> 
>>>>> But there is pre-inst-env.in only. The script pre-inst-env not 
>>>>> exist
>>>>> in repository. So where is pre-inst-env?
>>>> 
>>>> You have to build guix before you can run it.  See
>>>> doc/contributing.texi, especially the "Building from Git" section.
>>>> Also, you should pass --localstatedir=/var to ./configure.
>>>> 
>>>>      Mark
>>> 
>>> I tried again, follow README file but there's a error (dot command?)
>>> when I run "make":
>>> 
>>> /bin/sh /home/dani/Desktop/development/git/guix/build-aux/missing dot
>>> -Tpng -Gratio=.9 -Gnodesep=.005 -Granksep=.00005 -Nfontsize=9
>>> -Nheight=.1 -Nwidth=.1 < "doc/images/bootstrap-graph.dot" >
>>> "doc/images/bootstrap-graph.png.tmp"
>>> /home/dani/Desktop/development/git/guix/build-aux/missing: line 81:
>>> dot: command not found
>> 
>> 'dot' is part of the graphviz package, which is listed as a required
>> package in the "Building from Git" section that I cited above.
>> 
>>       Mark
> 
> Hi Guix,
> 
> After:
> -clone Guix repository -> ok
> -Read README and install requirements -> ok
> -guix environment guix -> ok
> -./configure --with-libgcrypt-prefix=$HOME/.guix-profile/ -> ok
> -make -> ok
> -make check -> error: FAIL: tests/lint.scm
> 
> I tried again build (./pre-inst-env guix build ipcalc -K): guix build:
> error: failed to connect to
> `/usr/local/var/guix/daemon-socket/socket': No such file or directory


You need to run the guix daemon [1], but before create as root the guix 
builders [2]:

# groupadd --system guix-builder
# for i in `seq 1 10`;
   do
     useradd -g guix-builder -G guix-builder           \
             -d /var/empty -s `which nologin`          \
             -c "Guix build user $i" --system          \
             guix-builder$i;
   done

The guix-daemon program may then be run as root with:

# guix-daemon --build-users-group=guix-builder

Also don't forget to add hydra pub key as discribed in [3]:

# guix archive --authorize < hydra.gnu.org.pub

[1] 
https://www.gnu.org/software/guix/manual/guix.html#Invoking-guix_002ddaemon
[2] 
https://www.gnu.org/software/guix/manual/guix.html#Build-Environment-Setup
[3] 
https://www.gnu.org/software/guix/manual/guix.html#Binary-Installation

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Guix package steps
  2015-06-22 13:42       ` Daniel Pimentel
  2015-06-22 13:49         ` Amirouche Boubekki
@ 2015-06-22 19:31         ` Ludovic Courtès
  1 sibling, 0 replies; 7+ messages in thread
From: Ludovic Courtès @ 2015-06-22 19:31 UTC (permalink / raw)
  To: Daniel Pimentel; +Cc: guix-devel, guix-devel-bounces+d4n1=opmbx.org

Daniel Pimentel <d4n1@openmailbox.org> skribis:

> -make check -> error: FAIL: tests/lint.scm

To complement what Amirouche wrote, please see
<https://www.gnu.org/software/guix/manual/html_node/Running-the-Test-Suite.html>
on how to report test failures.

Thanks!

Ludo’.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-06-22 19:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-17  0:15 Guix package steps Daniel Pimentel
2015-06-17  3:57 ` Mark H Weaver
2015-06-22  2:13   ` Daniel Pimentel
2015-06-22  6:09     ` Mark H Weaver
2015-06-22 13:42       ` Daniel Pimentel
2015-06-22 13:49         ` Amirouche Boubekki
2015-06-22 19:31         ` Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.