[148767] trunk/dports/science/quantum-espresso

dstrubbe at macports.org dstrubbe at macports.org
Tue May 17 10:48:04 PDT 2016


Revision: 148767
          https://trac.macports.org/changeset/148767
Author:   dstrubbe at macports.org
Date:     2016-05-17 10:48:04 -0700 (Tue, 17 May 2016)
Log Message:
-----------
quantum-espresso: Add patch to remove usage of 'version' target which is not thread-safe for parallel build, and is unnecessary anyway for a released version.

Modified Paths:
--------------
    trunk/dports/science/quantum-espresso/Portfile

Added Paths:
-----------
    trunk/dports/science/quantum-espresso/files/patch-Modules-Makefile.diff

Modified: trunk/dports/science/quantum-espresso/Portfile
===================================================================
--- trunk/dports/science/quantum-espresso/Portfile	2016-05-17 17:06:10 UTC (rev 148766)
+++ trunk/dports/science/quantum-espresso/Portfile	2016-05-17 17:48:04 UTC (rev 148767)
@@ -52,7 +52,8 @@
     patch-install-m4-x_ac_qe_mpif90.m4.diff \
     patch-Makefile.diff \
     patch-PHonon-examples-GRID_example-run_example_3.diff \
-    patch-PW-src-punch.f90.diff
+    patch-PW-src-punch.f90.diff \
+    patch-Modules-Makefile.diff
 
 compilers.choose    cc fc
 # g95 is not compatible with OpenMP

Added: trunk/dports/science/quantum-espresso/files/patch-Modules-Makefile.diff
===================================================================
--- trunk/dports/science/quantum-espresso/files/patch-Modules-Makefile.diff	                        (rev 0)
+++ trunk/dports/science/quantum-espresso/files/patch-Modules-Makefile.diff	2016-05-17 17:48:04 UTC (rev 148767)
@@ -0,0 +1,33 @@
+--- Modules/Makefile.orig	2016-05-17 13:38:30.000000000 -0400
++++ Modules/Makefile	2016-05-17 13:39:41.000000000 -0400
+@@ -154,20 +154,7 @@
+ 
+ TLDEPS=libfft
+ 
+-all : version version.o libqemod.a
+-
+-## If no update_version is found, or it is not executable,
+-## just copy version.f90.in (that contains 'version=unknown').
+-## We use cat and not cp so that version.f90 has a new timestamp,
+-## forcing recompilation of version.f90.
+-## We use the inner if to avoid recompilation at each make.
+-version:
+-	- ( if test -x ../install/update_version ; then \
+-	../install/update_version; \
+-	else if test ! -f version.f90 ; then \
+-	cat version.f90.in > version.f90 ; fi ; fi )	
+-
+-version.f90: version
++all : version.o libqemod.a
+ 
+ ## The following is needed only for lapack compiled from sources
+ 
+@@ -184,7 +171,7 @@
+ 
+ 
+ clean :
+-	- /bin/rm -f *.o *.a *.d *.i *~ *.F90 *.mod *.L version.f90
++	- /bin/rm -f *.o *.a *.d *.i *~ *.F90 *.mod *.L
+ 
+ # .PHONY forces execution of a rule irrespective of the presence of an
+ # updated file with the same name of the rule. In this way, the script 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160517/1da9c3ad/attachment.html>


More information about the macports-changes mailing list