[Bug 278943] lang/julia: update to 1.10.3 led to new filenames for certain compiled Julia modules

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 15 May 2024 20:29:00 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278943

--- Comment #4 from Hiroo Ono <hiroo.ono+freebsd@gmail.com> ---
Sorry, I thought I also checked with the option NATIVE, but it seems I did not
with the final pkg-plist.

From the diff submitted, when the reporter did compile with the option NATIVE,
the hashed library file names became as follows:

%%NATIVE%%%%DATADIR%%/compiled/v%%MINOR%%/DelimitedFiles/dlKZm_2kKmW.ji
%%NATIVE%%%%DATADIR%%/compiled/v%%MINOR%%/DelimitedFiles/dlKZm_2kKmW.so
%%NATIVE%%%%DATADIR%%/compiled/v%%MINOR%%/DelimitedFiles/dlKZm_Xrf2B.ji
%%NATIVE%%%%DATADIR%%/compiled/v%%MINOR%%/DelimitedFiles/dlKZm_Xrf2B.so
%%NATIVE%%%%DATADIR%%/compiled/v%%MINOR%%/DelimitedFiles/dlKZm_ixjAb.ji

while, here at my side it became as follows:

%%DATADIR%%/compiled/v%%MINOR%%/DelimitedFiles/dlKZm_alIlh.ji 
%%DATADIR%%/compiled/v%%MINOR%%/DelimitedFiles/dlKZm_e0JVL.ji 
%%DATADIR%%/compiled/v%%MINOR%%/DelimitedFiles/dlKZm_e0JVL.so 
%%DATADIR%%/compiled/v%%MINOR%%/DelimitedFiles/dlKZm_zHrJ5.ji 
%%DATADIR%%/compiled/v%%MINOR%%/DelimitedFiles/dlKZm_zHrJ5.so

So, it seems that we have to choose between
1) delete "compiled" directory at install as we did until 1.9.x
  (in this case, some compile time happens when we first call the library by
"using".)
2) generate plist on the fly, when the port is built

Which one do you think is preferable?

By the way, I am also trying to make the port of julia 1.11.0 beta1, and it
seems it does not change the library hash between non-DEBUG and DEBUG build. So
maybe with release 1.11.x, NATIVE might also do not change the library hash. I
will remember to check that.

-- 
You are receiving this mail because:
You are the assignee for the bug.