Review Request 114888: Avoid "//" in path in generated headers

Alex Merry kde at randomguy3.me.uk
Wed Jan 8 12:44:48 UTC 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/114888/#review47048
-----------------------------------------------------------



modules/ECMGenerateHeaders.cmake
<https://git.reviewboard.kde.org/r/114888/#comment33532>

    Since CMake has somewhat unexpected behaviour when using MATCHES with an empty string (I would expect (NOT "" MATCHES "^.*/$") to be true), it might be worth putting a comment in.


- Alex Merry


On Jan. 8, 2014, 12:22 p.m., Dan Vrátil wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/114888/
> -----------------------------------------------------------
> 
> (Updated Jan. 8, 2014, 12:22 p.m.)
> 
> 
> Review request for Extra Cmake Modules and KDE Frameworks.
> 
> 
> Repository: extra-cmake-modules
> 
> 
> Description
> -------
> 
> When the RELATIVE parameter in ECMGenerateHeaders is empty or not set, the _actualheader variable would be defined to "/cmake/current/source/dir//lowercaseclassname.h". 
> 
> The double slash breaks RPM's debug symbols extraction, because it canonicalizes the path, so it's shortened by one "/". The shortening is done to avoid double-slash in the beginning of the path, which is non-POSIX. However from my understanding it's not possible to truncate the size of directory table by 1 byte, so the debugedit utility aborts and the entire rpmbuild fails. See a relevant bug report with further information: https://bugzilla.redhat.com/show_bug.cgi?id=304121 (comment #2)
> 
> This patch simply makes sure that EGH_RELATIVE is either empty, or non-empty and terminated with slash.
> 
> With this patch we are able to build solid and kdnssd frameworks with RPM build tools.
> 
> 
> Diffs
> -----
> 
>   modules/ECMGenerateHeaders.cmake f72b1c0 
> 
> Diff: https://git.reviewboard.kde.org/r/114888/diff/
> 
> 
> Testing
> -------
> 
> Successfully built solid and kdnssd frameworks with rpmbuild, other frameworks still build too.
> 
> 
> Thanks,
> 
> Dan Vrátil
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20140108/82cf41c9/attachment.html>


More information about the Kde-frameworks-devel mailing list