After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 709125 - gst-run needs to be arch-aware for universal builds on MacOSX
gst-run needs to be arch-aware for universal builds on MacOSX
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
0.10.35
Other Mac OS
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-09-30 19:38 UTC by Dan Kegel
Modified: 2013-09-30 21:02 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dan Kegel 2013-09-30 19:38:48 UTC
Short story:
gst-plugin-scanner became arch aware to fix bug 615357.
gst-run needs a similar change, or it will ignore the user's choice of arch.

Long story:

On MacOSX, it is possible to build gstreamer to produce fat binaries that will run on both i386 and x86_64.   Users can choose whether to run the 32 bit
version of binaries on a 64 bit mac with the command
  arch -i386 cmd...
This works fine in the following case:
  arch -i386 gst-inspect-0.10
but fails in the case
  arch -i386 gst-inspect

But the 'arch' command is not transitive; child processes are not restricted to be 32 bits.  
And the 'gst-inspect' command is not really gst-inspect, but gst-run, which
then runs gst-inspect-0.10.

Those two facts together combine to cause "arch -i386 gst-inspect" to run the 64 bit version of gst-inspect-0.10.

This is a problem if you need to run a plugin that is only available in 32 bits, e.g. osxvideosrc.

A fix would be for gst-run to prefix the command being run with arch -i386 when appropriate as gst-plugin-scanner does.

A workaround for the user is to invoke the versioned binary directly.
Comment 1 Tim-Philipp Müller 2013-09-30 21:02:08 UTC
0.10 is no longer maintained I'm afraid, and the gst-run binary does no longer exist in 1.x.