libuv-julia: fix mtime again (#35945)
On some systems touch runs out of order, so set a equal mtimes to the relevant files
This commit is contained in:
parent
ee5b2936e4
commit
cc4f7c224a
@ -2,6 +2,9 @@
|
|||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
import os
|
||||||
|
import time
|
||||||
|
|
||||||
from spack.package import *
|
from spack.package import *
|
||||||
|
|
||||||
|
|
||||||
@ -19,11 +22,15 @@ class LibuvJulia(AutotoolsPackage):
|
|||||||
version("1.42.0", commit="3a63bf71de62c64097989254e4f03212e3bf5fc8")
|
version("1.42.0", commit="3a63bf71de62c64097989254e4f03212e3bf5fc8")
|
||||||
|
|
||||||
def autoreconf(self, spec, prefix):
|
def autoreconf(self, spec, prefix):
|
||||||
# @haampie: Configure files are checked in, but git does not restore mtime
|
# @haampie: Configure files are checked in, but git does not restore
|
||||||
# by design. Therefore, touch files to avoid regenerating those.
|
# mtime by design. Therefore, touch files to avoid regenerating those.
|
||||||
touch("aclocal.m4")
|
# Make sure to set them all to the same time, otherwise weird problems
|
||||||
touch("Makefile.in")
|
# might occur (https://github.com/spack/spack/pull/35945).
|
||||||
touch("configure")
|
cur = time.time()
|
||||||
|
times = (cur, cur)
|
||||||
|
os.utime("aclocal.m4", times)
|
||||||
|
os.utime("Makefile.in", times)
|
||||||
|
os.utime("configure", times)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def libs(self):
|
def libs(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user