All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gregoire Gentil <gregoire@gentil.com>
To: openembedded-devel@lists.openembedded.org
Subject: Firefox do_stage for gecko-mediaplayer package
Date: Mon, 20 Oct 2008 11:00:50 -0700	[thread overview]
Message-ID: <1224525650.9626.62.camel@localhost> (raw)
In-Reply-To: <mailman.87260.1224514145.11663.openembedded-devel@lists.openembedded.org>

Hello,

I'm trying to create a recipe for gecko-mediaplayer which is a Firefox
plugin.

The recipe (http://pastebin.com/m5cd4d6ec) fails
(http://pastebin.com/m5a2c6a16) because firefox-plugin has not been
exported in the staging area:

configure: WARNING: firefox-plugin not found, trying another
checking for GECKO... no
...
checking for xpidl... no
configure: error: xpidl compiler not found


From my investigations in the gecko-mediaplayer configure and hte
compilation logs, it seems that we are missing:

- firefox-plugin.pc and firefox-xpcom.pc
(take a look at the gecko-mediaplayer configure:
GECKO_HOME=`$PKG_CONFIG --variable=libdir firefox-plugin`
GECKO_IDLDIR=`$PKG_CONFIG --variable=idldir firefox-xpcom`)

- some headers
xpcom/base/*.idl
nsprpub/pr/include/*.h

- the xpidl program (host binary)


I copy the original Firefox-3.0.1 staging function for reference:

do_stage() {
        install -d ${STAGING_INCDIR}/firefox-${PV}
        cd dist/sdk/include
		rm -rf obsolete
        headers=`find . -name "*.h"`
        for f in $headers
        do
                install -D -m 0644 $f ${STAGING_INCDIR}/firefox-${PV}/
        done
        # removes 2 lines that call absent headers
        sed -e '178,179d'
${STAGING_INCDIR}/firefox-${PV}/nsIServiceManager.h
}



I suggest the following:
- remove the "rm -rf obsolete" as this folder contains important files
needed during the gecko-mediaplayer compilation
- add:

        cd ../../../nsprpub/pr/include
        headers=`find . -name "*.h"`
        for f in $headers
        do
                install -D -m 0644 $f ${STAGING_INCDIR}/firefox-${PV}/
        done
        cd ../../../xpcom/base
        headers=`find . -name "*.idl"`
        for f in $headers
        do
                install -D -m 0644 $f ${STAGING_INCDIR}/firefox-${PV}/
        done


Now, I still have a couple of problems:
- First, xpidl should be copied
to /OE/build/tmp/staging/i686-linux/usr/bin but it should be a host
binary. It's run at the last line of the configure to create a header
file. The one I found here:
tmp/work/armv7a-angstrom-linux-gnueabi/firefox-3.0.1-r7.1/mozilla/xpcom/typelib/xpidl/xpidl seems to be an ARM binary so I'm confused. How should I handle this situation?

- Secondly, how do I create those firefox-plugin.pc and
firefox-xpcom.pc so that it can be found by the gecko-mediaplayer
configure?

Perhaps, I'm not taking the problem on the right end. Any advice, code
or help would be appreciated. Thanks in advance,

Grégoire







           reply	other threads:[~2008-10-20 18:01 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <mailman.87260.1224514145.11663.openembedded-devel@lists.openembedded.org>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1224525650.9626.62.camel@localhost \
    --to=gregoire@gentil.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.