Summary: | dev-java/commons-lang-2.6-r1::gentoo does not compile with java 1.8+ - gonna be removed | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Volkmar W. Pogatzki <gentoo> |
Component: | Current packages | Assignee: | Java team <java> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | fordfrog, jstein |
Priority: | Normal | Keywords: | PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/gentoo/pull/22139 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 783120, 783816, 783819, 783822 | ||
Bug Blocks: | 697014, 810613 | ||
Attachments: |
build log
commons-lang-2.6-r2.ebuild |
Description
Volkmar W. Pogatzki
2021-03-31 07:26:42 UTC
might as well wanna try to migrate packages that depend on it to the newest version. the changes in the newest version might not affect the related packages... or they might... btw, commons-lang-3.12.0 is out: http://commons.apache.org/proper/commons-lang/download_lang.cgi The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a255628d8371bd402ba8884b9ec0be21125423b5 commit a255628d8371bd402ba8884b9ec0be21125423b5 Author: Miroslav Šulc <fordfrog@gentoo.org> AuthorDate: 2021-04-16 09:15:25 +0000 Commit: Miroslav Šulc <fordfrog@gentoo.org> CommitDate: 2021-04-16 09:15:25 +0000 dev-java/commons-lang: bump to 3.12.0 Bug: https://bugs.gentoo.org/779472 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org> dev-java/commons-lang/Manifest | 1 + dev-java/commons-lang/commons-lang-3.12.0.ebuild | 33 ++++++++++++++++++++++++ 2 files changed, 34 insertions(+) looks like we will have to keep commons-lang-2.6 because it has packages org.apache.commons.lang whereas commons-lang-3* has packages org.apache.commons.lang3, so ideally only slots 2.1 and 3.6 should be left. Created attachment 700098 [details]
commons-lang-2.6-r2.ebuild
unfurtunately commons-lang-2.6 uses package name that is not allowed since java 1.5:
src/main/java/org/apache/commons/lang/enum/ValuedEnum.java:17: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier
package org.apache.commons.lang.enum;
^
(use -source 1.4 or lower to use 'enum' as an identifier)
src/main/java/org/apache/commons/lang/enum/EnumUtils.java:17: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier
package org.apache.commons.lang.enum;
^
(use -source 1.4 or lower to use 'enum' as an identifier)
src/main/java/org/apache/commons/lang/enum/Enum.java:17: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier
package org.apache.commons.lang.enum;
^
(use -source 1.4 or lower to use 'enum' as an identifier)
anyway, attaching the updated ebuild for reference. this seems to be the only issue, but currently a blocker.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc291132896e3332cbd48ff9c461125345025eb1 commit fc291132896e3332cbd48ff9c461125345025eb1 Author: Miroslav Šulc <fordfrog@gentoo.org> AuthorDate: 2021-04-18 15:33:08 +0000 Commit: Miroslav Šulc <fordfrog@gentoo.org> CommitDate: 2021-04-18 15:34:06 +0000 profiles/package.deprecated: deprecating <dev-java/commons-lang-3 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org> Bug: https://bugs.gentoo.org/779472 profiles/package.deprecated | 6 ++++++ 1 file changed, 6 insertions(+) The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=665383b723ec54ce7ac4f04f2f1b7bcc822b0292 commit 665383b723ec54ce7ac4f04f2f1b7bcc822b0292 Author: Volkmar W. Pogatzki <gentoo@pogatzki.net> AuthorDate: 2021-08-28 10:47:59 +0000 Commit: Miroslav Šulc <fordfrog@gentoo.org> CommitDate: 2021-08-29 16:34:04 +0000 dev-java/commons-lang: restrict to java:1.8 Closes: https://bugs.gentoo.org/779472 Setting SOURCE and TARGET here since it compiled fine using openjdk:8 JAVA_PKG_WANT_SOURCE="1.4" JAVA_PKG_WANT_TARGET="1.4" Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/22139 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org> dev-java/commons-lang/commons-lang-2.6-r2.ebuild | 39 ++++++++++++++++++++++++ 1 file changed, 39 insertions(+) Additionally, it has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad6f15d1fbfe8aa862cfa12cbbe6c5e7d5b139cc commit ad6f15d1fbfe8aa862cfa12cbbe6c5e7d5b139cc Author: Miroslav Šulc <fordfrog@gentoo.org> AuthorDate: 2021-08-29 16:36:02 +0000 Commit: Miroslav Šulc <fordfrog@gentoo.org> CommitDate: 2021-08-29 16:37:08 +0000 dev-java/commons-lang: removed obsolete 2.6-r1 Bug: https://bugs.gentoo.org/779472 Package-Manager: Portage-3.0.22, Repoman-3.0.3 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org> dev-java/commons-lang/commons-lang-2.6-r1.ebuild | 37 ------------------------ 1 file changed, 37 deletions(-) |