From nobody Fri Sep 16 11:11:58 2022 X-Original-To: dev-commits-ports-main@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 4MTWcG2yycz4cSTV; Fri, 16 Sep 2022 11:11:58 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MTWcG2WyMz4DXp; Fri, 16 Sep 2022 11:11:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663326718; 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=XeXKAGDmF6cw2EUIi1U04uLJzKlKItzYNs2CynnJZvM=; b=nIszUrLXN7LQKAfxKiDWwmkDcJiMnmQZ4X3FxW/LWT5ff6ANmGhKei5bWF6i74L+0V+psi s7Ma3QrpcKGSkVh8rMZ/VSlm6lY+ElN3EXqvj9R1/VzK/Fvf5NvOOT/rEITlVDXWgMuldH NiRWqKVEX3tDWvjge9Rrz6Xh2nIFMMlR51/h6YNxKpNJeBQx8lGNhKy6aY2zFPmY0194FM cnEivU5K+bntZQ0rxj/IaaXCLfMzPSFHgVOApVrQ4WXMSuIRzKDw10OGFr8/6QN1qggCqR xvWDaKwnXrnq+LWcnhYoTwE8Fi6Du+qK4N9OZjJrTiMB/6qlafZkVRhhloQs8A== 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 4MTWcG1bL1zKtJ; Fri, 16 Sep 2022 11:11:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 28GBBwsD038536; Fri, 16 Sep 2022 11:11:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 28GBBwBX038535; Fri, 16 Sep 2022 11:11:58 GMT (envelope-from git) Date: Fri, 16 Sep 2022 11:11:58 GMT Message-Id: <202209161111.28GBBwBX038535@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Thierry Thomas Subject: git: 35fb1d00124f - main - french/aster: switch to HDF5-1.10 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: thierry X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 35fb1d00124f54c95c798525f67fcd8877c136b0 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663326718; 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=XeXKAGDmF6cw2EUIi1U04uLJzKlKItzYNs2CynnJZvM=; b=xIEws5mWLLS7siKKxqzE2NYkhpGIFewfnQpsQNj9Bgsll7SGnLPS7mql5bBMhK7cIKxUQK 1kRyDHdOV4RjOq6waAhALg3ZsBIMABanSS5yqq8Uk3qcqv/wC+QN0JSkF2gIJbLahJVB/Q UYxVKU8UfUUYRj2tffYj3Qf9s4VelpDUfyYURCurWNhrta/8khBRu5Hn7aUXM0qSarKaVa Su5flTFX9pdFsn7Ejnhmu2yCLz5rm76P+qHxyrIjOQCiGGcEjESsHWLYMhb/v2n42fthKy 1S98d01iEsMP65ezqpyf9LD3mtG19+JPVxPvFTPTbb5KcFib5pWw3BshuBglLA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1663326718; a=rsa-sha256; cv=none; b=MRbsXzHYTaBmaTZmuqYPQBS2crZmHbScqG9TDy44uGNj8Me4NLLNHxI2at8TFHMdeLb/XD CkFL5gOjBR8kH6KB9zeItSwtJGC0edpsc+Vmoyn7G5yPH0GrOxbZCerC9xLdcU+gVg0A5P pg9tiFLxnS/gnfsxUG1GAGPxBd2qCvYUpqRxhFYpi+Jsn6AcgS4ZGpiFyD7dHnZ858jPIE 2Vuardpu8U8Q0cbwQyznOyngrH0Etp7FvyeKdjnLLLR74Oqe08bIbGr4+YJnkydt3/3j5z Y5YlU86HVJ81PUaXSgLWGT2I68OLzQb901+gwcr6F3Q7a7tz7T5B9His001qhg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by thierry: URL: https://cgit.FreeBSD.org/ports/commit/?id=35fb1d00124f54c95c798525f67fcd8877c136b0 commit 35fb1d00124f54c95c798525f67fcd8877c136b0 Author: Thierry Thomas AuthorDate: 2022-09-16 11:01:42 +0000 Commit: Thierry Thomas CommitDate: 2022-09-16 11:07:05 +0000 french/aster: switch to HDF5-1.10 Note: this port should be upgraded to a newer release, WIP. PR: 265152 --- french/aster/Makefile | 7 +++--- french/aster/files/patch-as_setup.py | 12 ++++++++-- french/aster/files/patch-products.py | 35 ++++++++++++++++++++++++++++- french/aster/files/patch-products__data.py | 17 ++++++++++++-- french/aster/files/pkg-message.in | 4 ++-- french/aster/files/pkg-message.sans-astk.in | 4 ++-- 6 files changed, 67 insertions(+), 12 deletions(-) diff --git a/french/aster/Makefile b/french/aster/Makefile index e39c63462a75..b7116ce818ea 100644 --- a/french/aster/Makefile +++ b/french/aster/Makefile @@ -1,6 +1,6 @@ PORTNAME= aster DISTVERSION= ${ASTER_DISTVERSION} -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= french cad MAINTAINER= thierry@FreeBSD.org @@ -34,7 +34,7 @@ BUILD_DEPENDS+= astk-serveur>0:cad/astk-serveur \ ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}sympy>0:math/py-sympy@${PY_FLAVOR} # pylupdate5:textproc/py-qt5-xml -LIB_DEPENDS+= libhdf5.so:science/hdf5 \ +LIB_DEPENDS+= libhdf5-110.so:science/hdf5-110 \ libscotch.so:cad/scotch \ libmetis.so:math/metis \ libmed.so:french/med \ @@ -52,6 +52,7 @@ USE_QT= linguisttools:build #CONFLICTS_BUILD=${PYTHON_PKGNAMEPREFIX}cysignals-1.* HAS_CONFIGURE= yes +CFLAGS+= -I${LOCALBASE}/include/hdf5-110 MAKE_ENV= INCLUDES="${LOCALBASE}/include" \ INCLUDEDIR="${LOCALBASE}/include" \ LD_PRELOAD="${LOCALBASE}/lib/gcc${_GCC_VER}/libgcc_s.so.1" \ @@ -255,7 +256,7 @@ pre-configure: ${ECHO_CMD} "HOME_GMSH = '${LOCALBASE}'" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "HOME_GIBI = '${LOCALBASE}'" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "HOME_HOMARD = '${LOCALBASE}'" >> ${WRKSRC}/setup.cfg - ${ECHO_CMD} "INCLUDEDIR = ['${LOCALBASE}/include', '${LOCALBASE}/include/metis', ]"\ + ${ECHO_CMD} "INCLUDEDIR = ['${LOCALBASE}/include/hdf5-110', '${LOCALBASE}/include', '${LOCALBASE}/include/metis', ]"\ >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "HOME_MUMPS = '${LOCALBASE}'" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "HOME_MFRONT = '${LOCALBASE}'" >> ${WRKSRC}/setup.cfg diff --git a/french/aster/files/patch-as_setup.py b/french/aster/files/patch-as_setup.py index 2175b43e8fb3..cb6459f293d7 100644 --- a/french/aster/files/patch-as_setup.py +++ b/french/aster/files/patch-as_setup.py @@ -1,6 +1,6 @@ --- as_setup.py.orig 2020-10-26 15:54:27 UTC +++ as_setup.py -@@ -45,6 +45,8 @@ import tarfile +@@ -45,6 +45,8 @@ import pprint import compileall import imp import pprint @@ -17,7 +17,7 @@ self._print(self._fmt_title % _('Extraction')) if kargs.get('external')!=None: self._call_external(**kargs) -@@ -518,6 +521,88 @@ class SETUP: +@@ -518,6 +521,96 @@ class SETUP: os.chdir(prev) if iextr_as: self.Clean(to_delete=path) @@ -31,6 +31,14 @@ + if nl > 0: + ligne =ligne.replace("self.check_cc", "# self.check_cc") + sys.stdout.write(ligne) ++ file2patch = os.path.join(self.workdir, self.content, 'waftools/med.py') ++ self._print('FreeBSD patch: use hdf5-110 ' + file2patch) ++ for ligne in fileinput.input(file2patch, inplace=1): ++ nl = 0 ++ nl = ligne.find("self.env.INCLUDEDIR, 'hdf5'") ++ if nl > 0: ++ ligne =ligne.replace("'hdf5'", "'hdf5-110'") ++ sys.stdout.write(ligne) + # file2patch = os.path.join(self.workdir, self.content, 'bibcxx/wscript') + # self._print('FreeBSD patch: explicit link with libc++ required since Gcc 4.9 => modify ' + file2patch) + # for ligne in fileinput.input(file2patch, inplace=1): diff --git a/french/aster/files/patch-products.py b/french/aster/files/patch-products.py index 8716b06abfe5..e6c402ae1fe0 100644 --- a/french/aster/files/patch-products.py +++ b/french/aster/files/patch-products.py @@ -1,6 +1,26 @@ --- products.py.orig 2020-10-26 15:54:27 UTC +++ products.py -@@ -658,7 +658,8 @@ def setup_mumps(dep, summary, **kargs): +@@ -136,8 +136,8 @@ def setup_hdf5(dep, summary, **kargs): + + actions=( + ('IsInstalled', { 'filename' : +- [osp.join('__setup.installdir__', 'lib', 'libhdf5.a'), +- osp.join('__setup.installdir__', 'include', 'hdf5.h')] ++ [osp.join('__setup.installdir__', 'lib', 'libhdf5-110.a'), ++ osp.join('__setup.installdir__', 'include/hdf5-110', 'hdf5.h')] + } ), + ('Extract' , {}), + # gcc>=4.9 not supported by configure, should not use -ansi +@@ -651,14 +651,15 @@ def setup_mumps(dep, summary, **kargs): + ('Configure', { + 'command' : '%(PYTHON_ALIAS)s ; CC=%(CC)s FC=%(F90)s ' + 'LIBPATH="%(HOME_SCOTCH)s/lib %(HOME_METIS)s/lib" ' +- 'INCLUDES="%(HOME_SCOTCH)s/include %(HOME_METIS)s/include" ' ++ 'INCLUDES="%(HOME_HDF)s/include/hdf5-110 %(HOME_SCOTCH)s/include %(HOME_METIS)s/include" ' + 'OPTLIB_FLAGS="%(MATHLIB)s %(OTHERLIB)s" ' +- './waf configure --maths-libs="" ' ++ './waf configure --maths-libs="" --hdf5-libs="hdf5-110"' + ' --prefix=%(HOME_MUMPS)s --install-tests' % cfg, 'capturestderr' : False, }), ('Make' , { @@ -20,3 +40,16 @@ set=['LIBPATH_HDF', 'LIBPATH_MED', 'LIBPATH_METIS', 'LIBPATH_SCOTCH', 'LIBPATH_MUMPS', 'LIBPATH_MFRONT'], reqobj=['file:?ASTER_ROOT?/bin/as_run', +@@ -736,9 +738,9 @@ def setup_aster(dep, summary, **kargs): + os.environ['DEVTOOLS_COMPUTER_ID'] = cfg['DEVTOOLS_COMPUTER_ID'] + if cfg['ASTER_NUMVERS'] < (15, 2): + WAF_ENV = "" +- WAF_CONFIGURE = ("./waf configure" +- " --use-config=aster_full_config" +- " --install-tests --prefix=%(ASTER_VERSION_DIR)s") ++ WAF_CONFIGURE = ('./waf configure' ++ ' --use-config=aster_full_config --hdf5-libs="hdf5-110"' ++ ' --install-tests --prefix=%(ASTER_VERSION_DIR)s') + else: + WAF_ENV = ". env.d/aster_full_std.sh ; " + WAF_CONFIGURE = ("./waf configure" diff --git a/french/aster/files/patch-products__data.py b/french/aster/files/patch-products__data.py index 9c8798c1d5f9..cdecfc5160f3 100644 --- a/french/aster/files/patch-products__data.py +++ b/french/aster/files/patch-products__data.py @@ -1,7 +1,20 @@ --- products_data.py.orig 2020-10-26 15:54:27 UTC +++ products_data.py -@@ -130,10 +130,8 @@ def configure(self): - '%(HOME_HDF)s/include', +@@ -48,7 +48,7 @@ export LIBPATH_HDF5="%(LIBPATH_HDF)s" + export PYPATH_ASRUN="%(ASTER_ROOT)s/lib/python%(PYTHON_XY)s/site-packages" + + export LIBPATH_HDF5="%(LIBPATH_HDF)s" +-export INCLUDES_HDF5="%(HOME_HDF)s/include" ++export INCLUDES_HDF5="%(HOME_HDF)s/include/hdf5-110" + + export LIBPATH_MED="%(LIBPATH_MED)s" + export INCLUDES_MED="%(HOME_MED)s/include" +@@ -127,13 +127,11 @@ def configure(self): + ]) + + self.env.append_value('INCLUDES', [ +- '%(HOME_HDF)s/include', ++ '%(HOME_HDF)s/include/hdf5-110', '%(HOME_MED)s/include', '%(HOME_MUMPS)s/include', - '%(HOME_MUMPS)s/include_seq', diff --git a/french/aster/files/pkg-message.in b/french/aster/files/pkg-message.in index 681be696d208..74acde3ab3b0 100644 --- a/french/aster/files/pkg-message.in +++ b/french/aster/files/pkg-message.in @@ -4,8 +4,8 @@ To run Code_Aster through ASTK, type: %%tools_dir%%/astk -On i386 or amd64 platforms, we suggest you install the ports french/gibi -and french/homard, two additional meshing tools. +On i386 or amd64 platforms, we suggest you install the port french/homard, +an additional meshing tool. EOM } ] diff --git a/french/aster/files/pkg-message.sans-astk.in b/french/aster/files/pkg-message.sans-astk.in index 4dd8b0fd588e..f14a1dcc93bd 100644 --- a/french/aster/files/pkg-message.sans-astk.in +++ b/french/aster/files/pkg-message.sans-astk.in @@ -5,8 +5,8 @@ After Code_Aster installation you could install ASTK [cad/astk-serveur and cad/astk-client]. ASTK is a graphic interface to run Code_Aster. -On i386 platform, we suggest you install the ports french/gibi and -french/homard, two additional meshing tools. +On i386 platform, we suggest you install the port french/homard, +an additional meshing tool. EOM } ]