From owner-svn-ports-all@FreeBSD.ORG Wed Apr 22 21:50:35 2015 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E9DAD340; Wed, 22 Apr 2015 21:50:34 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D7D411A85; Wed, 22 Apr 2015 21:50:34 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t3MLoYq2063569; Wed, 22 Apr 2015 21:50:34 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t3MLoYAb063565; Wed, 22 Apr 2015 21:50:34 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201504222150.t3MLoYAb063565@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Wed, 22 Apr 2015 21:50:34 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r384522 - in head/games/netradiant: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Apr 2015 21:50:35 -0000 Author: amdmi3 Date: Wed Apr 22 21:50:33 2015 New Revision: 384522 URL: https://svnweb.freebsd.org/changeset/ports/384522 Log: - Fix build on 64 bit architectures (cast from pointer to int loses precision) - Drop @dirrm* from plist Approved by: portmgr blanket Modified: head/games/netradiant/files/patch-radiant_treemodel.cpp head/games/netradiant/pkg-plist Modified: head/games/netradiant/files/patch-radiant_treemodel.cpp ============================================================================== --- head/games/netradiant/files/patch-radiant_treemodel.cpp Wed Apr 22 21:29:21 2015 (r384521) +++ head/games/netradiant/files/patch-radiant_treemodel.cpp Wed Apr 22 21:50:33 2015 (r384522) @@ -9,7 +9,7 @@ + // well-defined C++ code, and Clang will assume that comparison + // below always evaluates to true, resulting in segmentation + // fault. Use a dirty hack to force Clang to check for null. -+ volatile int n = (int)&node; ++ volatile intptr_t n = (intptr_t)&node; + if ( n != 0 ) { Nameable* nameable = Node_getNameable( node ); if ( nameable != 0 ) { @@ -19,7 +19,7 @@ } void node_detach_name_changed_callback( scene::Node& node, const NameCallback& callback ){ - if ( &node != 0 ) { -+ volatile int n = (int)&node; // see the comment on line 650 ++ volatile intptr_t n = (intptr_t)&node; // see the comment on line 650 + if ( n != 0 ) { Nameable* nameable = Node_getNameable( node ); if ( nameable != 0 ) { @@ -29,7 +29,7 @@ const char* node_get_name_safe( scene::Node& node ){ - if ( &node == 0 ) { -+ volatile int n = (int)&node; // see the comment on line 650 ++ volatile intptr_t n = (intptr_t)&node; // see the comment on line 650 + if ( n == 0 ) { return ""; } @@ -39,7 +39,7 @@ void node_attach_name_changed_callback( scene::Node& node, const NameCallback& callback ){ - if ( &node != 0 ) { -+ volatile int n = (int)&node; // see the comment on line 650 ++ volatile intptr_t n = (intptr_t)&node; // see the comment on line 650 + if ( n != 0 ) { Nameable* nameable = Node_getNameable( node ); if ( nameable != 0 ) { @@ -49,7 +49,7 @@ } void node_detach_name_changed_callback( scene::Node& node, const NameCallback& callback ){ - if ( &node != 0 ) { -+ volatile int n = (int)&node; // see the comment on line 650 ++ volatile intptr_t n = (intptr_t)&node; // see the comment on line 650 + if ( n != 0 ) { Nameable* nameable = Node_getNameable( node ); if ( nameable != 0 ) { Modified: head/games/netradiant/pkg-plist ============================================================================== --- head/games/netradiant/pkg-plist Wed Apr 22 21:29:21 2015 (r384521) +++ head/games/netradiant/pkg-plist Wed Apr 22 21:50:33 2015 (r384522) @@ -171,25 +171,3 @@ man/man6/q3map2.6.gz %%DATADIR%%/xonotic.game/data/entities.ent %%DATADIR%%/xonotic.game/default_build_menu.xml %%DATADIR%%/xonotic.game/game.xlink -@dirrm %%DATADIR%%/xonotic.game/data -@dirrm %%DATADIR%%/xonotic.game -@dirrm %%DATADIR%%/warsow.game/basewsw -@dirrm %%DATADIR%%/warsow.game -@dirrm %%DATADIR%%/q1.game/id1 -@dirrm %%DATADIR%%/q1.game -@dirrm %%DATADIR%%/plugins/bt -@dirrm %%DATADIR%%/plugins/bitmaps -@dirrm %%DATADIR%%/plugins -@dirrm %%DATADIR%%/osirion.game/base -@dirrm %%DATADIR%%/osirion.game -@dirrm %%DATADIR%%/nexuiz.game/data -@dirrm %%DATADIR%%/nexuiz.game -@dirrm %%DATADIR%%/modules -@dirrm %%DATADIR%%/heretic2 -@dirrm %%DATADIR%%/gl -@dirrm %%DATADIR%%/games -@dirrm %%DATADIR%%/docs -@dirrm %%DATADIR%%/darkplaces.game/id1 -@dirrm %%DATADIR%%/darkplaces.game -@dirrm %%DATADIR%%/bitmaps -@dirrm %%DATADIR%%