• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: X11 install_name fixer script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: X11 install_name fixer script


  • Subject: Re: X11 install_name fixer script
  • From: Dave Schroeder <email@hidden>
  • Date: Wed, 15 Jan 2003 20:01:21 -0600

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.
_______________________________________________
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.

  • Follow-Ups:
    • Re: [Fink-devel] Re: X11 install_name fixer script
      • From: Ben Hines <email@hidden>
    • Re: [Fink-devel] Re: X11 install_name fixer script
      • From: Benjamin Reed <email@hidden>
References: 
 >X11 install_name fixer script (From: Ben Hines <email@hidden>)

  • Prev by Date: X11 install_name fixer script
  • Next by Date: Re: X11 install_name fixer script
  • Previous by thread: X11 install_name fixer script
  • Next by thread: Re: [Fink-devel] Re: X11 install_name fixer script
  • Index(es):
    • Date
    • Thread