From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Jan 31 02:30:09 2012 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 A8E591065675 for ; Tue, 31 Jan 2012 02:30:09 +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 771488FC17 for ; Tue, 31 Jan 2012 02:30:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q0V2U94j064249 for ; Tue, 31 Jan 2012 02:30:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q0V2U9cR064248; Tue, 31 Jan 2012 02:30:09 GMT (envelope-from gnats) Resent-Date: Tue, 31 Jan 2012 02:30:09 GMT Resent-Message-Id: <201201310230.q0V2U9cR064248@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, Jyun-Yan You Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6A4A51065675 for ; Tue, 31 Jan 2012 02:28:52 +0000 (UTC) (envelope-from jyyou@cs.nctu.edu.tw) Received: from csmailer.cs.nctu.edu.tw (csmailer.cs.nctu.edu.tw [140.113.235.130]) by mx1.freebsd.org (Postfix) with ESMTP id 23EB08FC16 for ; Tue, 31 Jan 2012 02:28:51 +0000 (UTC) Received: from csmailer.cs.nctu.edu.tw (localhost [127.0.0.1]) by csmailer.cs.nctu.edu.tw (Postfix) with ESMTP id 8E7D67B8; Tue, 31 Jan 2012 10:25:42 +0800 (CST) Received: from csduty.cs.nctu.edu.tw (csduty [140.113.235.102]) by csmailer.cs.nctu.edu.tw (Postfix) with ESMTP id 885DF7B7; Tue, 31 Jan 2012 10:25:42 +0800 (CST) Received: (from jyyou@localhost) by csduty.cs.nctu.edu.tw (8.14.4/8.14.4/Submit) id q0V2SoE8074653; Tue, 31 Jan 2012 10:28:50 +0800 (CST) (envelope-from jyyou) Message-Id: <201201310228.q0V2SoE8074653@csduty.cs.nctu.edu.tw> Date: Tue, 31 Jan 2012 10:28:50 +0800 (CST) From: Jyun-Yan You To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: jgh@FreeBSD.org Subject: ports/164654: [PATCH] devel/libunwind: fix building errors on 10-CURRENT/amd64 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: Tue, 31 Jan 2012 02:30:09 -0000 >Number: 164654 >Category: ports >Synopsis: [PATCH] devel/libunwind: fix building errors on 10-CURRENT/amd64 >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: Tue Jan 31 02:30:08 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Jyun-Yan You >Release: FreeBSD 8.2-RELEASE-p3 amd64 >Organization: >Environment: System: FreeBSD csduty.cs.nctu.edu.tw 8.2-RELEASE-p3 FreeBSD 8.2-RELEASE-p3 #0: Tue Sep 27 18:45:57 UTC 2011 >Description: This is a workaround that makes libunwind can be built on 10-CURRENT/amd64. A better approach is to change the return type of __getcontextx_size in ucontext.h. (https://gist.github.com/1708305) jgh@ wants this. Added file(s): - files/patch-src__x86_64__Gos-freebsd.c Generated with FreeBSD Port Tools 0.99 >How-To-Repeat: >Fix: --- libunwind-20110911_1.patch begins here --- diff -ruN --exclude=CVS /usr/ports/devel/libunwind/Makefile /amd/gcs/98/9855518/src/ports/devel/libunwind/Makefile --- /usr/ports/devel/libunwind/Makefile 2011-11-18 09:09:28.000000000 +0800 +++ /amd/gcs/98/9855518/src/ports/devel/libunwind/Makefile 2012-01-31 10:02:37.230107000 +0800 @@ -7,6 +7,7 @@ PORTNAME= libunwind PORTVERSION= 20110911 # This is actually official libunwind 1.0.1 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= SAVANNAH DISTNAME= ${PORTNAME}-1.0.1 diff -ruN --exclude=CVS /usr/ports/devel/libunwind/files/patch-src__x86_64__Gos-freebsd.c /amd/gcs/98/9855518/src/ports/devel/libunwind/files/patch-src__x86_64__Gos-freebsd.c --- /usr/ports/devel/libunwind/files/patch-src__x86_64__Gos-freebsd.c 1970-01-01 08:00:00.000000000 +0800 +++ /amd/gcs/98/9855518/src/ports/devel/libunwind/files/patch-src__x86_64__Gos-freebsd.c 2012-01-31 10:02:37.210135000 +0800 @@ -0,0 +1,13 @@ +--- src/x86_64/Gos-freebsd.c.orig 2012-01-31 09:27:19.899804763 +0800 ++++ src/x86_64/Gos-freebsd.c 2012-01-31 09:30:23.568902767 +0800 +@@ -26,6 +26,10 @@ + #include "config.h" + #endif + ++#if __FreeBSD__ > 9 ++#include ++#endif ++ + #include + #include + #include --- libunwind-20110911_1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: