]> code.ossystems Code Review - openembedded-core.git/commitdiff
qt4-x11-free: Fix broken regexes in qt4-x11-free's recipe.
authorWenzong Fan <wenzong.fan@windriver.com>
Tue, 11 Oct 2011 08:32:23 +0000 (16:32 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 30 Jan 2012 16:27:07 +0000 (16:27 +0000)
[YOCTO #1671]

qt4-x11-free's recipe includes a sed script to sanitize it's .prl files,
which are used by qmake to generate a list of libs and includes in the
Makefiles it generates. It however, fails to take into account the possibility
of trailing slashes, and thus leaves them in, and breaks gcc's syntax.
Update these regexes to account for them.

(From OE-Core rev: 8d580ed449c09a64483519d66e14a2e3b071806a)

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-qt/qt4/qt4.inc

index 7d91f19c4fe7950db91fdc4f6a054abb3d4aec7f..9ff33eca741ee5ce379cae2507f956b0a7b03657 100644 (file)
@@ -289,13 +289,13 @@ do_install() {
        rm -f ${D}/${bindir}/lrelease
 
        # fix pkgconfig, libtool and prl files
-       sed -i -e s#-L${S}/lib##g \
-                       -e s#-L${STAGING_LIBDIR}##g \
+       sed -i -e s#-L${S}/lib/\?##g \
+                       -e s#-L${STAGING_LIBDIR}/\?##g \
                        -e 's#STAGING_LIBDIR}#libdir}'#g \
-                       -e s#-L${libdir}##g \
+                       -e s#-L${libdir}/\?##g \
                        -e s#'$(OE_QMAKE_LIBS_X11)'#"${OE_QMAKE_LIBS_X11}"#g \
-                       -e s#" -Wl,-rpath-link,${S}/lib"##g \
-                       -e s#" -Wl,-rpath-link,${libdir}"##g \
+                       -e s#" -Wl,-rpath-link,${S}/lib/\?"##g \
+                       -e s#" -Wl,-rpath-link,${libdir}/\?"##g \
                        -e 's#Iin#I${in#g' \
                        ${D}${libdir}/*.la ${D}${libdir}/*.prl ${D}${libdir}/pkgconfig/*.pc