Bug 1671482

Summary: cmake fails do build doxygen documentaion because of windows line endings
Product: [Fedora] Fedora Reporter: Andreas Schneider <asn>
Component: cmakeAssignee: Orion Poplawski <orion>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: anto.trande, besser82, jreznik, orion, rdieter, releng, walter.pete
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://gitlab.kitware.com/cmake/cmake/issues/18738
Whiteboard:
Fixed In Version: cmake-3.13.4-1.fc30 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-02-03 05:11:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1674516    

Description Andreas Schneider 2019-01-31 16:56:05 UTC
Description of problem:

cmake provides a module to generate doxygen documentation:

find_package(Doxygen)

This module creates a CMakeDoxygenDefaults.cmake in the build root which seems to add Windows line endings (\m)

cmake fails with:

BUILDSTDERR: CMake Error at obj/CMakeDoxygenDefaults.cmake:471 (set):
BUILDSTDERR:   Syntax error in cmake code at
BUILDSTDERR:     /builddir/build/BUILD/libssh-0.8.6/obj/CMakeDoxygenDefaults.cmake:471
BUILDSTDERR:   when parsing string
BUILDSTDERR:     \makeindex
BUILDSTDERR:   Invalid character escape '\m'.
BUILDSTDERR: Call Stack (most recent call first):
BUILDSTDERR:   /usr/share/cmake/Modules/FindDoxygen.cmake:958 (include)
BUILDSTDERR:   doc/CMakeLists.txt:40 (doxygen_add_docs)


https://koji.fedoraproject.org/koji/taskinfo?taskID=32375115

Comment 1 Orion Poplawski 2019-02-03 05:11:28 UTC
Upstream bug: https://gitlab.kitware.com/cmake/cmake/issues/18738

Fix: https://gitlab.kitware.com/cmake/cmake/merge_requests/2867

Fixed in 3.13.4, build hopefully finishing shortly.

Comment 2 Andreas Schneider 2019-02-11 18:19:14 UTC
*** Bug 1674745 has been marked as a duplicate of this bug. ***

Comment 3 Andreas Schneider 2019-02-12 13:31:29 UTC
*** Bug 1675311 has been marked as a duplicate of this bug. ***