Results 1 to 4 of 4

Thread: Autotools Porting

  1. #1
    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

  2. #2
    bernard's Avatar
    bernard is offline ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,270
    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.

  3. #3
    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)

  4. #4
    bernard's Avatar
    bernard is offline ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,270
    See http://www.zeroc.com/vbulletin/showthread.php?t=498. The benefit is not worth the extra work and added complexity.

    Bernard
    Bernard Normier
    ZeroC, Inc.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Ice porting on Freescale Imx35
    By piccinini in forum Help Center
    Replies: 2
    Last Post: 02-18-2011, 11:52 AM
  2. porting an Ice App to IceE
    By Paul22 in forum Help Center
    Replies: 3
    Last Post: 01-04-2010, 12:54 PM
  3. Porting to Ice from Orbacus
    By amanison in forum Help Center
    Replies: 1
    Last Post: 10-20-2008, 07:17 PM
  4. autotools patch ... what do you think?
    By peter.s in forum Comments
    Replies: 7
    Last Post: 11-04-2006, 07:08 PM
  5. porting
    By diddek in forum Help Center
    Replies: 2
    Last Post: 10-07-2004, 11:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •