All of lore.kernel.org
 help / color / mirror / Atom feed
* How to sane replace a path in a pkgconfig file ?
@ 2010-02-14 14:23 bernhard.guillon
  2010-02-14 17:04 ` Bernhard Reutner-Fischer
  0 siblings, 1 reply; 12+ messages in thread
From: bernhard.guillon @ 2010-02-14 14:23 UTC (permalink / raw)
  To: openembedded-devel

Hi all,
currently I am working on fixing blackbox. I had to add a lot of includes to fix compiler errors.
After fixing the compiler errors I came over a sed error of the recipe. sed was not able to find the pc file but the recipe inherits pkgconfig.

----snipped of blackbox_0.70.1.bb----
#fix path of pc file
do_install_append() {
        sed -i s#${STAGING_LIBDIR}#${libdir}#g ${D}/${libdir}/pkgconfig/libbt.pc
}

do_stage () {
        sed -i s#${STAGING_LIBDIR}#${libdir}#g ${STAGING_LIBDIR}/pkgconfig/libbt.pc
}

It looks like the pkgconfig class is called after do_stage()?  What is the right place to replace the wrong path in the libbt.pc file?

I changed the above to this:

#fix path of pc file
do_install_prepend() {
        sed -i s#${STAGING_LIBDIR}#${libdir}#g ${S}/lib/libbt.pc
}

But I am not sure if this is safe! Is there any place where the original path in the pkconfig file is needed? With my approach this file would have the wrong path inside.

What do you think about it? I am looking forward to any advice :)

Best regards
Bernhard Guillon







^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-02-15  9:47 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-14 14:23 How to sane replace a path in a pkgconfig file ? bernhard.guillon
2010-02-14 17:04 ` Bernhard Reutner-Fischer
2010-02-14 17:33   ` = ? UTF-8 ? B ? Ww== ? =oe= ? UTF-8 ? B ? XQ== ? = " bernhard.guillon
2010-02-14 18:37     ` Bernhard Reutner-Fischer
2010-02-14 20:20       ` Koen Kooi
2010-02-14 20:38         ` bernhard.guillon
2010-02-14 21:22           ` Bernhard Reutner-Fischer
2010-02-14 21:31             ` Phil Blundell
2010-02-14 21:47               ` Bernhard Reutner-Fischer
2010-02-14 21:49                 ` Bernhard Reutner-Fischer
2010-02-14 21:25           ` Phil Blundell
2010-02-15  9:44             ` Richard Purdie

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.