Skip to contentSkip to conversation

meta: 3 fixes for nativesdk

PATCH In review Robert Yang 2 participants 8 messages Sep 26, 2019 – Sep 27, 2019

lore
Share & tools
lore
#0 lore raw

v2 cover meta: 3 fixes for nativesdk

* V2:
- Fix comments from Ross.

* V1
- Initial version

// Robert

The following changes since commit 95ad5626296380358c8a502a3e04879dab653d78:

build-appliance-image: Update to master head revision (2019-09-19 20:32:47 +0100)

are available in the git repository at:

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

Robert Yang (3):
expect: Fix configure error for nativesdk
apr: Fix configure error for nativesdk
net-tools: Fix installed-vs-shipped for nativesdk

 meta/recipes-devtools/expect/expect_5.45.4.bb        | 6 +++---
 meta/recipes-extended/net-tools/net-tools_1.60-26.bb | 2 +-
 meta/recipes-support/apr/apr_1.7.0.bb                | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)
Signature · 1 line
2.7.4
#1 lore raw

PATCH v2 1/3 expect: Fix configure error for nativesdk

Fixed:

$ bitbake nativesdk-expect
checking for Tcl public headers... configure: error: tcl.h not found.  Please specify its location with --with-tclinclude
---
 meta/recipes-devtools/expect/expect_5.45.4.bb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
meta/recipes-devtools/expect/expect_5.45.4.bb +3 -3
index 96eacd9..5f59083 100644
@@ -44,9 +44,9 @@ do_install_append() {
 }
 
 # Apparently the public Tcl headers are only in /usr/include/tcl8.6
-# when building for the target.
-TCL_INCLUDE_PATH = ""
-TCL_INCLUDE_PATH_class-target = "--with-tclinclude=${STAGING_INCDIR}/tcl8.6"
+# when building for the target and nativesdk.
+TCL_INCLUDE_PATH = "--with-tclinclude=${STAGING_INCDIR}/tcl8.6"
+TCL_INCLUDE_PATH_class-native = ""
 
 EXTRA_OECONF += "--with-tcl=${STAGING_LIBDIR} \
                  --enable-shared \
Signature · 1 line
2.7.4
#2 lore raw

PATCH v2 2/3 apr: Fix configure error for nativesdk

In reply to Robert Yang

Fixed:

$ bitbake nativesdk-apr
buildconf: libtool not found.
           You need libtool version 1.4 or newer installed
---
 meta/recipes-support/apr/apr_1.7.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-support/apr/apr_1.7.0.bb +1 -1
index 09a65bf..a9d98be 100644
@@ -1,7 +1,7 @@
 SUMMARY = "Apache Portable Runtime (APR) library"
 HOMEPAGE = "http://apr.apache.org/"
 SECTION = "libs"
-DEPENDS = "util-linux"
+DEPENDS = "util-linux libtool"
 
 LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=4dfd4cd216828c8cae5de5a12f3844c8 \
Signature · 1 line
2.7.4
#3 lore raw

Re: [PATCH v2 2/3] apr: Fix configure error for nativesdk

Quoted 16 lines · Robert Yang

Fixed:

$ bitbake nativesdk-apr
buildconf: libtool not found.
           You need libtool version 1.4 or newer installed
---
 meta/recipes-support/apr/apr_1.7.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-support/apr/apr_1.7.0.bb +0 -0
index 09a65bf..a9d98be 100644

meta/recipes-support/apr/apr_1.7.0.bb line 4

Quoted 5 lines
meta/recipes-support/apr/apr_1.7.0.bb +1 -1
@@ -1,7 +1,7 @@
 SUMMARY = "Apache Portable Runtime (APR) library"
 HOMEPAGE = "http://apr.apache.org/"
 SECTION = "libs"
-DEPENDS = "util-linux"
+DEPENDS = "util-linux libtool"

hmmm packages usually need libtoolize so please check if thats the case or maybe patch apr to
do so., thereafter you can just DEPEND on libtool-cross

Quoted 11 lines
meta/recipes-support/apr/apr_1.7.0.bb +0 -1
 LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=4dfd4cd216828c8cae5de5a12f3844c8 \
--

2.7.4

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#4 lore raw

Re: [PATCH v2 2/3] apr: Fix configure error for nativesdk

Hi Khem,

Quoted 12 lines · Khem Raj
Quoted 11 lines · Robert Yang

Fixed:

$ bitbake nativesdk-apr
buildconf: libtool not found.
            You need libtool version 1.4 or newer installed
---
  meta/recipes-support/apr/apr_1.7.0.bb | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 14 lines

meta/recipes-support/apr/apr_1.7.0.bb line 4

Quoted 10 lines
meta/recipes-support/apr/apr_1.7.0.bb +1 -1
index 09a65bf..a9d98be 100644
@@ -1,7 +1,7 @@
  SUMMARY = "Apache Portable Runtime (APR) library"
  HOMEPAGE = "http://apr.apache.org/"
  SECTION = "libs"
-DEPENDS = "util-linux"
+DEPENDS = "util-linux libtool"

hmmm packages usually need libtoolize so please check if thats the case or maybe patch apr to
do so., thereafter you can just DEPEND on libtool-cross

In do_configure:

libtool='${HOST_SYS}-libtool' ./buildconf

So it requires libtool which is x86_64-pokysdk-linux-libtool when build nativesdk-apr. The libtool-cross is already in default depends, and it doesn't work when build nativesdk-apr, so I added libtool to the DEPENDS.

// Robert

