all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Create package and guix-daemon
@ 2015-07-23 20:35 Daniel Pimentel
  2015-07-23 20:40 ` Thompson, David
  2015-07-23 20:42 ` Andreas Enge
  0 siblings, 2 replies; 9+ messages in thread
From: Daniel Pimentel @ 2015-07-23 20:35 UTC (permalink / raw)
  To: guix-devel

Hi guix,

I'm tried create a simple package (ipcalc, but in soon I'll try build 
the complex packages), but there's a error with guix-daemon socket:

./pre-inst-env guix build ipcalc --keep-failed
;;; note: source file 
/home/dani/Desktop/development/git/guix/guix/config.scm
;;;       newer than compiled 
/run/current-system/profile/share/guile/site/2.0/guix/config.go
guix build: error: failed to connect to 
`/usr/local/var/guix/daemon-socket/socket': No such file or directory

I added my user, dani, to guixbuild in my config.scm, and I tried with 
root "guix-daemon --build-users-group=guixbuild" but without success.

Help me :(

P.S: I my system there isn't /usr directory.

Thanks,

-- 
Daniel Pimentel (d4n1 3:)

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

* Re: Create package and guix-daemon
  2015-07-23 20:35 Create package and guix-daemon Daniel Pimentel
@ 2015-07-23 20:40 ` Thompson, David
  2015-07-24 12:41   ` Daniel Pimentel
  2015-07-23 20:42 ` Andreas Enge
  1 sibling, 1 reply; 9+ messages in thread
From: Thompson, David @ 2015-07-23 20:40 UTC (permalink / raw)
  To: Daniel Pimentel; +Cc: guix-devel

On Thu, Jul 23, 2015 at 4:35 PM, Daniel Pimentel <d4n1@openmailbox.org> wrote:
> Hi guix,
>
> I'm tried create a simple package (ipcalc, but in soon I'll try build the
> complex packages), but there's a error with guix-daemon socket:
>
> ./pre-inst-env guix build ipcalc --keep-failed
> ;;; note: source file
> /home/dani/Desktop/development/git/guix/guix/config.scm
> ;;;       newer than compiled
> /run/current-system/profile/share/guile/site/2.0/guix/config.go
> guix build: error: failed to connect to
> `/usr/local/var/guix/daemon-socket/socket': No such file or directory
>
> I added my user, dani, to guixbuild in my config.scm, and I tried with root
> "guix-daemon --build-users-group=guixbuild" but without success.

Eek!  Remove your user from that group!  Your regular system users
should never be in the guixbuild group.

> Help me :(

The problem is that you haven't configured your Guix development
environment to use the right $localstatedir.  If you're running
GuixSD, you need to configure the Guix you are building from source
like so:

    ./configure --localstatedir=/var

> P.S: I my system there isn't /usr directory.

GuixSD does not conform to the FHS, so there is no /usr.

Hope this helps.

- Dave

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

* Re: Create package and guix-daemon
  2015-07-23 20:35 Create package and guix-daemon Daniel Pimentel
  2015-07-23 20:40 ` Thompson, David
@ 2015-07-23 20:42 ` Andreas Enge
  2015-07-24 12:44   ` Daniel Pimentel
  1 sibling, 1 reply; 9+ messages in thread
From: Andreas Enge @ 2015-07-23 20:42 UTC (permalink / raw)
  To: Daniel Pimentel; +Cc: guix-devel

Hello,

On Thu, Jul 23, 2015 at 05:35:06PM -0300, Daniel Pimentel wrote:
> /run/current-system/profile/share/guile/site/2.0/guix/config.go
> guix build: error: failed to connect to
> `/usr/local/var/guix/daemon-socket/socket': No such file or directory
> 
> P.S: I my system there isn't /usr directory.

The "/usr/local/" part above corresponds to the value of "--prefix=..."
when you run "./configure". The default is exactly "/usr/local".
I think you need to run
   ./configure --prefix=/existing/path
before compiling the daemon; maybe even
   ./configure --prefix=/tmp
will work if you do not run "make install".

Andreas

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

* Re: Create package and guix-daemon
  2015-07-23 20:40 ` Thompson, David
