Re: [Fink-devel] Re: X11 install_name fixer script
Re: [Fink-devel] Re: X11 install_name fixer script
- Subject: Re: [Fink-devel] Re: X11 install_name fixer script
- From: Ben Hines <email@hidden>
- Date: Wed, 15 Jan 2003 18:10:21 -0800
Huh? No, the SDK package does not fix the install_names of apple's
libraries. They are definitely broken (unless apple released a fixed
version of their pkg, which i haven't heard about)
-Ben
On Wednesday, January 15, 2003, at 06:01 PM, Dave Schroeder wrote:
This is handled if you install the X11 for Mac OS X SDK; the SDK is
listed as a requirement in Fink's FAQ. See:
http://fink.sourceforge.net/doc/x11/inst-xfree86.php#apple-binary
Regards,
Dave Schroeder
University of Wisconsin - Madison
On Wednesday, January 15, 2003, at 07:53 PM, Ben Hines wrote:
This script changes apple's dylib install names to be
libNAME.major.dylib rather than libNAME.major.minor.dylib.
This script enabled me to build QT and KDE once again! We might want
to consider adding it to fink's system-xfree86 package.
#!/usr/bin/perl
use File::Find;
my $newlibrary, @liblist, $libdir = "/usr/X11R6/lib";
if(`id -u` != 0)
{
print "you must be root to run this!";
# exit 1;
}
if (! -e "/usr/bin/install_name_tool")
{
print "can't run /usr/bin/install_name_tool";
exit 2;
}
find ({ wanted => \&process }, $libdir);
sub process {
if (/(.+)\.([0-9])\.([0-9])\.dylib$/)
{
push @liblist, $File::Find::name;
}
}
find ({ wanted => \&process2 }, $libdir);
sub process2 {
if (/(.+)\.([0-9])\.([0-9])\.dylib$/)
{
print "fixing $_ references... \n";
$newlibrary = "$File::Find::dir/$1.$2.dylib";
`/usr/bin/install_name_tool -id $newlibrary $_\n`;
foreach (@liblist)
{
/(.+)\.([0-9])\.([0-9])\.dylib$/;
{
`/usr/bin/install_name_tool -change $File::Find::name
$newlibrary $_\n`;
}
}
}
}
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe:
http://www.lists.apple.com/mailman/listinfo/x11-users
Do not post admin requests to the list. They will be ignored.
-------------------------------------------------------
This SF.NET email is sponsored by: A Thawte Code Signing Certificate
is essential in establishing user confidence by providing assurance of
authenticity and code integrity. Download our Free Code Signing guide:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en
_______________________________________________
Fink-devel mailing list
email@hidden
https://lists.sourceforge.net/lists/listinfo/fink-devel
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe: http://www.lists.apple.com/mailman/listinfo/x11-users
Do not post admin requests to the list. They will be ignored.