Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package mangohud for openSUSE:Factory checked in at 2025-04-14 16:08:10 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mangohud (Old) and /work/SRC/openSUSE:Factory/.mangohud.new.1907 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "mangohud" Mon Apr 14 16:08:10 2025 rev:20 rq:1269157 version:0.8.1 Changes: -------- --- /work/SRC/openSUSE:Factory/mangohud/mangohud.changes 2025-03-05 14:06:59.975045426 +0100 +++ /work/SRC/openSUSE:Factory/.mangohud.new.1907/mangohud.changes 2025-04-14 16:08:17.990561752 +0200 @@ -1,0 +2,6 @@ +Mon Apr 14 07:33:21 UTC 2025 - Andreas Schneider <a...@cryptomilk.org> + +- Remove glew dependency + * Added mangohud-remove-glew-dep.patch + +------------------------------------------------------------------- New: ---- mangohud-remove-glew-dep.patch BETA DEBUG BEGIN: New:- Remove glew dependency * Added mangohud-remove-glew-dep.patch BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mangohud.spec ++++++ --- /var/tmp/diff_new_pack.Vge4eQ/_old 2025-04-14 16:08:18.678590647 +0200 +++ /var/tmp/diff_new_pack.Vge4eQ/_new 2025-04-14 16:08:18.678590647 +0200 @@ -35,6 +35,9 @@ Source5: https://github.com/epezent/implot/archive/refs/tags/v%{implot_ver}.zip#/implot-%{implot_ver}.tar.gz Source6: https://wrapdb.mesonbuild.com/v2/implot_%{implot_ver}-1/get_patch#/implot-%{implot_ver}-1-wrap.zip Source99: baselibs.conf +# PATCH-FIX-UPSTREAM mangohud-remove-glew-dep.patch +# https://github.com/flightlessmango/MangoHud/commit/9da183900bc6f7af0f3cb907d9370aec54a11a91.patch +Patch0: mangohud-remove-glew-dep.patch BuildRequires: AppStream %if 0%{?suse_version} < 1550 && 0%{?sle_version} >= 150500 BuildRequires: gcc12-c++ @@ -48,7 +51,6 @@ BuildRequires: unzip BuildRequires: pkgconfig(cmocka) BuildRequires: pkgconfig(dbus-1) -BuildRequires: pkgconfig(glew) BuildRequires: pkgconfig(glfw3) BuildRequires: pkgconfig(glu) BuildRequires: pkgconfig(libdrm) ++++++ mangohud-remove-glew-dep.patch ++++++ >From 9da183900bc6f7af0f3cb907d9370aec54a11a91 Mon Sep 17 00:00:00 2001 From: flightlessmango <flightlessmang...@gmail.com> Date: Mon, 17 Mar 2025 15:11:32 +0100 Subject: [PATCH] mangoapp: remove glew dependency --- .github/workflows/ubuntu.yml | 1 - meson.build | 1 - pkgbuild/PKGBUILD | 2 +- src/app/main.cpp | 12 +----------- src/meson.build | 2 -- 5 files changed, 2 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 75f1ca6ef4..1f9ca0b917 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -25,7 +25,6 @@ jobs: mesa-common-dev \ libcmocka-dev \ libdbus-1-dev \ - libglew-dev \ libglfw3-dev \ libwayland-dev \ libxnvctrl-dev \ diff --git a/meson.build b/meson.build index ebe37c8ab4..6496b95a1c 100644 --- a/meson.build +++ b/meson.build @@ -261,7 +261,6 @@ endif if get_option('mangoapp') glfw3_dep = dependency('glfw3') - glew_dep = dependency('glew') endif json_dep = dependency('nlohmann_json') diff --git a/pkgbuild/PKGBUILD b/pkgbuild/PKGBUILD index 5e9c3ab505..a7a2ef49f2 100644 --- a/pkgbuild/PKGBUILD +++ b/pkgbuild/PKGBUILD @@ -6,7 +6,7 @@ pkgrel=1 pkgdesc="Vulkan and OpenGL overlay to display performance information" arch=('x86_64') makedepends=('dbus' 'gcc' 'meson' 'python-mako' 'libx11' 'lib32-libx11' 'git' 'pkgconf' 'vulkan-headers') -depends=('glslang' 'libglvnd' 'lib32-libglvnd' 'glew' 'glfw-x11' 'python-numpy' 'python-matplotlib' +depends=('glslang' 'libglvnd' 'lib32-libglvnd' 'glfw-x11' 'python-numpy' 'python-matplotlib' 'libxrandr' 'libxkbcommon' 'lib32-libxkbcommon') replaces=('vulkan-mesa-layer-mango') license=('MIT') diff --git a/src/app/main.cpp b/src/app/main.cpp index 0e86a21021..5854283050 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -16,7 +16,6 @@ #include "notify.h" #include "mangoapp.h" #include "mangoapp_proto.h" -#include <GL/glew.h> #include <GLFW/glfw3.h> #include "amdgpu.h" #ifdef __linux__ @@ -308,16 +307,7 @@ int main(int, char**) Display *x11_display = glfwGetX11Display(); Window x11_window = glfwGetX11Window(window); Atom overlay_atom = XInternAtom (x11_display, GamescopeOverlayProperty, False); - // Initialize OpenGL loader - - bool err = glewInit() != GLEW_OK; - - if (err) - { - fprintf(stderr, "Failed to initialize OpenGL loader!\n"); - return 1; - } - + // Setup Platform/Renderer backends int control_client = -1; parse_overlay_config(¶ms, getenv("MANGOHUD_CONFIG"), false); diff --git a/src/meson.build b/src/meson.build index 5713539bdf..53daf21363 100644 --- a/src/meson.build +++ b/src/meson.build @@ -261,7 +261,6 @@ if get_option('mangoapp') if not get_option('with_x11').enabled() error('mangoapp also needs \'with_x11\'') endif - pre_args += '-DIMGUI_IMPL_OPENGL_LOADER_GLEW' pre_args += '-DMANGOAPP' mangoapp = executable( 'mangoapp', @@ -287,7 +286,6 @@ if get_option('mangoapp') dep_wayland_client, glfw3_dep, json_dep, - glew_dep, implot_dep ], include_directories : [inc_common],