void-linux / void-packages

The Void source packages collection
https://voidlinux.org
Other
2.57k stars 2.14k forks source link

Package request: binocle #51589

Open Eloitor opened 2 months ago

Eloitor commented 2 months ago

Package name

binocle

Package homepage

https://github.com/sharkdp/binocle

Description

Graphical tool to visualize binary data

Does the requested package meet the package requirements?

System, Compiled

Is the requested package released?

Yes

xeroxslayer commented 2 months ago

I managed to build it, but I don't have an adequate GPU I guess and it just errors out.

Without mesa-vulkan-radeon installed:

Error: No suitable `wgpu::Adapter` found.

With mesa-vulkan-radeon installed:

[2024-08-08T13:35:39Z ERROR wgpu_hal::vulkan::instance] enumerate_adapters: Initialization of an object has failed
Error: No suitable `wgpu::Adapter` found.

I don't suppose Void has something like vulkan-swrast in it's repo?

Template:

# Template file for 'binocle'
pkgname=binocle
version=0.3.2
revision=1
build_style=cargo
hostmakedepends=""
makedepends=""
depends=""
short_desc="binocle is a graphical tool to visualize binary data."
maintainer="xeroxslayer <xeroxslayer@proton.me>"
license="Apache-2.0, MIT"
homepage="https://github.com/sharkdp/binocle"
distfiles="https://github.com/sharkdp/binocle/archive/refs/tags/v${version}.tar.gz"
checksum="b58d450f343539242b9f146606f5e70d0d183e12ce03e1b003c5197e6e41727b"
Eloitor commented 2 months ago

Thanks. I get the same error as you.

xeroxslayer commented 2 months ago

OK, seems to work fine. mesa-vulkan-lavapipe is now in repo, so I just installed that for testing it.

Screenshot_2024-08-14_11-03-13

Don't know if I should add mesa-vulkan-lavapipe to depends. Will it conflict with other packages if the user has a newer GPU and natively supports Vulkan?

Eloitor commented 2 months ago

Maybe adding an install message suggesting this package...

Eloitor commented 2 months ago

I tested it with mesa-vulkan-lavapipe. I get this error:

[2024-08-17T17:59:40Z ERROR sctk_adwaita::pointer] Failed to set cursor

And the cursor doesn't show up (I can move it around and toggle the different buttons of the program).

I'm on gnome.

xeroxslayer commented 2 months ago

Maybe it has something to do with the DE, I'm using xfce.