Skip to contentSkip to conversation

cmake-native: Fix build on ubuntu

PATCH In review Khem Raj 3 participants 5 messages Jul 20, 2012 – Jul 21, 2012

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/3 cmake-native: Fix build on ubuntu

From: Khem Raj <[email protected]>

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

---
 meta/recipes-devtools/cmake/cmake-native_2.8.5.bb |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta/recipes-devtools/cmake/cmake-native_2.8.5.bb +3 -1
index 3fe0c2e..98ae300 100644
@@ -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"
Signature · 1 line
1.7.9.5
author
#1 lore raw

PATCH 2/3 binutils: Add missing target package dependencies

e.g. libfl from flex is needed for target
binutils to link otherwise it can fail to build

---
 meta/recipes-devtools/binutils/binutils-2.22.inc |    2 +-
 meta/recipes-devtools/binutils/binutils_2.22.bb  |    3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)
meta/recipes-devtools/binutils/binutils-2.22.inc +1 -1
index e776985..e3e179d 100644
@@ -1,4 +1,4 @@
-PR = "r12"
+PR = "r13"
 
 LIC_FILES_CHKSUM="\
     file://src-release;endline=17;md5=4830a9ef968f3b18dd5e9f2c00db2d35\
meta/recipes-devtools/binutils/binutils_2.22.bb +3 -0
index b8e1112..b8250d8 100644
@@ -1,5 +1,8 @@
 require binutils.inc
 require binutils-${PV}.inc
+
+DEPENDS += "flex bison zlib"
+
 EXTRA_OECONF += "--with-sysroot=/ \
                 --enable-install-libbfd \
                 --enable-shared \
Signature · 1 line
1.7.9.5
#2 lore raw

Re: [PATCH 2/3] binutils: Add missing target package dependencies

Quoted 25 lines · Khem Raj

e.g. libfl from flex is needed for target
binutils to link otherwise it can fail to build

---
  meta/recipes-devtools/binutils/binutils-2.22.inc |    2 +-
  meta/recipes-devtools/binutils/binutils_2.22.bb  |    3 +++
  2 files changed, 4 insertions(+), 1 deletion(-)
meta/recipes-devtools/binutils/binutils-2.22.inc +1 -1
index e776985..e3e179d 100644
@@ -1,4 +1,4 @@
-PR = "r12"
+PR = "r13"
 
  LIC_FILES_CHKSUM="\
      file://src-release;endline=17;md5=4830a9ef968f3b18dd5e9f2c00db2d35\
meta/recipes-devtools/binutils/binutils_2.22.bb +0 -0
index b8e1112..b8250d8 100644

meta/recipes-devtools/binutils/binutils_2.22.bb line 8

Quoted 8 lines
meta/recipes-devtools/binutils/binutils_2.22.bb +3 -0
@@ -1,5 +1,8 @@
  require binutils.inc
  require binutils-${PV}.inc
+
+DEPENDS += "flex bison zlib"
+
  EXTRA_OECONF += "--with-sysroot=/ \
                  --enable-install-libbfd \
                  --enable-shared \

Merged this along with 3/3 puzzles, sorry for the confusion on the http, I thought I downloaded it correctly, must have hit the mirror.

Thanks
Sau!

author
#3 lore raw

PATCH 3/3 puzzles, mkelfimage: Use svn protocol instead of http

In reply to Khem Raj

These repos are not setup to serve through http protocol

---
 meta/recipes-devtools/mkelfimage/mkelfimage_svn.bb |    2 +-
 meta/recipes-sato/puzzles/puzzles_r9561.bb         |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
meta/recipes-devtools/mkelfimage/mkelfimage_svn.bb +1 -1
index eb6aa71..ca145ff 100644
@@ -10,7 +10,7 @@ PR = "r1"
 
 DEPENDS += "zlib"
 
-SRC_URI = "svn://coreboot.org/coreboot/trunk/util;module=mkelfImage;protocol=http \
+SRC_URI = "svn://coreboot.org/coreboot/trunk/util;module=mkelfImage;protocol=svn \
            file://cross-compile.patch \
           "
 
meta/recipes-sato/puzzles/puzzles_r9561.bb +1 -1
index 7c18421..310798d 100644
@@ -9,7 +9,7 @@ LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENCE;md5=453de74d749439762ef4814f7bee1fec"
 
 # Upstream updates puzzles.tar.gz for the new release, so checksums seem to be changing regularly right now
-SRC_URI = "svn://svn.tartarus.org/sgt;module=puzzles;rev=${MOD_PV};protocol=http"
+SRC_URI = "svn://svn.tartarus.org/sgt;module=puzzles;rev=${MOD_PV};protocol=svn"
 S = "${WORKDIR}/${BPN}"
 
 #SRC_URI = "http://www.chiark.greenend.org.uk/~sgtatham/puzzles/puzzles-${PV}.tar.gz"
Signature · 1 line
1.7.9.5
#4 lore raw
In reply to Khem Raj
Quoted 17 lines · Khem Raj

From: Khem Raj <[email protected]>

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

---
 meta/recipes-devtools/cmake/cmake-native_2.8.5.bb |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta/recipes-devtools/cmake/cmake-native_2.8.5.bb +0 -0
index 3fe0c2e..98ae300 100644

meta/recipes-devtools/cmake/cmake-native_2.8.5.bb line 9

Quoted 10 lines
meta/recipes-devtools/cmake/cmake-native_2.8.5.bb +3 -1
@@ -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