Anope IRC Services

Anope.org => Anope General => Topic started by: Dave Robson on December 17, 2008, 09:30:32 PM

Title: Anope and CMake
Post by: Dave Robson on December 17, 2008, 09:30:32 PM
Does your current shell host offer CMake ?  Anope are looking at changing the build system to cmake, the advantages for Anope are numerous, however, the big downside is that cmake would be required in order to install anope on *nix. 

This poll is to judge the level of support / enthusiasm shell providers and users have for such a move, so please take the time to check and vote!

You can check by simply logging into your shell and typing:
Code: [Select]
cmake

if you see:
Code: [Select]
cmake version 2.4-patch 6
Usage
etc....

Then vote yes!

If you see:
Code: [Select]
-sh: cmake: command not found

then please vote no.


Remember kids, your vote does count ;)
Title: Re: Anope and CMake
Post by: Naram Qashat on December 17, 2008, 09:35:30 PM
I'm also going to point something out (as I'm the one who is making the push for CMake).  If your shell provider doesn't have CMake and you'll have to vote no, that won't stop you from building Anope, as CMake can potentially be installed to your home directory independent of whether your shell provider offers it.

Also, if your shell provider does have CMake, please provide the version.  I want to see what versions everyone is running, because as it stands, I've been developing the build system using CMake 2.6 but I have seen that 2.4 is still in use on a lot of systems that do have it, so I will have to make sure things work with that.
Title: Re: Anope and CMake
Post by: Amanda Folson on December 17, 2008, 09:37:31 PM
2 said they wouldnt, one just doesnt have it.

I cant vote 3 times :<

EDIT: One said he would if it were requested. So 2 hell no's and a maybe :P
Title: Re: Anope and CMake
Post by: deiks on December 17, 2008, 09:39:53 PM
What is difference between make & cmake?

Is it just way of compiling like gmake ...
Title: Re: Anope and CMake
Post by: Naram Qashat on December 17, 2008, 09:52:19 PM
[dx], CMake is similar to (but not exactly like) the use of the autotools programs, autoconf and automake.  The Makefiles are generated and then run through make or gmake.
Title: Re: Anope and CMake
Post by: Namegduf on December 17, 2008, 09:55:41 PM
None of my four shells have CMake. Would be willing to install it into a home directory and generally suggest using it anyway (good shell providers might switch when Anope starts using it), but I'm the sort of crazy person who has Python and a load of other things installed that way, too. Although not GnuTLS.

EDIT: If it's of interest, two are FreeBSD, two are Linux.
Title: Re: Anope and CMake
Post by: dwr on December 17, 2008, 09:56:02 PM
yeah, but you don't have to keep autoconf and automake on server instead of cmake ;p
Title: Re: Anope and CMake
Post by: Naram Qashat on December 18, 2008, 05:04:43 AM
I'll admit that it's a bit more work to have CMake be installed before being able to build Anope.  However, as far as I can tell, no one on the Anope team (myself included) knows Autotools well enough to have it be up to the tasks that CMake was able to accomplish with how I've set it up.

My personal opinion is that the move to CMake is worth it, as having it installed is really the only extra requirement for the users, and it is a huge help on the developers.  For the user side, they only really need to run Config which acts as a wrapper to CMake, just like it used to be a wrapper to configure.  For the developers, the added benefits include ease of cross-platform support for both *nix and Windows, and automatic header file dependency calculation.  For both users and developers, using CMake allows for both in-source building (as it was already) or out-of-source building (a separate directory to build in without cluttering up the source directory with the built files).

I'll also point out that I have used Autotools in the past.  I found it hard to accomplish things with it.  I've only been using CMake for a week but I was able to make the build system under it be pretty close to the Autotools system that was in use before.  And this was even though I'd never used CMake before and even though I was having problems in certain areas that I was able to figure out and work with.

That all having been said, if anyone feel they are competent enough with Autotools to be able to create a build system using it that can be comparable to the CMake solution I have come up with and could possibly run alongside CMake existing, I invite someone to do so.
Title: Re: Anope and CMake
Post by: Charles Kingsley on December 18, 2008, 06:32:51 AM
We have contacted 30 shell providers and I will post back once I've had some more responses but it should be noted that one of the largest shell providers I'm aware of has already responded in that they don't offer it but would do so if it was requested by a customer.
Title: Re: Anope and CMake
Post by: Andrew B. on December 20, 2008, 05:44:19 AM
I'm also going to point something out (as I'm the one who is making the push for CMake).  If your shell provider doesn't have CMake and you'll have to vote no, that won't stop you from building Anope, as CMake can potentially be installed to your home directory independent of whether your shell provider offers it.

Also, if your shell provider does have CMake, please provide the version.  I want to see what versions everyone is running, because as it stands, I've been developing the build system using CMake 2.6 but I have seen that 2.4 is still in use on a lot of systems that do have it, so I will have to make sure things work with that.

One thing that should be considered, for people who don't have it pre-installed by their shell providers, is how much space consumption will be consumed by a services installation, statistics databases, services databases (.db/SQL?), perhaps an IRCd (I know my network doesn't dedicate a shell for Services), and cmake all in the home directory. Providers still do not offer decent space for shells.
Title: Re: Anope and CMake
Post by: Naram Qashat on December 20, 2008, 01:26:31 PM
I guess I don't know how much space most shell providers give since I don't use a shell, but CMake is only 20MB installed, so unless a shell provider is only giving someone 100MB or something, I can't see that being a big issue.
Title: Re: Anope and CMake
Post by: Jens Voss on December 20, 2008, 03:49:00 PM
because i'm my own shell provider, i have no problem installing cmake. :-)

But:

Quote
CMake Error: This project requires version 2.4.4 of CMake.  You are running version 2.4.0.

My current distribution offers only 2.4.0 as rpm packet.
I have to download and compile it for myself if i want to use it.


Title: Re: Anope and CMake
Post by: Jan Milants on December 20, 2008, 03:55:45 PM
even debian stable 'etch' has 2.4.5... and debian isn't exactly known for including latest versions of software...  ::)
Title: Re: Anope and CMake
Post by: Mike.XIII on December 21, 2008, 03:30:33 AM
I'm on a VPS, Ubuntu Intrepid.
It wasn't installed so I compiled it just to have in case I need it in the future. cmake 2.6.2
Title: Re: Anope and CMake
Post by: Naram Qashat on December 21, 2008, 04:15:36 PM
DukePyrolator, I'm editing the files so they should work under CMake 2.4.0, I just have to also test all versions between 2.4.0 and 2.4.4 to see what else breaks.  For one thing, CMake before 2.4.4 won't be able to test if g++ can use the -pipe flag (which isn't a big deal) and also won't be able to sort the lists of things such as the sources and such (again, not a big deal, although a little annoying).
Title: Re: Anope and CMake
Post by: SNU on December 21, 2008, 08:44:52 PM
my very old box runs on debian sarge. it has cmake version 2.0.5.
Title: Re: Anope and CMake
Post by: Naram Qashat on December 21, 2008, 10:33:53 PM
I'm not going to make it so this works on anything older than CMake 2.4.0, some nice build functionality is already lost going that far back.