From patchwork Sat Feb 25 20:30:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Lepiller X-Patchwork-Id: 47344 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 94E8C16BBA; Sat, 25 Feb 2023 20:32:42 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id E6B5E1684B for ; Sat, 25 Feb 2023 20:32:38 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pW1DJ-0005vd-NL; Sat, 25 Feb 2023 15:32:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pW1DE-0005rq-9h for guix-patches@gnu.org; Sat, 25 Feb 2023 15:32:08 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pW1DE-00017t-1T for guix-patches@gnu.org; Sat, 25 Feb 2023 15:32:08 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pW1DD-0004VX-U3 for guix-patches@gnu.org; Sat, 25 Feb 2023 15:32:07 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61794] [PATCH 17/18] gnu: Add java-byte-buddy-dep. Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 25 Feb 2023 20:32:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61794 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61794@debbugs.gnu.org Received: via spool by 61794-submit@debbugs.gnu.org id=B61794.167735709417176 (code B ref 61794); Sat, 25 Feb 2023 20:32:07 +0000 Received: (at 61794) by debbugs.gnu.org; 25 Feb 2023 20:31:34 +0000 Received: from localhost ([127.0.0.1]:41688 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pW1Cf-0004Sr-TM for submit@debbugs.gnu.org; Sat, 25 Feb 2023 15:31:34 -0500 Received: from lepiller.eu ([89.234.186.109]:49662) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pW1CD-0004OQ-J6 for 61794@debbugs.gnu.org; Sat, 25 Feb 2023 15:31:06 -0500 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 8acf55d2 for <61794@debbugs.gnu.org>; Sat, 25 Feb 2023 20:30:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=from:to :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=dkim; bh=oPFKGHSWxEKLPHieLXTl8NhE/ Em+yyv1gsKebfeWYYk=; b=bq2zZXhS/liP/Q4bcvFBx/a0S+7FuMvwVbnxOVHKp eh89WQidq/sRtdyBUFyoXXV4qqq//mBRkFIJ/2t11Qg65C7BDgc0vi4QNpAIEjvb gUubpyssjDCp7vxjZd8AcLsh6pH1OoreUhAb2KKkgaOs26EXQUMCT2HF/ZosYLfQ rBfPZQoMWnsDghgvx033flFtrXtzNbL2t7tMNZUW8Caa8IZ5phNTYmSUjIytoxiV Y3JOJNGN9FHEgdGfDsbBOL6DrYv4lWDKK8KLcloCFPbNVJBelrXZNND7xPVnFhIp HYup4iiewyqxoRqvzOwGvGINYAGIYjsTj2XJp4gjUD5tA== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 1a006643 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for <61794@debbugs.gnu.org>; Sat, 25 Feb 2023 20:30:57 +0000 (UTC) From: Julien Lepiller Date: Sat, 25 Feb 2023 21:30:41 +0100 Message-Id: X-Mailer: git-send-email 2.38.1 In-Reply-To: <8c21fa41d1a4bc4665a074eee3b960a99455459e.1677357041.git.julien@lepiller.eu> References: <8c21fa41d1a4bc4665a074eee3b960a99455459e.1677357041.git.julien@lepiller.eu> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/java.scm (java-byte-buddy-dep): New variable. --- gnu/packages/java.scm | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index e47462ce04..9940641fe9 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -10978,6 +10978,48 @@ (define-public java-xerial-core streams, etc.") (license license:asl2.0))) +(define-public java-byte-buddy-dep + (package + (name "java-byte-buddy-dep") + (version "1.14.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/raphw/byte-buddy") + (commit (string-append "byte-buddy-" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "03jmsnkjb9d3z9brqs8fc512hhs5b5iab3a5wbax9zi03dskgvh2")))) + (build-system ant-build-system) + (arguments + `(#:jar-name "byte-buddy-dep.jar" + #:source-dir "byte-buddy-dep/src/main/java" + #:test-dir "byte-buddy-dep/src/test" + #:tests? #f; would build java files that are incompatible with current jdk + #:phases + (modify-phases %standard-phases + (add-before 'build 'remove-annotations + (lambda _ + (with-directory-excursion "byte-buddy-dep/src/main/java/net/bytebuddy" + (substitute* (find-files "." ".*.java") + (("@EqualsAndHashCode.*") "") + (("import lombok.EqualsAndHashCode;") "") + (("@SuppressFBWarnings.*") "") + (("import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;") "")) + (substitute* '("description/type/TypeDescription.java" + "dynamic/loading/ClassInjector.java") + (("^ *value = .*") "") + (("^ *justification = .*") "")))))))) + (inputs + (list java-asm-9 java-asm-commons-9 java-jsr305 java-native-access)) + (home-page "http://bytebuddy.net/") + (synopsis "Runtime code generation for the Java virtual machine") + (description "Byte Buddy is a code generation and manipulation library for +creating and modifying Java classes during the runtime of a Java application +and without the help of a compiler.") + (license license:asl2.0))) + (define-public java-powermock-reflect (package (name "java-powermock-reflect")