From nobody Wed Nov 06 15:18:41 2024 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Xk8415Rvdz5ch7J; Wed, 06 Nov 2024 15:18:41 +0000 (UTC) (envelope-from git@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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xk84141Qsz4HQf; Wed, 6 Nov 2024 15:18:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730906321; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=XCwQL0RIM3fEzmZrSEXlPtyjSl5VaBq703DTcUXEQP0=; b=TYlMyoKCx8R/ZRhKJZzHYh9rzb6YtHTRWaMTpoQqUXgf2+R2iM02i88r4LHkXHsg+B5oWB UQjMxl6aVpDOydml5fr+6QXocNYH1TMtrHynemlCIxruS+660LzSDnu48heojr//Bq7vrb xqVPFpb6ag++wjjBQv6yCa0brZJxyvwom/pmPwt8g8oDD5aTbK7GCLPZM5yoryO5DMMSVq FIRfjzo0W8DTOY5vsiZlOMOPUlLPJbrJRjQlN2OyH+i3+EKHHlyNQndeGzghX8qjM1jQR7 rt7niBuzsXbsBA2uJbP3xCPN4//5w6gdGCnRmq6foVYtfI+eYGSsRW74sKYcCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730906321; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=XCwQL0RIM3fEzmZrSEXlPtyjSl5VaBq703DTcUXEQP0=; b=EIpjumL2Q+7YqFEu3/KjRg2v7hNXlUAtbUPmOVdK3KJZ5PtFnssA9vRRi8KjezeGIZUP+U 4xOG1migxn0QGuP7NgWyRJFnkWas7hQuTtPPBPAYY18eCD2YnhkViX7fwsn1kAMJ72NXdh +//UEiPPH/G+BF6y+4pUtgz5Np5/lOw/ktpMlh7n+y9Q3hcZ9KvnNV03Sv3mNcKLs0NGku FwIi6S1gHiYrF3ZDVYunOZIm31j5gBk7XbMApb92u084rc78gIJqd9fgYhJvtJ6w/3aHUL i/n9k4Q9GKxh6VQFXTn0J8EQO31TTv7Zzdn6TT8mUFozQSmOsLP3QMAwN2R19A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730906321; a=rsa-sha256; cv=none; b=f+VWUJcRJoyQlwIGPKpDWkP5uMmWDrGO2/suojWOkGJ44uainRy0mHEc+DfQwZk+BjOfVy p++DhI8rgFyM7l+E23I+u8eMVhhUutT+4RSkIA0lnKJlgq5xbjweNJYI7UhXn02YZjXyxH G7bn9PfANV3F36SPhkDPJCuaUbovtOnjZjXkZ6G6ylesHtEWRR1PfUuhrkwnkVDMW9VXPX 9txCDGvLnncuHPsTwcXZ0+jhB2BYoEztGyZpxypRhR68ByXwQcE5gLFDTOtVfjKuECnPPG LI5yUSkSHbu/oC5aXRtDsZ4RRJArtypET1dNqqvlfxycNHaVQ9QN3m4y5WtOlg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Xk8413cLYz15KY; Wed, 6 Nov 2024 15:18:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A6FIfsO045167; Wed, 6 Nov 2024 15:18:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A6FIfra045164; Wed, 6 Nov 2024 15:18:41 GMT (envelope-from git) Date: Wed, 6 Nov 2024 15:18:41 GMT Message-Id: <202411061518.4A6FIfra045164@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Robert Clausecker Subject: git: 432f2ebe0883 - main - math/sdpa: speed up build List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 432f2ebe088377708fb08514ea86f2c19a5b0ad5 Auto-Submitted: auto-generated The branch main has been updated by fuz: URL: https://cgit.FreeBSD.org/ports/commit/?id=432f2ebe088377708fb08514ea86f2c19a5b0ad5 commit 432f2ebe088377708fb08514ea86f2c19a5b0ad5 Author: Robert Clausecker AuthorDate: 2024-11-06 14:06:02 +0000 Commit: Robert Clausecker CommitDate: 2024-11-06 15:14:32 +0000 math/sdpa: speed up build Sub-Makefiles of this port use make macros with lots of shell expansions that are expanded again and again. Assign to these with := so that the shell commands are ran only once. This fixes the port not building due to timeouts under high system load. Approved by: portmgr (build fix blanket) MFH: 2024Q4 --- math/sdpa/files/patch-etc_Makefile | 48 ++++++++++++++++++++++++++++++++++++ math/sdpa/files/patch-mumps_Makefile | 27 ++++++++++++++++++++ 2 files changed, 75 insertions(+) diff --git a/math/sdpa/files/patch-etc_Makefile b/math/sdpa/files/patch-etc_Makefile new file mode 100644 index 000000000000..eb4bab9c35f0 --- /dev/null +++ b/math/sdpa/files/patch-etc_Makefile @@ -0,0 +1,48 @@ +--- etc/Makefile.orig 2024-11-06 14:01:05 UTC ++++ etc/Makefile +@@ -21,26 +21,26 @@ SDPA_MAKEFILE = ../Makefile + # The following variables are set from + # the arguments given to './configure' script for building SDPA + ################################################################### +-SDPA_PACKAGE= ${shell grep "^PACKAGE_STRING =" ${SDPA_MAKEFILE} | awk '{printf("%s.%s",$$3,$$4)}'} ++SDPA_PACKAGE:= ${shell grep "^PACKAGE_STRING =" ${SDPA_MAKEFILE} | awk '{printf("%s.%s",$$3,$$4)}'} + +-SDPA_DIR = ${shell grep "^prefix =" ${SDPA_MAKEFILE} | cut -f2 -d= | sed 's+ ++'} +-SDPA_LIB = ${SDPA_DIR}/lib/libsdpa.a +-MUMPS_DIR = ${shell grep "^MUMPS_DIR =" ${SDPA_MAKEFILE} | cut -f2 -d= | sed 's+ ++'} +-MUMPS_INCLUDE = ${shell grep "^MUMPS_INCLUDE =" ${SDPA_MAKEFILE} | cut -f2 -d= | sed 's+ ++'} +-MUMPS_LIBS = ${shell grep "^MUMPS_LIBS =" ${SDPA_MAKEFILE} | cut -f2 -d= | sed 's+ ++'} +-CC = ${shell grep "^CC =" ${SDPA_MAKEFILE} | cut -f2 -d=} +-CFLAGS = ${shell grep "^CFLAGS = " ${SDPA_MAKEFILE} | cut -f2- -d=} +-CXX = ${shell grep "^CXX =" ${SDPA_MAKEFILE} | cut -f2 -d=} +-CXXFLAGS = ${shell grep "^CXXFLAGS = " ${SDPA_MAKEFILE} | cut -f2- -d=} +-CPPFLAGS = ${shell grep "^CPPFLAGS = " ${SDPA_MAKEFILE} | cut -f2- -d=} +-FC = ${shell grep "^FC =" ${SDPA_MAKEFILE} | cut -f2 -d=} +-FCFLAGS = ${shell grep "^FCFLAGS = " ${SDPA_MAKEFILE} | cut -f2- -d=} +-LAPACK_LIBS = ${shell grep "^LAPACK_LIBS = " ${SDPA_MAKEFILE} | cut -f2 -d=} +-BLAS_LIBS = ${shell grep "^BLAS_LIBS = " ${SDPA_MAKEFILE} | cut -f2 -d=} +-PTHREAD_INCLUDE= ${shell grep "^PTHREAD_INCLUDE = " ${SDPA_MAKEFILE} | cut -f2 -d=} +-PTHREAD_LIBS= ${shell grep "^PTHREAD_LIBS = " ${SDPA_MAKEFILE} | cut -f2 -d=} +-FCLIBS = ${shell grep "^FCLIBS = " ${SDPA_MAKEFILE} | cut -f2 -d=} +-VERSION = ${shell grep "^VERSION = " ${SDPA_MAKEFILE} | cut -f2 -d=} ++SDPA_DIR := ${shell grep "^prefix =" ${SDPA_MAKEFILE} | cut -f2 -d= | sed 's+ ++'} ++SDPA_LIB := ${SDPA_DIR}/lib/libsdpa.a ++MUMPS_DIR := ${shell grep "^MUMPS_DIR =" ${SDPA_MAKEFILE} | cut -f2 -d= | sed 's+ ++'} ++MUMPS_INCLUDE := ${shell grep "^MUMPS_INCLUDE =" ${SDPA_MAKEFILE} | cut -f2 -d= | sed 's+ ++'} ++MUMPS_LIBS := ${shell grep "^MUMPS_LIBS =" ${SDPA_MAKEFILE} | cut -f2 -d= | sed 's+ ++'} ++CC := ${shell grep "^CC =" ${SDPA_MAKEFILE} | cut -f2 -d=} ++CFLAGS := ${shell grep "^CFLAGS = " ${SDPA_MAKEFILE} | cut -f2- -d=} ++CXX := ${shell grep "^CXX =" ${SDPA_MAKEFILE} | cut -f2 -d=} ++CXXFLAGS := ${shell grep "^CXXFLAGS = " ${SDPA_MAKEFILE} | cut -f2- -d=} ++CPPFLAGS := ${shell grep "^CPPFLAGS = " ${SDPA_MAKEFILE} | cut -f2- -d=} ++FC := ${shell grep "^FC =" ${SDPA_MAKEFILE} | cut -f2 -d=} ++FCFLAGS := ${shell grep "^FCFLAGS = " ${SDPA_MAKEFILE} | cut -f2- -d=} ++LAPACK_LIBS := ${shell grep "^LAPACK_LIBS = " ${SDPA_MAKEFILE} | cut -f2 -d=} ++BLAS_LIBS := ${shell grep "^BLAS_LIBS = " ${SDPA_MAKEFILE} | cut -f2 -d=} ++PTHREAD_INCLUDE:= ${shell grep "^PTHREAD_INCLUDE = " ${SDPA_MAKEFILE} | cut -f2 -d=} ++PTHREAD_LIBS:= ${shell grep "^PTHREAD_LIBS = " ${SDPA_MAKEFILE} | cut -f2 -d=} ++FCLIBS := ${shell grep "^FCLIBS = " ${SDPA_MAKEFILE} | cut -f2 -d=} ++VERSION := ${shell grep "^VERSION = " ${SDPA_MAKEFILE} | cut -f2 -d=} + ################################################################### + + TARGET = make.inc diff --git a/math/sdpa/files/patch-mumps_Makefile b/math/sdpa/files/patch-mumps_Makefile new file mode 100644 index 000000000000..721b74eb8d7f --- /dev/null +++ b/math/sdpa/files/patch-mumps_Makefile @@ -0,0 +1,27 @@ +--- mumps/Makefile.orig 2024-11-06 14:00:35 UTC ++++ mumps/Makefile +@@ -8,15 +8,15 @@ SDPA_MAKEFILE = ../Makefile + # the arguments given to './configure' script for building SDPA + ################################################################### + +-CC = ${shell grep "^CC =" ${SDPA_MAKEFILE} | cut -f2 -d=} +-CFLAGS = ${shell grep "^CFLAGS = " ${SDPA_MAKEFILE} | cut -f2 -d=} +-CXX = ${shell grep "^CXX =" ${SDPA_MAKEFILE} | cut -f2 -d=} +-CXXFLAGS = ${shell grep "^CXXFLAGS = " ${SDPA_MAKEFILE} | cut -f2 -d=} +-FC = ${shell grep "^FC =" ${SDPA_MAKEFILE} | cut -f2 -d=} +-FCFLAGS = ${shell grep "^FCFLAGS = " ${SDPA_MAKEFILE} | cut -f2 -d=} +-PTHREAD_INCLUDE = ${shell grep "^PTHREAD_INCLUDE = " ${SDPA_MAKEFILE} | cut -f2 -d=} +-AR = ${shell grep "^AR = " ${SDPA_MAKEFILE} | cut -f2 -d=} +-RANLIB = ${shell grep "^RANLIB = " ${SDPA_MAKEFILE} | cut -f2 -d=} ++CC := ${shell grep "^CC =" ${SDPA_MAKEFILE} | cut -f2 -d=} ++CFLAGS := ${shell grep "^CFLAGS = " ${SDPA_MAKEFILE} | cut -f2 -d=} ++CXX := ${shell grep "^CXX =" ${SDPA_MAKEFILE} | cut -f2 -d=} ++CXXFLAGS := ${shell grep "^CXXFLAGS = " ${SDPA_MAKEFILE} | cut -f2 -d=} ++FC := ${shell grep "^FC =" ${SDPA_MAKEFILE} | cut -f2 -d=} ++FCFLAGS := ${shell grep "^FCFLAGS = " ${SDPA_MAKEFILE} | cut -f2 -d=} ++PTHREAD_INCLUDE := ${shell grep "^PTHREAD_INCLUDE = " ${SDPA_MAKEFILE} | cut -f2 -d=} ++AR := ${shell grep "^AR = " ${SDPA_MAKEFILE} | cut -f2 -d=} ++RANLIB := ${shell grep "^RANLIB = " ${SDPA_MAKEFILE} | cut -f2 -d=} + + ################################################################### +