commit: 8e4476a55a7cfd79f147754519f1ace479db8917 Author: Andrei Horodniceanu <a.horodniceanu <AT> proton <DOT> me> AuthorDate: Wed Aug 13 19:50:05 2025 +0000 Commit: Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me> CommitDate: Wed Aug 13 19:50:05 2025 +0000 URL: https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=8e4476a5
dev-libs/gtkd: enable dmd-2_110 dmd-2_111 gdc-15 Signed-off-by: Andrei Horodniceanu <a.horodniceanu <AT> proton.me> .../files/tests-fix-debug-integer-pr-361.patch | 97 ++++++++++++++++++++++ dev-libs/gtkd/gtkd-3.10.0-r2.ebuild | 6 +- 2 files changed, 102 insertions(+), 1 deletion(-) diff --git a/dev-libs/gtkd/files/tests-fix-debug-integer-pr-361.patch b/dev-libs/gtkd/files/tests-fix-debug-integer-pr-361.patch new file mode 100644 index 0000000..c6bc64c --- /dev/null +++ b/dev-libs/gtkd/files/tests-fix-debug-integer-pr-361.patch @@ -0,0 +1,97 @@ +Fixes compilation failures with newer compilers (frontend >=2.111). +Only affects tests. +https://github.com/gtkd-developers/GtkD/pull/361 + +From acd9ea1e9623ab73482fb1031b620f47d7f8854f Mon Sep 17 00:00:00 2001 +From: David Foerster <[email protected]> +Date: Fri, 13 Jun 2025 18:25:17 +0200 +Subject: [PATCH] Fix illegal use of "debug(1)" + +diff --git a/demos/gstreamer/mediaplayer/gst_mediaplayer.d b/demos/gstreamer/mediaplayer/gst_mediaplayer.d +--- a/demos/gstreamer/mediaplayer/gst_mediaplayer.d ++++ b/demos/gstreamer/mediaplayer/gst_mediaplayer.d +@@ -270,10 +270,10 @@ public: + { + isPlaying = true; + // Now set to playing and iterate. +- debug(1) writeln("Setting to PLAYING."); ++ debug(trace) writeln("Setting to PLAYING."); + //pipeline.setState( GstState.PLAYING ); + source.setState( GstState.PLAYING ); +- debug(1) writeln("Running."); ++ debug(trace) writeln("Running."); + } + else + { +diff --git a/demos/gtkD/TestWindow/TestIdle.d b/demos/gtkD/TestWindow/TestIdle.d +--- a/demos/gtkD/TestWindow/TestIdle.d ++++ b/demos/gtkD/TestWindow/TestIdle.d +@@ -56,7 +56,7 @@ class TestIdle : VBox + this() + { + +- debug(1) ++ debug(trace) + { + writeln("instantiating TestTimeout"); + } +diff --git a/demos/gtkD/TestWindow/TestImage.d b/demos/gtkD/TestWindow/TestImage.d +--- a/demos/gtkD/TestWindow/TestImage.d ++++ b/demos/gtkD/TestWindow/TestImage.d +@@ -51,7 +51,7 @@ class TestImage : VBox + this(Window window) + { + this.window = window; +- debug(1) ++ debug(trace) + { + writeln("instantiating TestImage"); + } +diff --git a/demos/gtkD/TestWindow/TestScales.d b/demos/gtkD/TestWindow/TestScales.d +--- a/demos/gtkD/TestWindow/TestScales.d ++++ b/demos/gtkD/TestWindow/TestScales.d +@@ -53,7 +53,7 @@ class TestScales : Table //, MenuItemListener + this() + { + +- debug(1) ++ debug(trace) + { + writeln("instantiating TestScales"); + } +diff --git a/demos/gtkD/TestWindow/TestStock.d b/demos/gtkD/TestWindow/TestStock.d +--- a/demos/gtkD/TestWindow/TestStock.d ++++ b/demos/gtkD/TestWindow/TestStock.d +@@ -43,7 +43,7 @@ class TestStock : ScrolledWindow + this() + { + super(null, null); +- debug(1) ++ debug(trace) + { + writeln("instantiating TestStock"); + } +diff --git a/demos/gtkD/TestWindow/TestText.d b/demos/gtkD/TestWindow/TestText.d +--- a/demos/gtkD/TestWindow/TestText.d ++++ b/demos/gtkD/TestWindow/TestText.d +@@ -40,7 +40,7 @@ class TestText : VBox + + super(false,0); + +- debug(1) ++ debug(trace) + { + writeln("instantiating TestText"); + } +diff --git a/demos/gtkD/TestWindow/TestThemes.d b/demos/gtkD/TestWindow/TestThemes.d +--- a/demos/gtkD/TestWindow/TestThemes.d ++++ b/demos/gtkD/TestWindow/TestThemes.d +@@ -39,7 +39,7 @@ class TestThemes : VBox + this(Window window) + { + this.window = window; +- debug(1) ++ debug(trace) + { + writeln("instantiating TestThemes"); + } diff --git a/dev-libs/gtkd/gtkd-3.10.0-r2.ebuild b/dev-libs/gtkd/gtkd-3.10.0-r2.ebuild index 71f5905..418133a 100644 --- a/dev-libs/gtkd/gtkd-3.10.0-r2.ebuild +++ b/dev-libs/gtkd/gtkd-3.10.0-r2.ebuild @@ -14,7 +14,7 @@ SLOT="3" KEYWORDS="~amd64 ~arm64 ~x86" MULTILIB_COMPAT=( abi_x86_{32,64} ) -DLANG_COMPAT=( dmd-2_{106..109} gdc-1{3,4} ldc2-1_{35..40} ) +DLANG_COMPAT=( dmd-2_{106..111} gdc-1{3..5} ldc2-1_{35..40} ) declare -A DLANG_REQ_USE=( [dmd]="${MULTILIB_USEDEP}" [gdc]="" @@ -49,6 +49,10 @@ IUSE="${GTKD_USE_FLAGS[@]:1} static-libs test" RESTRICT="!test? ( test )" REQUIRED_USE=${DLANG_REQUIRED_USE} +PATCHES=( + "${FILESDIR}/tests-fix-debug-integer-pr-361.patch" +) + MAJOR=$(ver_cut 1) MINOR=$(ver_cut 2-)
