[oe-commits] Josua Mayer : mplayer_git: Add patch to fix linker error on x86 machines

git version control git at git.openembedded.org
Wed Aug 3 11:12:43 UTC 2011


Module: openembedded.git
Branch: master
Commit: 1a91fc4b705b0c4f45eb088a2f7aea01ebc9c98e
URL:    http://git.openembedded.org/?p=openembedded.git&a=commit;h=1a91fc4b705b0c4f45eb088a2f7aea01ebc9c98e

Author: Josua Mayer <josua.mayer97 at googlemail.com>
Date:   Tue Aug  2 21:05:49 2011 +0200

mplayer_git: Add patch to fix linker error on x86 machines

For x86 machines the option `--enable-runtime-cpudetection` is passed to the configure script.

        EXTRA_OECONF_append = " ${@base_contains('MACHINE_FEATURES', 'x86', '--enable-runtime-cpudetection', '',d)} "

This causes a linker error like

        fix undefined references  in loader/module.o:
        module.c:(.text+0xd60): undefined reference to `report_entry'
        module.c:(.text+0xd6a): undefined reference to `report_ret'
        module.c:(.text+0xd74): undefined reference to `wrapper_target'
        module.c:(.text+0xd7a): undefined reference to `wrapper'

as reported and fixed in the Gentoo’s Bugzilla Bug 213836 [1]. The patch was partly adopted and applied already to `mplayer_svn` in OpenEmbedded in commit »mplayer_svn : fix compilation problem« (ff57f14c) [2].

This patch is build tested for `DISTRO = "shr"` with a modified `conf/machine/ion.conf`.

[1] https://bugs.gentoo.org/213836?id=213836
[2] http://cgit.openembedded.org/cgit.cgi/openembedded/commit/?id=ff57f14c99a6ff61ffb7f1c533523e3e934f96e5

Signed-off-by: Josua Mayer <josua.mayer97 at googlemail.com>
Signed-off-by: Paul Menzel <paulepanter at users.sourceforge.net>

---

 recipes/mplayer/mplayer_git.bb |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/recipes/mplayer/mplayer_git.bb b/recipes/mplayer/mplayer_git.bb
index 259ce99..c6950f8 100644
--- a/recipes/mplayer/mplayer_git.bb
+++ b/recipes/mplayer/mplayer_git.bb
@@ -8,7 +8,8 @@ DEPENDS = "libvpx live555 libdvdread libtheora virtual/libsdl ffmpeg xsp zlib li
 RDEPENDS_${PN} = "mplayer-common"
 LICENSE = "GPL"
 SRC_URI = "git://repo.or.cz/mplayer/glamo.git;protocol=git;branch=mplayer2 \
-   "
+           file://fix-emu_qtx_api.diff \
+          "
 
 SRC_URI_append_armv7a = " \
 	   file://0001-video-out-for-omapfb-support.patch \
@@ -32,6 +33,8 @@ RCONFLICTS_${PN} = "mplayer-atty"
 RREPLACES_${PN} = "mplayer-atty"
 
 PV = "2.0+gitr${SRCPV}"
+PR = "r1"
+
 DEFAULT_PREFERENCE = "-1"
 DEFAULT_PREFERENCE_shr = "2"
 





More information about the Openembedded-commits mailing list