Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 923612

Summary: dev-java/velocity-2.3 fails tests with jdk:21 - java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Java team <java>
Status: RESOLVED FIXED    
Severity: normal CC: gentoo
Priority: Normal Keywords: PullRequest, TESTFAILURE
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/35999
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 916475, 918647    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2024-02-02 08:27:11 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-java/velocity-2.3 fails tests.
Discovered on: arm64 (internal ref: tinderbox_arm64)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0015
Comment 1 Agostino Sarubbo gentoo-dev 2024-02-02 08:27:14 UTC
Created attachment 884022 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-02-02 08:27:15 UTC
Error(s) that match a know pattern:


FAILURES!!!
File "CharStream.java" does not exist.  Will create one.
File "JJTStandardParserState.java" does not exist.  Will create one.
File "ParseException.java" does not exist.  Will create one.
File "StandardParserTreeConstants.java" does not exist.  Will create one.
File "StandardParserVisitor.java" does not exist.  Will create one.
File "Token.java" does not exist.  Will create one.
File "TokenMgrError.java" does not exist.  Will create one.
[main] ERROR org.apache.velocity.directive.include - #include(): cannot find resource 'doesntexist.vm', called at missinginclude.vm[line 6, column 1]
[main] ERROR org.apache.velocity.directive.parse - #parse(): cannot find template 'doesntexist.vm', called at missingparse.vm[line 6, column 1]
[main] ERROR org.apache.velocity.directive.parse - #parse(): syntax error in #parse()-ed template 'haserror.txt', called at parsemain.vm[line 6, column 1]
[main] ERROR org.apache.velocity.directive.parse - #parse(): syntax error in #parse()-ed template 'haserror2.txt', called at parsemain2.vm[line 6, column 1]
Comment 3 Larry the Git Cow gentoo-dev 2024-03-31 08:35:55 UTC
The bug has been closed via the following commit(s):

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

commit 19044499c1713343ba4da6e881304cc2e9b2d53a
Author:     Volkmar W. Pogatzki <gentoo@pogatzki.net>
AuthorDate: 2024-03-30 13:31:35 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2024-03-31 08:34:09 +0000

    dev-java/velocity: drop SecurityManager
    
    Closes: https://bugs.gentoo.org/923612
    Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 .../velocity/files/velocity-2.3-skipSecurityManager.patch     | 11 +++++++++++
 dev-java/velocity/velocity-2.3.ebuild                         |  6 ++++--
 2 files changed, 15 insertions(+), 2 deletions(-)