From mboxrd@z Thu Jan 1 00:00:00 1970 From: julien lepiller Subject: Re: Packaging Jitsi SIP Communicator Date: Wed, 08 Nov 2017 11:09:08 +0100 Message-ID: <244cd2fed108e6c3d2ae58525c9bf82c@lepiller.eu> References: <87vail5sgz.fsf@sturm.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43185) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eCNIL-00067h-BW for guix-devel@gnu.org; Wed, 08 Nov 2017 05:09:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eCNIF-0001L5-Dn for guix-devel@gnu.org; Wed, 08 Nov 2017 05:09:17 -0500 Received: from lepiller.eu ([2a00:5884:8208::1]:36786) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eCNIF-0001KD-80 for guix-devel@gnu.org; Wed, 08 Nov 2017 05:09:11 -0500 Received: from webmail.lepiller.eu (static-176-182-42-79.ncc.abo.bbox.fr [176.182.42.79]) by lepiller.eu (OpenSMTPD) with ESMTPSA id cbd88b14 (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128:NO) for ; Wed, 8 Nov 2017 10:11:00 +0000 (UTC) In-Reply-To: <87vail5sgz.fsf@sturm.com.au> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org 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