Quoted 13 lines
Quoted 12 lines
meta/recipes-support/apr/apr_1.7.0.bb +0 -1
  LICENSE = "Apache-2.0"
  LIC_FILES_CHKSUM = "file://LICENSE;md5=4dfd4cd216828c8cae5de5a12f3844c8 \
--

2.7.4

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#5 lore raw

Re: [PATCH v2 2/3] apr: Fix configure error for nativesdk

Quoted 31 lines · Robert Yang

Hi Khem,

Quoted 12 lines · Khem Raj
Quoted 11 lines · Robert Yang

Fixed:

$ bitbake nativesdk-apr
buildconf: libtool not found.
            You need libtool version 1.4 or newer installed
---
  meta/recipes-support/apr/apr_1.7.0.bb | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 14 lines

meta/recipes-support/apr/apr_1.7.0.bb line 4

Quoted 10 lines
meta/recipes-support/apr/apr_1.7.0.bb +1 -1
index 09a65bf..a9d98be 100644
@@ -1,7 +1,7 @@
  SUMMARY = "Apache Portable Runtime (APR) library"
  HOMEPAGE = "http://apr.apache.org/"
  SECTION = "libs"
-DEPENDS = "util-linux"
+DEPENDS = "util-linux libtool"

hmmm packages usually need libtoolize so please check if thats the case or maybe patch apr to
do so., thereafter you can just DEPEND on libtool-cross

Quoted 8 lines

In do_configure:

libtool='${HOST_SYS}-libtool' ./buildconf

So it requires libtool which is x86_64-pokysdk-linux-libtool when build nativesdk-apr. The libtool-cross is already in default depends, and it doesn't work when build nativesdk-apr, so I added libtool to the DEPENDS.

perhaps something like this might be interesting
https://sources.debian.org/src/apr/1.6.5-1/debian/patches/fix_apr-config.patch/
https://sources.debian.org/src/apr/1.6.5-1/debian/patches/libtoolize_check.patch/

Quoted 15 lines

// Robert

Quoted 13 lines
Quoted 12 lines
meta/recipes-support/apr/apr_1.7.0.bb +0 -1
  LICENSE = "Apache-2.0"
  LIC_FILES_CHKSUM = "file://LICENSE;md5=4dfd4cd216828c8cae5de5a12f3844c8 \
--

2.7.4

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#6 lore raw

Re: [PATCH v2 2/3] apr: Fix configure error for nativesdk

Quoted 36 lines · Khem Raj
Quoted 35 lines · Robert Yang

Hi Khem,

Quoted 12 lines · Khem Raj
Quoted 11 lines · Robert Yang

Fixed:

$ bitbake nativesdk-apr
buildconf: libtool not found.
             You need libtool version 1.4 or newer installed
---
   meta/recipes-support/apr/apr_1.7.0.bb | 2 +-
   1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 14 lines

meta/recipes-support/apr/apr_1.7.0.bb line 4

Quoted 10 lines
meta/recipes-support/apr/apr_1.7.0.bb +1 -1
index 09a65bf..a9d98be 100644
@@ -1,7 +1,7 @@
   SUMMARY = "Apache Portable Runtime (APR) library"
   HOMEPAGE = "http://apr.apache.org/"
   SECTION = "libs"
-DEPENDS = "util-linux"
+DEPENDS = "util-linux libtool"

hmmm packages usually need libtoolize so please check if thats the case or maybe patch apr to
do so., thereafter you can just DEPEND on libtool-cross

In do_configure:

libtool='${HOST_SYS}-libtool' ./buildconf

Quoted 8 lines
Quoted 4 lines

So it requires libtool which is x86_64-pokysdk-linux-libtool when build nativesdk-apr. The libtool-cross is already in default depends, and it doesn't work when build nativesdk-apr, so I added libtool to the DEPENDS.

perhaps something like this might be interesting
https://sources.debian.org/src/apr/1.6.5-1/debian/patches/fix_apr-config.patch/
https://sources.debian.org/src/apr/1.6.5-1/debian/patches/libtoolize_check.patch/

Thanks, this patch is useful for oe-core, I will add it.

// Robrt

Quoted 17 lines
Quoted 16 lines

// Robert

Quoted 13 lines
Quoted 12 lines
meta/recipes-support/apr/apr_1.7.0.bb +0 -1
   LICENSE = "Apache-2.0"
   LIC_FILES_CHKSUM = "file://LICENSE;md5=4dfd4cd216828c8cae5de5a12f3844c8 \
--

2.7.4

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#7 lore raw

PATCH v2 3/3 net-tools: Fix installed-vs-shipped for nativesdk

In reply to Robert Yang

Fixed:

$ bitbake nativesdk-net-tools
ERROR: nativesdk-net-tools-1.60-26-r0 do_package: QA Issue: nativesdk-net-tools: Files/directories were installed but not shipped in any package:
  /usr
  /usr/share
  /usr/share/man
[snip]
---
 meta/recipes-extended/net-tools/net-tools_1.60-26.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-extended/net-tools/net-tools_1.60-26.bb +1 -1
index b565fd0..5a376e7 100644
@@ -95,7 +95,7 @@ do_compile() {
 
 do_install() {
 	# We don't need COPTS or LOPTS, but let's be consistent.
-	oe_runmake COPTS="$CFLAGS" LOPTS="$LDFLAGS" 'BASEDIR=${D}' install
+	oe_runmake COPTS="$CFLAGS" LOPTS="$LDFLAGS" BASEDIR=${D} INSTALLNLSDIR=${D}${datadir}/locale mandir=${mandir} install
 
 	if [ "${base_bindir}" != "/bin" ]; then
 		mkdir -p ${D}/${base_bindir}
Signature · 1 line
2.7.4