[MDEV-22479] Windows : build does not work, if build directory contains plus character Created: 2020-05-06  Updated: 2022-07-07  Resolved: 2022-07-07

Status: Closed
Project: MariaDB Server
Component/s: Compiling
Affects Version/s: 5.5, 10.1, 10.2, 10.3, 10.4, 10.5
Fix Version/s: 10.6.1

Type: Bug Priority: Trivial
Reporter: Vladislav Vaintroub Assignee: Vladislav Vaintroub
Resolution: Fixed Votes: 0
Labels: None


 Description   

...
Generating mysql_fix_privilege_tables_sql.c
The syntax of the command is incorrect.
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(231,5): error MSB6006: "cmd.exe" exited with code 1. [C:\C++\10.5\xxx\scripts\GenF
ixPrivs.vcxproj]

What happens is following :
cmake tries to concatenate several files into one, and on Windows it is done with

cmd /c copy /b mysql_system_tables_fix.sql + mysql_system_tables.sql + mysql_performance_tables.sql ${native_outfile}

+ has a special meaning for the copy command, and if ${native_outfile} also contain a + , copy is confused.



 Comments   
Comment by Vladislav Vaintroub [ 2022-07-07 ]

Was fixed back in 10.6 in aa2ff62082c4 (sys schema)

Generated at Thu Feb 08 09:15:02 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.