Package Details: vdhcoapp-bin 2.0.20-2

Git Clone URL: https://aur.archlinux.org/vdhcoapp-bin.git (read-only, click to copy)
Package Base: vdhcoapp-bin
Description: Companion application for Video DownloadHelper browser add-on (binary version)
Upstream URL: https://github.com/aclap-dev/vdhcoapp
Licenses: GPL-2.0-or-later
Conflicts: vdhcoapp
Provides: vdhcoapp
Submitter: leledumbo
Maintainer: Paragoumba
Last Packager: Paragoumba
Votes: 60
Popularity: 0.86
First Submitted: 2018-06-28 06:41 (UTC)
Last Updated: 2024-08-10 13:45 (UTC)

Pinned Comments

Paragoumba commented on 2021-12-27 23:19 (UTC) (edited on 2023-09-28 21:07 (UTC) by Paragoumba)

@dreieck I have updated the package to not bundle ffmpeg anymore following this upstream issue. Vdhcoapp can only use the local ffmpeg because its path is hardcoded. The package uses symlinks for now and I am waiting for Vdhcoapp to properly support using the system's ffmpeg.

I also added the provides and conflicts variables.

Thanks for your suggestions

Latest Comments

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

eniac commented on 2023-10-17 05:23 (UTC) (edited on 2023-10-17 05:23 (UTC) by eniac)

vdhcoapp-2.0.3-linux-x86_64.deb is failing sha256 check:

==> Validating source files with sha256sums...
    vdhcoapp-2.0.3-linux-x86_64.deb ... FAILED
    vdhcoapp-install.hook ... Passed
    vdhcoapp-remove.hook ... Passed
    vdhcoapp-user-install.hook ... Passed
    vdhcoapp-user-remove.hook ... Passed
==> ERROR: One or more files did not pass the validity check!

trinitronx commented on 2023-10-12 21:53 (UTC) (edited on 2023-10-12 21:57 (UTC) by trinitronx)

Thank you @trinitronx for looking into these issues, I have merged your commits!

@Paragoumba: Happy this helped to get things into a better working state. I just noticed and fixed one other small issue due to an oversight on my part for users who run pacman frontends such as pamac.

A few users of Manjaro reported that the post-install hook didn't seem to run for them when using pamac. It turns out that SUDO_USER is not set in this case because pamac uses PolicyKit via pkttyagent to authenticate & escalate privileges. Symptoms of this can be seen in /var/log/pacman.log and looks like:

[2023-10-12T13:06:11-0600] [ALPM-SCRIPTLET] sudo: unknown user /usr/bin/vdhcoapp
[2023-10-12T13:06:11-0600] [ALPM-SCRIPTLET] sudo: error initializing audit plugin sudoers_audit

Unfortunately in this case, there is no equivalent polkit environment variable for determining the user installing the package. (If anyone knows more, let me know if I'm missing some hidden method for finding this in a libalpm hook. env did not print any useful variables in the hook's runtime environment when I tested it.)

So, in this case, perhaps the sane default would be to fallback on uid 1000 given that most people using vdhcoapp-bin are going to be single-user desktop users rather than one of many multi-user seats.

I pushed a bugfix branch up here: trinitronx/vdhcoapp-bin#3 Feel free to review the changes

To pull & merge:

# If remote not already added
git remote add trinitronx https://gitlab.archlinux.org/trinitronx/vdhcoapp-bin.git

git fetch trinitronx fix-pamac-user-hook
git checkout -b fix-pamac-user-hook trinitronx/fix-pamac-user-hook
git checkout master
git merge fix-pamac-user-hook

Aftermath commented on 2023-10-02 17:12 (UTC)

@alexdandrea While I do agree with your opinion, — I also prefer not to have my personal user-files be affected in any way without consent. — I think the current state of package is better than before.

alexdandrea commented on 2023-10-02 11:22 (UTC)

I suggest that instead of automatically calling the registration for the user who is running the install, instead a message to be displayed that informs about the necessary steps.

If a user needs the registration to happen for a different user, he/she has no knownledge about what to do because it was hidden. Also, I would prefer not to have my personal user-files be affected in any way without consent :-)

Paragoumba commented on 2023-09-30 14:41 (UTC)

Thank you @trinitronx for looking into these issues, I have merged your commits!

Aftermath commented on 2023-09-29 09:52 (UTC)

Thank you @trinitronx.

Used your fix-user-install-hook and it works.

trinitronx commented on 2023-09-29 01:52 (UTC)

@Paragoumba: I also believe that I may have just found a fix for the user-level JSON files install issue. After running the post-install hook as $SUDO_USER, the Firefox plugin now can find the companion app binary!

Fixes pushed to fix-user-install-hook branch here. This includes fixes from packaging-fixes branch as well.

To pull & merge:

git remote add trinitronx https://gitlab.archlinux.org/trinitronx/vdhcoapp-bin.git
git fetch trinitronx fix-user-install-hook
git checkout -b fix-user-install-hook trinitronx/fix-user-install-hook
git checkout master
git merge fix-user-install-hook

trinitronx commented on 2023-09-29 00:28 (UTC) (edited on 2023-09-29 00:43 (UTC) by trinitronx)

The just-released PKGBUILD 2.0.1-1 has broken symlink:

lrwxrwxrwx 1 root root 67 Sep 28 17:37 /usr/bin/vdhcoapp -> /opt/net.downloadhelper.coapp/bin/net.downloadhelper.coapp-linux-64

It looks like it should now be pointing to: /opt/vdhcoapp/vdhcoapp

Additionally, the *.hook files are never installed to /usr/share/libalpm/hooks

So, they're never actually run on post-install & pre-remove. Although, it looks like to get the Firefox browser extension to find it, I still had to manually run: /usr/bin/vdhcoapp install ... as my local user account. After that, going into the extension & clicking "Recheck" found it. Not sure why the --system flag doesn't appear to work so the browser extension can find it properly. Maybe it's something to do with the browser profile pre-existing? Maybe the hook should also run sudo -u $SUDO_USER /usr/bin/vdhcoapp install --user or suggest that the user run: /usr/bin/vdhcoapp install --user manually?

I've fixed these issues and have it working in a bugfix branch over on my ArchLinux GitLab. You can review the changes here

Feel free to pull & merge from my branch:

git remote add trinitronx https://gitlab.archlinux.org/trinitronx/vdhcoapp-bin.git
git fetch trinitronx packaging-fixes
git checkout -b packaging-fixes trinitronx/packaging-fixes
git checkout master
git merge packaging-fixes

Paragoumba commented on 2021-12-27 23:19 (UTC) (edited on 2023-09-28 21:07 (UTC) by Paragoumba)

@dreieck I have updated the package to not bundle ffmpeg anymore following this upstream issue. Vdhcoapp can only use the local ffmpeg because its path is hardcoded. The package uses symlinks for now and I am waiting for Vdhcoapp to properly support using the system's ffmpeg.

I also added the provides and conflicts variables.

Thanks for your suggestions

dreieck commented on 2021-12-25 12:52 (UTC) (edited on 2021-12-25 12:53 (UTC) by dreieck)

Why does it depend on ffmpeg and at the same time provides it's own ffmpeg:

ls /opt/net.downloadhelper.coapp/converter/build/linux/64:

ffmpeg            libavdevice.so.58   libbz2.so.1.0           libopencore-amrwb.so.0  libpostproc.so.55   libtheora.so.0       libvpx.so.6          libx264.so.161
ffplay            libavfilter.so.7    libmp3lame.so.0         libopenjp2.so.7         libswresample.so.3  libvo-amrwbenc.so.0  libwebpdecoder.so.3  libx265.so.188
ffprobe           libavformat.so.58   libnuma.so.1            libopus.so.0            libswscale.so.5     libvorbisenc.so.2    libwebpdemux.so.2    libxvidcore.so.4
libaom.so.0       libavresample.so.4  libogg.so.0             liborc-0.4.so.0         libtheoradec.so.1   libvorbisfile.so.3   libwebpmux.so.3      libz.so.1
libavcodec.so.58  libavutil.so.56     libopencore-amrnb.so.0  liborc-test-0.4.so.0    libtheoraenc.so.1   libvorbis.so.0       libwebp.so.7

Please try to not install the bundled libraries and executables but depend on system libraries and executables (if needed, create symlinks into /opt/net.downloadhelper.coapp/converter/build/linux/64/). If this is not possible, remove the dependency on ffmpeg.

Thanks for maintaining!