On Mon, 2007-12-31 at 16:26 +1100, Hamish Moffatt wrote:
> On Mon, Dec 31, 2007 at 02:42:44AM +0000, Peter Clifton wrote:
> > I've had a stab at adding support for linking with rpath options in
> > gschem and gattrib.
> > 
> > The resulting two patches are here:
> > http://repo.or.cz/w/geda-gaf/pcjc2.git?a=shortlog;h=local_rpath
> > 
> > The second of these adds the logical step of substituting absolute
> > install paths into the .desktop files which register the menu entries.
> > This lets clicking on a menu / schematic file open gschem etc.
> 
> Does it do that in all conditions? Right now the desktop file I have in
> the Debian package for gschem does not have a full path in it at all,
> which seems correct for binaries which are in the standard $PATH.

Actually, it does.. but I can fix it to be optional. This change isn't
in the 1.3.0 release, and unless it proves to be both useful, yet
sufficiently configurable to keep the old behaviour.

I presume the .desktop file you're talking about was a Debian added one?
1.3.0 and beyond ships its own, with icons and mime registrations too.
If you get chance, could you take a look at 1.3.0 and make sure we're
not doing anything which makes it hard to package with those new
features?


Amusingly.. it is the complete opposite of rpath which is useful for a
windows port. Everything needs to be relocatable, either by looking at
paths relative to the executable, or by reading registry key(s) to find
things. (Ok.. rpath can be used in a "relative to this executable" way
to help though).

Just to note.. another way to do this on Unixen, without rpath would be
to build a wrapper script for the tools which sets up PATH and
LD_LIBRARY_PATH etc.. (The opportunity to setup PATH would actually be
helpful in avoiding the need to hard-code binary paths in other tools
which call them).

> > NB.. none of this is any use for distribution builds, so is only turned
> > on with additional configure options. (I'm passing them to ./configure
> > by default in the toplevel Makefile though).
> 
> Cool.
> 
> Hamish
-- 
Peter Clifton

Electrical Engineering Division,
Engineering Department,
University of Cambridge,
9, JJ Thomson Avenue,
Cambridge
CB3 0FA

Tel: +44 (0)7729 980173 - (No signal in the lab!)



_______________________________________________
geda-dev mailing list
[email protected]
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev

Reply via email to