Skip to content

Commit

Permalink
Work around node bug
Browse files Browse the repository at this point in the history
https://aur.archlinux.org/cgit/aur.git/commit/?h=thelounge&id=fd50c63

node-gyp or node have a bug that prevents building with "text file busy"
if the kernel is too fast, so we have to disable IO_URING support. This
is cleary a hack and needs to be removed as soon as possible
nodejs/node#48444 is the necro bumped thread
originally from docker
  • Loading branch information
aminvakil committed May 23, 2024
1 parent 35f31db commit 0f2d553
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion thelounge-beta/.SRCINFO
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pkgbase = thelounge-beta
pkgdesc = Modern self-hosted web IRC client (Latest release/pre-release)
pkgver = 4.4.3
pkgrel = 2
pkgrel = 3
url = https://thelounge.chat/
arch = any
license = MIT
Expand Down
8 changes: 7 additions & 1 deletion thelounge-beta/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ _pkgname=thelounge
pkgname=thelounge-beta
_pkgver=4.4.3
pkgver=${_pkgver/-/}
pkgrel=2
pkgrel=3
pkgdesc='Modern self-hosted web IRC client (Latest release/pre-release)'
url='https://thelounge.chat/'
arch=('any')
Expand Down Expand Up @@ -52,6 +52,12 @@ build() {
file:"$srcdir/$_pkgname-${_pkgver}.tgz"

# fetch sqlite3 binary blob

# node-gyp or node have a bug that prevents building with "text file busy" if the kernel is too fast
# so we have to disable IO_URING support. This is cleary a hack and needs to be removed as soon as possible
# https://github.com/nodejs/node/issues/48444 is the necro bumped thread originally in docker
export UV_USE_IO_URING=0

cd node_modules/sqlite3 || exit 1
yarn run install
}
Expand Down

0 comments on commit 0f2d553

Please sign in to comment.