Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: bun-0.5.9
@ 2023-04-30 10:45 Bnyro
  2023-04-30 11:41 ` atk
                   ` (18 more replies)
  0 siblings, 19 replies; 20+ messages in thread
From: Bnyro @ 2023-04-30 10:45 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 776 bytes --]

There is a new pull request by Bnyro against master on the void-packages repository

https://github.com/Bnyro/void-packages bun
https://github.com/void-linux/void-packages/pull/43681

New package: bun-0.5.9
#### 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**

#### Local build testing
- I built this PR locally for my native architecture, (x86-64)

Concerning the license, there's currently no license file available at Bun's repo. See https://github.com/oven-sh/bun/issues/241.


A patch file from https://github.com/void-linux/void-packages/pull/43681.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-bun-43681.patch --]
[-- Type: text/x-diff, Size: 1306 bytes --]

From 25f12621841b90185eb18a6b7bbcf47faf6b0cf7 Mon Sep 17 00:00:00 2001
From: Bnyro <bnyro@tutanota.com>
Date: Sun, 30 Apr 2023 12:44:21 +0200
Subject: [PATCH] New package: bun-0.5.9

---
 srcpkgs/bun/template | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 srcpkgs/bun/template

diff --git a/srcpkgs/bun/template b/srcpkgs/bun/template
new file mode 100644
index 000000000000..590fcbc674fe
--- /dev/null
+++ b/srcpkgs/bun/template
@@ -0,0 +1,31 @@
+# Template file for 'bun'
+pkgname=bun
+version=0.5.9
+revision=1
+archs="aarch64 x86_64"
+build_style=fetch
+hostmakedepends="unzip"
+short_desc="JavaScript runtime, bundler, transpiler, and package manager"
+maintainer="Bnyro <bnyro@tutanota.com>"
+license="MIT"
+homepage="https://bun.sh"
+changelog="https://bun.sh/blog"
+case "$XBPS_TARGET_MACHINE" in
+x86_64)
+	_arch=x64
+	checksum=bf0c64c9d6097676fc3015007f2c295dd69a86cbb0e48be75dea149a2973aee1
+	;;
+aarch64)
+	_arch=aarch64
+	checksum=a495f046ea248e5c1534ba036a3be12080732dd6141d9b0bc57afdf11902e878
+	;;
+*)
+	broken="No distfiles available for this target"
+	;;
+esac
+distfiles="https://github.com/oven-sh/bun/releases/download/bun-v${version}/bun-linux-${_arch}.zip"
+
+do_install() {
+	unzip bun-linux-${_arch}.zip
+	vbin bun-linux-${_arch}/bun
+}

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: New package: bun-0.5.9
  2023-04-30 10:45 [PR PATCH] New package: bun-0.5.9 Bnyro
@ 2023-04-30 11:41 ` atk
  2023-04-30 15:02 ` icp1994
                   ` (17 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: atk @ 2023-04-30 11:41 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 368 bytes --]

New comment by atk on void-packages repository

https://github.com/void-linux/void-packages/pull/43681#issuecomment-1529004215

Comment:
I had a similar issue with Google's chrome license. The solution was to download the license text as HTML and use python to convert it to markdown. You may find bun's license information here: https://bun.sh/docs/project/licensing

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: New package: bun-0.5.9
  2023-04-30 10:45 [PR PATCH] New package: bun-0.5.9 Bnyro
  2023-04-30 11:41 ` atk
@ 2023-04-30 15:02 ` icp1994
  2023-04-30 16:17 ` atk
                   ` (16 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: icp1994 @ 2023-04-30 15:02 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 392 bytes --]

New comment by icp1994 on void-packages repository

https://github.com/void-linux/void-packages/pull/43681#issuecomment-1529045136

Comment:
Or fetch [this](https://github.com/oven-sh/bun/blob/main/docs/project/licensing.md) if it's not included in the tarball.

Is there no way to build it properly in Void? https://bun.sh/docs/project/development might help, but seems quite complicated.

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: New package: bun-0.5.9
  2023-04-30 10:45 [PR PATCH] New package: bun-0.5.9 Bnyro
  2023-04-30 11:41 ` atk
  2023-04-30 15:02 ` icp1994
@ 2023-04-30 16:17 ` atk
  2023-04-30 18:18 ` Bnyro
                   ` (15 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: atk @ 2023-04-30 16:17 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 277 bytes --]

New comment by atk on void-packages repository

https://github.com/void-linux/void-packages/pull/43681#issuecomment-1529065370

Comment:
I had tried to build an earlier versions, but there were some snags around the zig compilation at that time. I'm game to try again, though.

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: New package: bun-0.5.9
  2023-04-30 10:45 [PR PATCH] New package: bun-0.5.9 Bnyro
                   ` (2 preceding siblings ...)
  2023-04-30 16:17 ` atk
@ 2023-04-30 18:18 ` Bnyro
  2023-04-30 19:43 ` atk
                   ` (14 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: Bnyro @ 2023-04-30 18:18 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 336 bytes --]

New comment by Bnyro on void-packages repository

https://github.com/void-linux/void-packages/pull/43681#issuecomment-1529103621

Comment:
The thing is that it's following the master branch of zig and not the latest release version as far as I know, so building it by using the `zig` packages included in the repos probably won't work.

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: New package: bun-0.5.9
  2023-04-30 10:45 [PR PATCH] New package: bun-0.5.9 Bnyro
                   ` (3 preceding siblings ...)
  2023-04-30 18:18 ` Bnyro
@ 2023-04-30 19:43 ` atk
  2023-05-01  9:55 ` Bnyro
                   ` (13 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: atk @ 2023-04-30 19:43 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 287 bytes --]

New comment by atk on void-packages repository

https://github.com/void-linux/void-packages/pull/43681#issuecomment-1529124391

Comment:
I see two ways to solve this: 1. switch to an older version of bun that will work with a release version of zig or 2. compile first zig and then bun.

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: New package: bun-0.5.9
  2023-04-30 10:45 [PR PATCH] New package: bun-0.5.9 Bnyro
                   ` (4 preceding siblings ...)
  2023-04-30 19:43 ` atk
@ 2023-05-01  9:55 ` Bnyro
  2023-05-01 13:52 ` atk
                   ` (12 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: Bnyro @ 2023-05-01  9:55 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 917 bytes --]

New comment by Bnyro on void-packages repository

https://github.com/void-linux/void-packages/pull/43681#issuecomment-1529530832

Comment:
Zig releases new versions every 6 month or so while Bun almost each month. So that way we would always miss around 5 versions until we can update it again. Also, we'd need to find out the Bun release that corresponds nearly to the current zig version, which would be a pita.

Considering the second option, I don't think we can easily figure out which zig version has been used for the Bun release. Apart from that I don't feel like it's a good practice if every package would compile its dependencies itself as that's very time intensive on server side.

In general, what would be the point of building it on our own? Are there any obvious benefits from that? Since the build process seems to be very complicated, I wonder whether the efforts would be any worth it in the end.

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: New package: bun-0.5.9
  2023-04-30 10:45 [PR PATCH] New package: bun-0.5.9 Bnyro
                   ` (5 preceding siblings ...)
  2023-05-01  9:55 ` Bnyro
@ 2023-05-01 13:52 ` atk
  2023-05-01 13:58 ` Bnyro
                   ` (11 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: atk @ 2023-05-01 13:52 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 390 bytes --]

New comment by atk on void-packages repository

https://github.com/void-linux/void-packages/pull/43681#issuecomment-1529732459

Comment:
We should be able to find out simply by asking Jared Sumner. He's usually rather helpful. As for the point of doing this ourselves: see package requirement #2: https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: New package: bun-0.5.9
  2023-04-30 10:45 [PR PATCH] New package: bun-0.5.9 Bnyro
                   ` (6 preceding siblings ...)
  2023-05-01 13:52 ` atk
@ 2023-05-01 13:58 ` Bnyro
  2023-05-01 13:58 ` Bnyro
                   ` (10 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: Bnyro @ 2023-05-01 13:58 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 314 bytes --]

New comment by Bnyro on void-packages repository

https://github.com/void-linux/void-packages/pull/43681#issuecomment-1529736594

Comment:
`To be included in the Void repository, software must meet at least one of the following requirements.`
`System: The software should be installed system-wide, not per-user.
`

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: New package: bun-0.5.9
  2023-04-30 10:45 [PR PATCH] New package: bun-0.5.9 Bnyro
                   ` (7 preceding siblings ...)
  2023-05-01 13:58 ` Bnyro
@ 2023-05-01 13:58 ` Bnyro
  2023-05-01 14:27 ` paper42
                   ` (9 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: Bnyro @ 2023-05-01 13:58 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 202 bytes --]

New comment by Bnyro on void-packages repository

https://github.com/void-linux/void-packages/pull/43681#issuecomment-1529737071

Comment:
So we in fact meet at least one of the requirements, don't we?

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: New package: bun-0.5.9
  2023-04-30 10:45 [PR PATCH] New package: bun-0.5.9 Bnyro
                   ` (8 preceding siblings ...)
  2023-05-01 13:58 ` Bnyro
@ 2023-05-01 14:27 ` paper42
  2023-05-01 15:32 ` atk
                   ` (8 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: paper42 @ 2023-05-01 14:27 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 222 bytes --]

New comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/43681#issuecomment-1529775108

Comment:
Repackaging upstream binaries is not an option and will not be accepted to Void.

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: New package: bun-0.5.9
  2023-04-30 10:45 [PR PATCH] New package: bun-0.5.9 Bnyro
                   ` (9 preceding siblings ...)
  2023-05-01 14:27 ` paper42
@ 2023-05-01 15:32 ` atk
  2023-05-01 15:37 ` atk
                   ` (7 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: atk @ 2023-05-01 15:32 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 391 bytes --]

