Open AlexDaniel opened 5 years ago
@AlexDaniel
MeCab
works well on travis ci environment: https://travis-ci.org/titsuki/p6-MeCab/builds/490520612
However, even if i set PERL6LIB=data/zef/lib,lib
and run $ PERL6LIB=data/zef/lib,lib bin/blin.p6 MeCab
, Blin cannot detect Zef::Fetch
and fails.
Is there any good way to pass the build phase via Blin?
@titsuki if my understanding is correct, this is what happens. When Blin attempts to install a module, it constructs PERL6LIB paths specific to that module. So if a module depends on A and B, only A and B will be available. It does that by looking at depends
and test-depends
and build-depends
fields.
Now, MeCab depends on Zef, right? However, Zef is not in any of the depends
fields. So maybe just adding Zef to META6.json will make it installable?
I have already fixed this problem but Blin requires the package list update (https://raw.githubusercontent.com/ugexe/Perl6-ecosystems/master/cpan1.json ) and it will take more time to show up the latest MeCab package. So, I'll confirm this issue is really fixed or not tomorrow.
I noticed that the package list has the latest MeCab package. I mistakenly understand Blin has Module:ver<VERSION>
(e.g., MeCab:ver<0.11.0>
) style syntax like Zef has.
However, MeCab:version<0.0.11>
(i.e., the previous latest package) fails again due to the other missing libraries other than Zef::Fetch
.
I'll test the next fixed version tomorrow.
@AlexDaniel I tested two patterns to install the dependent modules that Zef provides: https://github.com/titsuki/p6-MeCab/blob/0.0.13/META6.json#L6-L9 https://github.com/titsuki/p6-MeCab/blob/0.0.12/META6.json#L6-L14
However, MeCab still fails... Are there any other solutions?
I think just adding "Zef"
as a dependency should work, I don't know why it doesn't… I'll try to take a look later. Anyway, I'm pretty sure for most users this is not an issue, I think currently it only fails in Blin.
Module MeCab cannot be installed (
AlwaysFail
), perhaps it has some failing tests.works for me
label, leave a comment saying that it works for you and mention any details that you feel are important.native dependency
label, describe what you did to install it and ensure that same instructions are present in the README file of the module (otherwise submit a pull request). Also try to update this wiki page.PR sent
label.failing dependency
label and write a comment explaining the situation. Feel free to work on the corresponding ticket for the failing dependency.If you can't self-assign yourself or attach a label, please let us know on #perl6 channel on freenode or just leave a comment here. We will try to give you privileges as fast as possible.
Output:
Ping @titsuki