* [PR PATCH] New package: jruby-9.3.7.0
@ 2022-08-25 6:47 chloris-pale-green
2022-08-25 7:01 ` [PR PATCH] [Updated] " chloris-pale-green
` (17 more replies)
0 siblings, 18 replies; 19+ messages in thread
From: chloris-pale-green @ 2022-08-25 6:47 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1417 bytes --]
There is a new pull request by chloris-pale-green against master on the void-packages repository
https://github.com/chloris-pale-green/void-packages jruby
https://github.com/void-linux/void-packages/pull/38900
New package: jruby-9.3.7.0
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, (x86_64)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- armv6l (crossbuild)
#### Motivation
The reference Ruby interpreter can not execute threads on multiple CPU cores because of [GIL](https://en.wikipedia.org/wiki/Global_interpreter_lock). JRuby is able to perform real threading.
A patch file from https://github.com/void-linux/void-packages/pull/38900.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-jruby-38900.patch --]
[-- Type: text/x-diff, Size: 1402 bytes --]
From a6f61cc13823fa240a06145ed6d91c8b97b5c60f Mon Sep 17 00:00:00 2001
From: Maja Reberc <maja.reberc@freedommail.ch>
Date: Thu, 25 Aug 2022 08:38:39 +0200
Subject: [PATCH] New package: jruby-9.3.7.0
---
srcpkgs/jruby/template | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
create mode 100644 srcpkgs/jruby/template
diff --git a/srcpkgs/jruby/template b/srcpkgs/jruby/template
new file mode 100644
index 000000000000..4ec205c058d2
--- /dev/null
+++ b/srcpkgs/jruby/template
@@ -0,0 +1,35 @@
+# Template file for 'jruby'
+pkgname=jruby
+version=9.3.7.0
+revision=1
+#archs="i686 x86_64"
+hostmakedepends="apache-ant>=1.8 apache-maven>=3.3.0"
+depends="virtual?java-runtime"
+short_desc="Implementation of the Ruby language using the JVM"
+maintainer="Chloris <chloris@freedommail.ch>"
+license="EPL-2.0, GPL-2.0-only, LGPL-2.1-only"
+homepage="https://www.jruby.org/"
+distfiles="https://repo1.maven.org/maven2/org/jruby/jruby-dist/${version}/${pkgname}-dist-${version}-src.zip"
+checksum=8001b09ceccb94b79868bc0f3382d2514ef9f1706a53a5bf6b62c272a3a49f63
+conflicts="ruby"
+
+do_build() {
+ ./mvnw
+}
+
+post_build() {
+ cd bin
+ # Remove Windows scripts, binaries and libraries
+ rm -f *.bat *.exe *.dll
+}
+
+do_install() {
+ vmkdir usr/bin
+ vcopy "bin/*" usr/bin
+
+ vmkdir usr/lib
+ vinstall lib/jruby.jar 644 usr/lib/
+ vcopy lib/ruby usr/lib/
+
+ vdoc README.md
+}
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PR PATCH] [Updated] New package: jruby-9.3.7.0
2022-08-25 6:47 [PR PATCH] New package: jruby-9.3.7.0 chloris-pale-green
@ 2022-08-25 7:01 ` chloris-pale-green
2022-08-25 7:11 ` chloris-pale-green
` (16 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: chloris-pale-green @ 2022-08-25 7:01 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1422 bytes --]
There is an updated pull request by chloris-pale-green against master on the void-packages repository
https://github.com/chloris-pale-green/void-packages jruby
https://github.com/void-linux/void-packages/pull/38900
New package: jruby-9.3.7.0
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, (x86_64)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- armv6l (crossbuild)
#### Motivation
The reference Ruby interpreter can not execute threads on multiple CPU cores because of [GIL](https://en.wikipedia.org/wiki/Global_interpreter_lock). JRuby is able to perform real threading.
A patch file from https://github.com/void-linux/void-packages/pull/38900.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-jruby-38900.patch --]
[-- Type: text/x-diff, Size: 1410 bytes --]
From 63d35fc5d3ffb5478c9c9f12ec9c2ba2454c4006 Mon Sep 17 00:00:00 2001
From: Maja Reberc <maja.reberc@freedommail.ch>
Date: Thu, 25 Aug 2022 08:38:39 +0200
Subject: [PATCH] New package: jruby-9.3.7.0
---
srcpkgs/jruby/template | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
create mode 100644 srcpkgs/jruby/template
diff --git a/srcpkgs/jruby/template b/srcpkgs/jruby/template
new file mode 100644
index 000000000000..0ef6eb525432
--- /dev/null
+++ b/srcpkgs/jruby/template
@@ -0,0 +1,35 @@
+# Template file for 'jruby'
+pkgname=jruby
+version=9.3.7.0
+revision=1
+#archs="i686 x86_64"
+hostmakedepends="apache-ant>=1.8 apache-maven>=3.3.0"
+depends="virtual?java-runtime"
+short_desc="Implementation of the Ruby language using the JVM"
+maintainer="Chloris <chloris@freedommail.ch>"
+license="EPL-2.0, GPL-2.0-only, LGPL-2.1-only"
+homepage="https://www.jruby.org/"
+distfiles="https://repo1.maven.org/maven2/org/jruby/jruby-dist/${version}/${pkgname}-dist-${version}-src.zip"
+checksum=8001b09ceccb94b79868bc0f3382d2514ef9f1706a53a5bf6b62c272a3a49f63
+conflicts="ruby ruby-ri"
+
+do_build() {
+ ./mvnw
+}
+
+post_build() {
+ cd bin
+ # Remove Windows scripts, binaries and libraries
+ rm -f *.bat *.exe *.dll
+}
+
+do_install() {
+ vmkdir usr/bin
+ vcopy "bin/*" usr/bin
+
+ vmkdir usr/lib
+ vinstall lib/jruby.jar 644 usr/lib/
+ vcopy lib/ruby usr/lib/
+
+ vdoc README.md
+}
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: New package: jruby-9.3.7.0
2022-08-25 6:47 [PR PATCH] New package: jruby-9.3.7.0 chloris-pale-green
2022-08-25 7:01 ` [PR PATCH] [Updated] " chloris-pale-green
@ 2022-08-25 7:11 ` chloris-pale-green
2022-08-25 7:48 ` chloris-pale-green
` (15 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: chloris-pale-green @ 2022-08-25 7:11 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 675 bytes --]
New comment by chloris-pale-green on void-packages repository
https://github.com/void-linux/void-packages/pull/38900#issuecomment-1226866212
Comment:
All Musl builds seem to be experiencing the same issue:
```text
ERROR: jruby-9.3.7.0_1: file /usr/lib/ruby/gems/shared/specifications/did_you_mean-1.3.0.gemspec has write permission for other users
ERROR: jruby-9.3.7.0_1: post-install_14-fix-permissions: 'find "$PKGDESTDIR" -type f -perm -0002' exited with 1
```
On my local machine (x86_64), permissions of all the files in the `/usr/lib/ruby/gems/shared/specifications` directory are 644. Anybody has any idea why `post-install_14-fix-permissions` seems to fail?
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: New package: jruby-9.3.7.0
2022-08-25 6:47 [PR PATCH] New package: jruby-9.3.7.0 chloris-pale-green
2022-08-25 7:01 ` [PR PATCH] [Updated] " chloris-pale-green
2022-08-25 7:11 ` chloris-pale-green
@ 2022-08-25 7:48 ` chloris-pale-green
2022-08-25 8:32 ` classabbyamp
` (14 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: chloris-pale-green @ 2022-08-25 7:48 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 916 bytes --]
New comment by chloris-pale-green on void-packages repository
https://github.com/void-linux/void-packages/pull/38900#issuecomment-1226866212
Comment:
All Musl builds seem to be experiencing the same issue:
```text
ERROR: jruby-9.3.7.0_1: file /usr/lib/ruby/gems/shared/specifications/did_you_mean-1.3.0.gemspec has write permission for other users
ERROR: jruby-9.3.7.0_1: post-install_14-fix-permissions: 'find "$PKGDESTDIR" -type f -perm -0002' exited with 1
```
On my local machine (x86_64), permissions of all the files in the `/usr/lib/ruby/gems/shared/specifications` directory are 644. Anybody has any idea why `post-install_14-fix-permissions` seems to fail?
**EDIT:** Curiously, I was able to cross-build the package for x86_64-musl architecture without errors on my machine. `14-fix-permissions` executes successfully. Perhaps the build only fails when building on a Musl architecture natively?
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: New package: jruby-9.3.7.0
2022-08-25 6:47 [PR PATCH] New package: jruby-9.3.7.0 chloris-pale-green
` (2 preceding siblings ...)
2022-08-25 7:48 ` chloris-pale-green
@ 2022-08-25 8:32 ` classabbyamp
2022-08-25 14:04 ` [PR PATCH] [Updated] " chloris-pale-green
` (13 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: classabbyamp @ 2022-08-25 8:32 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 254 bytes --]
New comment by classabbyamp on void-packages repository
https://github.com/void-linux/void-packages/pull/38900#issuecomment-1226951324
Comment:
have you tried a native musl build locally? see the instructions for making another masterdir in the readme
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PR PATCH] [Updated] New package: jruby-9.3.7.0
2022-08-25 6:47 [PR PATCH] New package: jruby-9.3.7.0 chloris-pale-green
` (3 preceding siblings ...)
2022-08-25 8:32 ` classabbyamp
@ 2022-08-25 14:04 ` chloris-pale-green
2022-08-25 14:18 ` chloris-pale-green
` (12 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: chloris-pale-green @ 2022-08-25 14:04 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1422 bytes --]
There is an updated pull request by chloris-pale-green against master on the void-packages repository
https://github.com/chloris-pale-green/void-packages jruby
https://github.com/void-linux/void-packages/pull/38900
New package: jruby-9.3.7.0
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, (x86_64)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- armv6l (crossbuild)
#### Motivation
The reference Ruby interpreter can not execute threads on multiple CPU cores because of [GIL](https://en.wikipedia.org/wiki/Global_interpreter_lock). JRuby is able to perform real threading.
A patch file from https://github.com/void-linux/void-packages/pull/38900.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-jruby-38900.patch --]
[-- Type: text/x-diff, Size: 1713 bytes --]
From 8adca067762223cf24cf4a242e4cc2b98b4dfc19 Mon Sep 17 00:00:00 2001
From: Maja Reberc <maja.reberc@freedommail.ch>
Date: Thu, 25 Aug 2022 08:38:39 +0200
Subject: [PATCH] New package: jruby-9.3.7.0
---
srcpkgs/jruby/template | 50 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
create mode 100644 srcpkgs/jruby/template
diff --git a/srcpkgs/jruby/template b/srcpkgs/jruby/template
new file mode 100644
index 000000000000..d4bec7115b39
--- /dev/null
+++ b/srcpkgs/jruby/template
@@ -0,0 +1,50 @@
+# Template file for 'jruby'
+pkgname=jruby
+version=9.3.7.0
+revision=1
+hostmakedepends="apache-ant>=1.8 apache-maven>=3.3.0"
+depends="virtual?java-runtime"
+short_desc="Implementation of the Ruby language using the JVM"
+maintainer="Chloris <chloris@freedommail.ch>"
+license="EPL-2.0, GPL-2.0-only, LGPL-2.1-only"
+homepage="https://www.jruby.org/"
+distfiles="https://repo1.maven.org/maven2/org/jruby/jruby-dist/${version}/${pkgname}-dist-${version}-src.zip"
+checksum=8001b09ceccb94b79868bc0f3382d2514ef9f1706a53a5bf6b62c272a3a49f63
+conflicts="ruby ruby-ri"
+
+do_build() {
+ ./mvnw
+}
+
+post_build() {
+ cd bin
+ # Remove Windows scripts, binaries and libraries
+ rm -f *.bat *.exe *.dll
+}
+
+do_install() {
+ for file in bin/*
+ do
+ # Copy symlinks
+ if [ -L "$file" ]
+ then
+ vcopy "$file" usr/bin
+ # Install binaries with correct permissions
+ elif [ -f "$file" ]
+ then
+ vbin "$file"
+ fi
+ done
+
+ vmkdir usr/lib
+ vinstall lib/jruby.jar 644 usr/lib/
+ vcopy lib/ruby usr/lib/
+
+ vdoc README.md
+
+ # Fix file permissions on musl architectures
+ if [ $XBPS_LIBC == 'musl' ]
+ then
+ find "$DESTDIR/usr/lib" -perm /022 -exec chmod go-w {} \;
+ fi
+}
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: New package: jruby-9.3.7.0
2022-08-25 6:47 [PR PATCH] New package: jruby-9.3.7.0 chloris-pale-green
` (4 preceding siblings ...)
2022-08-25 14:04 ` [PR PATCH] [Updated] " chloris-pale-green
@ 2022-08-25 14:18 ` chloris-pale-green
2022-08-25 15:01 ` classabbyamp
` (11 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: chloris-pale-green @ 2022-08-25 14:18 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1192 bytes --]
New comment by chloris-pale-green on void-packages repository
https://github.com/void-linux/void-packages/pull/38900#issuecomment-1227326243
Comment:
> have you tried a native musl build locally? see the instructions for making another masterdir in the readme
I've installed the x86_64-musl version of Void in a VM and tried building the package. I got the same error as observed here on GitHub. It seems that the file permission issues are Musl-specific.
Consequently, I've added a `find` command to the template that removes group and other write permissions from all files and directories that happen to have them, if the package is being build on a Musl machine.
I've also changed the way binaries are installed, since I've noticed that one of them did not posses the execute permission. `vbin` should take care of that (but copies the whole binary rather than a symlink - that's the purpose of the other if clause).
Strangely enough, on a Musl architecture, even with the use of `vbin`, the binary `/usr/bin/irb` seems to lack execute permission (644) after installing the package, and I get "permission denied" if I try to run it. The package is still functional, though.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: New package: jruby-9.3.7.0
2022-08-25 6:47 [PR PATCH] New package: jruby-9.3.7.0 chloris-pale-green
` (5 preceding siblings ...)
2022-08-25 14:18 ` chloris-pale-green
@ 2022-08-25 15:01 ` classabbyamp
2022-08-25 16:10 ` chloris-pale-green
` (10 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: classabbyamp @ 2022-08-25 15:01 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 313 bytes --]
New comment by classabbyamp on void-packages repository
https://github.com/void-linux/void-packages/pull/38900#issuecomment-1227379595
Comment:
oh you didn't need to go through the trouble of making a whole VM, you can just [add another masterdir](https://github.com/void-linux/void-packages#building-for-musl)
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: New package: jruby-9.3.7.0
2022-08-25 6:47 [PR PATCH] New package: jruby-9.3.7.0 chloris-pale-green
` (6 preceding siblings ...)
2022-08-25 15:01 ` classabbyamp
@ 2022-08-25 16:10 ` chloris-pale-green
2022-08-25 16:10 ` chloris-pale-green
` (9 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: chloris-pale-green @ 2022-08-25 16:10 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 597 bytes --]
New comment by chloris-pale-green on void-packages repository
https://github.com/void-linux/void-packages/pull/38900#issuecomment-1227479679
Comment:
> oh you didn't need to go through the trouble of making a whole VM, you can just [add another masterdir](https://github.com/void-linux/void-packages#building-for-musl)
Thank you for the tip. 😊 At first, I went with the method I knew well, but now I've tired the masterdir approach to test x86_64-musl build check error. I have no idea what the error means and I can build the package successfully in x86_64-musl masterdir on my machine.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: New package: jruby-9.3.7.0
2022-08-25 6:47 [PR PATCH] New package: jruby-9.3.7.0 chloris-pale-green
` (7 preceding siblings ...)
2022-08-25 16:10 ` chloris-pale-green
@ 2022-08-25 16:10 ` chloris-pale-green
2022-08-31 15:29 ` chloris-pale-green
` (8 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: chloris-pale-green @ 2022-08-25 16:10 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 597 bytes --]
New comment by chloris-pale-green on void-packages repository
https://github.com/void-linux/void-packages/pull/38900#issuecomment-1227479679
Comment:
> oh you didn't need to go through the trouble of making a whole VM, you can just [add another masterdir](https://github.com/void-linux/void-packages#building-for-musl)
Thank you for the tip. 😊 At first, I went with the method I knew well, but now I've tried the masterdir approach to test x86_64-musl build check error. I have no idea what the error means and I can build the package successfully in x86_64-musl masterdir on my machine.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: New package: jruby-9.3.7.0
2022-08-25 6:47 [PR PATCH] New package: jruby-9.3.7.0 chloris-pale-green
` (8 preceding siblings ...)
2022-08-25 16:10 ` chloris-pale-green
@ 2022-08-31 15:29 ` chloris-pale-green
2022-08-31 16:06 ` chloris-pale-green
` (7 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: chloris-pale-green @ 2022-08-31 15:29 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 359 bytes --]
New comment by chloris-pale-green on void-packages repository
https://github.com/void-linux/void-packages/pull/38900#issuecomment-1233091421
Comment:
I recommend that the x86_64-musl PR check is re-run. The error seems very random (and does not appear in other Musl architectures), and I am able to build the package in a x86_64-musl VM without any errors.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: New package: jruby-9.3.7.0
2022-08-25 6:47 [PR PATCH] New package: jruby-9.3.7.0 chloris-pale-green
` (9 preceding siblings ...)
2022-08-31 15:29 ` chloris-pale-green
@ 2022-08-31 16:06 ` chloris-pale-green
2022-08-31 16:25 ` classabbyamp
` (6 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: chloris-pale-green @ 2022-08-31 16:06 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 477 bytes --]
New comment by chloris-pale-green on void-packages repository
https://github.com/void-linux/void-packages/pull/38900#issuecomment-1233135401
Comment:
This time it didn't even get to the build part and stopped at `Run common/travis/changed_templates.sh`:
```
Your branches is based on too old copy.
Please rebase to newest copy.
Error: Process completed with exit code 1.
```
I don't understand the error. Is there some Git wizardry I was supposed to do and have not?
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: New package: jruby-9.3.7.0
2022-08-25 6:47 [PR PATCH] New package: jruby-9.3.7.0 chloris-pale-green
` (10 preceding siblings ...)
2022-08-31 16:06 ` chloris-pale-green
@ 2022-08-31 16:25 ` classabbyamp
2022-08-31 16:57 ` [PR PATCH] [Updated] " chloris-pale-green
` (5 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: classabbyamp @ 2022-08-31 16:25 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 438 bytes --]
New comment by classabbyamp on void-packages repository
https://github.com/void-linux/void-packages/pull/38900#issuecomment-1233157909
Comment:
if you don't already have it, add this repo as a remote:
```
$ git remote add upstream https://github.com/void-linux/void-packages.git
```
then rebase your branch on the upstream master branch:
```
$ git pull --rebase upstream master
```
and force-push:
```
$ git push --force
```
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PR PATCH] [Updated] New package: jruby-9.3.7.0
2022-08-25 6:47 [PR PATCH] New package: jruby-9.3.7.0 chloris-pale-green
` (11 preceding siblings ...)
2022-08-31 16:25 ` classabbyamp
@ 2022-08-31 16:57 ` chloris-pale-green
2022-08-31 17:02 ` chloris-pale-green
` (4 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: chloris-pale-green @ 2022-08-31 16:57 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1422 bytes --]
There is an updated pull request by chloris-pale-green against master on the void-packages repository
https://github.com/chloris-pale-green/void-packages jruby
https://github.com/void-linux/void-packages/pull/38900
New package: jruby-9.3.7.0
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, (x86_64)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- armv6l (crossbuild)
#### Motivation
The reference Ruby interpreter can not execute threads on multiple CPU cores because of [GIL](https://en.wikipedia.org/wiki/Global_interpreter_lock). JRuby is able to perform real threading.
A patch file from https://github.com/void-linux/void-packages/pull/38900.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-jruby-38900.patch --]
[-- Type: text/x-diff, Size: 1713 bytes --]
From f12116ccb05800657dc9ed13648de38b0d22ba50 Mon Sep 17 00:00:00 2001
From: Maja Reberc <maja.reberc@freedommail.ch>
Date: Thu, 25 Aug 2022 08:38:39 +0200
Subject: [PATCH] New package: jruby-9.3.7.0
---
srcpkgs/jruby/template | 50 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
create mode 100644 srcpkgs/jruby/template
diff --git a/srcpkgs/jruby/template b/srcpkgs/jruby/template
new file mode 100644
index 000000000000..d4bec7115b39
--- /dev/null
+++ b/srcpkgs/jruby/template
@@ -0,0 +1,50 @@
+# Template file for 'jruby'
+pkgname=jruby
+version=9.3.7.0
+revision=1
+hostmakedepends="apache-ant>=1.8 apache-maven>=3.3.0"
+depends="virtual?java-runtime"
+short_desc="Implementation of the Ruby language using the JVM"
+maintainer="Chloris <chloris@freedommail.ch>"
+license="EPL-2.0, GPL-2.0-only, LGPL-2.1-only"
+homepage="https://www.jruby.org/"
+distfiles="https://repo1.maven.org/maven2/org/jruby/jruby-dist/${version}/${pkgname}-dist-${version}-src.zip"
+checksum=8001b09ceccb94b79868bc0f3382d2514ef9f1706a53a5bf6b62c272a3a49f63
+conflicts="ruby ruby-ri"
+
+do_build() {
+ ./mvnw
+}
+
+post_build() {
+ cd bin
+ # Remove Windows scripts, binaries and libraries
+ rm -f *.bat *.exe *.dll
+}
+
+do_install() {
+ for file in bin/*
+ do
+ # Copy symlinks
+ if [ -L "$file" ]
+ then
+ vcopy "$file" usr/bin
+ # Install binaries with correct permissions
+ elif [ -f "$file" ]
+ then
+ vbin "$file"
+ fi
+ done
+
+ vmkdir usr/lib
+ vinstall lib/jruby.jar 644 usr/lib/
+ vcopy lib/ruby usr/lib/
+
+ vdoc README.md
+
+ # Fix file permissions on musl architectures
+ if [ $XBPS_LIBC == 'musl' ]
+ then
+ find "$DESTDIR/usr/lib" -perm /022 -exec chmod go-w {} \;
+ fi
+}
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: New package: jruby-9.3.7.0
2022-08-25 6:47 [PR PATCH] New package: jruby-9.3.7.0 chloris-pale-green
` (12 preceding siblings ...)
2022-08-31 16:57 ` [PR PATCH] [Updated] " chloris-pale-green
@ 2022-08-31 17:02 ` chloris-pale-green
2022-09-14 10:06 ` [PR PATCH] [Updated] " chloris-pale-green
` (3 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: chloris-pale-green @ 2022-08-31 17:02 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 211 bytes --]
New comment by chloris-pale-green on void-packages repository
https://github.com/void-linux/void-packages/pull/38900#issuecomment-1233194589
Comment:
Thank you for your help. 😊 The PR is now in the green.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PR PATCH] [Updated] New package: jruby-9.3.7.0
2022-08-25 6:47 [PR PATCH] New package: jruby-9.3.7.0 chloris-pale-green
` (13 preceding siblings ...)
2022-08-31 17:02 ` chloris-pale-green
@ 2022-09-14 10:06 ` chloris-pale-green
2022-09-14 10:10 ` chloris-pale-green
` (2 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: chloris-pale-green @ 2022-09-14 10:06 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1422 bytes --]
There is an updated pull request by chloris-pale-green against master on the void-packages repository
https://github.com/chloris-pale-green/void-packages jruby
https://github.com/void-linux/void-packages/pull/38900
New package: jruby-9.3.7.0
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, (x86_64)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- armv6l (crossbuild)
#### Motivation
The reference Ruby interpreter can not execute threads on multiple CPU cores because of [GIL](https://en.wikipedia.org/wiki/Global_interpreter_lock). JRuby is able to perform real threading.
A patch file from https://github.com/void-linux/void-packages/pull/38900.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-jruby-38900.patch --]
[-- Type: text/x-diff, Size: 1713 bytes --]
From fa66770229dc7e1dda99c4a870a8f03de483cfdd Mon Sep 17 00:00:00 2001
From: Maja Reberc <maja.reberc@freedommail.ch>
Date: Thu, 25 Aug 2022 08:38:39 +0200
Subject: [PATCH] New package: jruby-9.3.7.0
---
srcpkgs/jruby/template | 50 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
create mode 100644 srcpkgs/jruby/template
diff --git a/srcpkgs/jruby/template b/srcpkgs/jruby/template
new file mode 100644
index 000000000000..d4bec7115b39
--- /dev/null
+++ b/srcpkgs/jruby/template
@@ -0,0 +1,50 @@
+# Template file for 'jruby'
+pkgname=jruby
+version=9.3.7.0
+revision=1
+hostmakedepends="apache-ant>=1.8 apache-maven>=3.3.0"
+depends="virtual?java-runtime"
+short_desc="Implementation of the Ruby language using the JVM"
+maintainer="Chloris <chloris@freedommail.ch>"
+license="EPL-2.0, GPL-2.0-only, LGPL-2.1-only"
+homepage="https://www.jruby.org/"
+distfiles="https://repo1.maven.org/maven2/org/jruby/jruby-dist/${version}/${pkgname}-dist-${version}-src.zip"
+checksum=8001b09ceccb94b79868bc0f3382d2514ef9f1706a53a5bf6b62c272a3a49f63
+conflicts="ruby ruby-ri"
+
+do_build() {
+ ./mvnw
+}
+
+post_build() {
+ cd bin
+ # Remove Windows scripts, binaries and libraries
+ rm -f *.bat *.exe *.dll
+}
+
+do_install() {
+ for file in bin/*
+ do
+ # Copy symlinks
+ if [ -L "$file" ]
+ then
+ vcopy "$file" usr/bin
+ # Install binaries with correct permissions
+ elif [ -f "$file" ]
+ then
+ vbin "$file"
+ fi
+ done
+
+ vmkdir usr/lib
+ vinstall lib/jruby.jar 644 usr/lib/
+ vcopy lib/ruby usr/lib/
+
+ vdoc README.md
+
+ # Fix file permissions on musl architectures
+ if [ $XBPS_LIBC == 'musl' ]
+ then
+ find "$DESTDIR/usr/lib" -perm /022 -exec chmod go-w {} \;
+ fi
+}
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PR PATCH] [Updated] New package: jruby-9.3.7.0
2022-08-25 6:47 [PR PATCH] New package: jruby-9.3.7.0 chloris-pale-green
` (14 preceding siblings ...)
2022-09-14 10:06 ` [PR PATCH] [Updated] " chloris-pale-green
@ 2022-09-14 10:10 ` chloris-pale-green
2022-12-15 2:02 ` New package: jruby-9.3.8.0 github-actions
2022-12-30 1:58 ` [PR PATCH] [Closed]: " github-actions
17 siblings, 0 replies; 19+ messages in thread
From: chloris-pale-green @ 2022-09-14 10:10 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1422 bytes --]
There is an updated pull request by chloris-pale-green against master on the void-packages repository
https://github.com/chloris-pale-green/void-packages jruby
https://github.com/void-linux/void-packages/pull/38900
New package: jruby-9.3.7.0
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, (x86_64)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- armv6l (crossbuild)
#### Motivation
The reference Ruby interpreter can not execute threads on multiple CPU cores because of [GIL](https://en.wikipedia.org/wiki/Global_interpreter_lock). JRuby is able to perform real threading.
A patch file from https://github.com/void-linux/void-packages/pull/38900.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-jruby-38900.patch --]
[-- Type: text/x-diff, Size: 1713 bytes --]
From 24968a5cdc081f289c77d4995b31c551428f2727 Mon Sep 17 00:00:00 2001
From: Maja Reberc <maja.reberc@freedommail.ch>
Date: Thu, 25 Aug 2022 08:38:39 +0200
Subject: [PATCH] New package: jruby-9.3.8.0
---
srcpkgs/jruby/template | 50 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
create mode 100644 srcpkgs/jruby/template
diff --git a/srcpkgs/jruby/template b/srcpkgs/jruby/template
new file mode 100644
index 000000000000..191ea019363b
--- /dev/null
+++ b/srcpkgs/jruby/template
@@ -0,0 +1,50 @@
+# Template file for 'jruby'
+pkgname=jruby
+version=9.3.8.0
+revision=1
+hostmakedepends="apache-ant>=1.8 apache-maven>=3.3.0"
+depends="virtual?java-runtime"
+short_desc="Implementation of the Ruby language using the JVM"
+maintainer="Chloris <chloris@freedommail.ch>"
+license="EPL-2.0, GPL-2.0-only, LGPL-2.1-only"
+homepage="https://www.jruby.org/"
+distfiles="https://repo1.maven.org/maven2/org/jruby/jruby-dist/${version}/${pkgname}-dist-${version}-src.zip"
+checksum=c2ee3b79c29afd86c538e347ba48d935703d0d1ee665010f9ae52adc358429e5
+conflicts="ruby ruby-ri"
+
+do_build() {
+ ./mvnw
+}
+
+post_build() {
+ cd bin
+ # Remove Windows scripts, binaries and libraries
+ rm -f *.bat *.exe *.dll
+}
+
+do_install() {
+ for file in bin/*
+ do
+ # Copy symlinks
+ if [ -L "$file" ]
+ then
+ vcopy "$file" usr/bin
+ # Install binaries with correct permissions
+ elif [ -f "$file" ]
+ then
+ vbin "$file"
+ fi
+ done
+
+ vmkdir usr/lib
+ vinstall lib/jruby.jar 644 usr/lib/
+ vcopy lib/ruby usr/lib/
+
+ vdoc README.md
+
+ # Fix file permissions on musl architectures
+ if [ $XBPS_LIBC == 'musl' ]
+ then
+ find "$DESTDIR/usr/lib" -perm /022 -exec chmod go-w {} \;
+ fi
+}
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: New package: jruby-9.3.8.0
2022-08-25 6:47 [PR PATCH] New package: jruby-9.3.7.0 chloris-pale-green
` (15 preceding siblings ...)
2022-09-14 10:10 ` chloris-pale-green
@ 2022-12-15 2:02 ` github-actions
2022-12-30 1:58 ` [PR PATCH] [Closed]: " github-actions
17 siblings, 0 replies; 19+ messages in thread
From: github-actions @ 2022-12-15 2:02 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 305 bytes --]
New comment by github-actions[bot] on void-packages repository
https://github.com/void-linux/void-packages/pull/38900#issuecomment-1352458842
Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PR PATCH] [Closed]: New package: jruby-9.3.8.0
2022-08-25 6:47 [PR PATCH] New package: jruby-9.3.7.0 chloris-pale-green
` (16 preceding siblings ...)
2022-12-15 2:02 ` New package: jruby-9.3.8.0 github-actions
@ 2022-12-30 1:58 ` github-actions
17 siblings, 0 replies; 19+ messages in thread
From: github-actions @ 2022-12-30 1:58 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1246 bytes --]
There's a closed pull request on the void-packages repository
New package: jruby-9.3.8.0
https://github.com/void-linux/void-packages/pull/38900
Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, (x86_64)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- armv6l (crossbuild)
#### Motivation
The reference Ruby interpreter can not execute threads on multiple CPU cores because of [GIL](https://en.wikipedia.org/wiki/Global_interpreter_lock). JRuby is able to perform real threading.
^ permalink raw reply [flat|nested] 19+ messages in thread
end of thread, other threads:[~2022-12-30 1:58 UTC | newest]
Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-25 6:47 [PR PATCH] New package: jruby-9.3.7.0 chloris-pale-green
2022-08-25 7:01 ` [PR PATCH] [Updated] " chloris-pale-green
2022-08-25 7:11 ` chloris-pale-green
2022-08-25 7:48 ` chloris-pale-green
2022-08-25 8:32 ` classabbyamp
2022-08-25 14:04 ` [PR PATCH] [Updated] " chloris-pale-green
2022-08-25 14:18 ` chloris-pale-green
2022-08-25 15:01 ` classabbyamp
2022-08-25 16:10 ` chloris-pale-green
2022-08-25 16:10 ` chloris-pale-green
2022-08-31 15:29 ` chloris-pale-green
2022-08-31 16:06 ` chloris-pale-green
2022-08-31 16:25 ` classabbyamp
2022-08-31 16:57 ` [PR PATCH] [Updated] " chloris-pale-green
2022-08-31 17:02 ` chloris-pale-green
2022-09-14 10:06 ` [PR PATCH] [Updated] " chloris-pale-green
2022-09-14 10:10 ` chloris-pale-green
2022-12-15 2:02 ` New package: jruby-9.3.8.0 github-actions
2022-12-30 1:58 ` [PR PATCH] [Closed]: " github-actions
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).