[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


From: Ralf Wildenhues
Date: Wed, 28 Sep 2005 09:34:37 +0200
User-agent: Mutt/1.5.11

Hi Tim,

* Tim Rice wrote on Wed, Sep 28, 2005 at 01:16:47AM CEST:
> On Tue, 27 Sep 2005, Ralf Wildenhues wrote:
> > * Tim Rice wrote on Tue, Sep 27, 2005 at 07:56:31PM CEST:
> > > I'd like to be able have the embedded runpath be /opt/lib even
> > > if I install in /opt/foo/lib. (the package posinstall script would put
> > > symbolic links in /opt/lib)
> > 
> > I believe that should be possible now, although in a bit weird way:
> >   configure --prefix=/opt --enable-fast-install [OPTIONS]
> >   make
> >   make install DESTDIR=/tmp
> >   $mkdir_p /opt/foo
> >   mv /tmp/opt/* /opt/foo
> >   # create symlinks ..
> >   ./libtool --mode=finish /opt/lib
> > (surely you can also use some other path below /opt as DESTDIR to avoid
> > another copy if /tmp is on another mount point).
> Hmm, that may work. I'll have to try it sometime.
> It'll require some serious changes to my package build scripts. :-(

I should add that, when done this way, the package might expect all other
files to appear below /opt as well (for example /opt/share etc.).
If you only wanted the lib/ directory to appear someplace else, then I
think you can achieve this by even uglier

  configure --prefix=/opt/foo --libdir=/opt/lib --enable-fast-install \
  make install DESTDIR=/tmp
  mv /tmp/opt/lib/* /opt/lib/*  # or similar; ensure target dirs exist
  mv /tmp/opt/*  /opt/foo       # see above
  # create symlinks
  ./libtool --mode=finish /opt/lib

Note this is untested, but it'd be good to know if it causes trouble
with existing packages.  :)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]