New comment by atk on void-packages repository

https://github.com/void-linux/void-packages/pull/43681#issuecomment-1529732459

Comment:
We should be able to find out simply by asking Jarred Sumner. He's usually rather helpful. As for the point of doing this ourselves: see package requirement #2: https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: New package: bun-0.5.9
  2023-04-30 10:45 [PR PATCH] New package: bun-0.5.9 Bnyro
                   ` (10 preceding siblings ...)
  2023-05-01 15:32 ` atk
@ 2023-05-01 15:37 ` atk
  2023-05-05  9:18 ` atk
                   ` (6 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: atk @ 2023-05-01 15:37 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 225 bytes --]

New comment by atk on void-packages repository

https://github.com/void-linux/void-packages/pull/43681#issuecomment-1529845445

Comment:
I have opened a discussion on their GH: https://github.com/oven-sh/bun/discussions/2782

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: New package: bun-0.5.9
  2023-04-30 10:45 [PR PATCH] New package: bun-0.5.9 Bnyro
                   ` (11 preceding siblings ...)
  2023-05-01 15:37 ` atk
@ 2023-05-05  9:18 ` atk
  2023-05-05 14:38 ` Bnyro
                   ` (5 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: atk @ 2023-05-05  9:18 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 220 bytes --]

New comment by atk on void-packages repository

https://github.com/void-linux/void-packages/pull/43681#issuecomment-1535971769

Comment:
And we have an answer from Jarred. This should suffice to create a build template.

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: New package: bun-0.5.9
  2023-04-30 10:45 [PR PATCH] New package: bun-0.5.9 Bnyro
                   ` (12 preceding siblings ...)
  2023-05-05  9:18 ` atk
@ 2023-05-05 14:38 ` Bnyro
  2023-05-05 14:39 ` Bnyro
                   ` (4 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: Bnyro @ 2023-05-05 14:38 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 298 bytes --]

New comment by Bnyro on void-packages repository

https://github.com/void-linux/void-packages/pull/43681#issuecomment-1536361343

Comment:
Great to hear!
Feel free to open a new PR on it that superseds mine, I won't be able to look into it before next week unfortunately, I won't be mad at you ;)

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: New package: bun-0.5.9
  2023-04-30 10:45 [PR PATCH] New package: bun-0.5.9 Bnyro
                   ` (13 preceding siblings ...)
  2023-05-05 14:38 ` Bnyro
@ 2023-05-05 14:39 ` Bnyro
  2023-05-08 13:14 ` [PR PATCH] [Updated] " Bnyro
                   ` (3 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: Bnyro @ 2023-05-05 14:39 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 341 bytes --]

New comment by Bnyro on void-packages repository

https://github.com/void-linux/void-packages/pull/43681#issuecomment-1536361343

Comment:
Great to hear!
Feel free to open a new PR on it that superseds mine, I won't be able to look into it before next week unfortunately. Otherwise I'd be happy to try building it when I have time again ;)

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PR PATCH] [Updated] New package: bun-0.5.9
  2023-04-30 10:45 [PR PATCH] New package: bun-0.5.9 Bnyro
                   ` (14 preceding siblings ...)
  2023-05-05 14:39 ` Bnyro
