View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010923CMakeCMakepublic2010-07-01 14:552010-09-10 00:07
ReporterCuran 
Assigned ToBrad King 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionCMake 2.8.3Fixed in VersionCMake 2.8.3 
Summary0010923: Missing Findlibarchive.cmake hinders building of CMake system's libarchive.
DescriptionCMake ships an embedded copy of libarchive. As the embedded version caused a build failure recently [0] we (the maintainers of CMake for Debian) decided to use the system's libarchive. The CMake build system seemed to be prepared for it (it checked for CMAKE_USE_SYSTEM_LIBARCHIVE). But unfortunately the CMake module for which the build script checks (find_package(libarchive)) or any similar named module doesn't exist in the released CMake tarball or the Git repository.

Please provide a CMake module for libarchive with the next release.


[0] https://buildd.debian.org/fetch.cgi?&pkg=cmake&ver=2.8.2-1&arch=hurd-i386&stamp=1277895478&file=log [^]
Additional InformationDebian has addressed [1] this issue in the meantime by using the CMake module from kdeutils [2]. You might want to use.


[1] http://git.debian.org/?p=collab-maint/cmake.git;a=commitdiff;h=9a050335e115160b5de55af00ca21150eb8876ef [^]
[2] http://websvn.kde.org/trunk/KDE/kdeutils/cmake/modules/FindLibArchive.cmake?view=markup [^]
TagsNo tags attached.
Attached Files

 Relationships
related to 0010932closedBrad King --system-libs doesn't enable system curl, libarchive etc. 

  Notes
(0021543)
Brad King (manager)
2010-07-29 10:28

It looks like the "seemed to be prepared for it" check for CMAKE_USE_SYSTEM_LIBARCHIVE was left from a cut-and-paste partial implementation copied from one of the other system library support blocks in CMakeLists.txt. It was not a documented option (that would appear in cmake-gui when configuring).

I've written a FindLibArchive module and used it to implement CMAKE_USE_SYSTEM_LIBARCHIVE. I wrote a new module because I do not think we should be doing try-compiles just to find something. The caller of find_package(LibArchive) can do those checks.

It's been published in next:

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=01d2057a [^]
a602f87 Add option CMAKE_USE_SYSTEM_LIBARCHIVE (0010923)
9e903b9 Add FindLibArchive module (0010923)

 Issue History
Date Modified Username Field Change
2010-07-01 14:55 Curan New Issue
2010-07-29 10:25 Brad King Status new => assigned
2010-07-29 10:25 Brad King Assigned To => Brad King
2010-07-29 10:28 Brad King Note Added: 0021543
2010-07-29 10:29 Brad King Status assigned => closed
2010-07-29 10:29 Brad King Resolution open => fixed
2010-07-29 10:48 Brad King Relationship added related to 0010932
2010-09-10 00:07 David Cole Fixed in Version => CMake 2.8.3
2010-09-10 00:07 David Cole Target Version => CMake 2.8.3


Copyright © 2000 - 2018 MantisBT Team