[Bug 751204] osx: duplicate dylibs are distributed with both -devel and -runtime installed
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Fri Jun 19 05:01:50 PDT 2015
https://bugzilla.gnome.org/show_bug.cgi?id=751204
--- Comment #1 from Heinrich Fink <hfink at toolsonair.com> ---
In my own packager (which is a very simple subclass of DistTarball, we only
need the OSX libs/headers in a simple layout), I could fix this by replacing
shutils.copy with something simple like this:
if os.path.islink(in_path):
linkto = os.readlink(in_path)
os.symlink(linkto, out_path)
else:
shutil.copy(in_path, out_path)
Note that in Python 3.4 there is a call shutil.copyfile with follow_symlinks =
True.
And the tarball packaging nicely keep symlinks alive now. This solves my
problem. I tried doing similar modifications in the
cerbero/packages/osx/packager.py (there were numerous shutil.copy calls which
would have ignored the symlinks and copy them as files), but this doesn't seem
to be enough, and for now I have given up since the simpler solution works for
me now. I guess what would be missing is to teach the scripts of the packager
to keep symlinks. No idea how to do that.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list