Please add:
-
provides=("mangohud=$pkgver")
topackage_mangohud-git()
-
provides=("lib32-mangohud=$pkgver")
topackage_lib32-mangohud-git()
-
provides=("mangohud-common=$pkgver")
topackage_mangohud-common-git()
Git Clone URL: | https://aur.archlinux.org/mangohud-git.git (read-only, click to copy) |
---|---|
Package Base: | mangohud-git |
Description: | A Vulkan overlay layer for monitoring FPS, temperatures, CPU/GPU load and more. |
Upstream URL: | https://github.com/flightlessmango/MangoHud |
Keywords: | benchmark hud opengl overlay performance vulkan |
Licenses: | MIT |
Conflicts: | mangoapp, mangohud, mangohud-common-git |
Provides: | mangoapp, mangohud |
Replaces: | mangoapp |
Submitter: | dnmodder |
Maintainer: | dnmodder (jackun) |
Last Packager: | dnmodder |
Votes: | 26 |
Popularity: | 1.28 |
First Submitted: | 2020-02-06 22:40 (UTC) |
Last Updated: | 2024-06-19 23:26 (UTC) |
Please add:
provides=("mangohud=$pkgver")
to package_mangohud-git()
provides=("lib32-mangohud=$pkgver")
to package_lib32-mangohud-git()
provides=("mangohud-common=$pkgver")
to package_mangohud-common-git()
@DefaultSpatula Arreglado.
git and dbus are missing from makedepends
@iwonbigbro @PedroHLC it is fixed.
What about migrating to the author's PKGBUILD?: https://raw.githubusercontent.com/flightlessmango/PKGBUILDS/master/mangohud/PKGBUILD
EDIT: Sorry, it's broken too.
Here's a patch to workaround the problem...
https://paste.ubuntu.com/p/5dzgSftqrc/
Apply it by running...
$ cd mangohud-git
$ patch -p1 <<PATCH
diff --git a/PKGBUILD b/PKGBUILD
index a074961..03cd2b4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
_pkgbase=mangohud
pkgbase=$_pkgbase-git
pkgname=('mangohud-git' 'lib32-mangohud-git' 'mangohud-common-git')
-pkgver=0.5.1.r18.g9391822
+pkgver=0.6.1.r41.g4862d83
pkgrel=1
url='https://github.com/flightlessmango/MangoHud'
license=('MIT')
@@ -15,6 +15,10 @@ replaces=('vulkan-mesa-layer-mango' 'lib32-vulkan-mesa-layer-mango')
source=("$_pkgbase::git+$url#branch=develop")
sha512sums=('SKIP')
+arch-meson() {
+ /usr/bin/arch-meson --wrap-mode default "$@"
+}
+
pkgver() {
cd "$_pkgbase"
git describe --tags | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
PATCH
imgui is purely sourcecode. There are no build artefacts, so no need to create an AUR package.
According to meson docs...
Since 0.49.0 if source_filename or patch_filename is found in the project's subprojects/packagecache directory, it will be used instead of downloading the file, even if --wrap-mode option is set to nodownload. The file's hash will be checked.
So it's likely that anyone who has previously fetched the repo and built into AUR package, has a cached version of the imgui subproject. This will be used regardless of the wrap-mode, so you won't get this error. Pretty sure if you delete your clone and reclone the repo, you'll get this error.
Okay, so this error is defined by arch-meson hard coding the wrap mode.
$ grep nodownload /usr/bin/arch-meson
--wrap-mode nodownload \
The workaround is to install imgui, but there's no AUR PKGBUILD defined for this yet. Let me see if I can create one...
I get the same error...
Compiler for C supports arguments -Woverride-init: YES
Compiler for C supports arguments -Winitializer-overrides: NO
Checking for function "dlopen" : NO
Library dl found: YES
Checking for function "clock_gettime" : YES
Checking for size of "void*" : 8
mangohud/meson.build:219:0: ERROR: Automatic wrap-based subproject downloading is disabled
A full log can be found at /tmp/tmp.CmpQHDlAUD/aur/mangohud-git/src/build64/meson-logs/meson-log.txt
==> ERROR: A failure occurred in build().
Aborting...
Pretty sure it's a missing dependency, but this error is awful and meson provides no stack trace. Anyway, the error originates from this line...
https://github.com/flightlessmango/MangoHud/blob/master/meson.build#L219
Which defines a non-downloadable subproject of dearimgui
Broken by blame diff...
https://github.com/flightlessmango/MangoHud/commit/acf2d88fbcb7a7a47f957a87d20739c67049bd0d
If you want this to work, then you need to remove the nodownload wrap-mode and allow subproject downloading.
I said I did that in my previous comment. For now, I've removed mangohud-git and installed mangohud, which is working.
Pinned Comments
d-air1 commented on 2024-05-21 03:05 (UTC)
Can whoever keeps flagging this out of date state why? This package is installing its own version of imgui and implot is not required. This package builds just fine without it. If for some reason you need that then can you have a discussion with the maintainer of the package instead of having everyone who uses this package get messages about it being out of date for the same reasons when it works just fine.