Package Details: vdhcoapp 2.0.20-2

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: 72
Popularity: 1.03
First Submitted: 2017-11-16 23:54 (UTC)
Last Updated: 2024-08-18 15:16 (UTC)

Latest Comments

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

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

Pietro_Pizzi commented on 2022-02-03 01:28 (UTC) (edited on 2022-02-13 01:38 (UTC) by Pietro_Pizzi)

Hi,

the companion app has stoped working today. I use vivaldi and the Video DownloadHelper says in its config "Companion App not installed \ Checking companion app returned: Native host has exited.". I have reloaded the extention and clicked on "Recheck" but it didn't work.

Does anybody know what's happening?

EDIT: It worked again after the last Vivaldi Update 5.1 :).

dreieck commented on 2021-12-25 12:29 (UTC) (edited on 2021-12-25 12:37 (UTC) by dreieck)

On a slow internet connection it fails, because during build() it downloads stuff (can't you move this to the source array or to prepare(), btw.?), and then times out:

==> Starting build()...
[...]
⸨######⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⸩ ⠴ idealTree:plugin-error: timing idealTree:node_modules/plugin-error Completed in 13ms
[...]
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated mkdirp@0.3.5: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

added 707 packages, and audited 708 packages in 28s

28 packages are looking for funding
  run `npm fund` for details

6 high severity vulnerabilities

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.
[13:33:49] Using gulpfile ~/.cache/yay/vdhcoapp/src/vdhcoapp-1.6.3/gulpfile.js
[13:33:49] Starting 'default'...
[13:33:49] Starting 'build-local'...
> pkg@4.5.1
> Fetching base Node.js binaries to PKG_CACHE_PATH
  fetched-v12.16.1-linux-x64   [=======             ] 35%
[...]
npm ERR! code ERR_SOCKET_TIMEOUT
npm ERR! network Socket timeout
npm ERR! network This is a problem related to network connectivity.
[...]

My network works fine, but capped to 1Mbit/s, sometimes slower. After each iteration of a makepkg run it reaches a bit further. Can you change the PKGBUILD such that slow network does not cause failure, and such that all source is already downloaded before build() starts (e.g. in prepare(), if the source array or makedepends is not an option)?

imar commented on 2021-08-01 06:27 (UTC)

Works well.

rvasilev commented on 2020-12-27 12:40 (UTC)

for interchangeability with binary release

provides=vdhcoapp
conflicts=vdhcoapp-bin

package is building ok with upstream nodejs v15

vnt-83 commented on 2020-12-15 20:54 (UTC)

You can edit build files and type nodejs-lts-fermium instead nodejs-lts-dubnium in PKGBUIL

fordprefect commented on 2020-12-15 13:02 (UTC)

@soloturn: they fixed as many of the vulnerabilities as possible in the new release. Check https://github.com/mi-g/vdhcoapp/issues/28