From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Aug 23 18:20:01 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 0346261E for ; Fri, 23 Aug 2013 18:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D79D92940 for ; Fri, 23 Aug 2013 18:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r7NIK09G018651 for ; Fri, 23 Aug 2013 18:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7NIK04R018650; Fri, 23 Aug 2013 18:20:00 GMT (envelope-from gnats) Resent-Date: Fri, 23 Aug 2013 18:20:00 GMT Resent-Message-Id: <201308231820.r7NIK04R018650@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, chris petrik Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id B319F3A6 for ; Fri, 23 Aug 2013 18:16:47 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A085A290B for ; Fri, 23 Aug 2013 18:16:47 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r7NIGlQ7007380 for ; Fri, 23 Aug 2013 18:16:47 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r7NIGlS6007371; Fri, 23 Aug 2013 18:16:47 GMT (envelope-from nobody) Message-Id: <201308231816.r7NIGlS6007371@oldred.freebsd.org> Date: Fri, 23 Aug 2013 18:16:47 GMT From: chris petrik To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/181491: [PATCH] update devel/clanlib to 2.3.7 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Aug 2013 18:20:01 -0000 >Number: 181491 >Category: ports >Synopsis: [PATCH] update devel/clanlib to 2.3.7 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Fri Aug 23 18:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: chris petrik >Release: >Organization: bsdjunk >Environment: >Description: Update to 2.3.7 >How-To-Repeat: >Fix: Patch attached with submission follows: Index: clanlib/Makefile =================================================================== --- clanlib/Makefile (revision 325046) +++ clanlib/Makefile (working copy) @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= clanlib -PORTVERSION= 2.3.6 -PORTREVISION= 1 +PORTVERSION= 2.3.7 PORTEPOCH= 1 CATEGORIES= devel MASTER_SITES= http://www.clanlib.org/download/releases-2.0/ @@ -21,7 +20,8 @@ mikmod:${PORTSDIR}/audio/libmikmod \ vorbis:${PORTSDIR}/audio/libvorbis \ fontconfig:${PORTSDIR}/x11-fonts/fontconfig \ - pcre:${PORTSDIR}/devel/pcre + pcre:${PORTSDIR}/devel/pcre \ + execinfo:${PORTSDIR}/devel/libexecinfo USE_GMAKE= yes USE_GCC= yes @@ -56,5 +56,10 @@ post-patch: @${REINPLACE_CMD} -e 's|LIBS="-lsqlite3 -ldl"|LIBS="-lsqlite3"|g' \ ${WRKSRC}/configure - + @${REINPLACE_CMD} -e '114 s|/proc/self/exe|/proc/curproc/file|g' \ + ${WRKSRC}/Sources/Core/System/Unix/init_linux.cpp + @${REINPLACE_CMD} -e 's|APPLE|FreeBSD|g' \ + ${WRKSRC}/Sources/Core/System/system.cpp + @${REINPLACE_CMD} -e '47 s|#ifndef __FreeBSD__|#if !defined(__FreeBSD__)|g' \ + ${WRKSRC}/Sources/Core/System/system.cpp .include Index: clanlib/distinfo =================================================================== --- clanlib/distinfo (revision 325046) +++ clanlib/distinfo (working copy) @@ -1,2 +1,2 @@ -SHA256 (ClanLib-2.3.6.tgz) = b8dc9b41028bf16c0a6082aa15cdee5d8b1ecd5256797576970f09a63e3fafde -SIZE (ClanLib-2.3.6.tgz) = 25605576 +SHA256 (ClanLib-2.3.7.tgz) = d46127c08103f48d15936ceb9f95b3dfb1ff8ccba667cef1b3f8e639cb2601c2 +SIZE (ClanLib-2.3.7.tgz) = 26132425 Index: clanlib/files/patch-Sources__Core__System__Unix__init_linux.cpp =================================================================== --- clanlib/files/patch-Sources__Core__System__Unix__init_linux.cpp (revision 325046) +++ clanlib/files/patch-Sources__Core__System__Unix__init_linux.cpp (working copy) @@ -1,11 +0,0 @@ ---- ./Sources/Core/System/Unix/init_linux.cpp.orig 2012-03-05 06:24:31.000000000 -0500 -+++ ./Sources/Core/System/Unix/init_linux.cpp 2012-09-25 07:42:19.000000000 -0400 -@@ -111,7 +111,7 @@ - - #else - #ifndef PROC_EXE_PATH --#define PROC_EXE_PATH "/proc/self/exe" -+#define PROC_EXE_PATH "/proc/curproc/file" - #endif - int size; - struct stat sb; Index: clanlib/files/patch-Sources__Core__System__system.cpp =================================================================== --- clanlib/files/patch-Sources__Core__System__system.cpp (revision 325046) +++ clanlib/files/patch-Sources__Core__System__system.cpp (working copy) @@ -1,34 +0,0 @@ ---- ./Sources/Core/System/system.cpp.orig 2012-09-25 07:46:49.000000000 -0400 -+++ ./Sources/Core/System/system.cpp 2012-09-25 07:57:19.000000000 -0400 -@@ -1,3 +1,4 @@ -+ - /* - ** ClanLib SDK - ** Copyright (c) 1997-2011 The ClanLib Team -@@ -44,7 +45,7 @@ - #include - #endif - --#ifndef __APPLE__ -+#if !(defined(__APPLE__) || defined(__FreeBSD__)) - #include - #endif - #include -@@ -128,7 +129,7 @@ - *out_hash = 0; - return capturedFrames; - --#elif !defined(__APPLE__) -+#elif !(defined(__APPLE__) || defined(__FreeBSD__)) - // Ensure the output is cleared - memset(out_frames, 0, (sizeof(void *)) * max_frames); - -@@ -188,7 +189,7 @@ - SymCleanup(GetCurrentProcess()); - return backtrace_text; - --#elif !defined(__APPLE__) -+#elif !(defined(__APPLE__) || defined(__FreeBSD__)) - - char **strings; - strings = backtrace_symbols(frames, num_frames); >Release-Note: >Audit-Trail: >Unformatted: