Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Jul 2023 13:26:24 GMT
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 57580de7d027 - main - games/darkplaces: unbreak the port's build against Clang 16
Message-ID:  <202307041326.364DQOj8017109@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by danfe:

URL: https://cgit.FreeBSD.org/ports/commit/?id=57580de7d0270a019295fc30707f7b8bb16dea53

commit 57580de7d0270a019295fc30707f7b8bb16dea53
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2023-07-04 13:20:14 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2023-07-04 13:20:14 +0000

    games/darkplaces: unbreak the port's build against Clang 16
    
    Recent versions of GCC (11+) and Clang (16+) got more strict about
    attribute placing, e.g. alignment annotation must be attached to a
    struct, not its typedef'ed alias.
    
    Reported by:    pkg-fallout
    Obtained from:  Gentoo Linux
---
 games/darkplaces/Makefile | 4 ++++
 games/darkplaces/distinfo | 2 ++
 2 files changed, 6 insertions(+)

diff --git a/games/darkplaces/Makefile b/games/darkplaces/Makefile
index f448e3048dda..2126ed4d622d 100644
--- a/games/darkplaces/Makefile
+++ b/games/darkplaces/Makefile
@@ -4,6 +4,10 @@ CATEGORIES=	games
 MASTER_SITES=	http://icculus.org/twilight/darkplaces/files/
 DISTNAME=	${PORTNAME}engine${DISTVERSION}
 
+PATCH_SITES=	https://gitweb.gentoo.org/repo/gentoo.git/plain/games-fps/darkplaces/files/:gentoo \
+		https://raw.githubusercontent.com/gentoo/gentoo/master/games-fps/darkplaces/files/:gentoo
+PATCHFILES=	darkplaces-20140513-gcc-11.patch:-p1:gentoo
+
 MAINTAINER=	danfe@FreeBSD.org
 COMMENT=	Quake engine modification
 WWW=		https://icculus.org/twilight/darkplaces/
diff --git a/games/darkplaces/distinfo b/games/darkplaces/distinfo
index bb05c04dd0ec..e79d6ab25dd0 100644
--- a/games/darkplaces/distinfo
+++ b/games/darkplaces/distinfo
@@ -1,3 +1,5 @@
 TIMESTAMP = 1523571096
 SHA256 (darkplacesengine20180412beta1.zip) = 651b3ea5daf07331340b51192f538939a59d44b7d7e3dee8227b7a7546ffd0c8
 SIZE (darkplacesengine20180412beta1.zip) = 29175480
+SHA256 (darkplaces-20140513-gcc-11.patch) = 0a6abc8d5c6752a143015b75d7d1b942c0e0cc7c17ddbc2ee846baa82a6350ab
+SIZE (darkplaces-20140513-gcc-11.patch) = 1432



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202307041326.364DQOj8017109>