Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] cmake-native: disable check for acl.h
@ 2015-01-27  5:35 Chen Qi
  2015-01-27  5:35 ` [PATCH] image.bbclass: don't let do_rootfs depend on BUILDNAME Chen Qi
  2015-01-27  5:37 ` [PATCH] cmake-native: disable check for acl.h ChenQi
  0 siblings, 2 replies; 3+ messages in thread
From: Chen Qi @ 2015-01-27  5:35 UTC (permalink / raw)
  To: openembedded-core

We build cmake-native without acl support. However, the acl.h header
is still being checked which would sometimes cause the following error
during do_compile:

     archive_read_disk_entry_from_file.c:38:21: fatal error: sys/acl.h: No such file or directory
     |  #include <sys/acl.h>
     |                      ^
     | compilation terminated.

This happens when the sysroot parts of acl-native is removed between
do_configure and do_compile tasks of cmake-native.

To reproduce the problem manually, execute the following command:

bitbake cmake-native -c cleansstate && bitbake acl-native -c cleansstate && \
bitbake	acl-native && bitbake cmake-native -c configure	&& \
bitbake acl-native -c cleansstate && bitbake cmake-native -c compile

This patch fixes the above problem by explicitly disable the checking for
acl.h header file.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 meta/recipes-devtools/cmake/cmake-native_2.8.12.2.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-devtools/cmake/cmake-native_2.8.12.2.bb b/meta/recipes-devtools/cmake/cmake-native_2.8.12.2.bb
index cd6b1d8..e40dfdd 100644
--- a/meta/recipes-devtools/cmake/cmake-native_2.8.12.2.bb
+++ b/meta/recipes-devtools/cmake/cmake-native_2.8.12.2.bb
@@ -15,4 +15,5 @@ SRC_URI[sha256sum] = "8c6574e9afabcb9fc66f463bb1f2f051958d86c85c37fccf067eb1a44a
 CMAKE_EXTRACONF = "\
     -DBUILD_CursesDialog=0 \
     -DENABLE_ACL=0 -DHAVE_ACL_LIBACL_H=0 \
+    -DHAVE_SYS_ACL_H=0 \
 "
-- 
1.9.1



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

* [PATCH] image.bbclass: don't let do_rootfs depend on BUILDNAME
  2015-01-27  5:35 [PATCH] cmake-native: disable check for acl.h Chen Qi
@ 2015-01-27  5:35 ` Chen Qi
  2015-01-27  5:37 ` [PATCH] cmake-native: disable check for acl.h ChenQi
  1 sibling, 0 replies; 3+ messages in thread
From: Chen Qi @ 2015-01-27  5:35 UTC (permalink / raw)
  To: openembedded-core

