Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$*PERL.compiler.version produces different versions on different OSes even if built from same commit #6334

Open
p6rt opened this issue Jun 8, 2017 · 1 comment
Labels
LTA Less Than Awesome; typically an error message that could be better

Comments

@p6rt
Copy link

p6rt commented Jun 8, 2017

Migrated from rt.perl.org#131539 (status was 'new')

Searchable as RT131539$

@p6rt
Copy link
Author

p6rt commented Jun 8, 2017

From @zoffixznet

Last night, I fixed a bug and used RakudoPrereq.pm6 to lock my module to latest and greatest.

I obtained the wanted version from camelia​:

  m​: say $*PERL.compiler.version
  rakudo-moar 0a1008​: OUTPUT​: «v2017.05.380.g.0.a.100825.d␤»

With the same commit built on my pristine Debian Jessie. My module failed, telling me my perl6 is not new enough.
Looking closer at the version, turns out my Debian box uses fewer chars​:

  perl6 -e 'say $*PERL.compiler.version'
  v2017.05.380.g.0.a.10082

Which makes the resultant Version object to be "before" the version string I got from camelia.

Commitable bot also runs on Debian jesse, but surprisingly, it gives different result from mine​:

  19​:47 c​: 0a10082 say $*PERL.compiler.version
  19​:47 committable6 eveo, ¦0a10082​: «v2017.05.380.g.0.a.100825.d»

I first noticed this with rakudobrewed perl6, so I grabbed a checkout of Rakudo and compiled a copy manually,
yet, it still gives a different, abridged version​:

  $ ./perl6 -e 'say $*PERL.compiler.version'
  v2017.05.380.g.0.a.10082

There might be other cases where similar issues will occur due to strings of different lengths being used.
Would be nice to guarantee the same commit always produces the same $*PERL.compiler.version Version object.

@p6rt p6rt added the LTA Less Than Awesome; typically an error message that could be better label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LTA Less Than Awesome; typically an error message that could be better
Projects
None yet
Development

No branches or pull requests

1 participant