Discussion:
Packaging Jitsi SIP Communicator
(too old to reply)
Ben Sturmfels
2017-11-08 04:01:32 UTC
Permalink
Raw Message
Hi Folks,

I'm having some trouble packaging Jitsi (a VoIP client written in Java).
The attached patch adds the package "jitsi", which completes the "build"
phase, but fails as below. Ignoring for now that Jitsi is bundling a whole lot
of dependencies, can someone help me understand what’s going on:

phase `build' succeeded after 45.3 seconds
starting phase `check'
test suite not run
phase `check' succeeded after 0.0 seconds
starting phase `strip-jar-timestamps'
find-files: /gnu/store/kz7kwgm25xk83fc69immm80dazv9gb6x-jitsi-2.10: No such file or directory
phase `strip-jar-timestamps' succeeded after 0.0 seconds
starting phase `patch-shebangs'
phase `patch-shebangs' succeeded after 0.0 seconds
starting phase `strip'
phase `strip' succeeded after 0.0 seconds
starting phase `validate-runpath'
phase `validate-runpath' succeeded after 0.0 seconds
starting phase `validate-documentation-location'
phase `validate-documentation-location' succeeded after 0.0 seconds
starting phase `delete-info-dir-file'
phase `delete-info-dir-file' succeeded after 0.0 seconds
starting phase `patch-dot-desktop-files'
phase `patch-dot-desktop-files' succeeded after 0.0 seconds
starting phase `reset-gzip-timestamps'
find-files: /gnu/store/kz7kwgm25xk83fc69immm80dazv9gb6x-jitsi-2.10: No such file or directory
phase `reset-gzip-timestamps' succeeded after 0.0 seconds
starting phase `compress-documentation'
phase `compress-documentation' succeeded after 0.0 seconds
builder for `/gnu/store/hxpb6xvx324d9i9kxc7ywfwwaz3zgs4z-jitsi-2.10.drv' failed to produce output path `/gnu/store/kz7kwgm25xk83fc69immm80dazv9gb6x-jitsi-2.10'
@ build-failed /gnu/store/hxpb6xvx324d9i9kxc7ywfwwaz3zgs4z-jitsi-2.10.drv - 1 builder for `/gnu/store/hxpb6xvx324d9i9kxc7ywfwwaz3zgs4z-jitsi-2.10.drv' failed to produce output path `/gnu/store/kz7kwgm25xk83fc69immm80dazv9gb6x-jitsi-2.10'
note: keeping build directory `/tmp/guix-build-jitsi-2.10.drv-0'
guix build: error: build failed: build of `/gnu/store/hxpb6xvx324d9i9kxc7ywfwwaz3zgs4z-jitsi-2.10.drv' failed


Regards,
Ben

--
Ben Sturmfels

Sturm - Software Engineering
www.sturm.com.au
(03) 9024 2467
Ludovic Courtès
2017-11-08 08:56:53 UTC
Permalink
Raw Message
Hi Ben,

Ben Sturmfels <***@sturm.com.au> skribis:

> starting phase `reset-gzip-timestamps'
> find-files: /gnu/store/kz7kwgm25xk83fc69immm80dazv9gb6x-jitsi-2.10: No such file or directory
> phase `reset-gzip-timestamps' succeeded after 0.0 seconds
> starting phase `compress-documentation'
> phase `compress-documentation' succeeded after 0.0 seconds
> builder for `/gnu/store/hxpb6xvx324d9i9kxc7ywfwwaz3zgs4z-jitsi-2.10.drv' failed to produce output path `/gnu/store/kz7kwgm25xk83fc69immm80dazv9gb6x-jitsi-2.10'
> @ build-failed /gnu/store/hxpb6xvx324d9i9kxc7ywfwwaz3zgs4z-jitsi-2.10.drv - 1 builder for `/gnu/store/hxpb6xvx324d9i9kxc7ywfwwaz3zgs4z-jitsi-2.10.drv' failed to produce output path `/gnu/store/kz7kwgm25xk83fc69immm80dazv9gb6x-jitsi-2.10'

It means that /gnu/store/kz7kwgm25xk83fc69immm80dazv9gb6x-jitsi-2.10 was
not created at all.

HTH!

Ludo’.
Thomas Danckaert
2017-11-08 09:02:12 UTC
Permalink
Raw Message
From: Ben Sturmfels <***@sturm.com.au>
Subject: Packaging Jitsi SIP Communicator
Date: Wed, 08 Nov 2017 15:01:32 +1100

