From 949378874686ca453390768c0c8af98293ee3669 Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Wed, 20 Aug 2025 23:01:44 +0100 Subject: [PATCH 1/2] gui-wm/gamescope: Patch to allow libdisplay-info 0.3 Signed-off-by: James Le Cuirot --- .../gamescope-libdisplay-info-0.3.0.patch | 19 +++++++++++++++++++ ....15.ebuild => gamescope-3.16.15-r1.ebuild} | 3 ++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 gui-wm/gamescope/files/gamescope-libdisplay-info-0.3.0.patch rename gui-wm/gamescope/{gamescope-3.16.15.ebuild => gamescope-3.16.15-r1.ebuild} (98%) diff --git a/gui-wm/gamescope/files/gamescope-libdisplay-info-0.3.0.patch b/gui-wm/gamescope/files/gamescope-libdisplay-info-0.3.0.patch new file mode 100644 index 0000000000000..a70527dc6a8af --- /dev/null +++ b/gui-wm/gamescope/files/gamescope-libdisplay-info-0.3.0.patch @@ -0,0 +1,19 @@ +From 13e56464c86c6abb0c6a2c2785d473c6528a6488 Mon Sep 17 00:00:00 2001 +From: James Le Cuirot +Date: Fri, 15 Aug 2025 23:17:59 +0100 +Subject: [PATCH] subprojects: Bump libdisplay-info to 0.3.0 + +--- a/src/meson.build ++++ b/src/meson.build +@@ -33,7 +33,7 @@ wlroots_dep = dependency( + + displayinfo_dep = dependency( + 'libdisplay-info', +- version: ['>= 0.0.0', '< 0.3.0'], ++ version: ['>= 0.0.0', '< 0.4.0'], + fallback: ['libdisplay-info', 'di_dep'], + default_options: ['default_library=static'], + ) +-- +2.50.1 + diff --git a/gui-wm/gamescope/gamescope-3.16.15.ebuild b/gui-wm/gamescope/gamescope-3.16.15-r1.ebuild similarity index 98% rename from gui-wm/gamescope/gamescope-3.16.15.ebuild rename to gui-wm/gamescope/gamescope-3.16.15-r1.ebuild index f675287227436..e3bdabc4b43ee 100644 --- a/gui-wm/gamescope/gamescope-3.16.15.ebuild +++ b/gui-wm/gamescope/gamescope-3.16.15-r1.ebuild @@ -43,7 +43,7 @@ RDEPEND=" >=dev-libs/libinput-1.14.0:= >=dev-libs/wayland-1.23.1 gui-libs/libdecor - Date: Sun, 3 Aug 2025 14:24:04 +0100 Subject: [PATCH 2/2] multilib.eclass: respect SYSROOT when overriding PKG_CONFIG_* vars MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In multilib.eclass, multilib_toolchain_setup() overrides the environment variables PKG_CONFIG_LIBDIR, PKG_CONFIG_PATH, PKG_CONFIG_SYSTEM_INCLUDE_PATH, and PKG_CONFIG_SYSTEM_LIBRARY_PATH so that the .pc files for the correct ABI will be found and used. As a reminder, pkgconfig is normally called upon to find packages that have been installed into the *host* system — i.e., packages listed in DEPEND. The "Ebuild writing: Variables" page[1] describes the SYSROOT variable as "The absolute path to the root directory containing build dependencies satisfied by DEPEND" and ESYSROOT as "The same as either EROOT, BROOT or SYSROOT depending on the value of SYSROOT. Commonly used to reference the location of headers and libraries at build time." In order to support the use case of setting SYSROOT to a path other than "/" while building packages for ABIs other than the default ABI, change multilib.eclass so that it prefixes the PKG_CONFIG_* vars with ${ESYSROOT} rather than ${EPREFIX}. For Gentoo users who do not set SYSROOT, this change will have no bearing. This change could conceivably affect crossdev users, but I think typically crossdev sysroots do not support multilib anyway, so this change wouldn't affect them either. [1] https://devmanual.gentoo.org/ebuild-writing/variables/ Closes: https://bugs.gentoo.org/945108 Signed-off-by: Matt Whitlock Part-of: https://github.com/gentoo/gentoo/pull/43088 Closes: https://github.com/gentoo/gentoo/pull/43088 Signed-off-by: James Le Cuirot --- eclass/multilib.eclass | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/eclass/multilib.eclass b/eclass/multilib.eclass index f19ad20af8fd9..c28fee7aa1efe 100644 --- a/eclass/multilib.eclass +++ b/eclass/multilib.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: multilib.eclass @@ -552,10 +552,10 @@ multilib_toolchain_setup() { export STRIP="$(tc-getSTRIP)" # Avoid 'strip', use '${CHOST}-strip' export CHOST=$(get_abi_CHOST $1) - export PKG_CONFIG_LIBDIR=${EPREFIX}/usr/$(get_libdir)/pkgconfig - export PKG_CONFIG_PATH=${EPREFIX}/usr/share/pkgconfig - export PKG_CONFIG_SYSTEM_INCLUDE_PATH=${EPREFIX}/usr/include - export PKG_CONFIG_SYSTEM_LIBRARY_PATH=${EPREFIX}/$(get_libdir):${EPREFIX}/usr/$(get_libdir) + export PKG_CONFIG_LIBDIR=${ESYSROOT}/usr/$(get_libdir)/pkgconfig + export PKG_CONFIG_PATH=${ESYSROOT}/usr/share/pkgconfig + export PKG_CONFIG_SYSTEM_INCLUDE_PATH=${ESYSROOT}/usr/include + export PKG_CONFIG_SYSTEM_LIBRARY_PATH=${ESYSROOT}/$(get_libdir):${ESYSROOT}/usr/$(get_libdir) fi }