Skip to content

Commit

Permalink
Prevent rebase tool from duplicating the libraries that it rebases,
Browse files Browse the repository at this point in the history
by getting it to process only the real libs, not symlinks to them.
Thanks to Craig Treleaven for discovering/troubleshooting. Closes #9291


git-svn-id: http://svn.mythtv.org/svn/trunk@27409 7dbf422c-18fa-0310-86e9-fd20926502f2
  • Loading branch information
NigelPearson committed Dec 1, 2010
1 parent 3738bf7 commit c5fa638
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions OSX/build/osx-packager.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1166,11 +1166,15 @@ END
"$finalTarget/Contents/MacOS" ]) or die;
}

# Run 'rebase' on all the frameworks:
# Run 'rebase' on all the frameworks, for slightly faster loading.
# Note that we process the real library, not symlinks to it,
# to prevent rebase erroneously creating copies:
my @libs = glob "$finalTarget/Contents/Frameworks/*";
@libs = grep(s,(.*/)(\w+).framework$,$1$2.framework/$2, , @libs);
# and all the filters/plugins:
@libs = grep(s,(.*/)(\w+).framework$,$1$2.framework/Versions/A/$2, , @libs);

# Also process all the filters/plugins:
push(@libs, glob "$finalTarget/Contents/Resources/lib/mythtv/*/*");

if ( $OPT{'verbose'} )
{ &Syscall([ 'rebase', '-v', @libs ]) or die }
else
Expand Down

0 comments on commit c5fa638

Please sign in to comment.