>
> Date: Wed, 08 Nov 2017 15:01:32 +1100
> Message: 2
> X-Mew: <3.3 body> Good PGP sign "Christopher Baines
> <***@cbaines.net>" [unknown] UNDEFINED
>
> Hi Folks,
>
> I'm having some trouble packaging Jitsi (a VoIP client written in
> Java).
> The attached patch adds the package "jitsi", which completes the
> "build"
> phase, but fails as below. Ignoring for now that Jitsi is bundling
> a whole lot
> of dependencies, can someone help me understand what’s going on:
>
> [...]
>
> find-files: /gnu/store/kz7kwgm25xk83fc69immm80dazv9gb6x-jitsi-2.10:
> No such file or directory
>
> [...]
>
> builder for
> `/gnu/store/hxpb6xvx324d9i9kxc7ywfwwaz3zgs4z-jitsi-2.10.drv' failed
> to produce output path
> `/gnu/store/kz7kwgm25xk83fc69immm80dazv9gb6x-jitsi-2.10'
> @ build-failed
> /gnu/store/hxpb6xvx324d9i9kxc7ywfwwaz3zgs4z-jitsi-2.10.drv - 1
> builder for
> `/gnu/store/hxpb6xvx324d9i9kxc7ywfwwaz3zgs4z-jitsi-2.10.drv' failed
> to produce output path `

Hi,

These messages indicate that the build procedure did not create the
output directory, i.e. nothing was installed. So you should have a
look at the build procedure, and make sure there is an install phase
that creates and populates the output directory (available as
(assoc-ref %outpu
julien lepiller
2017-11-08 10:09:08 UTC
Permalink
Raw Message
Le 2017-11-08 05:01, Ben Sturmfels a écrit :
> Hi Folks,
>
> I'm having some trouble packaging Jitsi (a VoIP client written in
> Java).
> The attached patch adds the package "jitsi", which completes the
> "build"
> phase, but fails as below. Ignoring for now that Jitsi is bundling a
> whole lot
> of dependencies, can someone help me understand what’s going on:
>
> phase `build' succeeded after 45.3 seconds
> starting phase `check'
> test suite not run
> phase `check' succeeded after 0.0 seconds
> starting phase `strip-jar-timestamps'
> find-files: /gnu/store/kz7kwgm25xk83fc69immm80dazv9gb6x-jitsi-2.10: No
> such file or directory
> phase `strip-jar-timestamps' succeeded after 0.0 seconds
> starting phase `patch-shebangs'
> phase `patch-shebangs' succeeded after 0.0 seconds
> starting phase `strip'
> phase `strip' succeeded after 0.0 seconds
> starting phase `validate-runpath'
> phase `validate-runpath' succeeded after 0.0 seconds
> starting phase `validate-documentation-location'
> phase `validate-documentation-location' succeeded after 0.0 seconds
> starting phase `delete-info-dir-file'
> phase `delete-info-dir-file' succeeded after 0.0 seconds
> starting phase `patch-dot-desktop-files'
> phase `patch-dot-desktop-files' succeeded after 0.0 seconds
> starting phase `reset-gzip-timestamps'
> find-files: /gnu/store/kz7kwgm25xk83fc69immm80dazv9gb6x-jitsi-2.10: No
> such file or directory
> phase `reset-gzip-timestamps' succeeded after 0.0 seconds
> starting phase `compress-documentation'
> phase `compress-documentation' succeeded after 0.0 seconds
> builder for
> `/gnu/store/hxpb6xvx324d9i9kxc7ywfwwaz3zgs4z-jitsi-2.10.drv' failed to
> produce output path
> `/gnu/store/kz7kwgm25xk83fc69immm80dazv9gb6x-jitsi-2.10'
> @ build-failed
> /gnu/store/hxpb6xvx324d9i9kxc7ywfwwaz3zgs4z-jitsi-2.10.drv - 1 builder
> for `/gnu/store/hxpb6xvx324d9i9kxc7ywfwwaz3zgs4z-jitsi-2.10.drv'
> failed to produce output path
> `/gnu/store/kz7kwgm25xk83fc69immm80dazv9gb6x-jitsi-2.10'
> note: keeping build directory `/tmp/guix-build-jitsi-2.10.drv-0'
> guix build: error: build failed: build of
> `/gnu/store/hxpb6xvx324d9i9kxc7ywfwwaz3zgs4z-jitsi-2.10.drv' failed
>
>
> Regards,
> Ben

Well of course if you "(delete 'install)", you won't install anything :p

You should rather modify that phase to install manually (using
install-file)
the compiled jar, or find the correct target in build.xml.

Also, this package bundles a lot of pre-compiled jars. You should remove
them (for-each delete-files (find-files "." ".*.jar")) and add them as
inputs (we already have all of them, except felix.jar, but I think I
have a package for that: I will send it this evening).

Then you will be able to make a wrapper script. You can get inspiration
from the java-antlr packages.

Finally, there is probably an issue with your #:main-class: a class
usually starts with an upper-case letter. According to your comment,
it should be net.java.sip.communicator.launcher.SIPCommunicator.

>
> --
> Ben Sturmfels
>
> Sturm - Software Engineering
> www.sturm.com.au
> (03) 9024 2467
Ben Sturmfels
2017-12-19 06:05:37 UTC
Permalink
Raw Message
Hi Julien, Thomas, Ludovic and Chris,

Thanks very much for your tips on my Jitsi building adventures from a
few weeks back! I’ll keep you posted on the progress.

Regards,
Ben

On Wed, 08 Nov 2017, julien lepiller wrote:

> Le 2017-11-08 05:01, Ben Sturmfels a écrit:
>> Hi Folks,
>>
>> I'm having some trouble packaging Jitsi (a VoIP client written in
>> Java).
>> The attached patch adds the package "jitsi", which completes the
>> "build"
>> phase, but fails as below. Ignoring for now that Jitsi is bundling a
>> whole lot
>> of dependencies, can someone help me understand what’s going on:
>>
>> phase `build' succeeded after 45.3 seconds
>> starting phase `check'
>> test suite not run
>> phase `check' succeeded after 0.0 seconds
>> starting phase `strip-jar-timestamps'
>> find-files: /gnu/store/kz7kwgm25xk83fc69immm80dazv9gb6x-jitsi-2.10: No
>> such file or directory
>> phase `strip-jar-timestamps' succeeded after 0.0 seconds
>> starting phase `patch-shebangs'
>> phase `patch-shebangs' succeeded after 0.0 seconds
>> starting phase `strip'
>> phase `strip' succeeded after 0.0 seconds
>> starting phase `validate-runpath'
>> phase `validate-runpath' succeeded after 0.0 seconds
>> starting phase `validate-documentation-location'
>> phase `validate-documentation-location' succeeded after 0.0 seconds
>> starting phase `delete-info-dir-file'
>> phase `delete-info-dir-file' succeeded after 0.0 seconds
>> starting phase `patch-dot-desktop-files'
>> phase `patch-dot-desktop-files' succeeded after 0.0 seconds
>> starting phase `reset-gzip-timestamps'
>> find-files: /gnu/store/kz7kwgm25xk83fc69immm80dazv9gb6x-jitsi-2.10: No
>> such file or directory
>> phase `reset-gzip-timestamps' succeeded after 0.0 seconds
>> starting phase `compress-documentation'
>> phase `compress-documentation' succeeded after 0.0 seconds
>> builder for
>> `/gnu/store/hxpb6xvx324d9i9kxc7ywfwwaz3zgs4z-jitsi-2.10.drv' failed to
>> produce output path
>> `/gnu/store/kz7kwgm25xk83fc69immm80dazv9gb6x-jitsi-2.10'
>> @ build-failed
>> /gnu/store/hxpb6xvx324d9i9kxc7ywfwwaz3zgs4z-jitsi-2.10.drv - 1 builder
>> for `/gnu/store/hxpb6xvx324d9i9kxc7ywfwwaz3zgs4z-jitsi-2.10.drv'
>> failed to produce output path
>> `/gnu/store/kz7kwgm25xk83fc69immm80dazv9gb6x-jitsi-2.10'
>> note: keeping build directory `/tmp/guix-build-jitsi-2.10.drv-0'
>> guix build: error: build failed: build of
>> `/gnu/store/hxpb6xvx324d9i9kxc7ywfwwaz3zgs4z-jitsi-2.10.drv' failed
>>
>>
>> Regards,
>> Ben
>
> Well of course if you "(delete 'install)", you won't install anything :p
>
> You should rather modify that phase to install manually (using
> install-file)
> the compiled jar, or find the correct target in build.xml.
>
> Also, this package bundles a lot of pre-compiled jars. You should remove
> them (for-each delete-files (find-files "." ".*.jar")) and add them as
> inputs (we already have all of them, except felix.jar, but I think I
> have a package for that: I will send it this evening).
>
> Then you will be able to make a wrapper script. You can get inspiration
> from the java-antlr packages.
>
> Finally, there is probably an issue with your #:main-class: a class
> usually starts with an upper-case letter. According to your comment,
> it should be net.java.sip.communicator.launcher.SIPCommunicator.
>
>>
>> --
>> Ben Sturmfels
>>
>> Sturm - Software Engineering
>> www.sturm.com.au
>> (03) 9024 2467
Chris Marusich
2017-11-15 04:54:18 UTC
Permalink
Raw Message
Ben Sturmfels <***@sturm.com.au> writes:

> builder for
> `/gnu/store/hxpb6xvx324d9i9kxc7ywfwwaz3zgs4z-jitsi-2.10.drv' failed to
> produce output path
> `/gnu/store/kz7kwgm25xk83fc69immm80dazv9gb6x-jitsi-2.10'
> @ build-failed
> /gnu/store/hxpb6xvx324d9i9kxc7ywfwwaz3zgs4z-jitsi-2.10.drv - 1 builder
> for `/gnu/store/hxpb6xvx324d9i9kxc7ywfwwaz3zgs4z-jitsi-2.10.drv'
> failed to produce output path
> `/gnu/store/kz7kwgm25xk83fc69immm80dazv9gb6x-jitsi-2.10'
> note: keeping build directory `/tmp/guix-build-jitsi-2.10.drv-0'
> guix build: error: build failed: build of `/gnu/store/hxpb6xvx324d9i9kxc7ywfwwaz3zgs4z-jitsi-2.10.drv' failed

The derivation failed because it didn't produce any output. Perhaps
it's because you removed the 'install phase? Either way, you'll need to
make a change of some kind that actually deposits the build output into
the output path.

--
Chris
Loading...