@ 2015-07-24 12:41   ` Daniel Pimentel
  2015-07-24 12:44     ` Thompson, David
  0 siblings, 1 reply; 9+ messages in thread
From: Daniel Pimentel @ 2015-07-24 12:41 UTC (permalink / raw)
  To: Thompson, David; +Cc: guix-devel

On 2015-07-23 17:40, Thompson, David wrote:
> On Thu, Jul 23, 2015 at 4:35 PM, Daniel Pimentel <d4n1@openmailbox.org> 
> wrote:
>> Hi guix,
>> 
>> I'm tried create a simple package (ipcalc, but in soon I'll try build 
>> the
>> complex packages), but there's a error with guix-daemon socket:
>> 
>> ./pre-inst-env guix build ipcalc --keep-failed
>> ;;; note: source file
>> /home/dani/Desktop/development/git/guix/guix/config.scm
>> ;;;       newer than compiled
>> /run/current-system/profile/share/guile/site/2.0/guix/config.go
>> guix build: error: failed to connect to
>> `/usr/local/var/guix/daemon-socket/socket': No such file or directory
>> 
>> I added my user, dani, to guixbuild in my config.scm, and I tried with 
>> root
>> "guix-daemon --build-users-group=guixbuild" but without success.
> 
> Eek!  Remove your user from that group!  Your regular system users
> should never be in the guixbuild group.
> 
>> Help me :(
> 
> The problem is that you haven't configured your Guix development
> environment to use the right $localstatedir.  If you're running
> GuixSD, you need to configure the Guix you are building from source
> like so:
> 
>     ./configure --localstatedir=/var
> 
>> P.S: I my system there isn't /usr directory.
> 
> GuixSD does not conform to the FHS, so there is no /usr.
> 
> Hope this helps.
> 
> - Dave

Hi Guix, I to this:
$ ./configure --with-libgcrypt-prefix=$HOME/.guix-profile/ 
--localstatedir=/var
# guix-daemon

But there's one error (bash?) when build package with "./pre-inst-env 
guix build ipcalc" (last lines):
starting phase `unpack'
ipcalc-0.41/
ipcalc-0.41/ipcalc
ipcalc-0.41/changelog
ipcalc-0.41/ipcalc.cgi
ipcalc-0.41/ipcalculator.png
ipcalc-0.41/license
ipcalc-0.41/contributors
ipcalc-0.41/ipcalc.gif
phase `unpack' succeeded after 0 seconds
starting phase `patch-usr-bin-file'
phase `patch-usr-bin-file' succeeded after 0 seconds
starting phase `patch-source-shebangs'
patch-shebang: ./ipcalc: warning: no binary for interpreter `perl' found 
in $PATH
patch-shebang: ./ipcalc.cgi: warning: no binary for interpreter `perl' 
found in $PATH
phase `patch-source-shebangs' succeeded after 0 seconds
starting phase `configure'
source directory: "/tmp/nix-build-ipcalc-0.41.drv-0/ipcalc-0.41" 
(relative from build: ".")
build directory: "/tmp/nix-build-ipcalc-0.41.drv-0/ipcalc-0.41"
configure flags: 
("CONFIG_SHELL=/gnu/store/r3mg86j35z90gbfbc3ry0467yv2nnqhx-bash-4.3.33/bin/bash" 
"SHELL=/gnu/store/r3mg86j35z90gbfbc3ry0467yv2nnqhx-bash-4.3.33/bin/bash" 
"--prefix=/gnu/store/xmzgra6b9cfgnlqxgcaf7mbm01m8i35n-ipcalc-0.41" 
"--enable-fast-install" "--enable-silent-rules")
/gnu/store/r3mg86j35z90gbfbc3ry0467yv2nnqhx-bash-4.3.33/bin/bash: 
./configure: No such file or directory
phase `configure' failed after 0 seconds
builder for 
`/gnu/store/433zm5s6pvm1xpvqa8y8r1586l0v6kpj-ipcalc-0.41.drv' failed 
with exit code 1
@ build-failed 
/gnu/store/433zm5s6pvm1xpvqa8y8r1586l0v6kpj-ipcalc-0.41.drv - 1 builder 
for `/gnu/store/433zm5s6pvm1xpvqa8y8r1586l0v6kpj-ipcalc-0.41.drv' failed 
with exit code 1
guix build: error: build failed: build of 
`/gnu/store/433zm5s6pvm1xpvqa8y8r1586l0v6kpj-ipcalc-0.41.drv' failed

