Skip to contentSkip to conversation

Pytgtk2: follow up

DISCUSSION Nicolas FR 1 participant 1 message Oct 18, 2006 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

Nicolas FR

author
#2 lore raw

As suggested by Mickey, this might be of public interest.

Basically I asked Mickey for help to make a receipe for python-pygtk2_2.10.0 which adds support for the gtk.StatusIcon class which 'should' allow to use statusicon in panels which follow the freedesktop.org directives (hint: matchbox!).

python-pygtk2_2.10.0 currently in OE, compiles fine but after installing it and trying in python to "import gtk", it would complain about missing pangocairo module.

After checking in log_do_configure I noticed that indeed that pangocairo was not found. After some research, I realised the pycairo.pc was missing from staging/arm-angstrom-linux-gnueabi/share/pkgconfig

Now I know that pkconfig is used to install .pc files
(http://www.openembedded.org/user-manual&dpage=ch07s07), so basically python-pycairo should just inherit pkgconfig to solve the problem?

Is that it Mickey?

---------- Forwarded message ----------
From: Michael 'Mickey' Lauer <[email protected]>
Date: Oct 18, 2006 10:37 PM
Subject: Re: Pytgtk2: follow up
To: Nicolas FR <[email protected]>

Quoted 9 lines

I finally made some progress to compile Pygtk2 with pangocairo support. I made a simple recipe for pycairo-native but the problem is that pycairo.pc is not installed in "/opt/OE/build/tmp/staging/arm-angstrom-linux-gnueabi/share/pkgconfig". Copying the file manually there solves the problem.

Of course I can add a rule in the do_staging to copy the file, but I'd like to understand why the *.pc files do get copied for other packages (pygobject for example) and not for pycairo? Any idea?

Seems like pycairo.bb doesn't inherit pkgconfig.

Quoted 5 lines

Here is the .bb I made for python-pycairo-native_1.2.2.bb:

----------
require python-pycairo_${PV}.bb

Quoted 8 lines

DEPENDS = "python-native"

do_stage() {
        BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
        ${STAGING_BINDIR}/python setup.py install

--prefix=${STAGING_LIBDIR}/.. --install-data=${STAGING_DATADIR} || \
oefatal "python setup.py install execution failed."
}

Why would we need pycairo-native in addition to pycairo?

Btw., I think these things are of public interest, we better switch to using [email protected]

--
Regards,

Michael 'Mickey' Lauer | FreeLancer | http://www.Vanille-Media.de