Re: [Fink-devel] Tool to bundle-ize shlibs from fink

2007-09-25 Thread Daniel Macks
On Wed, Sep 26, 2007 at 10:22:32AM +1200, Philip Lamb wrote:
> 
> This might seem like a sacreligious quesion to ask, but has anyone  
> made a tool to automate the process of bundle-izing a given set of  
> shlibs from a fink installation?
> 
> By bundle-ize, I mean making a copy of a given library and all its  
> dependencies that live in /sw, and rewriting (with install_name_tool)  
> the install name of the libs and their connections with each other so  
> that they hang off @executable_path/ instead of /sw/lib.

http://bugzilla.gnome.org/show_bug.cgi?id=474278 suggests someone does
have such a script.

There's a further complication for packages that have external data
files, in that those file locations are often hard-coded and not
managed by dyld. These might not matter for what you're doing (if you
don't care about multilingual support for diagnostic messages, you
wouldn't care if glib couldn't find its gettext catalogs), but other
data files might be important for whatever you're doing. Try running
'strings /sw/bin/libwhatever.dylib | grep /sw' to see what comes up.

dan

-- 
Daniel Macks
[EMAIL PROTECTED]
http://www.netspace.org/~dmacks


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel


Re: [Fink-devel] Tool to bundle-ize shlibs from fink

2007-09-25 Thread Charles Lepple
On 9/25/07, Philip Lamb <[EMAIL PROTECTED]> wrote:
> This might seem like a sacreligious quesion to ask, but has anyone
> made a tool to automate the process of bundle-izing a given set of
> shlibs from a fink installation?

You could also check to see how they do it for Gimp.app.

-- 
- Charles Lepple

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel


Re: [Fink-devel] Tool to bundle-ize shlibs from fink

2007-09-25 Thread Kevin Walzer
Philip Lamb wrote:
> Hi all,
> 
> This might seem like a sacreligious quesion to ask, but has anyone made 
> a tool to automate the process of bundle-izing a given set of shlibs 
> from a fink installation?
> 
> By bundle-ize, I mean making a copy of a given library and all its 
> dependencies that live in /sw, and rewriting (with install_name_tool) 
> the install name of the libs and their connections with each other so 
> that they hang off @executable_path/ instead of /sw/lib.
> 
> I ask because it could be a really useful tool for developers.. you 
> generate some libraries using Fink, and then bundle them (paying 
> attention to the license terms of course) inside an application which 
> can then be distributed without any dependence on fink.
> 
> At the moment I'm doing this manually, but with two libraries with 
> another 6 dependent libraries, its time consuming to repeat each time 
> the libs change.
> 
> Regards,
> Phil.
> 
>

macho_standalone, a part of py2app, might do the trick. See 
http://www.undefined.org/python/ for information on py2app.

-- 
Kevin Walzer
Code by Kevin
http://www.codebykevin.com

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel


[Fink-devel] Tool to bundle-ize shlibs from fink

2007-09-25 Thread Philip Lamb

Hi all,

This might seem like a sacreligious quesion to ask, but has anyone  
made a tool to automate the process of bundle-izing a given set of  
shlibs from a fink installation?


By bundle-ize, I mean making a copy of a given library and all its  
dependencies that live in /sw, and rewriting (with install_name_tool)  
the install name of the libs and their connections with each other so  
that they hang off @executable_path/ instead of /sw/lib.


I ask because it could be a really useful tool for developers.. you  
generate some libraries using Fink, and then bundle them (paying  
attention to the license terms of course) inside an application which  
can then be distributed without any dependence on fink.


At the moment I'm doing this manually, but with two libraries with  
another 6 dependent libraries, its time consuming to repeat each time  
the libs change.


Regards,
Phil.

smime.p7s
Description: S/MIME cryptographic signature
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel