From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Jun 20 19:40:04 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EE82B1065675 for ; Sat, 20 Jun 2009 19:40:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C62738FC14 for ; Sat, 20 Jun 2009 19:40:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n5KJe4M4029601 for ; Sat, 20 Jun 2009 19:40:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n5KJe4bj029600; Sat, 20 Jun 2009 19:40:04 GMT (envelope-from gnats) Resent-Date: Sat, 20 Jun 2009 19:40:04 GMT Resent-Message-Id: <200906201940.n5KJe4bj029600@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, Sylvio Cesar Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5A063106564A; Sat, 20 Jun 2009 19:32:14 +0000 (UTC) (envelope-from scjamorim@bsd.com.br) Received: from mail-gx0-f207.google.com (mail-gx0-f207.google.com [209.85.217.207]) by mx1.freebsd.org (Postfix) with ESMTP id 0A8098FC0C; Sat, 20 Jun 2009 19:32:13 +0000 (UTC) (envelope-from scjamorim@bsd.com.br) Received: by gxk3 with SMTP id 3so3548541gxk.19 for ; Sat, 20 Jun 2009 12:32:13 -0700 (PDT) Received: by 10.90.105.17 with SMTP id d17mr3439520agc.92.1245526333208; Sat, 20 Jun 2009 12:32:13 -0700 (PDT) Received: from freecontrib.vida.br (187-24-130-199.3g.claro.net.br [187.24.130.199]) by mx.google.com with ESMTPS id 11sm2609077aga.30.2009.06.20.12.32.10 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 20 Jun 2009 12:32:12 -0700 (PDT) Received: by freecontrib.vida.br (Postfix, from userid 0) id 482A6F8F08; Sat, 20 Jun 2009 15:48:58 -0300 (BRT) Message-Id: <20090620184858.482A6F8F08@freecontrib.vida.br> Date: Sat, 20 Jun 2009 15:48:58 -0300 (BRT) From: Sylvio Cesar To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: araujo@FreeBSD.org Subject: ports/135868: [PATCH] science/elmerpost: Fix problem with patch. X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jun 2009 19:40:05 -0000 >Number: 135868 >Category: ports >Synopsis: [PATCH] science/elmerpost: Fix problem with patch. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Jun 20 19:40:04 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Sylvio Cesar >Release: FreeBSD 7.2-RELEASE i386 >Organization: >Environment: System: FreeBSD freecontrib.vida.br 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May 1 08:49:13 UTC >Description: - Fix problem in the mark broken with patch - Changed Makefile - Take maintainership Added file(s): - files/patch-context.cc - files/patch-file.cc Port maintainer (araujo@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- elmerpost-5.4.0_5.patch begins here --- Index: Makefile =================================================================== RCS file: /home/ncvs/ports/science/elmerpost/Makefile,v retrieving revision 1.21 diff -u -u -r1.21 Makefile --- Makefile 16 Mar 2009 08:43:58 -0000 1.21 +++ Makefile 20 Jun 2009 19:26:15 -0000 @@ -29,10 +29,11 @@ ALL_TARGET= USE_FORTRAN= yes - -BROKEN= Latest version fails to compile +USE_C++= yes .include +post-patch: + (ln -sf /usr/include/c++/4.2/backward/iostream.h ${LOCALBASE}/include/iostream.h) && (ln -sf /usr/include/c++/4.2/backward/fstream.h ${LOCALBASE}/include/fstream.h) .if ${ARCH} == "amd64" BROKEN= Does not compile on amd64 Index: files/patch-context.cc =================================================================== RCS file: files/patch-context.cc diff -N files/patch-context.cc --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-context.cc 20 Jun 2009 19:26:15 -0000 @@ -0,0 +1,18 @@ +--- src/camera/context.cc 2007-09-26 08:01:37.000000000 -0300 ++++ src/camera/context.cc.mov 2009-06-20 15:26:26.000000000 -0300 +@@ -120,7 +120,6 @@ + + colorsize = size; + colormap = new GLPrgba[size]; +- memcpy(colormap, rgba, size * sizeof(GLPrgba)); + + // You'd put any other 'start page' things here... + +@@ -352,7 +351,6 @@ + newprim->right = NULL; + newprim->shade = shade; + newprim->num_verts = num_verts; +- memcpy( newprim->verts, verts, sizeof(GLPvertex) * num_verts ); + + min[0] = min[1] = min[2] = 1e20; + max[0] = max[1] = max[2] = -1e20; Index: files/patch-file.cc =================================================================== RCS file: files/patch-file.cc diff -N files/patch-file.cc --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-file.cc 20 Jun 2009 19:26:15 -0000 @@ -0,0 +1,11 @@ +--- src/camera/file.cc 2007-09-26 08:01:37.000000000 -0300 ++++ src/camera/file.cc.mod 2009-06-20 15:21:42.000000000 -0300 +@@ -486,8 +486,6 @@ + text->r = r; + text->g = g; + text->b = b; +- text->string = (char *)malloc( strlen(string)+1 ); +- strncpy( text->string, string, strlen(string)+1 ); + } + + // --- elmerpost-5.4.0_5.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: