@dncrash Would you mind building the package on a drive with a different file system, either ext4 or xfs?
I wouldn't mind but I only have btrfs.
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, precompiled binary version |
Upstream URL: | https://github.com/aclap-dev/vdhcoapp |
Licenses: | GPL2 |
Conflicts: | vdhcoapp |
Provides: | vdhcoapp |
Submitter: | leledumbo |
Maintainer: | Paragoumba |
Last Packager: | Paragoumba |
Votes: | 51 |
Popularity: | 0.77 |
First Submitted: | 2018-06-28 06:41 (UTC) |
Last Updated: | 2024-02-19 17:50 (UTC) |
@dncrash Would you mind building the package on a drive with a different file system, either ext4 or xfs?
I wouldn't mind but I only have btrfs.
@dncrash Would you mind building the package on a drive with a different file system, either ext4 or xfs?
I'm having the same issue as @beeender:
Pkg: Error reading from file
Like he said, I did an md5sum on the file in /opt and the file from the src, and they were different, so I just copied over the original file and it works.
I should mention that I first tried installing with paru, and then manually, but the issue is still the same.
@xiota you were asking about filesystems, I am using btrfs - not sure how it would interfere but I guess it's worth mentioning.
@beeender I'm reasonably sure this is a configuration problem. Don't know what it could be.
Have you checked for ~/.config/pacman/makepkg.conf
and ~/.makepkg.conf
?
Another possibility occurred to me... Are you running on some file system with deduplication, compression, or other unusual features? Maybe there is a bug.
❯ for i in src pkg ; do find "$i" -type f -name "vdhcoapp" -exec md5sum {} \; ; done
c6328972d7fe0c9fd19109118d54e7f2 src/vdhcoapp-bin/opt/vdhcoapp/vdhcoapp
19b1cebde3e46a19a1c9a36fddcf3819 pkg/vdhcoapp-bin/opt/vdhcoapp/vdhcoapp
I do have options=('!strip')
in the PKGBUILD
, but it strips the binary anyway. I also tried options(!strip)
and changes in makepkg.conf
.
Strange
Other files shows different results
(strip)
vdhcoapp-bin on master [!?]
❯ for i in src pkg ; do find "$i" -type f -name "ffmpeg" -exec md5sum {} \; ; done
0d8fa34a10bca727f26f36545c50ddcd src/vdhcoapp-bin/opt/vdhcoapp/ffmpeg
470bfa92fef9e6e5037576e1819bf554 pkg/vdhcoapp-bin/opt/vdhcoapp/ffmpeg
vdhcoapp-bin on master [!?]
❯ for i in src pkg ; do find "$i" -type f -name "vdhcoapp" -exec md5sum {} \; ; done
c6328972d7fe0c9fd19109118d54e7f2 src/vdhcoapp-bin/opt/vdhcoapp/vdhcoapp
5a4eeecd4987c9c99aec3bdd1df49f5b pkg/vdhcoapp-bin/opt/vdhcoapp/vdhcoapp
('!strip')
❯ for i in src pkg ; do find "$i" -type f -name "ffmpeg" -exec md5sum {} \; ; done
0d8fa34a10bca727f26f36545c50ddcd src/vdhcoapp-bin/opt/vdhcoapp/ffmpeg
0d8fa34a10bca727f26f36545c50ddcd pkg/vdhcoapp-bin/opt/vdhcoapp/ffmpeg
❯ for i in src pkg ; do find "$i" -type f -name "vdhcoapp" -exec md5sum {} \; ; done
c6328972d7fe0c9fd19109118d54e7f2 src/vdhcoapp-bin/opt/vdhcoapp/vdhcoapp
19b1cebde3e46a19a1c9a36fddcf3819 pkg/vdhcoapp-bin/opt/vdhcoapp/vdhcoapp
strip
works for ffmpeg
.
@beeender How are you building this package? Are you using a modified makepkg.conf
? Are you using an AUR helper? Maybe there is some other package that has hooks to strip other packages on install?
The options=('!strip')
command is supposed to prevent changes to the executable. On my computer after building:
$ for i in src pkg ; do find "$i" -type f -name "vdhcoapp" -exec md5sum {} \; ; done
c6328972d7fe0c9fd19109118d54e7f2 src/vdhcoapp-bin/opt/vdhcoapp/vdhcoapp
c6328972d7fe0c9fd19109118d54e7f2 pkg/vdhcoapp-bin/opt/vdhcoapp/vdhcoapp
vdhcoapp-2.0.19-linux-x86_64/opt/vdhcoapp on master [?]
❯ md5sum vdhcoapp
c6328972d7fe0c9fd19109118d54e7f2 vdhcoapp
vdhcoapp-2.0.19-linux-x86_64/opt/vdhcoapp on master [?]
❯ md5sum /usr/bin/vdhcoapp
19b1cebde3e46a19a1c9a36fddcf3819 /usr/bin/vdhcoapp
The file from deb has been changed which causes the Pkg: Error reading from file
error. Replacing the file works for me.
@lightdot I suspect something on some systems is not following the options=('!strip')
directive.
Just a confirmation for @Havok_Novak @mnussbaum or anyone else experiencing this, I had the same error after building in a clean chroot. I regret to not having the build logs anymore.
Manually recreating the build by extracting the vdhcoapp-linux-x86_64.deb (and creating symlinks to ffmpeg binaries after removing the bundled ones) results in a working vdhcoapp binary.
Odd indeed!
(BTW, using upstream's vdhcoapp-noffmpeg-linux-x86_64.tar.bz2 works fine too)
Yeah @mnussbaum, me too, I get the same error when doing the installation.
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
andconflicts
variables.Thanks for your suggestions