From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 42B75158020 for ; Sat, 10 Dec 2022 17:12:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 44192E07D3; Sat, 10 Dec 2022 17:12:21 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 28576E07D3 for ; Sat, 10 Dec 2022 17:12:21 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D6F5A341215 for ; Sat, 10 Dec 2022 17:12:19 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3A08E77B for ; Sat, 10 Dec 2022 17:12:18 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1670692331.e8802fb7a8be2057c042f23d87722795395128e6.arthurzam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/byte-buddy/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-java/byte-buddy/Manifest dev-java/byte-buddy/byte-buddy-1.12.14.ebuild X-VCS-Directories: dev-java/byte-buddy/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: e8802fb7a8be2057c042f23d87722795395128e6 X-VCS-Branch: master Date: Sat, 10 Dec 2022 17:12:18 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 5a8e5ae1-9381-4c37-bcb4-39dacff7200f X-Archives-Hash: 55ffd55337424e6460e03a219ffaac45 commit: e8802fb7a8be2057c042f23d87722795395128e6 Author: Volkmar W. Pogatzki pogatzki net> AuthorDate: Sat Dec 10 16:35:59 2022 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Sat Dec 10 17:12:11 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8802fb7 dev-java/byte-buddy: drop 1.12.14 Signed-off-by: Volkmar W. Pogatzki pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/28628 Signed-off-by: Arthur Zamarin gentoo.org> dev-java/byte-buddy/Manifest | 1 - dev-java/byte-buddy/byte-buddy-1.12.14.ebuild | 202 -------------------------- 2 files changed, 203 deletions(-) diff --git a/dev-java/byte-buddy/Manifest b/dev-java/byte-buddy/Manifest index 42657532e069..e1bd929fde87 100644 --- a/dev-java/byte-buddy/Manifest +++ b/dev-java/byte-buddy/Manifest @@ -1,2 +1 @@ -DIST byte-buddy-1.12.14.tar.gz 1857258 BLAKE2B 6957246f6689d1bdfdc6277ad752e03df0ae47c62b0afded77c94cdd41e00cc736517d0e4e5d5f8c59be519262a03864cde9bffa4ae53e5a7daeed84a519967f SHA512 5035be16fbdf2f7e8e2c93b87ee5f9adc927a19fd3b7d9fcd262906d8d21532cef8111084c3d6d0b75e101df0bfee19bf9177bc6a7d4b18cf0f26146fba4f147 DIST byte-buddy-1.12.18.tar.gz 1924438 BLAKE2B 278ac97d60e62c7d44142a01da94113b29b483bff532f08fca7e345f383a4ddf83cb8c4d0544bce1879bb26909d048a76562cd816c4e9cb06695127ed849f08c SHA512 637e041f97981b85cd13ffecb0de47206b5c99d8b98561561414d8a599f5d53a6e047ba3ad9bc88ca030125221df3ebe49d6eff18a4093f4027d8cbf34a483b0 diff --git a/dev-java/byte-buddy/byte-buddy-1.12.14.ebuild b/dev-java/byte-buddy/byte-buddy-1.12.14.ebuild deleted file mode 100644 index 76862e0b7298..000000000000 --- a/dev-java/byte-buddy/byte-buddy-1.12.14.ebuild +++ /dev/null @@ -1,202 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# Skeleton command: -# java-ebuilder --generate-ebuild --workdir . --pom pom.xml --download-uri https://github.com/raphw/byte-buddy/archive/byte-buddy-1.12.14.tar.gz --slot 0 --keywords "~amd64 ~arm ~arm64 ~ppc64 ~x86" --ebuild byte-buddy-1.12.14.ebuild - -EAPI=8 - -JAVA_PKG_IUSE="doc source test" -MAVEN_ID="net.bytebuddy:byte-buddy-agent:1.12.14" -JAVA_TESTING_FRAMEWORKS="junit-4" - -inherit java-pkg-2 java-pkg-simple - -DESCRIPTION="Offers convenience for attaching an agent to the local or a remote VM" -HOMEPAGE="https://bytebuddy.net" -SRC_URI="https://github.com/raphw/${PN}/archive/${P}.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="amd64 ~arm arm64 ppc64 x86" - -DEPEND=" - >=virtual/jdk-11:* - dev-java/asm:9 - dev-java/findbugs-annotations:0 - dev-java/jna:4 - dev-java/jsr305:0 - test? ( - dev-java/mockito:4 - ) -" - -RDEPEND=">=virtual/jre-1.8:*" - -S="${WORKDIR}/${PN}-${P}" - -JAVA_CLASSPATH_EXTRA=" - asm-9 - findbugs-annotations - jsr305 - jna-4 -" - -src_prepare() { - default - # https://github.com/raphw/byte-buddy/blob/byte-buddy-1.12.14/byte-buddy-agent/pom.xml#L132-L166 - cat > byte-buddy-agent/src/main/java/module-info.java <<-EOF - module net.bytebuddy.agent { - requires java.instrument; - requires static jdk.attach; - requires static com.sun.jna; - requires static com.sun.jna.platform; - requires java.base; - exports net.bytebuddy.agent; - exports net.bytebuddy.agent.utility.nullability; - } - EOF - - # adjustment for recent mockito versions - sed \ - -e 's:verifyZeroInteractions:verifyNoInteractions:g' \ - -i byte-buddy-dep/src/test/java/net/bytebuddy/*.java \ - -i byte-buddy-dep/src/test/java/net/bytebuddy/*/*Test.java \ - -i byte-buddy-dep/src/test/java/net/bytebuddy/*/*/*Test.java \ - -i byte-buddy-dep/src/test/java/net/bytebuddy/*/*/*/*Test.java \ - -i byte-buddy-dep/src/test/java/net/bytebuddy/*/*/*/*/*Test.java \ - || die - - # instead of shading byte-buddy-dep we move it into byte-buddy. - mv byte-buddy{-dep,}/src/main/java || die "cannot move sources" - mv byte-buddy{-dep,}/src/test || die "cannot move tests" - - # https://github.com/raphw/byte-buddy/blob/byte-buddy-1.12.14/byte-buddy/pom.xml#L159-L195 - cat > byte-buddy/src/main/java/module-info.java <<-EOF - module net.bytebuddy { - requires static java.instrument; - requires static java.management; - requires static jdk.unsupported; - requires static net.bytebuddy.agent; - requires static com.sun.jna; - requires static com.sun.jna.platform; - requires java.base; - exports net.bytebuddy; - exports net.bytebuddy.agent.builder; - exports net.bytebuddy.asm; - exports net.bytebuddy.build; - exports net.bytebuddy.description; - exports net.bytebuddy.description.annotation; - exports net.bytebuddy.description.enumeration; - exports net.bytebuddy.description.field; - exports net.bytebuddy.description.method; - exports net.bytebuddy.description.modifier; - exports net.bytebuddy.description.type; - exports net.bytebuddy.dynamic; - exports net.bytebuddy.dynamic.loading; - exports net.bytebuddy.dynamic.scaffold; - exports net.bytebuddy.dynamic.scaffold.inline; - exports net.bytebuddy.dynamic.scaffold.subclass; - exports net.bytebuddy.implementation; - exports net.bytebuddy.implementation.attribute; - exports net.bytebuddy.implementation.auxiliary; - exports net.bytebuddy.implementation.bind; - exports net.bytebuddy.implementation.bind.annotation; - exports net.bytebuddy.implementation.bytecode; - exports net.bytebuddy.implementation.bytecode.assign; - exports net.bytebuddy.implementation.bytecode.assign.primitive; - exports net.bytebuddy.implementation.bytecode.assign.reference; - exports net.bytebuddy.implementation.bytecode.collection; - exports net.bytebuddy.implementation.bytecode.constant; - exports net.bytebuddy.implementation.bytecode.member; - exports net.bytebuddy.matcher; - exports net.bytebuddy.pool; - exports net.bytebuddy.utility; - exports net.bytebuddy.utility.nullability; - exports net.bytebuddy.utility.privilege; - exports net.bytebuddy.utility.visitor; - } - EOF - # We don't bundle, hence cannot export them - # exports net.bytebuddy.jar.asm; - # exports net.bytebuddy.jar.asm.signature; - # exports net.bytebuddy.jar.asm.commons; -} - -src_compile() { - einfo "Compiling byte-buddy-agent.jar" - JAVA_SRC_DIR="byte-buddy-agent/src/main/java" - JAVA_RESOURCE_DIRS="byte-buddy-agent/src/main/resources" - JAVA_JAR_FILENAME="byte-buddy-agent.jar" - java-pkg-simple_src_compile - JAVA_GENTOO_CLASSPATH_EXTRA+=":byte-buddy-agent.jar" - rm -r target || die - - einfo "Compiling byte-buddy.jar" - JAVA_SRC_DIR="byte-buddy/src/main/java" - JAVA_RESOURCE_DIRS=() - JAVA_JAR_FILENAME="byte-buddy.jar" - JAVA_MAIN_CLASS="net.bytebuddy.build.Plugin\$Engine\$Default" - java-pkg-simple_src_compile - JAVA_GENTOO_CLASSPATH_EXTRA+=":byte-buddy.jar" - rm -r target || die - - if use doc; then - einfo "Compiling javadocs" - JAVA_SRC_DIR=( - "byte-buddy-agent/src/main/java" - "byte-buddy-dep/src/main/java" - ) - JAVA_JAR_FILENAME="ignoreme.jar" - java-pkg-simple_src_compile - fi -} - -src_test() { - JAVA_TEST_GENTOO_CLASSPATH="junit-4,mockito-4" - - # einfo "Setting -Djava.library.path" - # This would work only after manually adding libjnidispatch.so to /usr/share/jna-4/lib/jna.jar, - # done with ( jar -uf /usr/share/jna-4/lib/jna.jar -C . com/sun/jna/linux-x86-64/libjnidispatch ) -# JAVA_TEST_EXTRA_ARGS=( -Djava.library.path+="$(java-config -i jna-4)" com.sun.jna.Native ) - # Otherwise fails with: - # Exception in thread "main" java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/linux-x86-64/libjnidispatch.so) not found in resource path - - einfo "Testing byte-buddy-agent" - JAVA_TEST_SRC_DIR="byte-buddy-agent/src/test/java" - # Native library (com/sun/jna/linux-x86-64/libjnidispatch.so) not found in resource path - JAVA_TEST_EXCLUDES=( - net.bytebuddy.agent.VirtualMachineAttachmentTest - ) - java-pkg-simple_src_test - - einfo "Testing byte-buddy" - JAVA_TEST_SRC_DIR="byte-buddy/src/test/java" - JAVA_TEST_RESOURCE_DIRS=( - byte-buddy/src/test/resources - byte-buddy/src/test/precompiled* - ) - - # what "mvn test" does with java 17 is: - # Tests run: 10022, Failures: 0, Errors: 0, Skipped: 0 - JAVA_TEST_EXCLUDES+=( - net.bytebuddy.pool.TypePoolDefaultMethodDescriptionTest # 39 tests - net.bytebuddy.build.CachedReturnPluginTest # 44 tests - net.bytebuddy.build.CachedReturnPluginOtherTest # 4 tests - ) - java-pkg-simple_src_test -} - -src_install() { - java-pkg_dojar "byte-buddy-agent.jar" - java-pkg_dojar "byte-buddy.jar" - - if use doc; then - java-pkg_dojavadoc target/api - fi - - if use source; then - java-pkg_dosrc "byte-buddy-agent/src/main/java/*" - java-pkg_dosrc "byte-buddy/src/main/java/*" - fi -}