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 768493 - Differentiate between cross-compiling and executable prefix
Differentiate between cross-compiling and executable prefix
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: cerbero
git master
Other Linux
: Normal normal
: 1.10.0
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-07-06 16:20 UTC by Olivier Crête
Modified: 2016-10-31 14:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
glib-networking-static: No need to bother with gio cache (1.46 KB, patch)
2016-07-06 16:20 UTC, Olivier Crête
committed Details | Review
config: Differentiate between cross-compiling and executable prefix (4.22 KB, patch)
2016-07-06 16:20 UTC, Olivier Crête
committed Details | Review
libxml2: Disable python when cross-compiling (1.00 KB, patch)
2016-07-06 16:20 UTC, Olivier Crête
committed Details | Review
theora: Disable examples when cross-compiling (968 bytes, patch)
2016-07-06 16:20 UTC, Olivier Crête
committed Details | Review
zlib: Use host if provided (941 bytes, patch)
2016-07-06 16:20 UTC, Olivier Crête
committed Details | Review

Description Olivier Crête 2016-07-06 16:20:07 UTC
In cerbero, the prefix_is_executable() function was really use to check for cross-compilation, there is also a cross_compiling() function that was little used. So in the attached patch-set, I made "prefix_is_executable()" to mean if the target binaries can be ran on the build host, and "cross_compiling()" mean that the target host is different from the build host, even if they are the same architecture. Then I have a series of patches to apply that everywhere.
Comment 1 Olivier Crête 2016-07-06 16:20:37 UTC
Created attachment 330959 [details] [review]
glib-networking-static: No need to bother with gio cache
Comment 2 Olivier Crête 2016-07-06 16:20:40 UTC
Created attachment 330960 [details] [review]
config: Differentiate between cross-compiling and executable prefix

Clean up the different between cross-compiling, which means that the
target is not the build system, and executable prefix, which means that
the build system can execute binaries from the target prefix
Comment 3 Olivier Crête 2016-07-06 16:20:44 UTC
Created attachment 330961 [details] [review]
libxml2: Disable python when cross-compiling

It's not specific to arm, but pretty much for any non-native build as
cerbero doesn't include python.
Comment 4 Olivier Crête 2016-07-06 16:20:48 UTC
Created attachment 330962 [details] [review]
theora: Disable examples when cross-compiling
Comment 5 Olivier Crête 2016-07-06 16:20:52 UTC
Created attachment 330963 [details] [review]
zlib: Use host if provided
Comment 6 Sebastian Dröge (slomo) 2016-07-07 07:44:33 UTC
Review of attachment 330962 [details] [review]:

::: recipes/libtheora.recipe
@@ +34,1 @@
             self.configure_options += ' --disable-examples'

Should maybe disable them always?
Comment 7 Sebastian Dröge (slomo) 2016-10-20 09:45:36 UTC
Attachment 330959 [details] pushed as d650b37 - glib-networking-static: No need to bother with gio cache
Attachment 330960 [details] pushed as e2595a0 - config: Differentiate between cross-compiling and executable prefix
Attachment 330961 [details] pushed as 1dc1b3c - libxml2: Disable python when cross-compiling
Attachment 330962 [details] pushed as 16ccfa8 - theora: Disable examples when cross-compiling
Attachment 330963 [details] pushed as 9afc668 - zlib: Use host if provided