From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 4GjAD2dw+mMwRAAAbAwnHQ (envelope-from ) for ; Sat, 25 Feb 2023 21:32:39 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id YNXoDmdw+mOdJQAAG6o9tA (envelope-from ) for ; Sat, 25 Feb 2023 21:32:39 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E68941FECA for ; Sat, 25 Feb 2023 21:32:38 +0100 (CET) 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 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=bq2zZXhS; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1677357158; a=rsa-sha256; cv=none; b=WO1ZpzzO2quKtJmIzNkiv7UT1HKAGxTP7CcNi1BtCusGcX9JV0MU0NXuYblt+wvUpimRru 5jUy30PSMX7IAEtp0vzUZWpDI/To/bqVT9iOR3PV4d5P4jGJ+EdkIlJSxfQlVAZ23l6W07 CbXJ4ZFpdFTw1PtqEjQEQFs6d+dqbCbbJCPtGSrqJzlQnjzoDLtCtZCTT+GWmL5p7aC5dw zqVGrGfxp6h2xVABnM662iXm44RT6cJQU/7kL1PWHbUsJgzp97+B2+7meA5Kj/5H2Wz7k5 VEimZ7iCmO5ewPU+g+ctOeUK2uG6cwc0UL2qi+tAK5N6EbC6VJwhIuQ5h5uEyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677357158; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=pQQOauBvYq6sINJsJE/jHSYYla3FDOaTGdon6WbFi/M=; b=N7hDH4ava4EbRd6/iwFDvNDLSlvgcrA1EPN71eDmVhcrnDby75BUT0SbyGMFHw9c5Jd/6b QRQsTW1v1EuN35E0nn3j/IPS2TYMS/jEpUQIx2bP+XyGPz9kXv20Fv3ievTijDms/tKhVp CGIGll1txYa/hYPwOovjynZAs63rzc4qDkixhpPXAdq+dLEoD+AlIPUQVaUObwiEZ5b5yN aLT53AkyoAydrimIcpAbI4fzR5TCCzouaLjT7YrqysrZcHquEEB4us4TJ21Fc2atcf6ASs 9N5JaVrfsGOqq6DbecrRPA4ca+WuSAfQ8MsJSZTjCKZdkcpwkdtTXzPHtkDbOw== X-Migadu-Queue-Id: E68941FECA X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=bq2zZXhS; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none) X-Migadu-Spam-Score: -0.58 X-Spam-Score: -0.58 X-TUID: 3+KMdkM44jSD * 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") -- 2.38.1