From owner-svn-ports-all@freebsd.org Thu Jan 2 21:50:42 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 2175A1DBBE8; Thu, 2 Jan 2020 21:50:42 +0000 (UTC) (envelope-from thierry@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 47phYG05Wxz40QG; Thu, 2 Jan 2020 21:50:42 +0000 (UTC) (envelope-from thierry@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 F22A221E33; Thu, 2 Jan 2020 21:50:41 +0000 (UTC) (envelope-from thierry@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 002Lofij086417; Thu, 2 Jan 2020 21:50:41 GMT (envelope-from thierry@FreeBSD.org) Received: (from thierry@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 002LoebU086413; Thu, 2 Jan 2020 21:50:40 GMT (envelope-from thierry@FreeBSD.org) Message-Id: <202001022150.002LoebU086413@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: thierry set sender to thierry@FreeBSD.org using -f From: Thierry Thomas Date: Thu, 2 Jan 2020 21:50:40 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r521882 - in head/french/aster: . files X-SVN-Group: ports-head X-SVN-Commit-Author: thierry X-SVN-Commit-Paths: in head/french/aster: . files X-SVN-Commit-Revision: 521882 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 21:50:42 -0000 Author: thierry Date: Thu Jan 2 21:50:40 2020 New Revision: 521882 URL: https://svnweb.freebsd.org/changeset/ports/521882 Log: - Do not try to get VmSize on -CURRENT - Add a dependency on xterm + Some minor fixes. Added: head/french/aster/files/post-patch-bibc__utilitai__mempid.c (contents, props changed) head/french/aster/files/post-patch-bibfor__jeveux__jedebu.F90 (contents, props changed) Modified: head/french/aster/Makefile head/french/aster/files/patch-as_setup.py head/french/aster/files/patch-products__data.py Modified: head/french/aster/Makefile ============================================================================== --- head/french/aster/Makefile Thu Jan 2 21:32:23 2020 (r521881) +++ head/french/aster/Makefile Thu Jan 2 21:50:40 2020 (r521882) @@ -3,7 +3,7 @@ PORTNAME= aster DISTVERSION= ${ASTER_DISTVERSION} -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= french cad MAINTAINER= thierry@FreeBSD.org @@ -39,6 +39,7 @@ BUILD_DEPENDS+= astk-serveur>0:cad/astk-serveur \ ${LOCALBASE}/lib/libscotch.a:cad/scotch \ gnproc:sysutils/coreutils \ bash:shells/bash \ + xterm:x11/xterm \ ${PYNUMPY} # pylupdate5:textproc/py-qt5-xml LIB_DEPENDS+= libhdf5.so:science/hdf5 \ @@ -47,7 +48,8 @@ LIB_DEPENDS+= libhdf5.so:science/hdf5 \ # libAsterInterface.so:science/mfront # libAsterInterface.so:science/tfel RUN_DEPENDS+= ${SHELL_INSTALL_ASTER}:shells/${SHIADEP} \ - astk-serveur>0:cad/astk-serveur + astk-serveur>0:cad/astk-serveur \ + xterm:x11/xterm USES= bison fortran gettext python:3.6+ qt:5 tk USE_BINUTILS= yes @@ -366,6 +368,8 @@ pre-build: .for pp in ${POSTPY2FIX} ${REINPLACE_CMD} -e 's|%%PYTHON_CMD%%|${PYTHON_CMD}|' ${WRKDIR}/post_patches/${pp} .endfor + ${REINPLACE_CMD} -e "s|%%WRKDIR%%|${WRKDIR}|" \ + ${WRKDIR}/post_patches/post-patch-bibfor__jeveux__jedebu.F90 do-build: (cd ${BUILD_WRKSRC} && \ Modified: head/french/aster/files/patch-as_setup.py ============================================================================== --- head/french/aster/files/patch-as_setup.py Thu Jan 2 21:32:23 2020 (r521881) +++ head/french/aster/files/patch-as_setup.py Thu Jan 2 21:50:40 2020 (r521882) @@ -17,7 +17,7 @@ self._print(self._fmt_title % _('Extraction')) if kargs.get('external')!=None: self._call_external(**kargs) -@@ -518,6 +521,78 @@ class SETUP: +@@ -518,6 +521,81 @@ class SETUP: if iextr_as: self.Clean(to_delete=path) @@ -81,8 +81,11 @@ + ligne =ligne.replace("getopt ", "getopts ") + sys.stdout.write(ligne) + self._print('FreeBSD patches: waf.engine and data/post_install in %s' % os.path.join(self.workdir, self.content)) -+ os.system('cd ' + os.path.join(self.workdir, self.content) + ' && patch -p0 < /usr/ports/french/aster/work/post_patches/post-patch-waf.engine') -+ os.system('cd ' + os.path.join(self.workdir, self.content) + ' && patch -p0 < /usr/ports/french/aster/work/post_patches/post-patch-data__post_install') ++ os.system('cd ' + os.path.join(self.workdir, self.content) + ' && patch -p0 < %%WRKDIR%%/post_patches/post-patch-waf.engine') ++ os.system('cd ' + os.path.join(self.workdir, self.content) + ' && patch -p0 < %%WRKDIR%%/post_patches/post-patch-data__post_install') ++ self._print('FreeBSD patches: memory detection in bibc/utilitai/mempid.c in %s' % os.path.join(self.workdir, self.content)) ++ os.system('cd ' + os.path.join(self.workdir, self.content) + ' && patch -p0 < %%WRKDIR%%/post_patches/post-patch-bibc__utilitai__mempid.c') ++ os.system('cd ' + os.path.join(self.workdir, self.content) + ' && patch -p0 < %%WRKDIR%%/post_patches/post-patch-bibfor__jeveux__jedebu.F90') + file2patch = os.path.join(self.workdir, self.content, 'waftools/mathematics.py') + self._print('FreeBSD patch: nproc => gnproc ' + file2patch) + for ligne in fileinput.input(file2patch, inplace=1): @@ -96,7 +99,7 @@ #------------------------------------------------------------------------------- def Configure(self, **kargs): """Configuration of the product. -@@ -1454,7 +1529,7 @@ class SYSTEM: +@@ -1454,7 +1532,7 @@ class SYSTEM: if type(profile) is str: ftmp = osp.join(self._tmpdir, 'temp.opt_env') open(ftmp, 'w').write(profile) Modified: head/french/aster/files/patch-products__data.py ============================================================================== --- head/french/aster/files/patch-products__data.py Thu Jan 2 21:32:23 2020 (r521881) +++ head/french/aster/files/patch-products__data.py Thu Jan 2 21:50:40 2020 (r521882) @@ -1,11 +1,7 @@ ---- products_data.py.orig 2017-08-26 13:56:41 UTC +--- products_data.py.orig 2019-10-01 12:45:34 UTC +++ products_data.py -@@ -107,13 +107,11 @@ def configure(self): - ]) - - self.env.append_value('INCLUDES', [ -- '%(HOME_HDF)s/include', -+ '%(HOME_HDF)s/include/hdf5-18', +@@ -110,10 +110,8 @@ def configure(self): + '%(HOME_HDF)s/include', '%(HOME_MED)s/include', '%(HOME_MUMPS)s/include', - '%(HOME_MUMPS)s/include_seq', Added: head/french/aster/files/post-patch-bibc__utilitai__mempid.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/french/aster/files/post-patch-bibc__utilitai__mempid.c Thu Jan 2 21:50:40 2020 (r521882) @@ -0,0 +1,14 @@ +--- bibc/utilitai/mempid.c.orig 2019-09-25 21:45:54.000000000 +0200 ++++ bibc/utilitai/mempid.c 2020-01-02 22:28:47.035670000 +0100 +@@ -77,7 +77,11 @@ + kvm_close(kd); + + /* VmSize */ ++# if __FreeBSD_version > 1300000 ++ val[0] = 0; ++# else + val[0] = B2K((uintmax_t)kp->ki_size); ++# endif + /* VmPeak - not defined in /compat/linux/proc/pid/status */ + val[1] = -1; + iret = 0; Added: head/french/aster/files/post-patch-bibfor__jeveux__jedebu.F90 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/french/aster/files/post-patch-bibfor__jeveux__jedebu.F90 Thu Jan 2 21:50:40 2020 (r521882) @@ -0,0 +1,18 @@ +--- ./bibfor/jeveux/jedebu.F90.orig 2019-09-25 21:45:58.000000000 +0200 ++++ ./bibfor/jeveux/jedebu.F90 2019-12-31 12:21:04.131247000 +0100 +@@ -225,6 +225,7 @@ + k8tab(2) = 'VMPEAK' + k8tab(3) = 'VMSIZE' + call utgtme(3, k8tab, rval, iret) ++ call utmess('I', 'DEBUG_1', nr=3, valr=rval, fname='%%WRKDIR%%/aster_debug1.log') + if (rval(2) .le. 0 .or. rval(3) .le. 0) then + call utmess('I', 'JEVEUX1_75') + endif +@@ -232,6 +233,7 @@ + if (rval(3) .gt. 0) then + ! + call utptme('RLQ_MEM ', rval(3), iret) ++ call utmess('I', 'DEBUG_1', nr=3, valr=rval, fname='%%WRKDIR%%/aster_debug2.log') + if (rval(1)-rval(3) .le. 0) then + call utmess('F', 'JEVEUX1_71', nr=3, valr=rval) + endif