Great! I was searching for a solution for that problem!
Search Criteria
Package Details: bun 1.1.8-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/bun.git (read-only, click to copy) |
---|---|
Package Base: | bun |
Description: | Bun is a fast JavaScript all-in-one toolkit. This PKGBUILD builds from source, resulting into a smaller and faster binary depending on your CPU. |
Upstream URL: | https://github.com/oven-sh/bun |
Keywords: | bun compile js node ts |
Licenses: | GPL |
Conflicts: | bun-bin |
Submitter: | tiziodcaio |
Maintainer: | tiziodcaio |
Last Packager: | tiziodcaio |
Votes: | 12 |
Popularity: | 2.09 |
First Submitted: | 2023-09-12 21:31 (UTC) |
Last Updated: | 2024-05-18 10:41 (UTC) |
Dependencies (22)
- libarchive (libarchive-gitAUR)
- libuv (libuv-gitAUR)
- mimalloc
- sqlite (sqlite-fossilAUR)
- zlib (zlib-ng-compat-gitAUR, zlib-gitAUR, zlib-ng-compatAUR)
- clang16 (make)
- cmake (cmake-gitAUR) (make)
- esbuild (esbuild-gitAUR) (make)
- git (git-gitAUR) (make)
- go (go-gitAUR, gcc-go-gitAUR, gcc-go-snapshotAUR, gcc-go) (make)
- icu (icu-gitAUR) (make)
- libiconv (make)
- libtool (libtool-gitAUR) (make)
- lld16 (make)
- llvm16 (make)
- ninja (ninja-kitwareAUR, ninja-memAUR, ninja-fuchsia-gitAUR, ninja-gitAUR, ninja-jobserverAUR) (make)
- pkg-config (pkgconf-gitAUR, pkg-config-gitAUR, pkgconf) (make)
- python (python37AUR, python311AUR, python310AUR) (make)
- ruby (make)
- rust (rust-nightlyAUR, rust-nightly-binAUR, rust-gitAUR, rustup-gitAUR, rustup) (make)
- Show 2 more dependencies...
Required by (3)
- bun-git (make)
- citadel-git (make)
- photon-lemmy
Sources (2)
tiziodcaio commented on 2024-05-13 20:20 (UTC)
ancoron commented on 2024-05-13 06:13 (UTC)
Needed this patch to make it compile (1.1.3):
--- a/src/bun/src/bun.js/bindings/BunProcess.cpp 2024-05-10 11:29:46.060493565 +0200
+++ b/src/bun/src/bun.js/bindings/BunProcess.cpp 2024-05-09 19:21:30.349392343 +0200
@@ -1377,7 +1377,7 @@
{
char cwd[PATH_MAX] = { 0 };
- getcwd(cwd, PATH_MAX);
+ (void) getcwd(cwd, PATH_MAX);
header->putDirect(vm, JSC::Identifier::fromString(vm, "cwd"_s), JSC::jsString(vm, String::fromUTF8ReplacingInvalidSequences(std::span { reinterpret_cast<const LChar*>(cwd), strlen(cwd) })), 0);
}
@@ -1870,7 +1870,7 @@
gid_t egid = getegid();
JSArray* groups = constructEmptyArray(globalObject, nullptr, static_cast<unsigned int>(ngroups));
Vector<gid_t> groupVector(ngroups);
- getgroups(1, &egid);
+ (void) getgroups(1, &egid);
bool needsEgid = true;
for (unsigned i = 0; i < ngroups; i++) {
auto current = groupVector[i];
--- a/src/bun/src/bun.js/bindings/c-bindings.cpp 2024-05-11 19:28:56.388763155 +0200
+++ b/src/bun/src/bun.js/bindings/c-bindings.cpp 2024-05-12 10:56:23.621324067 +0200
@@ -35,7 +35,7 @@
strcpy(buf, str);
strcpy(buf + len, url);
strcpy(buf + len + strlen(url), "\n\0");
- write(STDERR_FILENO, buf, strlen(buf));
+ (void) write(STDERR_FILENO, buf, strlen(buf));
}
#endif
iAndrewT commented on 2024-04-06 07:44 (UTC)
Based on the Rust packaging guidelines, this should have export RUSTUP_TOOLCHAIN=stable
in the prepare() and build() steps, at least while Bun is still in the AUR.
I'd also recommend running a shellcheck
over the PKGBUILD, ignoring errors about unexported variables. There's a few unquoted strings that rua's shellcheck wrapper is complaining about.
yegorius commented on 2024-03-20 15:17 (UTC) (edited on 2024-03-22 16:12 (UTC) by yegorius)
Having some problems while building 1.0.33:
clang: error: invalid linker name in argument '-fuse-ld=lld'
The fix is to have the latest lld as well (in addition to lld16).
tiziodcaio commented on 2023-12-13 15:15 (UTC)
Sadly is not an issue... You can use bun-bin
if you have not built yet. If you prefer a cleaner workflow, I can think about pulling a release of bun as a source, so then I can use that version to bring you the source-compiled version.
hak8or commented on 2023-12-09 15:12 (UTC)
Also confirming the same issue on my end, where bun is needed to install bun. Thankfully bin-bin works well enough for me for now as an alternative.
xiota commented on 2023-11-29 06:57 (UTC)
Clean chroot. Impossible to build because tries to run itself before it is even built.
==> Starting prepare()...
/home/main-builder/pkgwork/PKGBUILD: line 19: bun: command not found
xiota commented on 2023-11-09 12:14 (UTC)
Clean chroot. Impossible to build/install because depends on itself.
error: target not found: bun
tiziodcaio commented on 2023-09-14 11:01 (UTC)
@jcaesar at the moment you should install bun or npm, you can chose... But while you upgrade it should be better use directly bun... So it shouldn't be added the dependency to npm imo
Pinned Comments
tiziodcaio commented on 2023-12-13 15:15 (UTC)
Sadly is not an issue... You can use
bun-bin
if you have not built yet. If you prefer a cleaner workflow, I can think about pulling a release of bun as a source, so then I can use that version to bring you the source-compiled version.xiota commented on 2023-11-09 12:14 (UTC)
Clean chroot. Impossible to build/install because depends on itself.