https://bugs.freedesktop.org/show_bug.cgi?id=85737
Bug ID: 85737
Summary: bin/gbuild-to-ide includes hidden character when
determining source directory
Product: LibreOffice
Version: 4.4.0.0.alpha1
Hardware: x86-64 (AMD64)
OS: Cygwin
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Libreoffice
Assignee: [email protected]
Reporter: [email protected]
When I try to use "/opt/lo/bin/make vs2013-ide-integration" to generate files
for Visual Studio development, it print out thousands of lines saying that
"XXX.cxx in project XXX does not exist".
Then I open the .sln files in the source directory, nothing is included in the
project. But I am quite sure that libreoffce was built within my source
directory.
After some investigation, I found something weird. At the "GbuildParser" class
in the script "bin/vs2013-ide-integration", it seems to uses a set of regex to
match some basic information of the project, such as
class GbuildParser:
...
srcdirpattern = re.compile('^SRCDIR = (.*)')
builddirpattern = re.compile('^BUILDDIR = (.*)')
instdirpattern = re.compile('^INSTDIR = (.*)')
...
which matches source directory and build directory in makefiles. What make me
confused is that it will also include some characters invalid in a path, such
as '\n' and '\r' on my computer, so the file searching will fail with these
characters in next steps. For example, there is a variable recording the actual
source directory called "GbuildParser.srcdir", and it will end up with the
charater '\r' on my computer and it will return a invalid path. When I modify
the line in "bin/gbuild-to-ide" from
self.srcdir = srcdirmatch.group(1)
to
self.srcdir = srcdirmatch.group(1).strip()
Things get better and all the files are included in the VS project file.
Since I am not familiar with libreoffice source code, I don't know if I am
doing the right thing. Could anyone take a look at this? Appreciate your help!
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs