From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 69640158091 for ; Wed, 15 Jun 2022 22:35:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E1265E0893; Wed, 15 Jun 2022 22:35:19 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B7E73E0891 for ; Wed, 15 Jun 2022 22:35:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 962BF34140C for ; Wed, 15 Jun 2022 22:35:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C653E4F7 for ; Wed, 15 Jun 2022 22:35:16 +0000 (UTC) From: "Alessandro Barbieri" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alessandro Barbieri" Message-ID: <1655332514.78194245da3c231c082e42f3ea037b913046dc51.Alessandro-Barbieri@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: sys-cluster/scorep/ X-VCS-Repository: repo/proj/guru X-VCS-Files: sys-cluster/scorep/scorep-7.1.ebuild X-VCS-Directories: sys-cluster/scorep/ X-VCS-Committer: Alessandro-Barbieri X-VCS-Committer-Name: Alessandro Barbieri X-VCS-Revision: 78194245da3c231c082e42f3ea037b913046dc51 X-VCS-Branch: dev Date: Wed, 15 Jun 2022 22:35:16 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a1a9fdd2-f6dd-4fee-880e-b138e33825c8 X-Archives-Hash: bc69d57d7ee1eb08da5eb3e57dce4e9e commit: 78194245da3c231c082e42f3ea037b913046dc51 Author: Alessandro Barbieri gmail com> AuthorDate: Wed Jun 15 21:36:47 2022 +0000 Commit: Alessandro Barbieri gmail com> CommitDate: Wed Jun 15 22:35:14 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=78194245 sys-cluster/scorep: improve a bit the situation of respecting CC/*FLAGS Bug: https://bugs.gentoo.org/852029 Bug: https://bugs.gentoo.org/852053 Bug: https://bugs.gentoo.org/852050 Signed-off-by: Alessandro Barbieri gmail.com> sys-cluster/scorep/scorep-7.1.ebuild | 75 +++++++++++++++++++++++++++--------- 1 file changed, 56 insertions(+), 19 deletions(-) diff --git a/sys-cluster/scorep/scorep-7.1.ebuild b/sys-cluster/scorep/scorep-7.1.ebuild index 95a2fa1b8..f5a79c1e5 100644 --- a/sys-cluster/scorep/scorep-7.1.ebuild +++ b/sys-cluster/scorep/scorep-7.1.ebuild @@ -48,37 +48,73 @@ DEPEND=" opencl? ( dev-util/opencl-headers ) " -#PATCHES=( "${FILESDIR}/${P}-respect-flags.patch" ) - pkg_setup() { use llvm && llvm_pkg_setup fortran-2_pkg_setup } src_prepare() { + tc-export CC CXX FC F77 CPP AR + rm build-config/common/platforms/platform-* || die + + cat > build-config/common/platforms/platform-backend-user-provided <<-EOF || die + CC=${CC} + CXX=${CXX} + FC=${FC} + F77=${F77} + CPP=${CPP} + CXXCPP=${CPP} + EOF + + cat > build-config/common/platforms/platform-frontend-user-provided <<-EOF || die + CC_FOR_BUILD=${CC} + F77_FOR_BUILD=${F77} + FC_FOR_BUILD=${FC} + CXX_FOR_BUILD=${CXX} + LDFLAGS_FOR_BUILD=${LDFLAGS} + CFLAGS_FOR_BUILD=${CFLAGS} + CXXFLAGS_FOR_BUILD=${CXXFLAGS} + CPPFLAGS_FOR_BUILD=${CPPFLAGS} + FCFLAGS_FOR_BUILD=${FCFLAGS} + FFLAGS_FOR_BUILD=${FFLAGS} + CXXFLAGS_FOR_BUILD_SCORE=${CXXFLAGS} + EOF + + cat > build-config/common/platforms/platform-mpi-user-provided <<-EOF || die + MPICC=mpicc + MPICXX=mpicxx + MPIF77=mpif77 + MPIFC=mpif90 + MPI_CPPFLAGS=${CPPFLAGS} + MPI_CFLAGS=${CFLAGS} + MPI_CXXFLAGS=${CXXFLAGS} + MPI_FFLAGS=${FFLAGS} + MPI_FCFLAGS=${FCFLAGS} + MPI_LDFLAGS=${LDFLAGS} + EOF + + cat > build-config/common/platforms/platform-shmem-user-provided <<-EOF || die + SHMEMCC=oshcc + SHMEMCXX=oshc++ + SHMEMF77=oshfort + SHMEMFC=oshfort + SHMEM_CPPFLAGS=${CPPFLAGS} + SHMEM_CFLAGS=${CFLAGS} + SHMEM_CXXFLAGS=${CXXFLAGS} + SHMEM_FFLAGS=${FFLAGS} + SHMEM_FCFLAGS=${FCFLAGS} + SHMEM_LDFLAGS=${LDFLAGS} + SHMEM_LIBS=-lsma + SHMEM_LIB_NAME=libsma + SHMEM_NAME=sandia-openshmem + EOF + rm -r vendor || die default eautoreconf } src_configure() { - tc-export CC CXX FC F77 CPP - - if use openshmem; then - export SHMEMCC="oshcc" - export SHMEMCXX="oshc++" - export SHMEMF77="oshfort" - export SHMEMFC="oshfort" - export SHMEM_CPPFLAGS="${CPPFLAGS}" - export SHMEM_CFLAGS="${CFLAGS}" - export SHMEM_CXXFLAGS="${CXXFLAGS}" - export SHMEM_FFLAGS="${FFLAGS}" - export SHMEM_FCFLAGS="${FCFLAGS}" - export SHMEM_LDFLAGS="${LDFLAGS}" - export SHMEM_LIBS="-lsma" - export SHMEM_LIB_NAME="libsma" - export SHMEM_NAME="sandia-openshmem" - fi local myconf=( --disable-cuda @@ -89,6 +125,7 @@ src_configure() { --enable-shared --with-cubelib --with-cubew + --with-custom-compilers --with-libbfd --with-opari2 --with-otf2