From owner-svn-ports-head@freebsd.org Sun Oct 27 19:19:09 2019 Return-Path: Delivered-To: svn-ports-head@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 5F5991A3329; Sun, 27 Oct 2019 19:19:09 +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 471SMK0hfTz42Q7; Sun, 27 Oct 2019 19:19:09 +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 EAB9C25C04; Sun, 27 Oct 2019 19:19: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 x9RJJ8Tn071577; Sun, 27 Oct 2019 19:19:08 GMT (envelope-from pkubaj@FreeBSD.org) Received: (from pkubaj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x9RJJ78X071568; Sun, 27 Oct 2019 19:19:07 GMT (envelope-from pkubaj@FreeBSD.org) Message-Id: <201910271919.x9RJJ78X071568@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pkubaj set sender to pkubaj@FreeBSD.org using -f From: Piotr Kubaj Date: Sun, 27 Oct 2019 19:19:07 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r515815 - in head/science/pcmsolver: . files X-SVN-Group: ports-head X-SVN-Commit-Author: pkubaj X-SVN-Commit-Paths: in head/science/pcmsolver: . files X-SVN-Commit-Revision: 515815 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Oct 2019 19:19:09 -0000 Author: pkubaj Date: Sun Oct 27 19:19:07 2019 New Revision: 515815 URL: https://svnweb.freebsd.org/changeset/ports/515815 Log: science/pcmsolver: fix build on GCC architectures Use C++11 compiler. Respect CC and CXX. Include sys/types.h before including headers to make gid_t, uid_t available. PR: 241465 Approved by: yuri (maintainer), linimon (mentor) Added: head/science/pcmsolver/files/patch-src_bin_run__pcm.cpp (contents, props changed) head/science/pcmsolver/files/patch-src_cavity_GePolCavity.cpp (contents, props changed) head/science/pcmsolver/files/patch-src_green_SphericalDiffuse.cpp (contents, props changed) head/science/pcmsolver/files/patch-src_interface_Input.cpp (contents, props changed) head/science/pcmsolver/files/patch-src_interface_Meddle.cpp (contents, props changed) Modified: head/science/pcmsolver/Makefile Modified: head/science/pcmsolver/Makefile ============================================================================== --- head/science/pcmsolver/Makefile Sun Oct 27 19:11:51 2019 (r515814) +++ head/science/pcmsolver/Makefile Sun Oct 27 19:19:07 2019 (r515815) @@ -12,9 +12,7 @@ COMMENT= API for the Polarizable Continuum Model LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN_powerpc64= fails to compile: SphericalDiffuse.cpp:182: invalid initialization of non-const reference - -USES= cmake:noninja fortran python +USES= cmake:noninja compiler:c11 fortran python USE_GITHUB= yes GH_ACCOUNT= PCMSolver USE_LDCONFIG= yes @@ -27,6 +25,8 @@ do-configure: # full CMAKE_ARGS breaks configure: -DCM -DCMAKE_C_FLAGS_RELEASE:STRING="${CFLAGS}" \ -DCMAKE_CXX_FLAGS_RELEASE:STRING="${CXXFLAGS}" \ -DCMAKE_EXE_LINKER_FLAGS:STRING="${LOCALBASE}/lib/gcc${GCC_DEFAULT}/libgcc_s.so" \ + -DCMAKE_C_COMPILER:STRING="${CC}" \ + -DCMAKE_CXX_COMPILER:STRING="${CXX}" \ ${CMAKE_SOURCE_PATH} post-patch: Added: head/science/pcmsolver/files/patch-src_bin_run__pcm.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/pcmsolver/files/patch-src_bin_run__pcm.cpp Sun Oct 27 19:19:07 2019 (r515815) @@ -0,0 +1,10 @@ +--- src/bin/run_pcm.cpp.orig 2019-10-24 12:38:26 UTC ++++ src/bin/run_pcm.cpp +@@ -31,6 +31,7 @@ + #include + #include + ++#include + #include "Config.hpp" + + #include Added: head/science/pcmsolver/files/patch-src_cavity_GePolCavity.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/pcmsolver/files/patch-src_cavity_GePolCavity.cpp Sun Oct 27 19:19:07 2019 (r515815) @@ -0,0 +1,18 @@ +--- src/cavity/GePolCavity.cpp.orig 2019-10-24 12:25:02 UTC ++++ src/cavity/GePolCavity.cpp +@@ -21,6 +21,7 @@ + * PCMSolver API, see: + */ + ++#include + #include "GePolCavity.hpp" + + #include +@@ -32,7 +33,6 @@ + #include + #include + +-#include + #include + + #include "Config.hpp" Added: head/science/pcmsolver/files/patch-src_green_SphericalDiffuse.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/pcmsolver/files/patch-src_green_SphericalDiffuse.cpp Sun Oct 27 19:19:07 2019 (r515815) @@ -0,0 +1,10 @@ +--- src/green/SphericalDiffuse.cpp.orig 2019-10-24 12:30:56 UTC ++++ src/green/SphericalDiffuse.cpp +@@ -21,6 +21,7 @@ + * PCMSolver API, see: + */ + ++#include + #include "SphericalDiffuse.hpp" + + #include Added: head/science/pcmsolver/files/patch-src_interface_Input.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/pcmsolver/files/patch-src_interface_Input.cpp Sun Oct 27 19:19:07 2019 (r515815) @@ -0,0 +1,10 @@ +--- src/interface/Input.cpp.orig 2019-10-24 12:34:49 UTC ++++ src/interface/Input.cpp +@@ -21,6 +21,7 @@ + * PCMSolver API, see: + */ + ++#include + #include "Input.hpp" + + #include Added: head/science/pcmsolver/files/patch-src_interface_Meddle.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/pcmsolver/files/patch-src_interface_Meddle.cpp Sun Oct 27 19:19:07 2019 (r515815) @@ -0,0 +1,10 @@ +--- src/interface/Meddle.cpp.orig 2019-10-24 12:36:20 UTC ++++ src/interface/Meddle.cpp +@@ -21,6 +21,7 @@ + * PCMSolver API, see: + */ + ++#include + #include "Meddle.hpp" + #include "PCMInput.h" + #include "pcmsolver.h"