commit: 15372ce19a4ed4dc5e52873557bba58f6c9aebe9 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Thu Jul 10 03:20:42 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu Jul 10 03:24:33 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15372ce1
games-arcade/gnome-robots: add missing -lm link Closes: https://bugs.gentoo.org/950339 Signed-off-by: Sam James <sam <AT> gentoo.org> .../files/gnome-robots-40.0-underlink-lm.patch | 38 ++++++++++++++++++++++ games-arcade/gnome-robots/gnome-robots-40.0.ebuild | 6 +++- 2 files changed, 43 insertions(+), 1 deletion(-) diff --git a/games-arcade/gnome-robots/files/gnome-robots-40.0-underlink-lm.patch b/games-arcade/gnome-robots/files/gnome-robots-40.0-underlink-lm.patch new file mode 100644 index 000000000000..ed8ce4986493 --- /dev/null +++ b/games-arcade/gnome-robots/files/gnome-robots-40.0-underlink-lm.patch @@ -0,0 +1,38 @@ +https://bugs.gentoo.org/950339 +https://gitlab.gnome.org/GNOME/gnome-robots/-/issues/19 +https://gitlab.gnome.org/GNOME/gnome-robots/-/commit/f34f794554f6091071435874a18e1c39696e4d24 + +From f34f794554f6091071435874a18e1c39696e4d24 Mon Sep 17 00:00:00 2001 +From: Dominique Leuenberger <[email protected]> +Date: Thu, 2 May 2024 17:54:50 +0200 +Subject: [PATCH] build: Link against libm + +Fixes build in case none of our dependenices adds -lm to LDFLAGS. +Since gnome-robot's own code uses atan2, it is our own responsibility +to ensure the linking against libm. + +Fixes https://gitlab.gnome.org/GNOME/gnome-robots/-/issues/19 +--- a/meson.build ++++ b/meson.build +@@ -22,6 +22,9 @@ gtk_dependency = dependency('gtk+-3.0', version: '>= 3.24.0') + gdk_dependency = dependency('gdk-3.0', version: '>= 3.24.0') + rsvg_dependency = dependency('librsvg-2.0', version: '>= 2.36.2') + ++cc = meson.get_compiler('c') ++m_dep = cc.find_library('m', required : false) ++ + bindir = join_paths(get_option('prefix'), get_option('bindir')) + datadir = join_paths(get_option('prefix'), get_option('datadir')) + pkgdatadir = join_paths(datadir, meson.project_name()) +--- a/src/meson.build ++++ b/src/meson.build +@@ -53,7 +53,8 @@ executable( + gsound_dependency, + gtk_dependency, + gdk_dependency, +- rsvg_dependency ++ rsvg_dependency, ++ m_dep + ], + install_dir: get_option('bindir'), + install: true diff --git a/games-arcade/gnome-robots/gnome-robots-40.0.ebuild b/games-arcade/gnome-robots/gnome-robots-40.0.ebuild index 23600912aee4..8c23130976f2 100644 --- a/games-arcade/gnome-robots/gnome-robots-40.0.ebuild +++ b/games-arcade/gnome-robots/gnome-robots-40.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -30,6 +30,10 @@ BDEPEND=" virtual/pkgconfig " +PATCHES=( + "${FILESDIR}"/${PN}-40.0-underlink-lm.patch +) + src_prepare() { vala_src_prepare xdg_src_prepare
