Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 839093 - net-vpn/i2p: excludes some tests while depending on mockito:0
Summary: net-vpn/i2p: excludes some tests while depending on mockito:0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: tharvik
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-04-18 07:46 UTC by Volkmar W. Pogatzki
Modified: 2022-05-24 14:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Volkmar W. Pogatzki 2022-04-18 07:46:43 UTC
Since mockito:4 has become available this dropping of tests should be checked:

src_prepare() {
	if use test; then
		# no *streaming as requiring >dev-java/mockito-1.9.5
		sed -e "/streaming.*junit\.test/d" \
			-i build.xml ||
			die "unable to remove ministreaming tests"
	fi
Comment 1 Larry the Git Cow gentoo-dev 2022-05-20 08:45:26 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9826d526b71e87c2ec94a7ea7dce4952cd8a79f

commit c9826d526b71e87c2ec94a7ea7dce4952cd8a79f
Author:     Florian Schmaus <flow@gentoo.org>
AuthorDate: 2022-05-20 08:20:06 +0000
Commit:     Florian Schmaus <flow@gentoo.org>
CommitDate: 2022-05-20 08:45:21 +0000

    dev-java/ant-core: raise minimum Java version to 9
    
    While Ant runs on Java 8, it is hit by API changes of ByteBuffer.flip():
    The flip() method returns Buffer in Java 8 and ByteBuffer in Java 9. If
    Ant is now emerged and build using Java 8, and then run with Java 9 (or
    higher), a NoSuchMethodError is potentially thrown invoking ant:
    
    BUILD FAILED
    /var/tmp/portage/net-vpn/i2p-1.6.1/work/i2p-1.6.1/build.xml:1634: java.lang.NoSuchMethodError: java.nio.CharBuffer.flip()Ljava/nio/CharBuffer;
            at org.apache.tools.ant.util.ReaderInputStream.<init>(ReaderInputStream.java:81)
            at org.apache.tools.ant.util.ReaderInputStream.<init>(ReaderInputStream.java:66)
            at org.apache.tools.ant.util.ReaderInputStream.<init>(ReaderInputStream.java:118)
            at org.apache.tools.ant.util.ReaderInputStream.<init>(ReaderInputStream.java:93)
            at org.apache.tools.ant.taskdefs.Concat$ConcatResource.getInputStream(Concat.java:421)
            at org.apache.tools.ant.util.ResourceUtils.copyUsingStreams(ResourceUtils.java:766)
            at org.apache.tools.ant.util.ResourceUtils.copyResource(ResourceUtils.java:437)
            at org.apache.tools.ant.taskdefs.Concat.execute(Concat.java:802)
            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
            at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:498)
            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
            at org.apache.tools.ant.Task.perform(Task.java:350)
            at org.apache.tools.ant.Target.execute(Target.java:449)
            at org.apache.tools.ant.Target.performTasks(Target.java:470)
            at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401)
            at org.apache.tools.ant.Project.executeTarget(Project.java:1374)
            at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
            at org.apache.tools.ant.Project.executeTargets(Project.java:1264)
            at org.apache.tools.ant.Main.runBuild(Main.java:827)
            at org.apache.tools.ant.Main.startAnt(Main.java:223)
            at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284)
    
    Raising the minimum required Java version to 9 fixes this.
    
    Closes: https://bugs.gentoo.org/839093
    Signed-off-by: Florian Schmaus <flow@gentoo.org>

 .../ant-core/{ant-core-1.10.9-r3.ebuild => ant-core-1.10.9-r4.ebuild}   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 2 Florian Schmaus gentoo-dev 2022-05-20 10:51:24 UTC
FWIW, the above commit is supposed to fix bug #831290, and not this bug.
Comment 3 tharvik 2022-05-22 10:34:05 UTC
Thanks for the report. It should be fixed by the 1.7.0 bump at https://github.com/gentoo/gentoo/pull/25595
Comment 4 Larry the Git Cow gentoo-dev 2022-05-24 14:42:04 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e81aa8a3def902513230575ca922e2b0f0056840

commit e81aa8a3def902513230575ca922e2b0f0056840
Author:     Valérian Rousset <tharvik@users.noreply.github.com>
AuthorDate: 2022-02-23 00:59:36 +0000
Commit:     Florian Schmaus <flow@gentoo.org>
CommitDate: 2022-05-24 14:41:59 +0000

    net-vpn/i2p: bump to 1.7.0
    
    Closes: https://bugs.gentoo.org/839093
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Valérian Rousset <tharvik@users.noreply.github.com>
    Signed-off-by: Florian Schmaus <flow@gentoo.org>

 net-vpn/i2p/Manifest         |   1 +
 net-vpn/i2p/i2p-1.7.0.ebuild | 145 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 146 insertions(+)