From daae655c343abfc4e6da6c786fe2fa09804efd20 Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Tue, 4 Jan 2022 03:28:17 -0500 Subject: [PATCH] games-simulation/crrcsim: fix build with clang Closes: https://bugs.gentoo.org/830572 Signed-off-by: Ionen Wolkens --- games-simulation/crrcsim/crrcsim-0.9.13-r2.ebuild | 3 ++- .../crrcsim/files/crrcsim-0.9.13-clang.patch | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 games-simulation/crrcsim/files/crrcsim-0.9.13-clang.patch diff --git a/games-simulation/crrcsim/crrcsim-0.9.13-r2.ebuild b/games-simulation/crrcsim/crrcsim-0.9.13-r2.ebuild index 2885d6f78f0c2..3acdebc8c4e83 100644 --- a/games-simulation/crrcsim/crrcsim-0.9.13-r2.ebuild +++ b/games-simulation/crrcsim/crrcsim-0.9.13-r2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -29,6 +29,7 @@ DEPEND=" PATCHES=( "${FILESDIR}"/${P}-gcc6.patch "${FILESDIR}"/${P}-overlink.patch + "${FILESDIR}"/${P}-clang.patch ) DOCS=( AUTHORS HISTORY ) diff --git a/games-simulation/crrcsim/files/crrcsim-0.9.13-clang.patch b/games-simulation/crrcsim/files/crrcsim-0.9.13-clang.patch new file mode 100644 index 0000000000000..967d51d7239de --- /dev/null +++ b/games-simulation/crrcsim/files/crrcsim-0.9.13-clang.patch @@ -0,0 +1,10 @@ +https://bugs.gentoo.org/830572 +--- a/src/mod_fdm_config.h ++++ b/src/mod_fdm_config.h +@@ -36,5 +36,5 @@ + #define MOD_FDM_USE_MCOPTER01 1 + +-#define MOD_FDM_INFOSTR "CRRCSim "PACKAGE_VERSION ++#define MOD_FDM_INFOSTR "CRRCSim " PACKAGE_VERSION + +