Opened 15 years ago

Closed 13 years ago

Last modified 7 years ago

#2596 closed enhancement (fixed)

New Package - CMake-2.8.3

Reported by: ken@… Owned by: thomas
Priority: normal Milestone: x-future
Component: BOOK Version: SVN
Severity: normal Keywords:
Cc:

Description

Cmake is a build dependency for kde4.

To build it in the absence of an existing cmake, use ./bootstrap : at a minimum ./bootstrap --prefix=/usr. That has two unfortunate side-effects:

(i.) it puts man pages into /usr/man (our symlink solves that, so long as we still have it) and documentation in /usr/doc/cmake-2.6

(ii.) it uses its own versions of curl, expat, zlib, xmlrpc-c. I have no particular feelings about xmlrpc-c (it's a niche product, apparently only used by the 'cpack' program), but the other three really ought to be using the system versions. Unfortunatley, cmake uses an all-or-nothing approach to system-libs, so xmlrpc-c has to be used if you want to use system zlib etc. I've built xmlrpc-c-1.06.31 for this, using curl - ticket to follow.

So, I'm now using

./bootstrap --prefix=/usr --system-libs --mandir=/share/man --docdir=/share/doc/cmake-2.6.2

Attachments (2)

cmake.patch (13.4 KB ) - added by thomas 13 years ago.
libarchive-cmake.patch (13.4 KB ) - added by thomas 13 years ago.

Download all attachments as: .zip

Change History (14)

comment:1 by Randy McMurchy, 15 years ago

Milestone: 6.4future
Type: taskenhancement

As this package is required by KDE4 and KDE4 is marked as future, I'm changing this to future.

comment:2 by ken@…, 15 years ago

I'm inclined to pull this forward to 6.4 again, along with xmlrpc-c, so that people keen to try that can of worms called kde4 don't end up by accident with statically linked old versions of those libraries.

comment:3 by bdubbs@…, 15 years ago

Summary: New package, cmake-2.6.2cmake-2.6.2

comment:4 by Randy McMurchy, 14 years ago

Summary: cmake-2.6.2New Package - CMake-2.8.0

Things have become much simpler. xmlrpc has been dropped so it is just a matter of having curl, zlib and expat installed and using the --system-libs (though it is mentioned in the docs that doing so should be reserved for the package maintainers).

Also, the default docdir is where it is supposed to be because we have the compatibility symlink, but putting it in the right spot to begin with is the right move.

comment:5 by thomas, 13 years ago

Summary: New Package - CMake-2.8.0New Package - CMake-2.8.3

cmake not only required for KDE4, in the meanwhile, many packages uses it: k3b, digikam, hugin, rawtherapee...

Seems so it depends on 'libarchive' (http://code.google.com/p/libarchive/) too.

comment:6 by Randy McMurchy, 13 years ago

This package will be required when libproxy is updated. The version of libproxy in the book is 2.5 years old, so it is just a matter of time. I'm using an updated libproxy, I'll have to see how that affects the rest of my Gnome build.

by thomas, 13 years ago

Attachment: cmake.patch added

comment:7 by thomas, 13 years ago

the patch is just a first shoot - please comment! I propably will create a page for the libarchive too.

comment:8 by ken@…, 13 years ago

Please don't hold your breathe waiting for a comment from me - I created this ticket in the expectation we would want to move to kde4, but since then I've given up on kde, and my current view is that if something requires cmake then I won't build it. This has stopped me looking at current versions of one or two packages. To explain - most autotools packages have configure scripts that work in known ways. Cmake is totally different, and appeared (when I last built it) to be both determined to do things differently, and determined to create static libraries. For people who use windows, no doubt that it acceptable. For people using libre software, it seems like a major step backwards.

comment:9 by thomas, 13 years ago

Well yes, I can understand your feeling about cmake! But we must face the fact that cmake seems to become a often used package - even not only in KDE4. The later one is the reason why I picked up this ticket as I want to have KDE4 in the book. KDE4 is out now for years and in the meanwhile it became quite stable. I think we shouldn't ignore that desktop any longer. So I would like to ask the project leads whether it's ok to reassign this ticket to 6.7 as KDE4 is still there and cmake is a prerequisite. I've a patch ready to commit to add libarchive and cmake to the book. Would that be ok for you?

btw, the patch is attached.

by thomas, 13 years ago

Attachment: libarchive-cmake.patch added

comment:10 by thomas, 13 years ago

Owner: changed from blfs-book@… to thomas

comment:11 by thomas, 13 years ago

Resolution: fixed
Status: newclosed

comment:12 by bdubbs@…, 7 years ago

Milestone: futurex-future

Milestone renamed

Note: See TracTickets for help on using tickets.