From 348cbf9ba12fe9537527bfdbd6ee55397590e07f Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Sat, 18 Sep 2021 16:41:29 -0400 Subject: games-puzzle/quadra: clang build fix Closes: https://bugs.gentoo.org/730862 Signed-off-by: Ionen Wolkens --- games-puzzle/quadra/files/quadra-1.3.0-clang.patch | 10 ++++++++++ games-puzzle/quadra/quadra-1.3.0.ebuild | 4 ++++ 2 files changed, 14 insertions(+) create mode 100644 games-puzzle/quadra/files/quadra-1.3.0-clang.patch (limited to 'games-puzzle') diff --git a/games-puzzle/quadra/files/quadra-1.3.0-clang.patch b/games-puzzle/quadra/files/quadra-1.3.0-clang.patch new file mode 100644 index 000000000000..07fda7ba02dd --- /dev/null +++ b/games-puzzle/quadra/files/quadra-1.3.0-clang.patch @@ -0,0 +1,10 @@ +https://bugs.gentoo.org/730862 +--- a/source/update.cc ++++ b/source/update.cc +@@ -87,4 +87,4 @@ + buf.resize(0); +- buf.append("GET "UPDATE_PATH" HTTP/1.0\r\n"); +- buf.append("Host: "UPDATE_HOST"\r\n"); ++ buf.append("GET " UPDATE_PATH " HTTP/1.0\r\n"); ++ buf.append("Host: " UPDATE_HOST "\r\n"); + buf.append("Connection: close\r\n"); diff --git a/games-puzzle/quadra/quadra-1.3.0.ebuild b/games-puzzle/quadra/quadra-1.3.0.ebuild index d682ec7d3d49..f06e6e9da9b9 100644 --- a/games-puzzle/quadra/quadra-1.3.0.ebuild +++ b/games-puzzle/quadra/quadra-1.3.0.ebuild @@ -20,6 +20,10 @@ RDEPEND=" sys-libs/zlib" DEPEND="${RDEPEND}" +PATCHES=( + "${FILESDIR}"/${P}-clang.patch +) + src_prepare() { default sed -i -e "/^datagamesdir/s|\/games|\/${PN}|" Makefile.am || die -- cgit v1.2.3-65-gdbad