Package Details: vdhcoapp 2.0.19-1

Git Clone URL: https://aur.archlinux.org/vdhcoapp.git (read-only, click to copy)
Package Base: vdhcoapp
Description: Companion application for Video DownloadHelper browser add-on
Upstream URL: https://github.com/aclap-dev/vdhcoapp
Licenses: GPL-2.0-or-later
Submitter: dguihal
Maintainer: xiota
Last Packager: xiota
Votes: 69
Popularity: 0.56
First Submitted: 2017-11-16 23:54 (UTC)
Last Updated: 2024-03-28 02:18 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 Next › Last »

xiota commented on 2023-04-10 13:35 (UTC)

DeveloperWiki:Building in a clean chroot

TLDR; extra-x86_64-build.

D.Dave commented on 2023-04-10 12:13 (UTC)

@rodrigo21 can you explain me how to build it in a clean chroot?

rodrigo21 commented on 2023-04-10 11:25 (UTC)

@D.Dave Try building in a clean chroot.

D.Dave commented on 2023-04-10 11:20 (UTC)

I cannot update it, because today it fails with the following error message: node: error while loading shared libraries: libicui18n.so.69: cannot open shared object file: No such file or directory

On my system I have libicui18n.so.72 instead.

DarioP commented on 2023-03-26 13:12 (UTC) (edited on 2023-03-26 13:14 (UTC) by DarioP)

I am experiencing the same error as @alexdandrea, however his patch fails on me.

vdhcoapp-build.patch is created fine, but its sum does not match with the one added in the PKGBUILD, and if I force it, then the prepare() function fails anyway.

alexdandrea commented on 2023-03-08 16:33 (UTC) (edited on 2023-03-08 17:54 (UTC) by alexdandrea)

The package is currently broken as the final generated binary fails to start.

The error message looks like this:

$ vdhcoapp
pkg/prelude/bootstrap.js:1359
      throw error;
      ^

Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /snapshot/vdhcoapp-1.6.3/node_modules/flatted/cjs/index.js
require() of ES modules is not supported.
require() of /snapshot/vdhcoapp-1.6.3/node_modules/flatted/cjs/index.js from /snapshot/vdhcoapp-1.6.3/node_modules/log4js/lib/LoggingEvent.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
Instead rename index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /snapshot/vdhcoapp-1.6.3/node_modules/flatted/package.json.

    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1172:13)
    at Module.load (internal/modules/cjs/loader.js:1000:32)
    at Function.Module._load (internal/modules/cjs/loader.js:899:14)
    at Module.require (internal/modules/cjs/loader.js:1042:19)
    at Module.require (pkg/prelude/bootstrap.js:1338:31)
    at require (internal/modules/cjs/helpers.js:77:18)
    at Object.<anonymous> (/snapshot/vdhcoapp-1.6.3/node_modules/log4js/lib/LoggingEvent.js:4:17)
    at Module._compile (pkg/prelude/bootstrap.js:1433:22)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10)
    at Module.load (internal/modules/cjs/loader.js:1000:32) {
  code: 'ERR_REQUIRE_ESM'
}

It can be fixed with this diff to the AUR package:

diff --git a/PKGBUILD b/PKGBUILD
index d1da185..bd8a1b5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13,10 +13,12 @@ makedepends=('gulp' 'nodejs' 'npm')
 options=(!strip)
 source=($pkgname-$pkgver.tar.gz::https://github.com/mi-g/vdhcoapp/archive/v${pkgver}.tar.gz
         vdhcoapp.patch
+        vdhcoapp-build.patch
         vdhcoapp-install.hook
         vdhcoapp-remove.hook)
 sha256sums=('0b15f1f623193cf6c09fb830e3f5db0a71a63586fa1cb5cb73bf1a819d7c2f55'
             'ab240d9d9fea27792d008eaffe14de5f798ced0938cc79351ed108185baf93a3'
+            '59d25fd734234aef0a2bd0ab43e40292614ccc919e084744c0dd4c59fbc210e6'
             '9f8cbe84b2543738390b70d770551259c6db2b67235b7792e9094908cecbc955'
             '448ee36b350b6bcd304d33cf7638c13bda88d5086f2256e823d73ccc22e52ce0')

@@ -24,6 +26,7 @@ prepare() {
     cd ${pkgname}-${pkgver}

     patch -Np2 -i "${srcdir}/vdhcoapp.patch"
+    patch -N -i "${srcdir}/vdhcoapp-build.patch"
 }

 build() {
diff --git a/vdhcoapp-build.patch b/vdhcoapp-build.patch
new file mode 100644
index 0000000..71d700d
--- /dev/null
+++ b/vdhcoapp-build.patch
@@ -0,0 +1,37 @@
+diff --git a/config.json b/config.json
+index 3e3c404..dbedcbe 100755
+--- a/config.json
++++ b/config.json
+@@ -2,8 +2,8 @@
+   "id": "net.downloadhelper.coapp",
+   "name": "VdhCoApp",
+   "description": "Video DownloadHelper companion app",
+-  "node_major": 12,
+-  "node_version": "12.16.1",
++  "node_major": 16,
++  "node_version": "16.16.0",
+   "extra": [{
+           "source": "converter/build/${platform}/${arch}/"
+       },{
+diff --git a/package.json b/package.json
+index 6223d76..896ffde 100755
+--- a/package.json
++++ b/package.json
+@@ -30,7 +30,7 @@
+     "gulp-if": "^2.0.2",
+     "gulp-rename": "^1.2.2",
+     "gulp-tar": "^2.0.0",
+-    "pkg": "^4.3.8",
++    "pkg": "^5.8.0",
+     "run-sequence": "^2.2.1",
+     "which": "^1.3.0",
+     "yargs": "^16.1.0"
+@@ -46,7 +46,7 @@
+     "got": "^11.8.2",
+     "log4js": "^6.3.0",
+     "opn": "^5.3.0",
+-    "pkg-fetch": "^2.6.9",
++    "pkg-fetch": "^3.4.2",
+     "tmp": "0.0.33",
+     "vinyl-fs": "^3.0.2"
+   }

Mettacrawer commented on 2022-11-12 13:51 (UTC)

I tried to use this today but it splodered. Output from strace shows:

7756  write(2, "

pkg/prelude/bootstrap.js:1359
      throw error;
      Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /snapshot/vdhcoapp-1.6.3/node_modules/flatted/cjs/index.js
      require() of ES modules is not supported.
      require() of /snapshot/vdhcoapp-1.6.3/node_modules/flatted/cjs/index.js from /snapshot/vdhcoapp-1.6.3/node_modules/log4js/lib/LoggingEvent.js is an ES module  file as it is a .js file whose nearest parent package.json contains \"type\": \"module\" which defines all .js files in that package scope as ES modules.
      Instead rename index.js to end in .cjs, change the requiring code to use import(), or remove \"type\": \"module\" from /snapshot/vdhcoapp-1.6.3/node_modules/flatted/package.json.
          at Object.Module._extensions..js (internal/modules/cjs/loader.js:1172:13)
      at Module.load (internal/modules/cjs/loader.js:1000:32)
      at Function.Module._load (internal/modules/cjs/loader.js:899:14)
      at Module.require (internal/modules/cjs/loader.js:1042:19)
      at Module.require (pkg/prelude/bootstrap.js:1338:31)
          at require (internal/modules/cjs/helpers.js:77:18)
      at Object.<anonymous> (/snapshot/vdhcoapp-1.6.3/node_modules/log4js/lib/LoggingEvent.js:4:17)
      at Module._compile (pkg/prelude/bootstrap.js:1433:22)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10)
      at Module.load (internal/modules/cjs/loader.js:1000:32) {
      code: 'ERR_REQUIRE_ESM'\n}\n", 1409 <unfinished ...>

MarsSeed commented on 2022-05-13 19:23 (UTC)

For Brave and Vivaldi, there is an open pull request that supposedly fixes the configuration of this companion app:

https://github.com/mi-g/vdhcoapp/pull/110/files

j1simon commented on 2022-02-10 12:33 (UTC) (edited on 2022-02-10 12:36 (UTC) by j1simon)

Same problem than @Pietro_Pizzi with Google Chrome 98.0.4758.80. But If I install it manually from targz file works: https://www.downloadhelper.net/install-coapp?browser=chrome#extra-targz64