Results 1 to 5 of 5

Thread: Ice 3.0.0 and Gentoo ebuild

  1. #1
    kovacm is offline Registered User
    Name: Michal Kovac
    Organization: Charles University in Prague
    Project: Ferda Data Mining
    Join Date
    Jan 2005
    Posts
    60

    Ice 3.0.0 and Gentoo ebuild

    Hi,

    I am trying to create ebuild file for Gentoo Linux, but I have one problem. Gentoo needs Ice to be compiled ("installed") inside other directory than where it will reside later. For example, if I want to have Ice in opt/Ice-3.0.0/ I have to make install in /var/tmp/portage/ice-3.0.0/image/opt/Ice-3.0.0/

    Problem is that if I compile Ice with conf/Make.Rules with line:
    prefix = /var/tmp/portage/ice-3.0.0/image/opt/Ice-3.0.0

    than in some binary files is written this full path (it was not so before 3.0.0 version) and Gentoo knows it so compilation will fail.

    Is there any work around?

    Thanks

  2. #2
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    Sorry, its not exactly clear what you are talking about. What binary files is the prefix written into?

  3. #3
    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,294
    During the build, prefix is used as the embedded path in binaries. During the installation, it's used as the installation's root directory.

    So one solution would be to use different prefix values during the build and the installation.

    In previous releases, Ice did not embed any path in binaries. You could also revert to this old behavior by editing config/Make.rules.Linux.

    Cheers,
    Bernard
    Bernard Normier
    ZeroC, Inc.

  4. #4
    beagles's Avatar
    beagles is offline Registered User
    Name: Brent Eagles
    Organization: Eagles Technologies Inc
    Project: Asterisk SCF
    Join Date
    Feb 2003
    Location
    Newfoundland
    Posts
    111
    If you are referring to the rpath linker directive then you might want to try building Ice with the prefix set to the ultimate location of the binaries (e.g. /usr/bin, /opt/Ice-3.0.0, etc) and then running 'make install' with the prefix for portage build directory. The first 'make' embeds the correct path and 'make install' ends up simply copying the files to the portage build directory.

    Alternatively, you can modify the 'install_libdir' definition in 'Make.rules' to refer to the final installation directory instead of the value of $(prefix)/lib before 'make install' is run.

    If the rpath linker directive embedding the library path isn't the problem, could you elaborate what the precise issue is?

    Cheers
    Brent Eagles
    Digium/Eagles Technologies Inc
    St. John's, NL

    Project(s): Asterisk SCF

  5. #5
    beagles's Avatar
    beagles is offline Registered User
    Name: Brent Eagles
    Organization: Eagles Technologies Inc
    Project: Asterisk SCF
    Join Date
    Feb 2003
    Location
    Newfoundland
    Posts
    111
    I'm sorry, but it looks like I need more coffee. I'm pretty sure my second suggestion of modfiying the 'install_libdir' variable won't work in the ebuild process as it is used when copying the library in the 'make install'. Where I was going with this was that you want the LDPLATFORMFLAGS in Make.rules.Linux to have the correct value for the rpath directive. The most direct route would be to modify this line directly, i.e. change:

    LDPLATFORMFLAGS = -Wl,--enable-new-dtags -Wl,-rpath,$(install_libdir)

    to

    LDPLATFORMFLAGS = -Wl,--enable-new-dtags -Wl,-rpath,/opt/Ice-3.0.0/lib

    or something like that.

    That being said, the first suggestion might be the easiest. It is essentially the same 'trick' we use when packaging up our binary distributions.

    Sorry for the confusion.

    Cheers
    Brent Eagles
    Digium/Eagles Technologies Inc
    St. John's, NL

    Project(s): Asterisk SCF

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Install Ice 3.3.1 on a Gentoo System
    By Thrake in forum Help Center
    Replies: 9
    Last Post: 01-10-2010, 10:10 AM
  2. missing Ice.pth in IcePy under gentoo
    By slowfood in forum Help Center
    Replies: 1
    Last Post: 07-18-2007, 08:53 AM
  3. gentoo icephp 3.2.0 & dev-lang/php-5.1.6-r8
    By mutschaedi in forum Comments
    Replies: 0
    Last Post: 06-04-2007, 08:05 AM
  4. Ice gentoo ebuild
    By xdm in forum Help Center
    Replies: 3
    Last Post: 03-09-2005, 05:15 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
  •