diff options
author | Jon Rood <jon.rood@nrel.gov> | 2021-10-29 08:05:41 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-29 16:05:41 +0200 |
commit | 962d06441e460c925818d80debe31635a52c46a8 (patch) | |
tree | 2bd3dba99dea86a2a4d90e3cb5eae7c30f7e50c0 | |
parent | fd10e544097b058a81ee89e0d8b93cecd13a4786 (diff) | |
download | spack-962d06441e460c925818d80debe31635a52c46a8.tar.gz spack-962d06441e460c925818d80debe31635a52c46a8.tar.bz2 spack-962d06441e460c925818d80debe31635a52c46a8.tar.xz spack-962d06441e460c925818d80debe31635a52c46a8.zip |
m4: set times of m4.texi to fix build on Summit GPFS (#26994)
Co-authored-by: Bernhard Kaindl <bernhardkaindl7@gmail.com>
-rw-r--r-- | var/spack/repos/builtin/packages/m4/package.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/m4/package.py b/var/spack/repos/builtin/packages/m4/package.py index 8f1e7e1281..72932351d1 100644 --- a/var/spack/repos/builtin/packages/m4/package.py +++ b/var/spack/repos/builtin/packages/m4/package.py @@ -3,6 +3,7 @@ # # SPDX-License-Identifier: (Apache-2.0 OR MIT) +import os import re @@ -54,8 +55,8 @@ class M4(AutotoolsPackage, GNUMirrorPackage): @when('@1.4.19') def patch(self): """ skip texinfo of m4.info for patched m4.texi (patched only a test in it) """ - touch('doc/m4.info') - touch('doc/stamp-vti') + timestamp = os.path.getmtime('doc/m4.info') + os.utime('doc/m4.texi', (timestamp, timestamp)) @classmethod def determine_version(cls, exe): |