BUILDNAME is set by cooker as a string of current time. Letting do_rootfs
task depend on this variable gets us no benefit. Besides, letting do_rootfs
task depend on this variable will cause us trouble when executing
`bitbake -S none core-image-minimal'. With current code, this command
gives us error complaining about the different bashhash of do_rootfs task.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 meta/classes/image.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index ea4430b..e9d4ad4 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -94,7 +94,7 @@ def rootfs_variables(d):
                  'IMAGE_ROOTFS_MAXSIZE','IMAGE_NAME','IMAGE_LINK_NAME','IMAGE_MANIFEST','DEPLOY_DIR_IMAGE','RM_OLD_IMAGE','IMAGE_FSTYPES','IMAGE_INSTALL_COMPLEMENTARY','IMAGE_LINGUAS','SDK_OS',
                  'SDK_OUTPUT','SDKPATHNATIVE','SDKTARGETSYSROOT','SDK_DIR','SDK_VENDOR','SDKIMAGE_INSTALL_COMPLEMENTARY','SDK_PACKAGE_ARCHS','SDK_OUTPUT','SDKTARGETSYSROOT','MULTILIBRE_ALLOW_REP',
                  'MULTILIB_TEMP_ROOTFS','MULTILIB_VARIANTS','MULTILIBS','ALL_MULTILIB_PACKAGE_ARCHS','MULTILIB_GLOBAL_VARIANTS','BAD_RECOMMENDATIONS','NO_RECOMMENDATIONS','PACKAGE_ARCHS',
-                 'PACKAGE_CLASSES','TARGET_VENDOR','TARGET_VENDOR','TARGET_ARCH','TARGET_OS','OVERRIDES','BBEXTENDVARIANT','FEED_DEPLOYDIR_BASE_URI','INTERCEPT_DIR','BUILDNAME','USE_DEVFS',
+                 'PACKAGE_CLASSES','TARGET_VENDOR','TARGET_VENDOR','TARGET_ARCH','TARGET_OS','OVERRIDES','BBEXTENDVARIANT','FEED_DEPLOYDIR_BASE_URI','INTERCEPT_DIR','USE_DEVFS',
                  'STAGING_KERNEL_DIR','COMPRESSIONTYPES']
     variables.extend(command_variables(d))
     variables.extend(variable_depends(d))
-- 
1.9.1



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

* Re: [PATCH] cmake-native: disable check for acl.h
  2015-01-27  5:35 [PATCH] cmake-native: disable check for acl.h Chen Qi
  2015-01-27  5:35 ` [PATCH] image.bbclass: don't let do_rootfs depend on BUILDNAME Chen Qi
@ 2015-01-27  5:37 ` ChenQi
  1 sibling, 0 replies; 3+ messages in thread
From: ChenQi @ 2015-01-27  5:37 UTC (permalink / raw)
  To: openembedded-core

Please ignore this one.
Stupid command mistake.

//Chen Qi

On 01/27/2015 01:35 PM, Chen Qi wrote:
> We build cmake-native without acl support. However, the acl.h header
> is still being checked which would sometimes cause the following error
> during do_compile:
>
>       archive_read_disk_entry_from_file.c:38:21: fatal error: sys/acl.h: No such file or directory
>       |  #include <sys/acl.h>
>       |                      ^
>       | compilation terminated.
>
> This happens when the sysroot parts of acl-native is removed between
> do_configure and do_compile tasks of cmake-native.
>
> To reproduce the problem manually, execute the following command:
>
> bitbake cmake-native -c cleansstate && bitbake acl-native -c cleansstate && \
> bitbake	acl-native && bitbake cmake-native -c configure	&& \
> bitbake acl-native -c cleansstate && bitbake cmake-native -c compile
>
> This patch fixes the above problem by explicitly disable the checking for
> acl.h header file.
>
> Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> ---
>   meta/recipes-devtools/cmake/cmake-native_2.8.12.2.bb | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/meta/recipes-devtools/cmake/cmake-native_2.8.12.2.bb b/meta/recipes-devtools/cmake/cmake-native_2.8.12.2.bb
> index cd6b1d8..e40dfdd 100644
> --- a/meta/recipes-devtools/cmake/cmake-native_2.8.12.2.bb
> +++ b/meta/recipes-devtools/cmake/cmake-native_2.8.12.2.bb
> @@ -15,4 +15,5 @@ SRC_URI[sha256sum] = "8c6574e9afabcb9fc66f463bb1f2f051958d86c85c37fccf067eb1a44a
>   CMAKE_EXTRACONF = "\
>       -DBUILD_CursesDialog=0 \
>       -DENABLE_ACL=0 -DHAVE_ACL_LIBACL_H=0 \
> +    -DHAVE_SYS_ACL_H=0 \
>   "



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

end of thread, other threads:[~2015-01-27  5:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-27  5:35 [PATCH] cmake-native: disable check for acl.h Chen Qi
2015-01-27  5:35 ` [PATCH] image.bbclass: don't let do_rootfs depend on BUILDNAME Chen Qi
2015-01-27  5:37 ` [PATCH] cmake-native: disable check for acl.h ChenQi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox