* Packaging Jitsi SIP Communicator
@ 2017-11-08 4:01 Ben Sturmfels
2017-11-08 8:56 ` Ludovic Courtès
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: Ben Sturmfels @ 2017-11-08 4:01 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 2126 bytes --]
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
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-jitsi.patch --]
[-- Type: text/x-patch, Size: 2528 bytes --]
From cb542979e51de26bac77d21e2ca4860dc5980641 Mon Sep 17 00:00:00 2001
From: Ben Sturmfels <ben@sturm.com.au>
Date: Wed, 8 Nov 2017 14:51:36 +1100
Subject: [PATCH] gnu: Add jitsi.
* gnu/packages/telephony.scm (jitsi): New variable.
---
gnu/packages/telephony.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/gnu/packages/telephony.scm b/gnu/packages/telephony.scm
index 5df5e9e4a..d8f40572a 100644
--- a/gnu/packages/telephony.scm
+++ b/gnu/packages/telephony.scm
@@ -432,3 +432,34 @@ Mumble consists of two applications for separate usage:
(license (list license:bsd-3
;; The bundled celt is bsd-2. Remove after 1.3.0.
license:bsd-2))))
+
+(define-public jitsi
+ (package
+ (name "jitsi")
+ (version "2.10")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/jitsi/jitsi/archive/Jitsi-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1waahfk9306nxqzpp1cng0dxlk0p7xi8j7x47z1r9jrhzvfpk80k"))))
+ (build-system ant-build-system)
+ (arguments
+ `(#:build-target "make" ;; Build works fine.
+ #:test-target "test"
+ #:tests? #f ; Fails with "../accounts.properties not found".
+ ;; Not completely sure how to install and run the program. When it's
+ ;; running on Trisquel, `ps` says the command is:
+ ;;
+ ;; /usr/bin/java -classpath /usr/share/jitsi/lib/felix.jar:/usr/share/jitsi/sc-bundles/dnsjava.jar:/usr/share/jitsi/sc-bundles/sc-launcher.jar:/usr/share/jitsi/sc-bundles/util.jar:/usr/share/jitsi/lib -Djna.library.path=/usr/share/jitsi/lib/native -Dfelix.config.properties=file:/usr/share/jitsi/lib/felix.client.run.properties -Djava.util.logging.config.file=/usr/share/jitsi/lib/logging.properties -splash:splash.gif -Dnet.java.sip.communicator.SC_HOME_DIR_NAME=.jitsi net.java.sip.communicator.launcher.SIPCommunicator
+ #:main-class "net.java.sip.communicator"
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'install))))
+ (home-page "https://desktop.jitsi.org/")
+ (synopsis "VoIP and Instant Messaging client")
+ (description "Jitsi is an application that allows you to have audio/video
+conversations over the Internet through the SIP and XMPP/Jabber protocols, as
+well as chat with your friends using popular instant messaging protocols
+including SIP/SIMPLE, XMPP/Jabber, AIM/ICQ and IRC.")
+ (license license:asl2.0)))
--
2.14.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: Packaging Jitsi SIP Communicator
2017-11-08 4:01 Packaging Jitsi SIP Communicator Ben Sturmfels
@ 2017-11-08 8:56 ` Ludovic Courtès
2017-11-08 9:02 ` Thomas Danckaert
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: Ludovic Courtès @ 2017-11-08 8:56 UTC (permalink / raw)
To: Ben Sturmfels; +Cc: guix-devel
Hi Ben,
Ben Sturmfels <ben@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’.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Packaging Jitsi SIP Communicator
2017-11-08 4:01 Packaging Jitsi SIP Communicator Ben Sturmfels
2017-11-08 8:56 ` Ludovic Courtès
@ 2017-11-08 9:02 ` Thomas Danckaert
2017-11-08 10:09 ` julien lepiller
2017-11-15 4:54 ` Chris Marusich
3 siblings, 0 replies; 6+ messages in thread
From: Thomas Danckaert @ 2017-11-08 9:02 UTC (permalink / raw)
To: ben; +Cc: guix-devel
From: Ben Sturmfels <ben@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
> <mail@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 %outputs "out")) with the items that were built.
Thomas
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Packaging Jitsi SIP Communicator
2017-11-08 4:01 Packaging Jitsi SIP Communicator Ben Sturmfels
2017-11-08 8:56 ` Ludovic Courtès
2017-11-08 9:02 ` Thomas Danckaert
@ 2017-11-08 10:09 ` julien lepiller
2017-12-19 6:05 ` Ben Sturmfels
2017-11-15 4:54 ` Chris Marusich
3 siblings, 1 reply; 6+ messages in thread
From: julien lepiller @ 2017-11-08 10:09 UTC (permalink / raw)
To: guix-devel
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Packaging Jitsi SIP Communicator
2017-11-08 10:09 ` julien lepiller
@ 2017-12-19 6:05 ` Ben Sturmfels
0 siblings, 0 replies; 6+ messages in thread
From: Ben Sturmfels @ 2017-12-19 6:05 UTC (permalink / raw)
To: julien lepiller, Chris Marusich, Thomas Danckaert,
Ludovic Courtès
Cc: guix-devel
[-- Attachment #1: Type: text/plain, Size: 3489 bytes --]
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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Packaging Jitsi SIP Communicator
2017-11-08 4:01 Packaging Jitsi SIP Communicator Ben Sturmfels
` (2 preceding siblings ...)
2017-11-08 10:09 ` julien lepiller
@ 2017-11-15 4:54 ` Chris Marusich
3 siblings, 0 replies; 6+ messages in thread
From: Chris Marusich @ 2017-11-15 4:54 UTC (permalink / raw)
To: Ben Sturmfels; +Cc: guix-devel
[-- Attachment #1: Type: text/plain, Size: 901 bytes --]
Ben Sturmfels <ben@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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2017-12-19 6:05 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-08 4:01 Packaging Jitsi SIP Communicator Ben Sturmfels
2017-11-08 8:56 ` Ludovic Courtès
2017-11-08 9:02 ` Thomas Danckaert
2017-11-08 10:09 ` julien lepiller
2017-12-19 6:05 ` Ben Sturmfels
2017-11-15 4:54 ` Chris Marusich
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
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).