Skip to contentSkip to conversation

lmbench: use base_libdir instead of hardcoded /lib

PATCH In review [email protected] 3 participants 5 messages Jan 14, 2014 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 lmbench: use base_libdir instead of hardcoded /lib

From: Ting Liu <[email protected]>

Fix the below QA warning when building 64bit target:

| WARNING: QA Issue: lmbench: Files/directories were installed but not
| shipped
| /usr/lib
| /usr/lib/libmbench.a
---
 .../use-base_libdir-instead-of-hardcoded-lib.patch |   32 ++++++++++++++++++++
 .../recipes-benchmark/lmbench/lmbench_3.0-a9.bb    |    1 +
 2 files changed, 33 insertions(+), 0 deletions(-)
 create mode 100644 meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/use-base_libdir-instead-of-hardcoded-lib.patch
meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/use-base_libdir-instead-of-hardcoded-lib.patch new file +32 -0
new file mode 100644
index 0000000..3351ce8
@@ -0,0 +1,32 @@
+From 0d09e31970616e09beb7f238c2b59bfc541148fb Mon Sep 17 00:00:00 2001
+From: Ting Liu <[email protected]>
+Date: Fri, 22 Nov 2013 15:20:08 +0800
+Subject: [PATCH] use base_libdir instead of hardcoded /lib
+
+Upsteam Status: Inappropriate [configuration]
+
+Signed-off-by: Ting Liu <[email protected]>
+---
+ src/Makefile |    4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/Makefile b/src/Makefile
+index c7a8c79..c7e4e3c 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -143,10 +143,10 @@ install-target:
+ 	if [ ! -d $(BASE) ]; then mkdir $(BASE); fi
+ 	if [ ! -d $(BASE)/bin ]; then mkdir $(BASE)/bin; fi
+ 	if [ ! -d $(BASE)/include ]; then mkdir $(BASE)/include; fi
+-	if [ ! -d $(BASE)/lib ]; then mkdir $(BASE)/lib; fi
++	if [ ! -d $(BASE)$(base_libdir) ]; then mkdir $(BASE)$(base_libdir); fi
+ 	cp $(EXES) $(BASE)/bin
+ 	cp $(INCS) $(BASE)/include
+-	cp $O/lmbench.a $(BASE)/lib/libmbench.a
++	cp $O/lmbench.a $(BASE)$(base_libdir)
+ 	cd ../doc; env MAKEFLAGS="$(MAKEFLAGS)" make CC="${CC}" OS="${OS}" BASE="$(BASE)" install
+ 
+ 
+-- 
+1.7.5.4
+
meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb +1 -0
index b4020d7..eb38f07 100644
@@ -15,6 +15,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/lmbench/lmbench-${PV}.tgz \
            file://update-results-script.patch \
            file://obey-ranlib.patch \
            file://update-config-script.patch \ 
+           file://use-base_libdir-instead-of-hardcoded-lib.patch \ 
 "
 SRC_URI[md5sum] = "b3351a3294db66a72e2864a199d37cbf"
 SRC_URI[sha256sum] = "cbd5777d15f44eab7666dcac418054c3c09df99826961a397d9acf43d8a2a551"
Signature · 1 line
1.7.3.4
#1 lore raw

PATCH 2/2 inetutils: not hard coded libreadline path

From: Ting Liu <[email protected]>

Avoid below QA issues:

| ERROR: QA Issue: package inetutils-ftp contains bad RPATH
| ERROR: QA Issue: package inetutils-telnet contains bad RPATH
| ERROR: QA Issue: package inetutils-telnetd contains bad RPATH
| ERROR: QA run found fatal errors. Please consider fixing them.
| ERROR: Function failed: do_package_qa
---
 .../inetutils/inetutils_1.9.1.bb                   |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