@ 2023-05-08 13:14 ` Bnyro
  2023-05-08 13:15 ` Bnyro
                   ` (2 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: Bnyro @ 2023-05-08 13:14 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 781 bytes --]

There is an updated pull request by Bnyro against master on the void-packages repository

https://github.com/Bnyro/void-packages bun
https://github.com/void-linux/void-packages/pull/43681

New package: bun-0.5.9
#### 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**

#### Local build testing
- I built this PR locally for my native architecture, (x86-64)

Concerning the license, there's currently no license file available at Bun's repo. See https://github.com/oven-sh/bun/issues/241.


A patch file from https://github.com/void-linux/void-packages/pull/43681.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-bun-43681.patch --]
[-- Type: text/x-diff, Size: 1474 bytes --]

From d798f7cea5e81b5f6edec8413f43eac5dbcae458 Mon Sep 17 00:00:00 2001
From: Bnyro <bnyro@tutanota.com>
Date: Mon, 8 May 2023 15:14:12 +0200
Subject: [PATCH] New package: bun-0.5.9

---
 srcpkgs/bun/template | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 srcpkgs/bun/template

diff --git a/srcpkgs/bun/template b/srcpkgs/bun/template
new file mode 100644
index 000000000000..54024e165b48
--- /dev/null
+++ b/srcpkgs/bun/template
@@ -0,0 +1,31 @@
+# Template file for 'bun'
+pkgname=bun
+version=0.5.9
+revision=1
+archs="aarch64 x86_64"
+hostmakedepends="git which llvm15 cmake ccache automake coreutils go libtool wget pkg-config nodejs xz"
+short_desc="JavaScript runtime, bundler, transpiler, and package manager"
+maintainer="Bnyro <bnyro@tutanota.com>"
+license="MIT"
+homepage="https://bun.sh"
+changelog="https://bun.sh/blog"
+distfiles="https://github.com/oven-sh/bun/archive/refs/tags/${pkgname}-v${version}.tar.gz"
+checksum=61751480269b6794a18262f974870dee17703b0935436ca2f23ea489ff8d4d74
+
+pre_build() {
+	npm install -g esbuild
+	_zig_version=$(cat Dockerfile | grep "ZIG_VERSION" | head -n 1 | cut -d "=" -f 2 | tr -d \")
+	wget -O zig.tar.xz https://ziglang.org/builds/zig-${_zig_version}.tar.xz
+	tar xvf zig.tar.xz
+	export ZIG=$(pwd)/zig-${_zig_version}
+}
+
+do_build() {
+	make devcontainer
+	make release-bindings -j12
+	make release
+}
+
+do_install() {
+	vbin packages/bun-linux-${XBPS_TARGET_ARCH}/bun
+}

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: New package: bun-0.5.9
  2023-04-30 10:45 [PR PATCH] New package: bun-0.5.9 Bnyro
                   ` (15 preceding siblings ...)
  2023-05-08 13:14 ` [PR PATCH] [Updated] " Bnyro
@ 2023-05-08 13:15 ` Bnyro
  2023-06-01 13:00 ` [PR PATCH] [Closed]: " Bnyro
  2023-06-01 13:02 ` Bnyro
  18 siblings, 0 replies; 20+ messages in thread
From: Bnyro @ 2023-05-08 13:15 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 321 bytes --]

New comment by Bnyro on void-packages repository

https://github.com/void-linux/void-packages/pull/43681#issuecomment-1538345498

Comment:
Hmm, it seems like we would need to add all submodules from https://github.com/oven-sh/bun/blob/main/.gitmodules manually and update their version refs for each new release version.

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PR PATCH] [Closed]: New package: bun-0.5.9
  2023-04-30 10:45 [PR PATCH] New package: bun-0.5.9 Bnyro
                   ` (16 preceding siblings ...)
  2023-05-08 13:15 ` Bnyro
@ 2023-06-01 13:00 ` Bnyro
  2023-06-01 13:02 ` Bnyro
  18 siblings, 0 replies; 20+ messages in thread
From: Bnyro @ 2023-06-01 13:00 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 633 bytes --]

There's a closed pull request on the void-packages repository

New package: bun-0.5.9
https://github.com/void-linux/void-packages/pull/43681

Description:
#### 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**

#### Local build testing
- I built this PR locally for my native architecture, (x86-64)

Concerning the license, there's currently no license file available at Bun's repo. See https://github.com/oven-sh/bun/issues/241.


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: New package: bun-0.5.9
  2023-04-30 10:45 [PR PATCH] New package: bun-0.5.9 Bnyro
                   ` (17 preceding siblings ...)
  2023-06-01 13:00 ` [PR PATCH] [Closed]: " Bnyro
@ 2023-06-01 13:02 ` Bnyro
  18 siblings, 0 replies; 20+ messages in thread
From: Bnyro @ 2023-06-01 13:02 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 240 bytes --]

New comment by Bnyro on void-packages repository

https://github.com/void-linux/void-packages/pull/43681#issuecomment-1572014310

Comment:
Closing as I personally don't use Bun anymore and hence don't have interest in packaging it anymore.

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2023-06-01 13:02 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-30 10:45 [PR PATCH] New package: bun-0.5.9 Bnyro
2023-04-30 11:41 ` atk
2023-04-30 15:02 ` icp1994
2023-04-30 16:17 ` atk
2023-04-30 18:18 ` Bnyro
2023-04-30 19:43 ` atk
2023-05-01  9:55 ` Bnyro
2023-05-01 13:52 ` atk
2023-05-01 13:58 ` Bnyro
2023-05-01 13:58 ` Bnyro
2023-05-01 14:27 ` paper42
2023-05-01 15:32 ` atk
2023-05-01 15:37 ` atk
2023-05-05  9:18 ` atk
2023-05-05 14:38 ` Bnyro
2023-05-05 14:39 ` Bnyro
2023-05-08 13:14 ` [PR PATCH] [Updated] " Bnyro
2023-05-08 13:15 ` Bnyro
2023-06-01 13:00 ` [PR PATCH] [Closed]: " Bnyro
2023-06-01 13:02 ` Bnyro

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).