View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011049CMakeModulespublic2010-07-27 15:522010-08-04 02:41
ReporterDroscy 
Assigned ToKovarththanan Rajaratnam 
PrioritynormalSeveritymajorReproducibilityN/A
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionFixed in VersionCMake-2-8 
Summary0011049: FindZLIB does not correctly get the version from zlib.h header file
DescriptionFindZLIB does not correctly get the version string from zlib.h header file and, in addition, it is very slow in trying to get that version because the script reads the whole zlib.h file.

The attached FindZLIB.cmake file speeds up the search process and correctly gets the version string from zlib.h setting the right CMake's variable as reported in the guide line for Module Maintainers.
TagsNo tags attached.
Attached Files? file icon FindZLIB.cmake [^] (3,764 bytes) 2010-07-27 15:52

 Relationships

  Notes
(0021585)
Greg Sharp (reporter)
2010-07-31 12:18

I have confirmed correct operation of Droscy's patch on Debian x86_64.

This is a frustrating bug. Please fix soon. Thanks!
(0021586)
Kovarththanan Rajaratnam (developer)
2010-08-01 00:34

Greg, I've submitted the patch. Hopefully it will be picked up for the next release.
(0021587)
Droscy (reporter)
2010-08-01 04:07

The new FindPackageHandleStandardArgs, as reported here http://public.kitware.com/Bug/view.php?id=9414, [^] will automatically do version-checking, so the lines between 67 and 79 of my edited FindZLIB probably can be removed.

Kovarththanan can you check if I'm right?
(0021588)
Kovarththanan Rajaratnam (developer)
2010-08-01 04:09

The fix for bug 0009414 still hasn't reached the master branch yet. I plan on changing the code when it does.
(0021596)
Clinton Stimpson (developer)
2010-08-02 11:56

A fix was already merged into master a month ago. Does that fix not work?
It barely missed the 2.8.2 release.

http://cmake.org/gitweb?p=cmake.git;a=commit;h=4dfa612e068fc82b444e1df53364b85c405264d9 [^]
(0021598)
Kovarththanan Rajaratnam (developer)
2010-08-02 14:08

Droscy's patch does some additional stuff:

1) Optimize the regex parsing
2) Extract and expose the TWEAK string
3) Enforce the specified version

 Issue History
Date Modified Username Field Change
2010-07-27 15:52 Droscy New Issue
2010-07-27 15:52 Droscy File Added: FindZLIB.cmake
2010-07-31 12:18 Greg Sharp Note Added: 0021585
2010-08-01 00:34 Kovarththanan Rajaratnam Note Added: 0021586
2010-08-01 04:07 Droscy Note Added: 0021587
2010-08-01 04:09 Kovarththanan Rajaratnam Note Added: 0021588
2010-08-02 11:56 Clinton Stimpson Note Added: 0021596
2010-08-02 14:08 Kovarththanan Rajaratnam Note Added: 0021598
2010-08-03 12:16 Kovarththanan Rajaratnam Status new => assigned
2010-08-03 12:16 Kovarththanan Rajaratnam Assigned To => Kovarththanan Rajaratnam
2010-08-04 02:41 Kovarththanan Rajaratnam Status assigned => closed
2010-08-04 02:41 Kovarththanan Rajaratnam Resolution open => fixed
2010-08-04 02:41 Kovarththanan Rajaratnam Fixed in Version => CMake-2-8


Copyright © 2000 - 2018 MantisBT Team