-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
ForkManager now appears to be required when attempting to build and install cloc #275
Comments
The contents of the Regular users--and I include myself in this category--should just use the cloc source file in the top level directory, in other words, |
I am creating a package. This is an issue because If it is the case that |
First off, thank you for being a package creator for cloc. (I'm curious which package manager you're working with?) Your efforts make it much easier for others to acquire and use cloc.
My preference is that you make a package for I'll post instructions for by-passing |
To remove the dependency on 53 my $HAVE_Parallel_ForkManager = 1; 54 use Parallel::ForkManager; AFTER: 53 my $HAVE_Parallel_ForkManager = 0; 54 # use Parallel::ForkManager; |
I package for pacman mostly. A lot of my packages are software currently built from latest commit such as glibc and cloc. This is mostly done in an effort to find potential issues, especially integration issues as that is something very difficult to account for even when attempted synthetically. This bug report is essentially an example of those efforts. Now I don't mind packaging forkmanager as it seems fairly straight forward and it would better provide a more complete example of the software, Thanks for addressing the issues o/ |
If there's more to be done on my end, please re-open. |
While Unfortunately the |
PS: The tests also fail because it looks for |
> /usr/local/perl/5.28.0/bin/perl -cw cloc Unix/cloc cloc syntax OK > /usr/local/perl/5.28.0/bin/perl -cw Unix/cloc Can't locate Parallel/ForkManager.pm in @INC (you may need to install the Parallel::ForkManager module) (@INC contains: /usr/local/perl/5.28.0/lib/site_perl/5.28.0/x86_64-linux /usr/local/perl/5.28.0/lib/site_perl/5.28.0 /usr/local/perl/5.28.0/lib/5.28.0/x86_64-linux /usr/local/perl/5.28.0/lib/5.28.0) at Unix/cloc line 871. BEGIN failed--compilation aborted at Unix/cloc line 871. I'm open to suggested edits on Regarding the submodule tests, do both T1 and T2 tests fail for you? |
There is no Currently the following works (and doesn't work): cd Unix
% ./t/00_C.t
# ok 1 - Agda created output
# ok 2 - Agda results match
# ...
# ok 326 - Xtend results match
# 1..326
% ./t/01_opts.t
# ...
# not ok 22 - git submodule handling (github issue \#131 T1) results match
# # Failed test 'git submodule handling (github issue #131 T1) results match'
# # at ./t/01_opts.t line 347.
# # Structures begin differing at:
# # $got->{Markdown} = HASH(0x55cbad921560)
# # $expected->{Markdown} = Does not exist
# 1..92
# # Looks like you failed 1 test of 92.
% ./t/02_git.t
# -------------------------------------------------------------------------------
# Directory 'cloc_submodule_test' is not found; git tests skipped.
# To enable the tests, create the directory with
# git clone https://github.com/AlDanial/cloc_submodule_test.git
# not ok 1 - git tests
# # Failed test 'git tests'
# # at ./t/02_git.t line 76.
# -------------------------------------------------------------------------------
# 1..1
# # Looks like you failed 1 test of 1. If I clone that repo as suggested, into the
However this is not where this submodule is registered. In fact the submodule appears to be a total red herring as attempting to use it as described in The prepare() {
cd cloc
# Attempt to make more progress on ./t/02_git.t; ignore the .gitmodules as
# it's a red herring.
mv -f "$srcdir"/cloc_submodule_test Unix/cloc_submodule_test
# Needed to install without `test-perl` breaking on ForkManager::Parallel
# not being present.
sed -i 's/^install-bin: test-perl$/install-bin:/' Unix/Makefile
}
check() {
cd cloc/Unix
make test-pod
./t/00_C.t
# ./t/01_opts.t
# ./t/02_git.t
} |
Fair enough; I have just a cursory knowledge of git submodules so the tests were perhaps beyond the limit of my understanding. I'm puzzled by the comment about Current circumstances limit the time I can spend on cloc. While I'm not going to abandon this project by any means, fixing up the test suite will be delayed. |
Empty?
Also I don't mind, the main issue is that |
Installed via cpan App::cloc, and I can't run because of missing Parallel/ForkManager.pm. Esited the cloc code to comment out the "use" and it works. |
I'm no longer able to build cloc since fcc846e
Unfortunately
ForkManager
is not available easily for me but perhaps this outcome wasn't intentional.Is there a way to work around the requirement or is
ForkManager
now mandatory?Thanks
The text was updated successfully, but these errors were encountered: