Patchwork [1/3] cmake-native: Fix build on ubuntu

login
register
mail settings
Submitter Khem Raj
Date July 20, 2012, 5:22 a.m.
Message ID <1342761780-20215-1-git-send-email-raj.khem@gmail.com>
Download mbox | patch
Permalink /patch/32683/
State New
Headers show

Comments

Khem Raj - July 20, 2012, 5:22 a.m.
From: Khem Raj <kraj@juniper.net>

Fixes errors like

/yocto/poky/build/tmp/work/x86_64-linux/cmake-native-2.8.5-r2.1/cmake-2.8.5/Utilities/cmlibarchive/libarchive/archive_entry.c:56:55:
fatal error: ext2fs/ext2_fs.h: No such file or directory

Signed-off-by: Khem Raj <kraj@juniper.net>
---
 meta/recipes-devtools/cmake/cmake-native_2.8.5.bb |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Richard Purdie - July 20, 2012, 7:42 a.m.
On Thu, 2012-07-19 at 22:22 -0700, Khem Raj wrote:
> From: Khem Raj <kraj@juniper.net>
> 
> Fixes errors like
> 
> /yocto/poky/build/tmp/work/x86_64-linux/cmake-native-2.8.5-r2.1/cmake-2.8.5/Utilities/cmlibarchive/libarchive/archive_entry.c:56:55:
> fatal error: ext2fs/ext2_fs.h: No such file or directory
> 
> Signed-off-by: Khem Raj <kraj@juniper.net>
> ---
>  meta/recipes-devtools/cmake/cmake-native_2.8.5.bb |    4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/meta/recipes-devtools/cmake/cmake-native_2.8.5.bb b/meta/recipes-devtools/cmake/cmake-native_2.8.5.bb
> index 3fe0c2e..98ae300 100644
> --- a/meta/recipes-devtools/cmake/cmake-native_2.8.5.bb
> +++ b/meta/recipes-devtools/cmake/cmake-native_2.8.5.bb
> @@ -1,7 +1,9 @@
>  require cmake.inc
>  inherit native
>  
> -PR = "${INC_PR}.1"
> +DEPENDS += "e2fsprogs-native"
> +
> +PR = "${INC_PR}.2"
>  
>  SRC_URI[md5sum] = "3c5d32cec0f4c2dc45f4c2e84f4a20c5"
>  SRC_URI[sha256sum] = "5e18bff75f01656c64f553412a8905527e1b85efaf3163c6fb81ea5aaced0b91"

Does cmake really need e2fsprogs? Can we disable that dependency
instead? What would we lose?

Cheers,

Richard

Patch

diff --git a/meta/recipes-devtools/cmake/cmake-native_2.8.5.bb b/meta/recipes-devtools/cmake/cmake-native_2.8.5.bb
index 3fe0c2e..98ae300 100644
--- a/meta/recipes-devtools/cmake/cmake-native_2.8.5.bb
+++ b/meta/recipes-devtools/cmake/cmake-native_2.8.5.bb
@@ -1,7 +1,9 @@ 
 require cmake.inc
 inherit native
 
-PR = "${INC_PR}.1"
+DEPENDS += "e2fsprogs-native"
+
+PR = "${INC_PR}.2"
 
 SRC_URI[md5sum] = "3c5d32cec0f4c2dc45f4c2e84f4a20c5"
 SRC_URI[sha256sum] = "5e18bff75f01656c64f553412a8905527e1b85efaf3163c6fb81ea5aaced0b91"