[m-users.] 22.01 beta release available

Fabrice Nicol fabrnicol at gmail.com
Wed Jan 26 22:15:14 AEDT 2022


Ah. Alert definitely NOT lifted.

ROTDs and the beta release, ** on GitHub's release section ** do NOT 
have mercury_compile.c under compiler/

Packages do not have the same checksums as on the official Mercury 
Language download page.

So actually the 'mangled' package/build failures of my prior messages 
were just caused by the fact that I downloaded an incomplete package 
from GitHub then turned to the official dl page believing packages were 
identical. They are not:

Proof:

mkdir a && cd a && wget 
https://dl.mercurylang.org/rotd/mercury-srcdist-rotd-2022-01-25.tar.gz 
&& tar xzvf mercury-srcdist-rotd-2022-01-25.tar.gz && cd -

     mkdir b && cd b && wget 
https://github.com/Mercury-Language/mercury-srcdist/archive/refs/tags/rotd-2022-01-25.tar.gz 
&& tar xzvf rotd-2022-01-25.tar.gz && cd -

     diff -r a/mercury-srcdist-rotd-2022-01-25 
b/mercury-srcdist-rotd-2022-01-25 | grep mercury_compile.c

Copy-paste and run, you'll find (in a French locale ;) ):

Seulement dans a/mercury-srcdist-rotd-2022-01-25/compiler: mercury_compile.c
     Seulement dans a/mercury-srcdist-rotd-2022-01-25/compiler: 
mercury_compile.c_date

Huh. Checksums...

Fabrice

> Alert lifted.
>
> compiler/mercury_compile.c was mangled in the downloaded package, with 
> a very few other files.
>
> Downloaded a fresh package, reconfigured and rebuilt OK.
>
> Note:
>
> It might be a nice idea to add (at least for releases) checksum files 
> on the Mercury download webpage. Or, alternatively, a CHECKSUM file at 
> the package root.
>
> Adding commit IDs is not enough for users to avoid such issues as, 
> mercury_compile.c is only shipped in the package, not in the git 
> source code (by design, I assume).
>
> Fabrice
>
>
>>
>> On Sun, 23 Jan 2022, Fabrice Nicol wrote:
>>
>>> Sure, I was just looking into it.
>>>
>>> Attached are both config.log.beta and config.log.20.06.1, 
>>> corresponding to each build.
>>
>> Unfortunately, they don't tell me much.  Can you confirm that the
>> pre-generated C file compiler/mercury_compile.c is present.
>>
>> Julien.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurylang.org/archives/users/attachments/20220126/aac826c1/attachment-0001.html>


More information about the users mailing list