Go Back   ZeroC Forums > Comments

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 11-02-2006
ChrisWhite ChrisWhite is offline
Registered User
 
 
Join Date: Nov 2006
Posts: 4
Autotools Porting

Hi, I help to maintain the ice package for the Gentoo Linux distribution. I was looking over the build system for Ice, and I think that maintability wise it would benefit from using the Autotools build system.

If something was found to be unportable on a certain platform, it would be easy to add in the appropriate configure check through autoconf and passing on via defines through Automake. I'm currently working on checking the source layout. A few things came up installation location wise that I'd like to bring forth:

so first the config directory. This seems to maintain the architecture and dependancy based rules for the entire make process. It also appears to contain a ca directory (for openssl), a few python scripts, and an xml file. My guess is that the ca directory (which would optionally be considered if a person enabled ssl) should go in /usr/share/Ice-version/ca (along with certs?). The template.xml file should go into /usr/share/ice-version, and the .py files (being what appears to be utility scripts) can probably go into /usr/bin.

The source directory seems to be standard libraries. The trick here would be checking each individual source directory for possible external deps (such as openssl and db), as well as deps with other modules (is this existant in the src/ directory or are things fairly independant?). The libraries would go into /usr/lib, making the need for ICE_HOME go away for linking.

The include directories would be a straightforward install, so that wouldn't be all that difficult. Those would simply be directed to /usr/include/Ice. Again, the need for ICE_HOME goes away.

The test directory would be introduced into something of a make check, fairly standard in most autotools build systems that utilize such functionality.

Demos would get installed into /usr/share/ice-version/demo. I'm pondering whether to build these, or make demo have its own autotools build system that the user can simply run in /usr/share/Ice-version/demo and build all the demos themselves. Heck, you might be able to get away with just simple makefiles here if they're just demos.

slices go in /usr/share/Ice-version/slice/. I think that should be it really.

documentation could probably have a conditional option (--enable-doc) that would say whether or not to build the documentation. This is probably the best solution in that users can always download the pdf's online.

Alright, that's it for now, fire away
Reply With Quote
  #2 (permalink)  
Old 11-02-2006
bernard's Avatar
bernard bernard is offline
ZeroC Staff
 
Name: Bernard Normier
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Palm Beach Gardens, FL
Posts: 904
Hi Chris,

Ice is using GNU make for its build system on purpose, and we have no intention to switch to another build system such as autoconf/autotools.

Regarding the installation in "/usr", please have a look at what we do with RPMs on Fedora Core 5. I am sure improvements are possible, but this should be your starting point! You can just download the RPMs and use 'rpm -qlp <file>.rpm' to browse their content.

Also, could you fill in your signature as described here?

Thanks,
Bernard
__________________
Bernard Normier
ZeroC, Inc.
Reply With Quote
  #3 (permalink)  
Old 11-02-2006
ChrisWhite ChrisWhite is offline
Registered User
 
 
Join Date: Nov 2006
Posts: 4
For what reason out of curiosity (point to another post, doc, or whatever is fine).

(filled out my sig as well, oops)
Reply With Quote
  #4 (permalink)  
Old 11-02-2006
bernard's Avatar
bernard bernard is offline
ZeroC Staff
 
Name: Bernard Normier
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Palm Beach Gardens, FL
Posts: 904
See autotools patch ... what do you think?. The benefit is not worth the extra work and added complexity.

Bernard
__________________
Bernard Normier
ZeroC, Inc.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
porting an Ice App to IceE Paul22 Help Center 3 01-04-2010 12:54 PM
Porting ICE to LabVIEW using .Net interface stancilmor Help Center 2 01-28-2009 05:19 PM
Porting to Ice from Orbacus amanison Help Center 1 10-20-2008 07:17 PM
autotools patch ... what do you think? peter.s Comments 7 11-04-2006 07:08 PM
porting diddek Help Center 2 10-07-2004 11:41 PM


All times are GMT -4. The time now is 04:09 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2009 ZeroC, Inc.