-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
git svn fails: Can't locate SVN/Core.pm #2516
Comments
Have you tried installing it through cpan/cpanm? |
I did; the installation failed. But that would be a different issue; the module should be installed as a dependency of the git package (or, possibly, the subversion package). (FWIW, the issue with |
This is sort of uncharted territory, we don't have any packages that I can think of that rely on modules/packages that are installed through third-party package managers (such as cpan, pip, ..). Adding a dependency on SVN::CORE would mean either packaging SVN::CORE into it's own package ("perl-svn-core" I suppose) or installing it in a post-install script. Installing it in a postinst script would mean that we need to add perl (and possible apr-dev apr-util-dev, sqlite-dev, expat-dev, ...) to git's dependencies. We tend to not package packages that are installable through other package managers, as we don't have the manpower to be able to maintain thousands of such packages. |
Errr... the git package already comes with a number of Perl package...? $ ls /data/data/com.termux/files/usr/share/perl5/Git/SVN And SVN::Core isn't installable through a third-party package manager, as |
I have to look into the Makefile but maybe it's possible to install SVN::Core there as well then.
Could you share the compiler error that you got? |
Of course. Find the full log attached. The compiler error is:
|
The compiler uses -std=c90, it would probably be solved with -std=c99 instead. How to change that in a easy way is not something I know though. |
That would be an upstream bug in Subversion 1.8.11 then, which does this during configure:
This results in said option being put into the Makefile. There is a hackish way around this, which at least completes the build -- I could not yet test whether this hack breaks something further down the tracks:
The so-passed CFLAGS get put in the compiler command line after the Note that this generates a couple of rather ugly warnings (like Anyway... I still feel (strongly) that SVN::Core should be packaged with either |
No luck. Subversion gets compiled successfully, and SVN::Core gets built, but it cannot find the library it needs:
The library does exist in ~/.cpan, though:
|
The dlopen error can probably be solved by changing your install line to Compiling on device seems to be too much of a hassle, I agree that we should provide a package with the needed files. From @tomty89's linked README it looks like it should be built into subversion. |
It needs to be Good idea on the LDFLAGS, but it isn't sufficient:
(I forgot to |
This is how I get
The first time I have it built |
Hello, I stumbled upon this page from The Google because I had the issue described in the opening post. I'm trying to convert a SVN repository to a git one on CentOS 7. I 'fixed' this issue by installing the subversion-perl package.
I'm not sure if it's relevant for me to post here as I'm not using Termux, but that might be a hint in fixing the issue, or help others solve theirs. Using these versions:
|
No package subversion-perl available on Termux. (FWIW, I solved my practical problem by using another system to do the conversion. But the issue for the Termux distribution persists.) |
@DevSolar Thanks for the reply. Then should it be appropriate for me to remove my comments here? |
@vaillancourt, I think I would actually leave your comment, as it suggests a possible approach to the problem to developers (to make a subversion-perl package.) |
Thanks @vaillancourt ... not using Termux, but google got me to this page, and your solution worked for me! |
sudo xcodebuild -license Then add this to your ~/.profile:export PATH=/Library/Developer/CommandLineTools/usr/bin:$PATHThen probably:brew reinstall git |
@multithreadke Your solution was for MacOS, not Termux. |
For Ubuntu 18.10 this is |
Thank you so much @vaillancourt! No one else made it this easy. |
Just checked this; the problem still persists with (current, F-Droid installed) Termux's
|
i think i finally fixed it :) 059fea2...47548b8 |
@landfillbaby Works on x86_64. |
Subversion and git are installed. The
git svn
command fails due to a missing Perl module dependency (SVN::Core).$ svn
Type 'svn help' for usage.
$ git svn
Can't locate SVN/Core.pm in @inc (you may need to install the SVN::Core module) (@inc contains: /data/data/com.termux/files/usr/share/perl5 /data/data/com.termux/files/usr/lib/perl5/site_perl/5.26.2/arm-android /data/data/com.termux/files/usr/lib/perl5/site_perl/5.26.2 /data/data/com.termux/files/usr/lib/perl5/5.26.2/arm-android /data/data/com.termux/files/usr/lib/perl5/5.26.2 .) at /data/data/com.termux/files/usr/share/perl5/Git/SVN/Utils.pm line 6.
BEGIN failed--compilation aborted at /data/data/com.termux/files/usr/share/perl5/Git/SVN/Utils.pm line 6.
Compilation failed in require at /data/data/com.termux/files/usr/share/perl5/Git/SVN.pm line 25.
BEGIN failed--compilation aborted at /data/data/com.termux/files/usr/share/perl5/Git/SVN.pm line 32.
Compilation failes in require at /data/data/com.termux/files/usr/libexec/git-core/git-svn line 21.
BEGIN failed--compilation aborted at /data/data/com.termux/files/usr/libexec/git-core/git-svn line 21.
The text was updated successfully, but these errors were encountered: