All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] fix source-highlight and xcb-proto
@ 2016-09-29  9:02 Robert Yang
  2016-09-29  9:02 ` [PATCH 1/2] xcb-proto: create blank .pyc files in xcbgen dir Robert Yang
  2016-09-29  9:02 ` [PATCH 2/2] source-highlight: use with-boost-libdir Robert Yang
  0 siblings, 2 replies; 6+ messages in thread
From: Robert Yang @ 2016-09-29  9:02 UTC (permalink / raw)
  To: openembedded-core

The following changes since commit cdaafc3729700778d95afc2413553d7b41c1317b:

  oeqa/sstatetests: Ensure we cover deb packaging backend for sstate test (2016-09-28 10:15:55 +0100)

are available in the git repository at:

  git://git.openembedded.org/openembedded-core-contrib rbt/2fixes
  http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=rbt/2fixes

Robert Yang (2):
  xcb-proto: create blank .pyc files in xcbgen dir
  source-highlight: use with-boost-libdir

 meta/recipes-graphics/xorg-proto/xcb-proto_1.12.bb              | 6 ++++++
 meta/recipes-support/source-highlight/source-highlight_3.1.8.bb | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

-- 
2.9.0



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

* [PATCH 1/2] xcb-proto: create blank .pyc files in xcbgen dir
  2016-09-29  9:02 [PATCH 0/2] fix source-highlight and xcb-proto Robert Yang
@ 2016-09-29  9:02 ` Robert Yang
  2016-09-29  9:11   ` Burton, Ross
  2016-09-29  9:02 ` [PATCH 2/2] source-highlight: use with-boost-libdir Robert Yang
  1 sibling, 1 reply; 6+ messages in thread
From: Robert Yang @ 2016-09-29  9:02 UTC (permalink / raw)
  To: openembedded-core

The .pyc files will be generated when "bitbake libxcb", but they can't
be removed when "bitabke xcb-proto -ccleansstate" since they are not
tracked by manifest, create blank .pyc files can fix the problem.

When switch
MACHINE = "qemux86-64"
require conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE_virtclass-multilib-lib32 = "x86"
$ bitbake world

The libdir is /usr/lib64 in this build

The
MACHINE = "qemux86-64"
$ bitbake world
Now libdir is /usr/lib, the previous /usr/lib64 can be removed totally
after this patch.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
 meta/recipes-graphics/xorg-proto/xcb-proto_1.12.bb | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/meta/recipes-graphics/xorg-proto/xcb-proto_1.12.bb b/meta/recipes-graphics/xorg-proto/xcb-proto_1.12.bb
index 8bdca32..d33910b 100644
--- a/meta/recipes-graphics/xorg-proto/xcb-proto_1.12.bb
+++ b/meta/recipes-graphics/xorg-proto/xcb-proto_1.12.bb
@@ -28,3 +28,9 @@ RDEPENDS_${PN}-dev = ""
 RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPKGV})"
 
 BBCLASSEXTEND = "native nativesdk"
+
+do_install_append() {
+    # Create blank .pyc files, so that they will be recorded in
+    # manifest, and can be cleaned correctly.
+    find ${D}${libdir}/xcb-proto/xcbgen -type f -maxdepth 1 -name '*.py' -exec touch {}c \;
+}
-- 
2.9.0



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

* [PATCH 2/2] source-highlight: use with-boost-libdir
  2016-09-29  9:02 [PATCH 0/2] fix source-highlight and xcb-proto Robert Yang
  2016-09-29  9:02 ` [PATCH 1/2] xcb-proto: create blank .pyc files in xcbgen dir Robert Yang
@ 2016-09-29  9:02 ` Robert Yang
  2016-09-29  9:10   ` Burton, Ross
  1 sibling, 1 reply; 6+ messages in thread
From: Robert Yang @ 2016-09-29  9:02 UTC (permalink / raw)
  To: openembedded-core

Without with-boost-libdir, it checks lib64 libx32 lib lib64 in
sysroot/usr/ and set it as boost lib path if it exist, this is
unreliable when build with multilib.

Fixed when switch baselib from lib64 to lib, for example, when we build
qemux86-64 + multilib setting, the baselib is lib64, and when disable
multilib, it would be lib, then we may see the error when
do_configure since lib64 may exist during build source-highlight:

configure: error: Could not find a version of the Boost::Regex library!

Steps to reproduce:
MACHINE = "qemux86-64"
require conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE_virtclass-multilib-lib32 = "x86"

$ bitbake world

Then:
MACHINE = "qemux86-64"
$ bitbake source-highlight

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
 meta/recipes-support/source-highlight/source-highlight_3.1.8.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-support/source-highlight/source-highlight_3.1.8.bb b/meta/recipes-support/source-highlight/source-highlight_3.1.8.bb
index 37d2fa9..c6203df 100644
--- a/meta/recipes-support/source-highlight/source-highlight_3.1.8.bb
+++ b/meta/recipes-support/source-highlight/source-highlight_3.1.8.bb
@@ -15,7 +15,7 @@ DEPENDS_append = " boost"
 
 DEPENDS_append_class-target = " source-highlight-native"
 
-EXTRA_OECONF = "--with-boost=${PKG_CONFIG_SYSROOT_DIR}/${prefix}"
+EXTRA_OECONF = "--with-boost=yes --with-boost-libdir=${PKG_CONFIG_SYSROOT_DIR}${libdir}"
 
 BBCLASSEXTEND = "native"
 
-- 
2.9.0



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

* Re: [PATCH 2/2] source-highlight: use with-boost-libdir
  2016-09-29  9:02 ` [PATCH 2/2] source-highlight: use with-boost-libdir Robert Yang
@ 2016-09-29  9:10   ` Burton, Ross
  2016-09-29  9:20     ` Robert Yang
  0 siblings, 1 reply; 6+ messages in thread
From: Burton, Ross @ 2016-09-29  9:10 UTC (permalink / raw)
  To: Robert Yang; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 431 bytes --]

On 29 September 2016 at 10:02, Robert Yang <liezhi.yang@windriver.com>
wrote:

> -EXTRA_OECONF = "--with-boost=${PKG_CONFIG_SYSROOT_DIR}/${prefix}"
> +EXTRA_OECONF = "--with-boost=yes --with-boost-libdir=${PKG_
> CONFIG_SYSROOT_DIR}${libdir}"
>

PKG_CONFIG_SYSROOT_DIR is the wrong variable to use here as that's
explicitly for pkg-config to know what the current sysroot is.  Use
STAGING_DIR_TARGET explicitly.

Ross

[-- Attachment #2: Type: text/html, Size: 873 bytes --]

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

* Re: [PATCH 1/2] xcb-proto: create blank .pyc files in xcbgen dir
  2016-09-29  9:02 ` [PATCH 1/2] xcb-proto: create blank .pyc files in xcbgen dir Robert Yang
@ 2016-09-29  9:11   ` Burton, Ross
  0 siblings, 0 replies; 6+ messages in thread
From: Burton, Ross @ 2016-09-29  9:11 UTC (permalink / raw)
  To: Robert Yang; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 419 bytes --]

On 29 September 2016 at 10:02, Robert Yang <liezhi.yang@windriver.com>
wrote:

> +do_install_append() {
> +    # Create blank .pyc files, so that they will be recorded in
> +    # manifest, and can be cleaned correctly.
> +    find ${D}${libdir}/xcb-proto/xcbgen -type f -maxdepth 1 -name '*.py'
> -exec touch {}c \;
> +}
>

Why not compile them in do_install so the compiled form is in the sstate?

Ross

[-- Attachment #2: Type: text/html, Size: 845 bytes --]

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

* Re: [PATCH 2/2] source-highlight: use with-boost-libdir
  2016-09-29  9:10   ` Burton, Ross
@ 2016-09-29  9:20     ` Robert Yang
  0 siblings, 0 replies; 6+ messages in thread
From: Robert Yang @ 2016-09-29  9:20 UTC (permalink / raw)
  To: Burton, Ross; +Cc: OE-core



On 09/29/2016 05:10 PM, Burton, Ross wrote:
>
> On 29 September 2016 at 10:02, Robert Yang <liezhi.yang@windriver.com
> <mailto:liezhi.yang@windriver.com>> wrote:
>
>     -EXTRA_OECONF = "--with-boost=${PKG_CONFIG_SYSROOT_DIR}/${prefix}"
>     +EXTRA_OECONF = "--with-boost=yes
>     --with-boost-libdir=${PKG_CONFIG_SYSROOT_DIR}${libdir}"
>
>
> PKG_CONFIG_SYSROOT_DIR is the wrong variable to use here as that's explicitly
> for pkg-config to know what the current sysroot is.  Use STAGING_DIR_TARGET
> explicitly.

I derived it from the old code, thanks, will update xcb-proto, too.

>
> Ross


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

end of thread, other threads:[~2016-09-29  9:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-29  9:02 [PATCH 0/2] fix source-highlight and xcb-proto Robert Yang
2016-09-29  9:02 ` [PATCH 1/2] xcb-proto: create blank .pyc files in xcbgen dir Robert Yang
2016-09-29  9:11   ` Burton, Ross
2016-09-29  9:02 ` [PATCH 2/2] source-highlight: use with-boost-libdir Robert Yang
2016-09-29  9:10   ` Burton, Ross
2016-09-29  9:20     ` Robert Yang

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.