Guest User

Untitled

a guest
Jul 19th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. One of the Parrot Configure.pl tasks runs:
  2.  
  3. rakudo/parrot/config/auto/git_describe.pm
  4.  
  5. auto::git_describe uses Parrot::Git::Describe::current; which runs `git describe --tags` and puts the result of that command in a file .parrot_current_git_describe
  6.  
  7. Similar thing happens for .parrot_current_sha1
  8.  
  9. However, auto::git_describe will skip this unless a .git directory exists in the parrot directory. For Rakudo Star this .git directory doesn't exist as part of a Parrot release, so the git_describe step is skipped. This means that .parrot_current_git_describe doesn't get generated as part of parrot Configure.pl, which in turn means that the current git revision isn't built into the parrot config hash.
  10.  
  11. e.g. for a Rakudo Star build,
  12.  
  13. $ ./parrot_config git_describe
  14. no such key: 'git_describe'
  15.  
  16. Rakudo tries to use this information when it reports the version number via `perl6 --version`.
  17.  
  18. Either this information needs to be made available to auto::git_describe for Rakudo Star distributions using a bundled Parrot release (which is not a git repo), or the code to handle to --version in src/Perl6/Compiler.pir needs to be improved (see an example patch below, 0001-Perl6-Compiler-Parrot-revision-for-version-fix.patch)
Add Comment
Please, Sign In to add comment