Closed Quuxplusone closed 11 years ago
Bugzilla Link | PR17203 |
Status | RESOLVED FIXED |
Importance | P normal |
Reported by | Tobias Markmann (tm@ayena.de) |
Reported on | 2013-09-12 04:07:35 -0700 |
Last modified on | 2013-09-13 07:43:17 -0700 |
Version | trunk |
Hardware | Macintosh MacOS X |
CC | daniel.sanders@imgtec.com, jrose@belkadan.com, llvm-bugs@lists.llvm.org |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also |
Daniel Sanders has a patch for this: http://llvm-reviews.chandlerc.com/D1659
It's true that the first version of my patch would fix this build but I don't think the updated version does. Those look like subversion URLs so I don't think this is the multi-remote git repository problem I was trying to fix. I think it's taking one of the other two paths through utils/GetRepositoryPath.
Tobias: Is your checkout from svn, git-svn, or git? Also, can you attach your tools/clang/lib/Basic/SVNVersion.inc? I find that the file is deleted before the end of the build so you might need to comment the 'file(REMOVE ...)' command at the end of cmake/modules/GetSVN.cmake and attach the SVNVersion.inc.txt instead.
I think it's a normal svn repo.
URL: http://llvm.org/svn/llvm-project/llvm/trunk
Relative URL: ^/llvm/trunk
Repository Root: http://llvm.org/svn/llvm-project
Repository UUID: 91177308-0d34-0410-b5e6-96231b3b80d8
--- Content of SVNVersion.inc
llvm_build cat tools/clang/lib/Basic/SVNVersion.inc
#define LLVM_REVISION "190668"
#define LLVM_REPOSITORY "http://llvm.org/svn/llvm-project/llvm/trunk
^/llvm/trunk"
#define SVN_REVISION "190668"
#define SVN_REPOSITORY "http://llvm.org/svn/llvm-project/cfe/trunk
^/cfe/trunk"
I think I see whats going on. GetRepositoryPath is grepping for 'URL:' and is
picking up the 'Relative URL:' line in addition to the intended line.
It doesn't happen on my svn checkout though. What version of svn are you using?
I'm on 1.7.5 (r1336830).
It should be a one character fix. Try changing util/GetRepositoryPath so that:
svn info | grep 'URL:' | cut -d: -f2-
becomes:
svn info | grep '^URL:' | cut -d: -f2-
$ svn --version
svn, version 1.8.0 (r1490375)
compiled Aug 27 2013, 22:21:07 on x86_64-apple-darwin12.4.0
Your proposed fix works for me. Thanks.
Great. It's a pretty simple fix so I'll go ahead and commit it.
Thanks for the bug report
Fix committed in r190685