-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fails if tidy-html5 is already installed #2
Comments
Could this be related to #1? |
Don't know. If it helps, here's the list of files installed by the package:
|
The problem seems to be the run_ok method in Test::Alien https://metacpan.org/pod/Test::Alien#run_ok |
The package name is "tidy-html5":
|
Well, that's the freebsd package name. The pkgconf name is |
Hm. The |
Well, if the package name is changed (e.g. to Also it passes if I apply this diff:
But this is also not the right fix, as it would start to fail on other OS. Maybe Alien::TidyHTML5 should know how the executable is named and provide a function to return either |
On some systems (FreeBSD), the executable may be named "tidy5" instead of "tidy". So we add this method to look for the first executable. This also cleans the namespace, and enables clean namespace tests.
I've just pushed some code to the repo that may fix this issue. Can you test it to see if that fixes it? |
|
With this commit reverted (and the conflict in the Changes file resolved) it does not pass (and it seems that there's no download):
|
Hm, that is very strange. |
|
Ok, that means that it's not finding anything. Can you modify the test to output the value of Alien::TidyHTML5->bin_dir? |
(And then of course let me know if there's anything in that directory) |
I think this is not quite right, the PkgConfig plugin should update these values so the gather section shouldn't be necessary. https://github.com/robrwo/Alien-TidyHTML5/blob/master/alienfile#L37-L41 I can take a closer look at this later if it hasn't been resolved. |
@robrwo : the output of bin_dir is undef:
|
I'm also wondering if it's the -x test that is failing for some reason. |
@plicease That would be appreciated. |
I think #3 should fix this. Please see the notes in that PR for details. |
The test suite fails on my FreeBSD smokers, see http://matrix.cpantesters.org/?dist=Alien-TidyHTML5%20v0.1.1;os=freebsd;reports=1
But it seems to pass if I deinstall the tidy-html5 package.
The text was updated successfully, but these errors were encountered: