From owner-svn-ports-all@freebsd.org Thu Jan 2 23:30:08 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7F6A61DEC63; Thu, 2 Jan 2020 23:30:08 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47pkm02rmQz4837; Thu, 2 Jan 2020 23:30:08 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5C729231C6; Thu, 2 Jan 2020 23:30:08 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 002NU8DN047359; Thu, 2 Jan 2020 23:30:08 GMT (envelope-from pkubaj@FreeBSD.org) Received: (from pkubaj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 002NU8pq047358; Thu, 2 Jan 2020 23:30:08 GMT (envelope-from pkubaj@FreeBSD.org) Message-Id: <202001022330.002NU8pq047358@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pkubaj set sender to pkubaj@FreeBSD.org using -f From: Piotr Kubaj Date: Thu, 2 Jan 2020 23:30:08 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r521886 - in branches/2020Q1/games/eboard: . files X-SVN-Group: ports-branches X-SVN-Commit-Author: pkubaj X-SVN-Commit-Paths: in branches/2020Q1/games/eboard: . files X-SVN-Commit-Revision: 521886 X-SVN-Commit-Repository: ports 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.29 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: Thu, 02 Jan 2020 23:30:08 -0000 Author: pkubaj Date: Thu Jan 2 23:30:07 2020 New Revision: 521886 URL: https://svnweb.freebsd.org/changeset/ports/521886 Log: MFH: r521885 games/eboard: fix build on GCC architectures Use C++11 compiler and respect CXXFLAGS. The compiler check is wrong so remove it. Approved by: portmgr (fix build blanket) Modified: branches/2020Q1/games/eboard/Makefile branches/2020Q1/games/eboard/files/patch-configure Directory Properties: branches/2020Q1/ (props changed) Modified: branches/2020Q1/games/eboard/Makefile ============================================================================== --- branches/2020Q1/games/eboard/Makefile Thu Jan 2 23:29:17 2020 (r521885) +++ branches/2020Q1/games/eboard/Makefile Thu Jan 2 23:30:07 2020 (r521886) @@ -19,7 +19,7 @@ COMMENT= GTK+ chess board interface (mainly for FICS a LIB_DEPENDS= libpng.so:graphics/png EXTRAS= 1pl2 2 -USES= gnome perl5 pkgconfig shebangfix tar:bzip2 +USES= compiler:c++11-lang gnome perl5 pkgconfig shebangfix tar:bzip2 HAS_CONFIGURE= yes USE_PERL5= build USE_GNOME= gtk20 @@ -51,7 +51,7 @@ post-extract: .endfor post-patch: - @${REINPLACE_CMD} -e 's,g++,${CXX},' -e 's,-O6,${CXXFLAGS},' \ + @${REINPLACE_CMD} -e 's,g++,${CXX},' -e 's|-O6|${CXXFLAGS}|' \ ${WRKSRC}/configure .if empty(PORT_OPTIONS:MJOYSTICK) Modified: branches/2020Q1/games/eboard/files/patch-configure ============================================================================== --- branches/2020Q1/games/eboard/files/patch-configure Thu Jan 2 23:29:17 2020 (r521885) +++ branches/2020Q1/games/eboard/files/patch-configure Thu Jan 2 23:30:07 2020 (r521886) @@ -1,6 +1,57 @@ ---- configure.orig 2008-02-22 16:51:22.000000000 +0100 -+++ configure 2008-12-29 11:25:54.000000000 +0100 -@@ -354,7 +354,7 @@ +--- configure.orig 2020-01-02 23:06:25 UTC ++++ configure +@@ -104,7 +104,7 @@ sub run_cmd { + } + + sub cplusplus_lang { +- my @compilers = ( $cxx, 'g++', 'c++' ); ++ my @compilers = ( $cxx, 'g++9', 'c++' ); + my $x; + my $program = < +@@ -142,41 +142,6 @@ EOF + print TESTCC "$program"; + close TESTCC; + +- $cxx = 'no'; +- for (@compilers) { +- $x = $_; +- print " trying $x ... "; +- +- unlink('test.o','yytest'); +- log_file("test.cc"); +- +- if (run_cmd($x, '-c', 'test.cc', '-o', 'test.o') != 0) { +- print "compilation FAILED\n"; +- next; +- } +- +- if (run_cmd($x, 'test.o', '-o', 'yytest') != 0) { +- print "compilation ok, linking FAILED\n"; +- next; +- } +- +- $y = `./yytest`; +- if ($y ne "1710\n") { +- print "compilation ok, linking ok, output FAILED\n"; +- next; +- } +- +- $cxx = $x; +- print "it works\n"; +- last; +- } +- unlink('test.o','yytest','test.cc'); +- +- if ($cxx eq 'no') { +- print "FAIL\n"; +- return 0; +- } +- + return 1; + } + +@@ -354,7 +319,7 @@ sub header_check { log_file("test.cc"); @@ -9,7 +60,7 @@ print ": no\n"; $y = header_def($x); print CONFIGH "#undef $y\n"; -@@ -512,17 +512,9 @@ +@@ -512,17 +477,9 @@ if (!header_check("stdio.h","stdlib.h","string.h","uni #optional headers header_check("strings.h","sys/soundcard.h","sys/audioio.h","linux/joystick.h"); @@ -28,7 +79,7 @@ cppdef("USE_SOCK_OPTS"); if ($t1!=0 && $t3!=0) { cppundef("NEED_TCP_H"); -@@ -536,10 +528,10 @@ +@@ -536,10 +493,10 @@ if ($t2 != 0) { print "netinet/tcp.h not required, SOL_TCP present.\n"; } } else {