Package Details: vscodium 1.95.3.24321-1

Git Clone URL: https://aur.archlinux.org/vscodium.git (read-only, click to copy)
Package Base: vscodium
Description: Free/Libre Open Source Software Binaries of VSCode (git build from latest release).
Upstream URL: https://github.com/VSCodium/vscodium.git
Licenses: MIT
Conflicts: codium, vscodium, vscodium-bin, vscodium-git
Provides: codium, vscodium
Submitter: cedricroijakkers
Maintainer: cedricroijakkers (daiyam)
Last Packager: daiyam
Votes: 73
Popularity: 1.69
First Submitted: 2021-04-10 15:12 (UTC)
Last Updated: 2024-11-16 02:00 (UTC)

Pinned Comments

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 11 Next › Last »

willemw commented on 2022-08-18 10:09 (UTC)

You could also maintain a single version number, for example:

pkgver=1.70.2.22230
_pkgver="${pkgver%.*}"

jonathon commented on 2022-08-18 09:49 (UTC) (edited on 2022-08-18 10:45 (UTC) by jonathon)

I don't understand the need for jq to determine the stable version - it's already available as part of the pkgver. You're also misusing the url field (which should be a webpage), and introducing useless variables. This can be tidied somewhat, e.g.:

(Edited to use the above replacement)

diff --git a/PKGBUILD b/PKGBUILD
index a703b6e..251b42f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,14 +5,9 @@ pkgname=vscodium
 # Make sure the pkgver matches the git tags in vscodium and vscode git repo's!
 pkgver='1.70.2.22230'
 pkgrel=1
-pkgdesc="Free/Libre Open Source Software Binaries of VSCode (git build from latest release)."
+pkgdesc="Free/Libre Open Source Software Binaries of VSCode"
 arch=('x86_64' 'aarch64' 'armv7h')
-# The vscodium repo that will be checked out.
-url='https://github.com/VSCodium/vscodium.git'
-# The vscode repo that will also be checked out.
-microsofturl='https://github.com/microsoft/vscode.git'
-# The tag of Microsoft that will be checked out, will be determined automatically, just like VSCodium itself does, with the following url
-stableversionurl='https://update.code.visualstudio.com/api/update/darwin/stable/lol'
+url='https://github.com/VSCodium/vscodium'
 license=('MIT')

 depends=(
@@ -45,8 +40,8 @@ makedepends=(
     'ripgrep'
 )
 source=(
-    "git+${url}#tag=${pkgver}"
-    "git+${microsofturl}#tag="$(curl ${stableversionurl} 2>/dev/null | jq -r '.name')
+    "git+${url}.git#tag=${pkgver}"
+    "git+https://github.com/microsoft/vscode.git#tag=${pkgver%.*}"
     'vscodium.desktop'
 )
 sha256sums=(

eclairevoyant commented on 2022-08-16 22:37 (UTC) (edited on 2022-08-16 22:42 (UTC) by eclairevoyant)

Looks like something is broken in the latest version because /usr/share/vscodium/resources/app/package.json doesn't have a version set. Should I report this to upstream? I don't see anything in the PKGBUILD that would cause this. I tried both chroot and non-chroot builds with the same result.

Also, version is set correctly in the previous recent version (1.70.1).

MithicSpirit commented on 2022-08-16 20:22 (UTC)

jq is currently necessary at package-source time rather than when it is actually being built. This means that if it is not preinstalled (which will be the case when building with makechrootpkg from extra/devtools), the build will fail as makepkg can't determine the tag for the vscode repo. I think that there are two main ways to fix this:

  1. Don't specify a tag for vscode in source. Then, in prepare(), use curl, jq, and git to check out the correct tag.

  2. Pin the vscode repo to a specific tag rather than dynamically determining it (as is done with the vscodium repo). IMO this is the better solution since this is a "stable" package (as opposed to a -git package), so ideally builds of the same PKGBUILD should work on the same sources and produce the same version package (after all, there isn't even a pkgver()), regardless of when it is done.

QuaverFace commented on 2022-08-15 15:23 (UTC)

Sorry, assumed it would collapse the code block :-D

QuaverFace commented on 2022-08-15 15:21 (UTC)

It's the same. Full ouput attached:

    /var/t/pamac-/vscodium    master  makepkg                          127 ✘ 
==> Making package: vscodium 1.70.1-1 (Mon 15 Aug 2022 16:07:52 BST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating vscodium git repo...
  -> Updating vscode git repo...
From https://github.com/microsoft/vscode
 - [deleted]                 (none)     -> ben/changing-opossum
 - [deleted]                 (none)     -> merogge/fix-bash
 - [deleted]                 (none)     -> merogge/log
 - [deleted]                 (none)     -> refs/pull/156965/merge
 - [deleted]                 (none)     -> refs/pull/157559/merge
 - [deleted]                 (none)     -> refs/pull/158105/merge
 - [deleted]                 (none)     -> refs/pull/158124/merge
 - [deleted]                 (none)     -> refs/pull/158127/merge
 - [deleted]                 (none)     -> refs/pull/158130/merge
remote: Enumerating objects: 4157, done.
remote: Counting objects: 100% (3277/3277), done.
remote: Compressing objects: 100% (642/642), done.
remote: Total 4157 (delta 2988), reused 2781 (delta 2632), pack-reused 880
Receiving objects: 100% (4157/4157), 2.39 MiB | 7.39 MiB/s, done.
Resolving deltas: 100% (3090/3090), completed with 1188 local objects.
   a30ca5e37b3..ba14ef5be7e  alexr00/commentsFiltering     -> alexr00/commentsFiltering
 * [new branch]              lramos15/interesting-squirrel -> lramos15/interesting-squirrel
 * [new branch]              lszomoru/corporate-crane      -> lszomoru/corporate-crane
   1a582f7c079..c460a60476b  main                          -> main
   bca539f8ad3..2856574854e  merogge/pin                   -> merogge/pin
   2574825d9e4..3d54f31ec3b  release/1.70                  -> release/1.70
   7eedff5c193..1a582f7c079  sandy081/christian-ox         -> sandy081/christian-ox
 + eecf87f1904...1a06b623dab refs/pull/102945/merge        -> refs/pull/102945/merge  (forced update)
 + b93b88fd4cb...1885fd42c1b refs/pull/105111/merge        -> refs/pull/105111/merge  (forced update)
 + c1c9e58412e...2f13f31e35f refs/pull/109610/merge        -> refs/pull/109610/merge  (forced update)
 + f41ef2faadc...1d81fe68f83 refs/pull/113619/merge        -> refs/pull/113619/merge  (forced update)
 + d87c7405aae...0c546042cf4 refs/pull/114163/merge        -> refs/pull/114163/merge  (forced update)
 + 7c6cca5d98f...9a669d27c68 refs/pull/116078/merge        -> refs/pull/116078/merge  (forced update)
 + e6caea4f2b6...24c7800a5b1 refs/pull/116821/merge        -> refs/pull/116821/merge  (forced update)
 + 4d5b22a19c6...df2dc9f3487 refs/pull/116861/merge        -> refs/pull/116861/merge  (forced update)
 + 373b9b0d3f8...66e96875c79 refs/pull/117862/merge        -> refs/pull/117862/merge  (forced update)
 + f1ccf3a70f8...28fd2a5e496 refs/pull/124616/merge        -> refs/pull/124616/merge  (forced update)
 + 0fbdb6dfd80...786ccf80c6e refs/pull/124803/merge        -> refs/pull/124803/merge  (forced update)
 + d0e781c959f...fd077648f2a refs/pull/125360/merge        -> refs/pull/125360/merge  (forced update)
 + ef3c954e081...9f8b709f8c7 refs/pull/126199/merge        -> refs/pull/126199/merge  (forced update)
 + fbdd5f2a561...95a6e47c350 refs/pull/126571/merge        -> refs/pull/126571/merge  (forced update)
 + 9aa15c14a9f...23c9893046c refs/pull/127217/merge        -> refs/pull/127217/merge  (forced update)
 + e8d105ac00a...57d4467129f refs/pull/127387/merge        -> refs/pull/127387/merge  (forced update)
 + ca637f482db...8f6e2b510d5 refs/pull/128517/merge        -> refs/pull/128517/merge  (forced update)
 + cb6a4dad3c2...a5d7d453df2 refs/pull/129223/merge        -> refs/pull/129223/merge  (forced update)
 + 2a53614e186...ab1a32f286c refs/pull/129987/merge        -> refs/pull/129987/merge  (forced update)
 + 5666a463700...0419f7f3235 refs/pull/130931/merge        -> refs/pull/130931/merge  (forced update)
 + a07f9c061a1...972fb17c5a9 refs/pull/133911/merge        -> refs/pull/133911/merge  (forced update)
 + 3f241f39e0a...0189da6f9e9 refs/pull/134525/merge        -> refs/pull/134525/merge  (forced update)
 + 5e9ee7f2d75...8e477fe40de refs/pull/135078/merge        -> refs/pull/135078/merge  (forced update)
 + f7bf3e78cc0...81b3e13a8a2 refs/pull/135191/merge        -> refs/pull/135191/merge  (forced update)
 + dc049b2a8d8...2411decec2a refs/pull/136496/merge        -> refs/pull/136496/merge  (forced update)
 + be1f5f2c1d0...397b27a75e1 refs/pull/136572/merge        -> refs/pull/136572/merge  (forced update)
 + 83367f74834...fb46d36a8e9 refs/pull/136577/merge        -> refs/pull/136577/merge  (forced update)
 + cd7a28619bb...170ed392abc refs/pull/136579/merge        -> refs/pull/136579/merge  (forced update)
 + 13f8e5c40fa...9f825315968 refs/pull/136589/merge        -> refs/pull/136589/merge  (forced update)
 + 350722d6eeb...5d55858f513 refs/pull/136593/merge        -> refs/pull/136593/merge  (forced update)
 + dc5ba581452...42d3281565e refs/pull/136905/merge        -> refs/pull/136905/merge  (forced update)
 + ad6abeeac7f...65f70aeb0c9 refs/pull/137217/merge        -> refs/pull/137217/merge  (forced update)
 + 4f5cc15416a...683e6aaa31f refs/pull/137962/merge        -> refs/pull/137962/merge  (forced update)
 + 79613ac973b...d29e47ec253 refs/pull/138052/merge        -> refs/pull/138052/merge  (forced update)
 + 44a441b79e5...72a9a30c01a refs/pull/138454/merge        -> refs/pull/138454/merge  (forced update)
 + d7caabec06b...55873b064f4 refs/pull/139050/merge        -> refs/pull/139050/merge  (forced update)
 + c47c4f669ca...1c57a507155 refs/pull/139670/merge        -> refs/pull/139670/merge  (forced update)
 + f60464daf39...822cccf958e refs/pull/140935/merge        -> refs/pull/140935/merge  (forced update)
 + 4660149387e...bf795db28dc refs/pull/141989/merge        -> refs/pull/141989/merge  (forced update)
 + ef05f290f11...cce2a729219 refs/pull/142430/merge        -> refs/pull/142430/merge  (forced update)
 + bbcba898945...93d989b23ed refs/pull/142759/merge        -> refs/pull/142759/merge  (forced update)
 + fc0217c96f0...569c33340b6 refs/pull/143054/merge        -> refs/pull/143054/merge  (forced update)
 + ada18bbe7f7...6b794c8cef7 refs/pull/143460/merge        -> refs/pull/143460/merge  (forced update)
 + 0962c506caf...40a0730e2d4 refs/pull/143767/merge        -> refs/pull/143767/merge  (forced update)
 + 6d09d9a15b2...97d2a96b6d8 refs/pull/144185/merge        -> refs/pull/144185/merge  (forced update)
 + 4a0c2ddc313...c006decf9f5 refs/pull/145270/merge        -> refs/pull/145270/merge  (forced update)
 + 768a80f81e6...c0edb47dc3b refs/pull/145450/merge        -> refs/pull/145450/merge  (forced update)
 + e07bfcc9a98...12a64d5ac40 refs/pull/145474/merge        -> refs/pull/145474/merge  (forced update)
 + 0355169c60e...d484853b8ba refs/pull/146110/merge        -> refs/pull/146110/merge  (forced update)
 + 1d9f950f176...8b63ee0cb65 refs/pull/146125/merge        -> refs/pull/146125/merge  (forced update)
 + f527f0e3163...04d1a53164d refs/pull/146417/merge        -> refs/pull/146417/merge  (forced update)
 + ea68d15eefd...ed089464fcc refs/pull/146476/merge        -> refs/pull/146476/merge  (forced update)
 + 5c54e68a1bd...ed8d191d05f refs/pull/146522/merge        -> refs/pull/146522/merge  (forced update)
 + 275091e4387...011959d9022 refs/pull/146539/merge        -> refs/pull/146539/merge  (forced update)
 + 89c2911b5c7...23c1bf7d412 refs/pull/147147/merge        -> refs/pull/147147/merge  (forced update)
 + 941a93dbc8c...4e11030b6aa refs/pull/147187/merge        -> refs/pull/147187/merge  (forced update)
 + f283d8142cb...ec0d8d47b8a refs/pull/147273/merge        -> refs/pull/147273/merge  (forced update)
 + ab4be72625d...071f4d9ec0b refs/pull/147331/merge        -> refs/pull/147331/merge  (forced update)
 + bba23b511a8...abd59e1fadd refs/pull/147554/merge        -> refs/pull/147554/merge  (forced update)
 + d06ee8eebcc...f38934bc131 refs/pull/147690/merge        -> refs/pull/147690/merge  (forced update)
 + 1242462fa43...0768a858696 refs/pull/147817/merge        -> refs/pull/147817/merge  (forced update)
 + 1a0a8caadd6...5f5116f4a97 refs/pull/148012/merge        -> refs/pull/148012/merge  (forced update)
 + 818ca895df6...26a5d8729fb refs/pull/149021/merge        -> refs/pull/149021/merge  (forced update)
 + f87fb2aa31a...b11e59b6031 refs/pull/149132/merge        -> refs/pull/149132/merge  (forced update)
 + 46a68f4d168...e6436c8e919 refs/pull/149452/merge        -> refs/pull/149452/merge  (forced update)
 + dcb5d9b699a...b18104a8093 refs/pull/149548/merge        -> refs/pull/149548/merge  (forced update)
 + 60e0a699a1d...bb1497fb138 refs/pull/149821/merge        -> refs/pull/149821/merge  (forced update)
 + 3585c7f0a7e...7d7891be7c1 refs/pull/149841/merge        -> refs/pull/149841/merge  (forced update)
 + 35ac2b2a261...06f476d6437 refs/pull/149946/merge        -> refs/pull/149946/merge  (forced update)
 + 5e5117230af...9c187b109f6 refs/pull/149952/merge        -> refs/pull/149952/merge  (forced update)
 + 3182747bb25...8b157f75d06 refs/pull/149970/merge        -> refs/pull/149970/merge  (forced update)
 + 46283ff06ea...49e1843c701 refs/pull/149990/merge        -> refs/pull/149990/merge  (forced update)
 + c9fa65ae44d...347cd89c889 refs/pull/150150/merge        -> refs/pull/150150/merge  (forced update)
 + f82469bedec...7c320fe5c06 refs/pull/150450/merge        -> refs/pull/150450/merge  (forced update)
 + cee268a26c7...052b114a565 refs/pull/150454/merge        -> refs/pull/150454/merge  (forced update)
 + 4af873fa3f7...fff2e691c11 refs/pull/150967/merge        -> refs/pull/150967/merge  (forced update)
 + 541e0cc7c32...1e6bdb5222c refs/pull/151186/merge        -> refs/pull/151186/merge  (forced update)
 + 59e7168d569...6b0efa68c42 refs/pull/151285/merge        -> refs/pull/151285/merge  (forced update)
 + 952dae4f8bc...61d77df0aec refs/pull/151859/merge        -> refs/pull/151859/merge  (forced update)
 + 15a443b115f...827eea688f4 refs/pull/151879/merge        -> refs/pull/151879/merge  (forced update)
 + c0496f0d139...8f41ba515df refs/pull/151905/merge        -> refs/pull/151905/merge  (forced update)
 + 7e45efebf2b...3e7542ccb5a refs/pull/152187/merge        -> refs/pull/152187/merge  (forced update)
 + bd2a4f11a7b...c2d8be00293 refs/pull/152197/merge        -> refs/pull/152197/merge  (forced update)
 + 6cfe47cb28b...d905fcc8c12 refs/pull/152274/merge        -> refs/pull/152274/merge  (forced update)
 + e27aa586f47...8f24837aef6 refs/pull/152292/merge        -> refs/pull/152292/merge  (forced update)
 + f9a1f2abb4a...06b78d32036 refs/pull/152526/merge        -> refs/pull/152526/merge  (forced update)
 + 2a8b7ee3b43...46ccba9323c refs/pull/152738/merge        -> refs/pull/152738/merge  (forced update)
 + afd89a7dbb3...bc55983fced refs/pull/153013/merge        -> refs/pull/153013/merge  (forced update)
 + 0acd51ba30d...d2509585390 refs/pull/153017/merge        -> refs/pull/153017/merge  (forced update)
 + 9cf72b88d0c...0088d0fa368 refs/pull/153204/merge        -> refs/pull/153204/merge  (forced update)
 + f7ce6734d90...95f34679acf refs/pull/153224/merge        -> refs/pull/153224/merge  (forced update)
 + d25018d8edf...9677951e9de refs/pull/153254/merge        -> refs/pull/153254/merge  (forced update)
 + 78a882ddfdb...0de5ae57b9d refs/pull/153265/merge        -> refs/pull/153265/merge  (forced update)
 + 6d73771cf3d...b8f7979c565 refs/pull/153992/merge        -> refs/pull/153992/merge  (forced update)
 + 4b1630ba61e...68dbb002422 refs/pull/154013/merge        -> refs/pull/154013/merge  (forced update)
 + 84c5c81fabe...1ce842e378a refs/pull/154054/merge        -> refs/pull/154054/merge  (forced update)
 + 4a24b364610...8a393f23b23 refs/pull/154079/merge        -> refs/pull/154079/merge  (forced update)
 + 7b26e5a2dfc...a469c2078eb refs/pull/154098/merge        -> refs/pull/154098/merge  (forced update)
 + f4d1460d379...d9368282856 refs/pull/154227/merge        -> refs/pull/154227/merge  (forced update)
 + 3a21644ae3c...f78e47295d9 refs/pull/156398/merge        -> refs/pull/156398/merge  (forced update)
 + aad81d37313...2b3681bd123 refs/pull/156781/merge        -> refs/pull/156781/merge  (forced update)
 + 604a142c27c...f1ca4a00581 refs/pull/156796/merge        -> refs/pull/156796/merge  (forced update)
 + 7a8e2dfbe49...9b4163cf25e refs/pull/156963/merge        -> refs/pull/156963/merge  (forced update)
 + 5e10e7d50ea...c3c0d2688f5 refs/pull/157336/merge        -> refs/pull/157336/merge  (forced update)
 + 6d7c0d5faec...426aeba4ac1 refs/pull/157572/merge        -> refs/pull/157572/merge  (forced update)
 + 99860eda189...32b800e8e0e refs/pull/157783/merge        -> refs/pull/157783/merge  (forced update)
 + cbe6b53b44f...1721f8be978 refs/pull/157812/merge        -> refs/pull/157812/merge  (forced update)
 + 9f2e874aeff...96e2feb470a refs/pull/157948/merge        -> refs/pull/157948/merge  (forced update)
 + aa0bf24f782...45afa61d8b7 refs/pull/157965/merge        -> refs/pull/157965/merge  (forced update)
 + 527026c9253...7deb303f10f refs/pull/158009/merge        -> refs/pull/158009/merge  (forced update)
   bca539f8ad3..2856574854e  refs/pull/158037/head         -> refs/pull/158037/head
 + 2086a7fc8fa...0c35d4a01e5 refs/pull/158037/merge        -> refs/pull/158037/merge  (forced update)
 + 402748ed885...e4b417f82aa refs/pull/158053/merge        -> refs/pull/158053/merge  (forced update)
 + 905a4e92d79...288e68e889c refs/pull/158070/merge        -> refs/pull/158070/merge  (forced update)
 + f5bae0e81ad...59c82e655fe refs/pull/158091/merge        -> refs/pull/158091/merge  (forced update)
 + 617a5135192...1c104ac6b5a refs/pull/158092/merge        -> refs/pull/158092/merge  (forced update)
   229ac7732d2..dfe54acd67c  refs/pull/158112/head         -> refs/pull/158112/head
 + 40445577e57...9c0340ba8b8 refs/pull/158112/merge        -> refs/pull/158112/merge  (forced update)
 + 4b0bf1b2efa...1b676f2c685 refs/pull/158131/merge        -> refs/pull/158131/merge  (forced update)
 * [new ref]                 refs/pull/158132/head         -> refs/pull/158132/head
 * [new ref]                 refs/pull/158140/head         -> refs/pull/158140/head
 * [new ref]                 refs/pull/158156/head         -> refs/pull/158156/head
 * [new ref]                 refs/pull/158156/merge        -> refs/pull/158156/merge
 * [new ref]                 refs/pull/158158/head         -> refs/pull/158158/head
 * [new ref]                 refs/pull/158160/head         -> refs/pull/158160/head
 * [new ref]                 refs/pull/158160/merge        -> refs/pull/158160/merge
 * [new ref]                 refs/pull/158163/head         -> refs/pull/158163/head
 * [new ref]                 refs/pull/158164/head         -> refs/pull/158164/head
 * [new ref]                 refs/pull/158166/head         -> refs/pull/158166/head
 * [new ref]                 refs/pull/158167/head         -> refs/pull/158167/head
 * [new ref]                 refs/pull/158172/head         -> refs/pull/158172/head
 * [new ref]                 refs/pull/158173/head         -> refs/pull/158173/head
 * [new ref]                 refs/pull/158173/merge        -> refs/pull/158173/merge
 * [new ref]                 refs/pull/158174/head         -> refs/pull/158174/head
 * [new ref]                 refs/pull/158176/head         -> refs/pull/158176/head
 * [new ref]                 refs/pull/158176/merge        -> refs/pull/158176/merge
 + 02209d98e33...4ac23b8b361 refs/pull/47884/merge         -> refs/pull/47884/merge  (forced update)
 + f521e951d52...5ba8a520191 refs/pull/61923/merge         -> refs/pull/61923/merge  (forced update)
 + 0d6e9218eae...bcc60e6e6a6 refs/pull/88421/merge         -> refs/pull/88421/merge  (forced update)
  -> Found vscodium.desktop
==> Validating source files with sha256sums...
    vscodium ... Skipped
    vscode ... Skipped
    vscodium.desktop ... Passed
==> Extracting sources...
  -> Creating working copy of vscodium git repo...
Reset branch 'makepkg'
  -> Creating working copy of vscode git repo...
Cloning into 'vscode'...
done.
Switched to a new branch 'makepkg'
==> Starting prepare()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
v16.14.2 is already installed.
Now using node v16.14.2 (npm v8.5.0)
Found '/var/tmp/pamac-build-simon/vscodium/src/vscodium/.nvmrc' with version <v16.14.2>
Now using node v16.14.2 (npm v8.5.0)
+ [[ yes == \y\e\s ]]
+ npm config set scripts-prepend-node-path true
+ npm config set node_gyp
+ echo 'MS_COMMIT: '
MS_COMMIT: 
+ . prepare_vscode.sh
++ set -e
++ cp -rp src/resources src/src vscode/
++ cp -f LICENSE vscode/LICENSE.txt
++ cd vscode
++ ../update_settings.sh
261s/'default': true/'default': false/
294s/'default': TelemetryConfiguration.ON/'default': TelemetryConfiguration.OFF/
applying patch: ../patches/binary-name.patch
applying patch: ../patches/cleanup-archive.patch
applying patch: ../patches/crash-reporter.patch
applying patch: ../patches/custom-gallery.patch
applying patch: ../patches/fix-build-linux.patch
applying patch: ../patches/report-issue.patch
applying patch: ../patches/update-cache-path.patch
applying patch: ../patches/use-github-extensions.patch
applying patch: ../patches/use-github-pat.patch
++ [[ linux == \o\s\x ]]
++ [[ '' == \a\r\m\v\7\l ]]
++ [[ '' == \i\a\3\2 ]]
++ CHILD_CONCURRENCY=1
++ yarn --frozen-lockfile
yarn install v1.22.19
$ node build/npm/preinstall.js
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning "@microsoft/1ds-core-js > @microsoft/applicationinsights-core-js@2.8.3" has unmet peer dependency "tslib@*".
warning " > gulp-postcss@9.0.0" has unmet peer dependency "postcss@^8.0.0".
[4/4] Building fresh packages...
error /var/tmp/pamac-build-simon/vscodium/src/vscodium/vscode/node_modules/@parcel/watcher: Command failed.
Exit code: 1
Command: node-gyp-build
Arguments: 
Directory: /var/tmp/pamac-build-simon/vscodium/src/vscodium/vscode/node_modules/@parcel/watcher
Output:
gyp info it worked if it ends with ok
gyp info using node-gyp@8.4.1
gyp info using node@16.14.2 | linux | x64
gyp info find Python using Python version 3.10.5 found at "/usr/bin/python3"
gyp info spawn /usr/bin/python3
gyp info spawn args [
gyp info spawn args   '/var/tmp/pamac-build-simon/vscodium/src/.nvm/versions/node/v16.14.2/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/var/tmp/pamac-build-simon/vscodium/src/vscodium/vscode/node_modules/@parcel/watcher/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/var/tmp/pamac-build-simon/vscodium/src/.nvm/versions/node/v16.14.2/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/simon/.cache/node-gyp/18.3.5/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/home/simon/.cache/node-gyp/18.3.5',
gyp info spawn args   '-Dnode_gyp_dir=/var/tmp/pamac-build-simon/vscodium/src/.nvm/versions/node/v16.14.2/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/home/simon/.cache/node-gyp/18.3.5/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/var/tmp/pamac-build-simon/vscodium/src/vscodium/vscode/node_modules/@parcel/watcher',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory '/var/tmp/pamac-build-simon/vscodium/src/vscodium/vscode/node_modules/@parcel/watcher/build'
make: *** No rule to make target 'Release/obj.target/nothing/node_modules/node-addon-api/nothing.o', needed by 'Release/obj.target/node_modules/node-addon-api/nothing.a'.  Stop.
make: Leaving directory '/var/tmp/pamac-build-simon/vscodium/src/vscodium/vscode/node_modules/@parcel/watcher/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/var/tmp/pamac-build-simon/vscodium/src/.nvm/versions/node/v16.14.2/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (node:events:526:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
gyp ERR! System Linux 5.18.17-1-MANJARO
gyp ERR! command "/var/tmp/pamac-build-simon/vscodium/src/.nvm/versions/node/v16.14.2/bin/node" "/var/tmp/pamac-build-simon/vscodium/src/.nvm/versions/node/v16.14.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /var/tmp/pamac-build-simon/vscodium/src/vscodium/vscode/node_modules/@parcel/watcher
gyp ERR! node -v v16.14.2
gyp ERR! node-gyp -v v8.4.1
gyp ERR! not ok
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
==> ERROR: A failure occurred in build().
    Aborting...

MithicSpirit commented on 2022-08-15 08:47 (UTC)

@QuaverFace haven't personally tried to build the latest version yet, but does this only occur with pamac or also when directly using makepkg?

QuaverFace commented on 2022-08-14 23:32 (UTC)

I'm trying to install via pamac GUI and getting the following error during the build process:

make: Entering directory '/var/tmp/pamac-build-simon/vscodium/src/vscodium/vscode/node_modules/@parcel/watcher/build'
make: *** No rule to make target 'Release/obj.target/nothing/node_modules/node-addon-api/nothing.o', needed by 'Release/obj.target/node_modules/node-addon-api/nothing.a'.  Stop.
make: Leaving directory '/var/tmp/pamac-build-simon/vscodium/src/vscodium/vscode/node_modules/@parcel/watcher/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/var/tmp/pamac-build-simon/vscodium/src/.nvm/versions/node/v16.14.2/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (node:events:526:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
gyp ERR! System Linux 5.18.16-1-MANJARO
gyp ERR! command "/var/tmp/pamac-build-simon/vscodium/src/.nvm/versions/node/v16.14.2/bin/node" "/var/tmp/pamac-build-simon/vscodium/src/.nvm/versions/node/v16.14.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /var/tmp/pamac-build-simon/vscodium/src/vscodium/vscode/node_modules/@parcel/watcher
gyp ERR! node -v v16.14.2
gyp ERR! node-gyp -v v8.4.1
gyp ERR! not ok
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
==> ERROR: A failure occurred in build().
    Aborting...

I have cleared cache, tried changing versions but not making any progress. Anyone able to suggest a fix?

MithicSpirit commented on 2022-08-11 20:41 (UTC) (edited on 2022-08-11 21:13 (UTC) by MithicSpirit)

@eclairevoyant nvm depends on systemd-syscompat (or in general the existence of a /sbin/init). You'll have to add that to the make dependencies if you want to build in a chroot.

EDIT: note that this is not currently a make dependency in this pkgbuild or a regular dependency in nvm because of non-systemd users. AFAIK this has been fixed upstream, but the fix has not yet been released.

eclairevoyant commented on 2022-08-11 06:20 (UTC)

Has anyone successfully built this in a chroot? When I try, I get this error:

$ makechrootpkg -r $CHROOT -I /var/lib/repo/aur/nvm-0.39.1-1-any.pkg.tar.zst
[snip...]
==> Starting build()...
Downloading and installing node v16.14.2...
Binary download failed, trying source.
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Build failed, check [/path/to/chroot/user/build]

It's clearly failing at the nvm install command, but I'm not sure why this happens because building outside of a chroot works fine. I can also run nvm install v16.14.2 in some random dir and that works fine as well.