From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?QmrDtnJuIEjDtmZsaW5n?= Subject: java: How to patch a jar-sources Date: Mon, 15 Apr 2019 08:02:48 +0200 Message-ID: <20190415080248.679c6749@alma-ubu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/HvWmHM6uJb8+FcKZ3bfHmeY"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:43556) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hFuhu-0005Sy-1Z for guix-devel@gnu.org; Mon, 15 Apr 2019 02:03:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hFuhs-0001uK-UE for guix-devel@gnu.org; Mon, 15 Apr 2019 02:03:05 -0400 Received: from m4s11.vlinux.de ([83.151.27.109]:34864 helo=bjoernhoefling.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hFuhs-0001tD-Kg for guix-devel@gnu.org; Mon, 15 Apr 2019 02:03:04 -0400 Received: from alma-ubu (unknown [46.183.103.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bjoernhoefling.de (Postfix) with ESMTPSA id 8E85D3F943 for ; Mon, 15 Apr 2019 08:02:54 +0200 (CEST) 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 --Sig_/HvWmHM6uJb8+FcKZ3bfHmeY Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Guix, I have a problem combining ".jar" sources with patches. Here is my sources definition: (define-public java-ecj (package (inherit java-ecj-3) (version "4.6.3") (source (origin (method url-fetch) (uri (string-append "http://archive.eclipse.org/eclips= e/downloads/drops4/R-" version "-201703010400/ecjsrc-" version ".jar")) (patches (search-patches "java-ecj-buildxml-fix-manifest.patch" "java-ecj-include-props.patch")) (sha256 (base32 "11cfgsdgznja1pvlxkjbqykxd7pcd5655vkm7s44xmahmap15gp= l")))) [...] This worked pretty well until I added the patches: ./pre-inst-env guix build java-ecj -K ;;; note: source file /home/bjoern/guix/wt/qt/gnu/packages/java.scm ;;; newer than compiled /home/bjoern/guix/wt/qt/gnu/packages/java.go building /gnu/store/wppz7bix1r4mhddjz6k4alfnxkm919gq-ecjsrc-4.6.3.tar.xz.dr= v... /gnu/store/bl3pxxj6frg0dww8pj5dvh2d1akwvj47-tar-1.30/bin/tar: This does not= look like a tar archive /gnu/store/bl3pxxj6frg0dww8pj5dvh2d1akwvj47-tar-1.30/bin/tar: Skipping to n= ext header /gnu/store/bl3pxxj6frg0dww8pj5dvh2d1akwvj47-tar-1.30/bin/tar: Exiting with = failure status due to previous errors Backtrace: 2 (primitive-load "/gnu/store/lg0dlhwf4mfz82697bvfdwi7d86?") In ice-9/eval.scm: 619:8 1 (_ #f) In guix/build/utils.scm: 616:6 0 (invoke _ . _) guix/build/utils.scm:616:6: In procedure invoke: Throw to key `srfi-34' with args `(#)'. note: keeping build directory `/tmp/guix-build-ecjsrc-4.6.3.tar.xz.drv-1' builder for `/gnu/store/wppz7bix1r4mhddjz6k4alfnxkm919gq-ecjsrc-4.6.3.tar.x= z.drv' failed with exit code 1 build of /gnu/store/wppz7bix1r4mhddjz6k4alfnxkm919gq-ecjsrc-4.6.3.tar.xz.dr= v failed It looks like guix now wants to extract the jar-sources with "tar", no longer with "jar". How can I tell Guix this is a jar-file to extract from? Do I need to do that manually in a snippet? Any examples? Thanks, Bj=C3=B6rn --Sig_/HvWmHM6uJb8+FcKZ3bfHmeY Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQQiGUP0np8nb5SZM4K/KGy2WT5f/QUCXLQeiAAKCRC/KGy2WT5f /XSGAJoCqcf/kbYXngh3vc0fLcKCsiI2bwCfUCBlmMkoU4GqghZlj7/D79wMvtg= =VOJS -----END PGP SIGNATURE----- --Sig_/HvWmHM6uJb8+FcKZ3bfHmeY--