NetBSD Problem Report #51566

From www@NetBSD.org  Thu Oct 20 20:24:58 2016
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 6C5587A28E
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 20 Oct 2016 20:24:58 +0000 (UTC)
Message-Id: <20161020202457.7E5B07A2C1@mollari.NetBSD.org>
Date: Thu, 20 Oct 2016 20:24:57 +0000 (UTC)
From: js-pkgsrc@heap.zone
Reply-To: js-pkgsrc@heap.zone
To: gnats-bugs@NetBSD.org
Subject: Compilation fix for games/arx-fatalis on macOS Sierra
X-Send-Pr-Version: www-1.0

>Number:         51566
>Category:       pkg
>Synopsis:       Compilation fix for games/arx-fatalis on macOS Sierra
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    maya
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 20 20:25:00 +0000 2016
>Closed-Date:    Sun Oct 30 10:26:39 +0000 2016
>Last-Modified:  Mon Oct 31 05:14:13 +0000 2016
>Originator:     Jonathan Schleifer
>Release:        HEAD
>Organization:
>Environment:
>Description:

>How-To-Repeat:

>Fix:
diff --git a/games/arx-libertatis/distinfo b/games/arx-libertatis/distinfo
index 303de4e..0ea8ac0 100644
--- a/games/arx-libertatis/distinfo
+++ b/games/arx-libertatis/distinfo
@@ -10,4 +10,5 @@ SHA1 (patch-cmake_VersionString.cmake) = afff2ae36425f3ffe0e1679d28e48ff4b6fc3d6
 SHA1 (patch-src_graphics_opengl_OpenGLRenderer.cpp) = 410769fea6b911dcb283b1da85bebd2861de8d94
 SHA1 (patch-src_io_fs_FilesystemPOSIX.cpp) = 96f1938038c667997350f51a2bb201de0c9843e3
 SHA1 (patch-src_platform_Thread.cpp) = 38e31c77c9e6e795cb37842da82b5ed6681f6aea
+SHA1 (patch-src_platform_Time.cpp) = b69afc8803b750b0441abe78b0f38672f2315b54
 SHA1 (patch-src_script_Script.cpp) = 29a923b5254077e2dc2cd73f69afb89025ef7012
diff --git a/games/arx-libertatis/patches/patch-src_platform_Time.cpp b/games/arx-libertatis/patches/patch-src_platform_Time.cpp
new file mode 100644
index 0000000..49d6cf0
--- /dev/null
+++ b/games/arx-libertatis/patches/patch-src_platform_Time.cpp
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- src/platform/Time.cpp.orig	2016-10-20 20:16:48.000000000 +0000
++++ src/platform/Time.cpp
+@@ -29,7 +29,7 @@ namespace Time {
+ 
+ #include <time.h>
+ 
+-static clock_t clock_id = CLOCK_REALTIME;
++static clockid_t clock_id = CLOCK_REALTIME;
+ 
+ void init() {
+ 	

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->maya
Responsible-Changed-By: maya@NetBSD.org
Responsible-Changed-When: Sun, 30 Oct 2016 10:26:39 +0000
Responsible-Changed-Why:
take

From: "Maya Rashish" <maya@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/51556 CVS commit: pkgsrc/games/arx-libertatis
Date: Sun, 30 Oct 2016 10:25:31 +0000

 Module Name:	pkgsrc
 Committed By:	maya
 Date:		Sun Oct 30 10:25:31 UTC 2016

 Modified Files:
 	pkgsrc/games/arx-libertatis: distinfo
 Added Files:
 	pkgsrc/games/arx-libertatis/patches: patch-src_platform_Time.cpp

 Log Message:
 arx-libertatis: apply upstream commit which fixes build on OS X

 Use correct parameter type for clock_gettime

 Also from Jonathan Schleifer in PR pkg/51556


 To generate a diff of this commit:
 cvs rdiff -u -r1.1 -r1.2 pkgsrc/games/arx-libertatis/distinfo
 cvs rdiff -u -r0 -r1.1 \
     pkgsrc/games/arx-libertatis/patches/patch-src_platform_Time.cpp

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Sun, 30 Oct 2016 10:26:39 +0000
State-Changed-Why:
Applied, thanks. let me know if there are further issues with this
package - I'm unable to test it (I don't have the game data).


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.