MPFR: fix patch checksum, add dependencies#15783
Conversation
|
FYI: It seems the hash has changed again. It is now |
|
Checksum has been updated. If we want to avoid this checksum issue, we could replace |
At this point, I think I would prefer bloated over breaking all the time. |
|
For comparison with other package managers, Homebrew gets around this problem by not applying any patches at all: https://github.com/Homebrew/homebrew-core/blob/master/Formula/mpfr.rb |
|
I'm unable to build mfpr. I'm stuck back at spack commit f912cce and/but have grabbed the mpfr package from the fix. It dies because the macro, Supposedly depending on autoconf-archive should fix that. It's installed and in the spec for mpfr. I can see I don't understand how the autotools invocation in mpfr is supposed to know to look over in Spack's autoconf-archive prefix to find the file. Is it a pkg-config thing, or??? Is something missing somewhere in the autoconf-archive install or? :scratch: |
|
[edit, fix version number in spec.satisfies: Following a clue from this intel compiler bug fix, I decided that "someone" needed to copy the appropriate file into the mpfr source tree before reconfiguring. This let's it build for me. @run_before('autoreconf')
def copy_ax_pthread_m4(self):
"""Copy the ax_pthread.m4 file from autoconf_archive
into the m4 directory.
"""
if self.spec.satisfies('@4.0.2:'):
install(join_path(self.spec['autoconf-archive'].prefix,
'share/aclocal/ax_pthread.m4'),
join_path(self.stage.source_path, "m4"))I can't contribute code at the moment, if someone else wanted to base a PR on this, I'd be overjoyed! IF they improved on it, I'd be even happier! |
See #15784 for how things are supposed to work. |
|
So it boils down to me being stuck back behind that fix. Thanks for the pointer, sorry for the wasted bandwidth. |
|
@adamjstewart mpfr's patch file has changed again:
I think the best bet might be to:
|
* MPFR: fix patch checksum, add dependencies * Update checksum again
For the
mpfrpackage, we use the aggregatedallpatchespatch for each version. Unfortunately, this patch is added to from time-to-time, so the checksum changed. This PR updates the checksum, and switches older patched to sha256. The older patches did not change, only the latest patch.This PR also adds a dependency on
autoconf-archive. Without this,mpfrfails during the build stage with the following error message:Depends on #15784