Thanks Guixs.

P.S.: I'll remove my normal user of guixbuild group. Thanks David.
-- 
Daniel Pimentel (d4n1 3:)

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

* Re: Create package and guix-daemon
  2015-07-24 12:41   ` Daniel Pimentel
@ 2015-07-24 12:44     ` Thompson, David
  2015-07-24 12:57       ` Daniel Pimentel
  0 siblings, 1 reply; 9+ messages in thread
From: Thompson, David @ 2015-07-24 12:44 UTC (permalink / raw)
  To: Daniel Pimentel; +Cc: guix-devel

On Fri, Jul 24, 2015 at 8:41 AM, Daniel Pimentel <d4n1@openmailbox.org> wrote:
> On 2015-07-23 17:40, Thompson, David wrote:
>
>> On Thu, Jul 23, 2015 at 4:35 PM, Daniel Pimentel <d4n1@openmailbox.org>
>> wrote:
>>>
>>> Hi guix,
>>>
>>> I'm tried create a simple package (ipcalc, but in soon I'll try build the
>>> complex packages), but there's a error with guix-daemon socket:
>>>
>>> ./pre-inst-env guix build ipcalc --keep-failed
>>> ;;; note: source file
>>> /home/dani/Desktop/development/git/guix/guix/config.scm
>>> ;;;       newer than compiled
>>> /run/current-system/profile/share/guile/site/2.0/guix/config.go
>>> guix build: error: failed to connect to
>>> `/usr/local/var/guix/daemon-socket/socket': No such file or directory
>>>
>>> I added my user, dani, to guixbuild in my config.scm, and I tried with
>>> root
>>> "guix-daemon --build-users-group=guixbuild" but without success.
>>
>>
>> Eek!  Remove your user from that group!  Your regular system users
>> should never be in the guixbuild group.
>>
>>> Help me :(
>>
>>
>> The problem is that you haven't configured your Guix development
>> environment to use the right $localstatedir.  If you're running
>> GuixSD, you need to configure the Guix you are building from source
>> like so:
>>
>>     ./configure --localstatedir=/var
>>
>>> P.S: I my system there isn't /usr directory.
>>
>>
>> GuixSD does not conform to the FHS, so there is no /usr.
>>
>> Hope this helps.
>>
>> - Dave
>
>
> Hi Guix, I to this:
> $ ./configure --with-libgcrypt-prefix=$HOME/.guix-profile/
> --localstatedir=/var
> # guix-daemon
>
> But there's one error (bash?) when build package with "./pre-inst-env guix
> build ipcalc" (last lines):
> starting phase `unpack'
> ipcalc-0.41/
> ipcalc-0.41/ipcalc
> ipcalc-0.41/changelog
> ipcalc-0.41/ipcalc.cgi
> ipcalc-0.41/ipcalculator.png
> ipcalc-0.41/license
> ipcalc-0.41/contributors
> ipcalc-0.41/ipcalc.gif
> phase `unpack' succeeded after 0 seconds
> starting phase `patch-usr-bin-file'
> phase `patch-usr-bin-file' succeeded after 0 seconds
> starting phase `patch-source-shebangs'
> patch-shebang: ./ipcalc: warning: no binary for interpreter `perl' found in
> $PATH
> patch-shebang: ./ipcalc.cgi: warning: no binary for interpreter `perl' found
> in $PATH
> phase `patch-source-shebangs' succeeded after 0 seconds
> starting phase `configure'
> source directory: "/tmp/nix-build-ipcalc-0.41.drv-0/ipcalc-0.41" (relative
> from build: ".")
> build directory: "/tmp/nix-build-ipcalc-0.41.drv-0/ipcalc-0.41"
> configure flags:
> ("CONFIG_SHELL=/gnu/store/r3mg86j35z90gbfbc3ry0467yv2nnqhx-bash-4.3.33/bin/bash"
> "SHELL=/gnu/store/r3mg86j35z90gbfbc3ry0467yv2nnqhx-bash-4.3.33/bin/bash"
> "--prefix=/gnu/store/xmzgra6b9cfgnlqxgcaf7mbm01m8i35n-ipcalc-0.41"
> "--enable-fast-install" "--enable-silent-rules")
> /gnu/store/r3mg86j35z90gbfbc3ry0467yv2nnqhx-bash-4.3.33/bin/bash:
> ./configure: No such file or directory
> phase `configure' failed after 0 seconds
> builder for `/gnu/store/433zm5s6pvm1xpvqa8y8r1586l0v6kpj-ipcalc-0.41.drv'
> failed with exit code 1
> @ build-failed /gnu/store/433zm5s6pvm1xpvqa8y8r1586l0v6kpj-ipcalc-0.41.drv -
> 1 builder for `/gnu/store/433zm5s6pvm1xpvqa8y8r1586l0v6kpj-ipcalc-0.41.drv'
> failed with exit code 1
> guix build: error: build failed: build of
> `/gnu/store/433zm5s6pvm1xpvqa8y8r1586l0v6kpj-ipcalc-0.41.drv' failed

I see a couple of problems here:

1) Looks like Perl is a necessary input.

2) There is no configure script, so you must remove the 'configure'
phase.  Search for examples of this in other package definitions.
Does this package even use the GNU build system?

- Dave

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

* Re: Create package and guix-daemon
  2015-07-23 20:42 ` Andreas Enge
@ 2015-07-24 12:44   ` Daniel Pimentel
  2015-07-24 12:58     ` Andreas Enge
  0 siblings, 1 reply; 9+ messages in thread
From: Daniel Pimentel @ 2015-07-24 12:44 UTC (permalink / raw)
  To: Andreas Enge; +Cc: guix-devel, guix-devel-bounces+d4n1=opmbx.org

On 2015-07-23 17:42, Andreas Enge wrote:
> Hello,
> 
> On Thu, Jul 23, 2015 at 05:35:06PM -0300, Daniel Pimentel wrote:
>> /run/current-system/profile/share/guile/site/2.0/guix/config.go
>> guix build: error: failed to connect to
>> `/usr/local/var/guix/daemon-socket/socket': No such file or directory
>> 
>> P.S: I my system there isn't /usr directory.
> 
> The "/usr/local/" part above corresponds to the value of "--prefix=..."
> when you run "./configure". The default is exactly "/usr/local".
> I think you need to run
>    ./configure --prefix=/existing/path
> before compiling the daemon; maybe even
>    ./configure --prefix=/tmp
> will work if you do not run "make install".
> 
> Andreas
Andreas,
with "./configure --with-libgcrypt-prefix=$HOME/.guix-profile/ 
--prefix=/tmp" don't work to me, but with "./configure 
--with-libgcrypt-prefix=$HOME/.guix-profile/ --localstatedir=/var" it 
work.

Thanks,
-- 
Daniel Pimentel (d4n1 3:)

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

* Re: Create package and guix-daemon
  2015-07-24 12:44     ` Thompson, David
@ 2015-07-24 12:57       ` Daniel Pimentel
  0 siblings, 0 replies; 9+ messages in thread
From: Daniel Pimentel @ 2015-07-24 12:57 UTC (permalink / raw)
  To: Thompson, David; +Cc: guix-devel

> I see a couple of problems here:
> 
> 1) Looks like Perl is a necessary input.
> 
> 2) There is no configure script, so you must remove the 'configure'
> phase.  Search for examples of this in other package definitions.
> Does this package even use the GNU build system?
> 
> - Dave

1. I'll check it.

2. I'll try it. I don't know about it but I think no, I'll see 
documentation about it.

How remove the 'configure' phase (sorry for it :( )?

My ipcalc.scm file:
(define-module (gnu packages ipcalc)
   #:use-module (guix packages)
   #:use-module (guix download)
   #:use-module (guix build-system gnu)
   #:use-module (guix licenses))

(define-public ipcalc
   (package
     (name "ipcalc")
     (version "0.41")
     (source (origin
               (method url-fetch)
               (uri (string-append 
"http://jodies.de/ipcalc-archive/ipcalc-" version
                                   ".tar.gz"))
               (sha256
                (base32
                 
"12if9sm8h2ac0pgwkw835cgyqjxm6h27k4kfn2vfas9krrqwbafx"))))
     (build-system gnu-build-system)
     (arguments `(#:configure-flags '("--enable-silent-rules")))
     (synopsis "IP Calculator")
     (description "ipcalc takes an IP address and netmask and calculates 
the resulting broadcast, network, mask, and host range")
     (home-page "http://jodies.de/ipcalc")
     (license gpl2+)))


Thanks,

-- 
Daniel Pimentel (d4n1 3:)

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

* Re: Create package and guix-daemon
  2015-07-24 12:44   ` Daniel Pimentel
@ 2015-07-24 12:58     ` Andreas Enge
  2015-07-24 13:01       ` Daniel Pimentel
  0 siblings, 1 reply; 9+ messages in thread
From: Andreas Enge @ 2015-07-24 12:58 UTC (permalink / raw)
  To: Daniel Pimentel; +Cc: guix-devel, guix-devel-bounces+d4n1=opmbx.org

On Fri, Jul 24, 2015 at 09:44:55AM -0300, Daniel Pimentel wrote:
> with "./configure --with-libgcrypt-prefix=$HOME/.guix-profile/
> --prefix=/tmp" don't work to me, but with "./configure
> --with-libgcrypt-prefix=$HOME/.guix-profile/ --localstatedir=/var" it work.

Yes, I was mixing up the two, prefix and localstatedir. Sorry!

Andreas

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

* Re: Create package and guix-daemon
  2015-07-24 12:58     ` Andreas Enge
@ 2015-07-24 13:01       ` Daniel Pimentel
  0 siblings, 0 replies; 9+ messages in thread
From: Daniel Pimentel @ 2015-07-24 13:01 UTC (permalink / raw)
  To: Andreas Enge; +Cc: guix-devel, guix-devel-bounces+d4n1=opmbx.org

On 2015-07-24 09:58, Andreas Enge wrote:
> On Fri, Jul 24, 2015 at 09:44:55AM -0300, Daniel Pimentel wrote:
>> with "./configure --with-libgcrypt-prefix=$HOME/.guix-profile/
>> --prefix=/tmp" don't work to me, but with "./configure
>> --with-libgcrypt-prefix=$HOME/.guix-profile/ --localstatedir=/var" it 
>> work.
> 
> Yes, I was mixing up the two, prefix and localstatedir. Sorry!
> 
> Andreas
Yes Andreas, thank so much for help me :)

I'll mixing up the two too.

Thanks,
-- 
Daniel Pimentel (d4n1 3:)

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

end of thread, other threads:[~2015-07-24 13:01 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-23 20:35 Create package and guix-daemon Daniel Pimentel
2015-07-23 20:40 ` Thompson, David
2015-07-24 12:41   ` Daniel Pimentel
2015-07-24 12:44     ` Thompson, David
2015-07-24 12:57       ` Daniel Pimentel
2015-07-23 20:42 ` Andreas Enge
2015-07-24 12:44   ` Daniel Pimentel
2015-07-24 12:58     ` Andreas Enge
2015-07-24 13:01       ` Daniel Pimentel

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.