meta-networking/recipes-connectivity/inetutils/inetutils_1.9.1.bb +0 -1
index 97fc6a1..03b8e65 100644
@@ -37,7 +37,6 @@ PACKAGECONFIG[uucpd] = "--enable-uucpd,--disable-uucpd,readline"
 
 EXTRA_OECONF = "--with-ncurses-include-dir=${STAGING_INCDIR} \
         ${noipv6} \
-        --with-libreadline-prefix=${STAGING_DIR_HOST}${prefix} \
 "
 
 do_configure_prepend () {
Signature · 1 line
1.7.3.4
#2 lore raw

Re: [meta-oe][PATCH 2/2] inetutils: not hard coded libreadline path

Quoted 8 lines · On Tue, Jan 14, 2014 at 05:10:10PM +0800, [email protected] wrote:

From: Ting Liu <[email protected]>

Avoid below QA issues:

| ERROR: QA Issue: package inetutils-ftp contains bad RPATH
| ERROR: QA Issue: package inetutils-telnet contains bad RPATH
| ERROR: QA Issue: package inetutils-telnetd contains bad RPATH
| ERROR: QA run found fatal errors. Please consider fixing them.
| ERROR: Function failed: do_package_qa

Doesn't it autodetect libreadline?

Quoted 25 lines
---
 .../inetutils/inetutils_1.9.1.bb                   |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
meta-networking/recipes-connectivity/inetutils/inetutils_1.9.1.bb +0 -1
index 97fc6a1..03b8e65 100644
@@ -37,7 +37,6 @@ PACKAGECONFIG[uucpd] = "--enable-uucpd,--disable-uucpd,readline"
 
 EXTRA_OECONF = "--with-ncurses-include-dir=${STAGING_INCDIR} \
         ${noipv6} \
-        --with-libreadline-prefix=${STAGING_DIR_HOST}${prefix} \
 "
 
 do_configure_prepend () {
Signature · 7 lines
1.7.3.4


_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]

A message that is not in the archive (sent off-list or not yet received): d6d29dfe2a204196a850afc04467a23d@BN1PR03MB156.namprd03.prod.outlook.com

#4 lore raw

Re: [meta-oe][PATCH 2/2] inetutils: not hard coded libreadline path

Quoted 18 lines · On Tue, Jan 14, 2014 at 09:26:18AM +0000, [email protected] wrote:
Quoted 18 lines

-----Original Message-----
From: Martin Jansa [mailto:[email protected]]
Sent: Tuesday, January 14, 2014 5:22 PM
To: Liu Ting-B28495
Cc: [email protected]
Subject: Re: [oe] [meta-oe][PATCH 2/2] inetutils: not hard coded libreadline path

Quoted 8 lines · On Tue, Jan 14, 2014 at 05:10:10PM +0800, [email protected] wrote:

From: Ting Liu <[email protected]>

Avoid below QA issues:

| ERROR: QA Issue: package inetutils-ftp contains bad RPATH
| ERROR: QA Issue: package inetutils-telnet contains bad RPATH
| ERROR: QA Issue: package inetutils-telnetd contains bad RPATH
| ERROR: QA run found fatal errors. Please consider fixing them.
| ERROR: Function failed: do_package_qa
Quoted 3 lines
Quoted 1 line

Doesn't it autodetect libreadline?

it can find libreadline without specifying --with-libreadline-prefix, so just remove the option to avoid QA errors.

If it disables libreadline support, that should be clearly stated in commit message - from current one it looks like you're just fixing QA issue.

Quoted 33 lines
Quoted 33 lines

Review

Quoted 8 lines
---
 .../inetutils/inetutils_1.9.1.bb                   |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
(quoted diff) +0 -0

connectivity/inetutils/inetutils_1.9.1.bb b/meta-networking/recipes- connectivity/inetutils/inetutils_1.9.1.bb

meta-networking/recipes-connectivity/inetutils/inetutils_1.9.1.bb PACKAGECONFIG[uucpd] = "--enable-uucpd,--disable-

Quoted 4 lines

index 97fc6a1..03b8e65 100644

meta-networking/recipes-connectivity/inetutils/inetutils_1.9.1.bb +0 -0
@@ -37,7 +37,6 @@ PACKAGECONFIG[uucpd] = "--enable-uucpd,--disable-

uucpd,readline"

Quoted 11 lines
meta-networking/recipes-connectivity/inetutils/inetutils_1.9.1.bb +0 -2
 EXTRA_OECONF = "--with-ncurses-include-dir=${STAGING_INCDIR} \
         ${noipv6} \
-        --with-libreadline-prefix=${STAGING_DIR_HOST}${prefix} \
 "
 
 do_configure_prepend () {
--

1.7.3.4

Quoted 4 lines

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

--
Martin 'JaMa' Jansa jabber: [email protected]

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#5 lore raw

Re: [meta-oe][PATCH 2/2] inetutils: not hard coded libreadline path

Quoted 27 lines

-----Original Message-----
From: Martin Jansa [mailto:[email protected]]
Sent: Tuesday, January 14, 2014 5:50 PM
To: Liu Ting-B28495
Cc: [email protected]
Subject: Re: [oe] [meta-oe][PATCH 2/2] inetutils: not hard coded libreadline path

Quoted 18 lines · On Tue, Jan 14, 2014 at 09:26:18AM +0000, [email protected] wrote:
Quoted 18 lines

-----Original Message-----
From: Martin Jansa [mailto:[email protected]]
Sent: Tuesday, January 14, 2014 5:22 PM
To: Liu Ting-B28495
Cc: [email protected]
Subject: Re: [oe] [meta-oe][PATCH 2/2] inetutils: not hard coded libreadline path

Quoted 8 lines · On Tue, Jan 14, 2014 at 05:10:10PM +0800, [email protected] wrote:

From: Ting Liu <[email protected]>

Avoid below QA issues:

| ERROR: QA Issue: package inetutils-ftp contains bad RPATH
| ERROR: QA Issue: package inetutils-telnet contains bad RPATH
| ERROR: QA Issue: package inetutils-telnetd contains bad RPATH
| ERROR: QA run found fatal errors. Please consider fixing them.
| ERROR: Function failed: do_package_qa
Quoted 9 lines
Quoted 3 lines
Quoted 1 line

Doesn't it autodetect libreadline?

it can find libreadline without specifying --with-libreadline-prefix,

so just remove the option to avoid QA errors.

If it disables libreadline support, that should be clearly stated in commit message - from current one it looks like you're just fixing QA issue.

OK. I will check. Thanks.

Quoted 40 lines
Quoted 30 lines
Quoted 30 lines

Review

Quoted 8 lines
---
 .../inetutils/inetutils_1.9.1.bb                   |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
(quoted diff) +0 -0

connectivity/inetutils/inetutils_1.9.1.bb b/meta-networking/recipes- connectivity/inetutils/inetutils_1.9.1.bb

Quoted 8 lines

index 97fc6a1..03b8e65 100644
---
a/meta-networking/recipes-connectivity/inetutils/inetutils_1.9.1.b b
+++ b/meta-networking/recipes-connectivity/inetutils/inetutils_1.9 +++ .1.bb

(quoted diff) +0 -0
@@ -37,7 +37,6 @@ PACKAGECONFIG[uucpd] =

"--enable-uucpd,--disable-

uucpd,readline"

Quoted 11 lines
 EXTRA_OECONF = "--with-ncurses-include-dir=${STAGING_INCDIR} \
         ${noipv6} \

- --with-libreadline-prefix=${STAGING_DIR_HOST}${prefix} \
"

do_configure_prepend () {
--
1.7.3.4

Quoted 7 lines
Quoted 7 lines
Quoted 4 lines

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

--
Martin 'JaMa' Jansa jabber: [email protected]

--
Martin 'JaMa' Jansa jabber: [email protected]