summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-05-27 14:55:16 +0100
committerSam James <sam@gentoo.org>2024-05-27 14:55:31 +0100
commitc41061e9e847b8e02295e2290efafd5ccd3d572f (patch)
tree19faa878037895b1ab10e14b0af4548155c1dbbe /media-sound
parentdev-python/watchfiles: Bump to 0.22.0 (diff)
downloadgentoo-c41061e9e847b8e02295e2290efafd5ccd3d572f.tar.gz
gentoo-c41061e9e847b8e02295e2290efafd5ccd3d572f.tar.bz2
gentoo-c41061e9e847b8e02295e2290efafd5ccd3d572f.zip
media-sound/milkytracker: fix build w/ >= GCC 13 (?)
We need C++11 here, not C++98. Closes: https://bugs.gentoo.org/909761 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-sound')
-rw-r--r--media-sound/milkytracker/files/milkytracker-1.04.00-cxx-std.patch15
-rw-r--r--media-sound/milkytracker/milkytracker-1.04.00-r1.ebuild1
2 files changed, 16 insertions, 0 deletions
diff --git a/media-sound/milkytracker/files/milkytracker-1.04.00-cxx-std.patch b/media-sound/milkytracker/files/milkytracker-1.04.00-cxx-std.patch
new file mode 100644
index 000000000000..1e8037023a38
--- /dev/null
+++ b/media-sound/milkytracker/files/milkytracker-1.04.00-cxx-std.patch
@@ -0,0 +1,15 @@
+https://github.com/milkytracker/MilkyTracker/pull/328
+https://bugs.gentoo.org/909761
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -22,8 +22,8 @@
+ cmake_minimum_required(VERSION 3.10)
+ project(MilkyTracker)
+
+-# Set C++ standard to C++98
+-set(CMAKE_CXX_STANDARD 98)
++# Set C++ standard to C++11
++set(CMAKE_CXX_STANDARD 11)
+ set(CMAKE_CXX_EXTENSIONS OFF)
+
+ # Enable IDE solution folders
diff --git a/media-sound/milkytracker/milkytracker-1.04.00-r1.ebuild b/media-sound/milkytracker/milkytracker-1.04.00-r1.ebuild
index aa271bf6bf5c..78160baf76fe 100644
--- a/media-sound/milkytracker/milkytracker-1.04.00-r1.ebuild
+++ b/media-sound/milkytracker/milkytracker-1.04.00-r1.ebuild
@@ -28,6 +28,7 @@ DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}"/${P}-wreturn-type.patch
+ "${FILESDIR}"/${PN}-1.04.00-cxx-std.patch
)
src_prepare() {