[haiku-bugs] [Haiku] #10246: build_cross_tools_gcc4 doesn't like whitespaces in paths

  • From: "idefix" <trac@xxxxxxxxxxxx>
  • Date: Mon, 25 Nov 2013 20:28:31 -0000

#10246: build_cross_tools_gcc4 doesn't like whitespaces in paths
--------------------------+------------------------------
 Reporter:  idefix        |        Owner:  bonefish
     Type:  bug           |       Status:  new
 Priority:  normal        |    Milestone:  R1
Component:  Build System  |      Version:  R1/Development
 Keywords:                |   Blocked By:
 Blocking:                |  Has a Patch:  0
 Platform:  All           |
--------------------------+------------------------------
 Now that hrev46424 fixed ticket:10170, 'configure' outputs the following
 message:
 {{{
 jeroen@Gromit:~/Builds/Haiku/Raspberry Pi/haiku$ ./configure --build-
 cross-tools arm ../buildtools
 /home/jeroen/Builds/Haiku/Raspberry
 Pi/haiku/build/scripts/build_cross_tools_gcc4: 49: [:
 /home/jeroen/Builds/Haiku/Raspberry: unexpected operator
 checking build system type... x86_64-unknown-linux-gnu
 checking host system type... x86_64-unknown-linux-gnu
 checking target system type... arm-unknown-haiku
 }}}

 [attachment:0001-Fix-for-whitespace-in-paths.patch Attached patch] is a
 crude attempt to fix this.

 After applying this patch, 'configure' fails with the following message:
 {{{
 jeroen@Gromit:~/Builds/Haiku/Raspberry Pi/haiku$ ./configure --build-
 cross-tools arm ../buildtools
 configure: error: path to source, /home/jeroen/Builds/Haiku/Raspberry
 Pi/buildtools/binutils, contains spaces
 }}}

 This comes from buildtools' [http://cgit.haiku-
 os.org/buildtools/tree/binutils/configure#n1368 configure] ([http://cgit
 .haiku-os.org/buildtools/tree/binutils/configure.ac#n192 configure.ac]),
 so I think this cannot be fixed easily.

 Maybe Haiku should also require the paths to be whitespace-less?

--
Ticket URL: <http://dev.haiku-os.org/ticket/10246>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: