Skip to content

Commit

Permalink
Work around node bug
Browse files Browse the repository at this point in the history
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
brunnre8 committed May 18, 2024
1 parent 6164139 commit fd50c63
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .SRCINFO
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pkgbase = thelounge
pkgdesc = Modern self-hosted web IRC client
pkgver = 4.4.3
pkgrel = 2
pkgrel = 3
url = https://thelounge.chat/
arch = any
license = MIT
Expand Down
8 changes: 7 additions & 1 deletion PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
pkgname=thelounge
pkgver=4.4.3
pkgsuffix="" #-rc.1
pkgrel=2
pkgrel=3
pkgdesc='Modern self-hosted web IRC client'
url='https://thelounge.chat/'
arch=('any')
Expand Down Expand Up @@ -48,6 +48,12 @@ build() {
file:"$srcdir/$pkgname-${pkgver}${pkgsuffix}.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 fd50c63

Please sign in to comment.