Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New package: jetbrains-jdk-bin-11.0.5b569.2 #15629

Merged
merged 1 commit into from Nov 12, 2019

Conversation

2asoft
Copy link
Contributor

@2asoft 2asoft commented Oct 19, 2019

Package name is jetbrains-jdk-11.
Version is 11.0.4 build 520.2.
The -11 is part of package name because there is also a JDK 8 by JetBrains.
If there is a way to publish multiple disjoint versions of a package by the same name, (eg a jetbrains-jdk v8 and a v11), I would appreciate a pointer so I could change the template here.

The sources for this are available at the "homepage" location.
Ideally, we should build the sources to JetBrainsd JDK, however, I do not currently have the time to setup that build.
There is such a package in AUR in Arch Linux, it could be used as an example.

Once this is merged, I will also update PR #11736 to depend on this jdk.

Copy link
Member

@Chocimier Chocimier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to see you back.

For providing multiple versions they must be packaged under different names. But is it needed for this package? In case of future need, we can do like with other libraries and make version-suffixed package for older one until dependants catch up.

This package could provide java-environment and alternatives for java, but not before we have openjdk updated to 11.

_jdk_fullver="11.0.4"
_archive_name="jbrsdk-${_jdk_fullver//\./_}-linux-x64-b${_jdk_build}.tar.gz"

pkgname=jetbrains-jdk-11
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should have -bin suffix, because it is repacked binaries. This requirement will not apply to IDEs, as they are restricted.

_archive_name="jbrsdk-${_jdk_fullver//\./_}-linux-x64-b${_jdk_build}.tar.gz"

pkgname=jetbrains-jdk-11
version="${_jdk_fullver}b${_jdk_build}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to do opposite, derive _jdk* from version, see libcli.

hostmakedepends="aria2"
short_desc="JetBrains Java 11 JDK"
maintainer="Anton Afanasyev <anton@doubleasoftware.com>"
license="GPL-2.0+CE"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GPL-2.0-only, Classpath-exception-2.0

# Best guess is that they are optional. ¯\_(ツ)_/¯
noverifyrdeps=yes

fetch_cmd="aria2c -c"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At least this works, what is good. Please use wget, as more widespread. Tried setting useragent and referer, but still don't work with xbps-uhelper.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some redirects there that wget doesnt seem to follow correctly, while aria2 does.
Since this is only for the build machines (right?), is it a big issue that aria2 is left as the fetch command?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to work with wget for me now, so switched to it.

@@ -0,0 +1,3 @@
version=b${version#*b}
pattern="jbrsdk-\d+_\d+_\d+-(?:linux-x64-)\Kb\d+\.\d+(?=\.tar\.gz</a>)"
site="https://bintray.com/package/files/jetbrains/intellij-jbr/jbrsdk11-linux-x64"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't work for me, but right pattern with default site works.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, default site works, will change


_jdk_build=520.2
_jdk_fullver="11.0.4"
_archive_name="jbrsdk-${_jdk_fullver//\./_}-linux-x64-b${_jdk_build}.tar.gz"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove as used just once.

@2asoft 2asoft changed the title New package: jetbrains-jdk-11-11.0.4.520.2 New package: jetbrains-jdk-11-bin-11.0.4b546.9 Oct 25, 2019
@2asoft 2asoft force-pushed the 2asoft/jetbrains-jre branch 2 times, most recently from 8ac0d8e to 949f384 Compare October 26, 2019 14:04
@2asoft 2asoft changed the title New package: jetbrains-jdk-11-bin-11.0.4b546.9 New package: jetbrains-jdk-11-bin-11.0.5b562.2 Oct 26, 2019
@2asoft
Copy link
Contributor Author

2asoft commented Oct 26, 2019

@Chocimier I believe I've addressed all comments now.

@Chocimier
Copy link
Member

Works with pycharm, looks ok. But, as said, I rather not want have version in pkgname before there is need to have more than one version. And please remove empty lines in variables section.

@2asoft 2asoft changed the title New package: jetbrains-jdk-11-bin-11.0.5b562.2 New package: jetbrains-jdk-bin-11.0.5b562.2 Oct 26, 2019
@2asoft
Copy link
Contributor Author

2asoft commented Oct 26, 2019

I must've missed the part about empty lines, and didn't understand that I should remove the version number.
Done now.

@2asoft 2asoft force-pushed the 2asoft/jetbrains-jre branch 3 times, most recently from 780a480 to 1dc0928 Compare October 31, 2019 03:32
@2asoft 2asoft changed the title New package: jetbrains-jdk-bin-11.0.5b562.2 New package: jetbrains-jdk-bin-11.0.5b569.2 Oct 31, 2019
@2asoft
Copy link
Contributor Author

2asoft commented Nov 9, 2019

Friendly ping.
Is anything else required to get this in?

@Chocimier Chocimier merged commit e8b4b3f into void-linux:master Nov 12, 2019
@2asoft 2asoft deleted the 2asoft/jetbrains-jre branch November 13, 2019 07:04
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants