* [PATCH 0/4] meta: 4 fixes
@ 2017-04-13 9:57 Robert Yang
2017-04-13 9:57 ` [PATCH 1/4] binconfig.bbclass: fix typo in get_binconfig_mangle() Robert Yang
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Robert Yang @ 2017-04-13 9:57 UTC (permalink / raw)
To: openembedded-core
The following changes since commit e41c90b852167bbcb434da57b84280e855acae33:
busybox: In defconfig enable ASH_CMDCMD for built-in 'command' (2017-04-12 15:18:42 +0100)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib rbt/4fixes
http://cgit.openembedded.org/openembedded-core-contrib/log/?h=rbt/4fixes
Robert Yang (4):
binconfig.bbclass: fix typo in get_binconfig_mangle()
apt: fix libdir path for apt.systemd.daily
autogen: update libopts.m4's patch
grep: do_configure: fix "Argument list too long"
meta/classes/binconfig.bbclass | 2 +-
meta/recipes-devtools/apt/apt-package.inc | 4 +++-
.../0001-config-libopts.m4-regenerate-it-from-config-libopts..patch | 2 +-
meta/recipes-extended/grep/grep_3.0.bb | 3 +++
4 files changed, 8 insertions(+), 3 deletions(-)
--
2.10.2
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/4] binconfig.bbclass: fix typo in get_binconfig_mangle()
2017-04-13 9:57 [PATCH 0/4] meta: 4 fixes Robert Yang
@ 2017-04-13 9:57 ` Robert Yang
2017-04-13 9:57 ` [PATCH 2/4] apt: fix libdir path for apt.systemd.daily Robert Yang
` (2 subsequent siblings)
3 siblings, 0 replies; 8+ messages in thread
From: Robert Yang @ 2017-04-13 9:57 UTC (permalink / raw)
To: openembedded-core
It should be -IOEINCDIR, not -I-IOEINCDIR.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
meta/classes/binconfig.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/binconfig.bbclass b/meta/classes/binconfig.bbclass
index 1be5fc4..39c3e2b 100644
--- a/meta/classes/binconfig.bbclass
+++ b/meta/classes/binconfig.bbclass
@@ -14,7 +14,7 @@ def get_binconfig_mangle(d):
s += " -e 's:-L${libdir}:-LOELIBDIR:;'"
s += " -e 's:-I${includedir}:-IOEINCDIR:;'"
s += " -e 's:-L${WORKDIR}:-LOELIBDIR:'"
- s += " -e 's:-I${WORKDIR}:-I-IOEINCDIR:'"
+ s += " -e 's:-I${WORKDIR}:-IOEINCDIR:'"
s += " -e 's:OEBASELIBDIR:${STAGING_BASELIBDIR}:;'"
s += " -e 's:OELIBDIR:${STAGING_LIBDIR}:;'"
s += " -e 's:OEINCDIR:${STAGING_INCDIR}:;'"
--
2.10.2
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 2/4] apt: fix libdir path for apt.systemd.daily
2017-04-13 9:57 [PATCH 0/4] meta: 4 fixes Robert Yang
2017-04-13 9:57 ` [PATCH 1/4] binconfig.bbclass: fix typo in get_binconfig_mangle() Robert Yang
@ 2017-04-13 9:57 ` Robert Yang
2017-04-13 9:57 ` [PATCH 3/4] autogen: update libopts.m4's patch Robert Yang
2017-04-13 9:57 ` [PATCH 4/4] grep: do_configure: fix "Argument list too long" Robert Yang
3 siblings, 0 replies; 8+ messages in thread
From: Robert Yang @ 2017-04-13 9:57 UTC (permalink / raw)
To: openembedded-core
It should be ${libdir} rather than /usr/lib, otherwise it would fail
when multilib:
MACHINE = "qemux86-64"
require conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE_virtclass-multilib-lib32 = "x86"
$ bitbake apt
[snip]
install: target /path/to/apt/1.2.12-r0/image/usr/lib/apt is not a directory: No such file or directory
[snip]
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
meta/recipes-devtools/apt/apt-package.inc | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-devtools/apt/apt-package.inc b/meta/recipes-devtools/apt/apt-package.inc
index 839d58e..6a01f99 100644
--- a/meta/recipes-devtools/apt/apt-package.inc
+++ b/meta/recipes-devtools/apt/apt-package.inc
@@ -83,9 +83,11 @@ do_install () {
install -m 0644 include/apt-pkg/*.h ${D}${includedir}/apt-pkg/
install -d ${D}${systemd_unitdir}/system/
- install -m 0644 ${S}/debian/apt.systemd.daily ${D}/usr/lib/apt/
+ install -m 0644 ${S}/debian/apt.systemd.daily ${D}${libdir}/apt/
install -m 0644 ${S}/debian/apt-daily.service ${D}${systemd_unitdir}/system/
+ sed -i 's#/usr/lib/apt/#${libdir}/apt/#g' ${D}${systemd_unitdir}/system/apt-daily.service
install -m 0644 ${S}/debian/apt-daily.timer ${D}${systemd_unitdir}/system/
install -d ${D}${sysconfdir}/cron.daily/
install -m 0755 ${S}/debian/apt.apt-compat.cron.daily ${D}${sysconfdir}/cron.daily/
+ sed -i 's#/usr/lib/apt/#${libdir}/apt/#g' ${D}${sysconfdir}/cron.daily/apt.apt-compat.cron.daily
}
--
2.10.2
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 3/4] autogen: update libopts.m4's patch
2017-04-13 9:57 [PATCH 0/4] meta: 4 fixes Robert Yang
2017-04-13 9:57 ` [PATCH 1/4] binconfig.bbclass: fix typo in get_binconfig_mangle() Robert Yang
2017-04-13 9:57 ` [PATCH 2/4] apt: fix libdir path for apt.systemd.daily Robert Yang
@ 2017-04-13 9:57 ` Robert Yang
2017-04-14 9:36 ` Robert Yang
2017-04-14 9:46 ` Richard Purdie
2017-04-13 9:57 ` [PATCH 4/4] grep: do_configure: fix "Argument list too long" Robert Yang
3 siblings, 2 replies; 8+ messages in thread
From: Robert Yang @ 2017-04-13 9:57 UTC (permalink / raw)
To: openembedded-core
Use 'test -n "$POSIX_SHELL"' rather than 'test -x "$POSIX_SHELL"' so
that 'POSIX_SHELL = "/usr/bin/env sh"' can work.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
.../0001-config-libopts.m4-regenerate-it-from-config-libopts..patch | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-devtools/autogen/autogen/0001-config-libopts.m4-regenerate-it-from-config-libopts..patch b/meta/recipes-devtools/autogen/autogen/0001-config-libopts.m4-regenerate-it-from-config-libopts..patch
index a14018e..e247594 100644
--- a/meta/recipes-devtools/autogen/autogen/0001-config-libopts.m4-regenerate-it-from-config-libopts..patch
+++ b/meta/recipes-devtools/autogen/autogen/0001-config-libopts.m4-regenerate-it-from-config-libopts..patch
@@ -30,7 +30,7 @@ index c7ba4f3..51e6a39 100644
AC_PROG_SED
[while :
do
-+ test -x "$POSIX_SHELL" && break
++ test -n "$POSIX_SHELL" && break
POSIX_SHELL=`which bash`
test -x "$POSIX_SHELL" && break
POSIX_SHELL=`which dash`
--
2.10.2
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 4/4] grep: do_configure: fix "Argument list too long"
2017-04-13 9:57 [PATCH 0/4] meta: 4 fixes Robert Yang
` (2 preceding siblings ...)
2017-04-13 9:57 ` [PATCH 3/4] autogen: update libopts.m4's patch Robert Yang
@ 2017-04-13 9:57 ` Robert Yang
3 siblings, 0 replies; 8+ messages in thread
From: Robert Yang @ 2017-04-13 9:57 UTC (permalink / raw)
To: openembedded-core
Fixed when len(TMPDIR) = 410:
aclocal: error: cannot open echo 'm4_define [snip]' configure.ac |: Argument list too long'
This is becuase it has a lot of m4 files, use relative path for them
can fix the problem.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
meta/recipes-extended/grep/grep_3.0.bb | 3 +++
1 file changed, 3 insertions(+)
diff --git a/meta/recipes-extended/grep/grep_3.0.bb b/meta/recipes-extended/grep/grep_3.0.bb
index 6146ef0..b2940d5 100644
--- a/meta/recipes-extended/grep/grep_3.0.bb
+++ b/meta/recipes-extended/grep/grep_3.0.bb
@@ -16,6 +16,9 @@ inherit autotools gettext texinfo pkgconfig
EXTRA_OECONF = "--disable-perl-regexp"
+# Fix "Argument list too long" error when len(TMPDIR) = 410
+acpaths = "-I ./m4"
+
do_configure_prepend () {
rm -f ${S}/m4/init.m4
}
--
2.10.2
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 3/4] autogen: update libopts.m4's patch
2017-04-13 9:57 ` [PATCH 3/4] autogen: update libopts.m4's patch Robert Yang
@ 2017-04-14 9:36 ` Robert Yang
2017-04-14 9:46 ` Richard Purdie
1 sibling, 0 replies; 8+ messages in thread
From: Robert Yang @ 2017-04-14 9:36 UTC (permalink / raw)
To: Richard Purdie; +Cc: openembedded-core
Hi RP,
I found that others are merged except this one, do you have any
comments on it, please ?
// Robert
On 04/13/2017 05:57 PM, Robert Yang wrote:
> Use 'test -n "$POSIX_SHELL"' rather than 'test -x "$POSIX_SHELL"' so
> that 'POSIX_SHELL = "/usr/bin/env sh"' can work.
>
> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
> ---
> .../0001-config-libopts.m4-regenerate-it-from-config-libopts..patch | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-devtools/autogen/autogen/0001-config-libopts.m4-regenerate-it-from-config-libopts..patch b/meta/recipes-devtools/autogen/autogen/0001-config-libopts.m4-regenerate-it-from-config-libopts..patch
> index a14018e..e247594 100644
> --- a/meta/recipes-devtools/autogen/autogen/0001-config-libopts.m4-regenerate-it-from-config-libopts..patch
> +++ b/meta/recipes-devtools/autogen/autogen/0001-config-libopts.m4-regenerate-it-from-config-libopts..patch
> @@ -30,7 +30,7 @@ index c7ba4f3..51e6a39 100644
> AC_PROG_SED
> [while :
> do
> -+ test -x "$POSIX_SHELL" && break
> ++ test -n "$POSIX_SHELL" && break
> POSIX_SHELL=`which bash`
> test -x "$POSIX_SHELL" && break
> POSIX_SHELL=`which dash`
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 3/4] autogen: update libopts.m4's patch
2017-04-13 9:57 ` [PATCH 3/4] autogen: update libopts.m4's patch Robert Yang
2017-04-14 9:36 ` Robert Yang
@ 2017-04-14 9:46 ` Richard Purdie
2017-04-14 9:49 ` Robert Yang
1 sibling, 1 reply; 8+ messages in thread
From: Richard Purdie @ 2017-04-14 9:46 UTC (permalink / raw)
To: Robert Yang, openembedded-core
On Thu, 2017-04-13 at 02:57 -0700, Robert Yang wrote:
> Use 'test -n "$POSIX_SHELL"' rather than 'test -x "$POSIX_SHELL"' so
> that 'POSIX_SHELL = "/usr/bin/env sh"' can work.
> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
> ---
> .../0001-config-libopts.m4-regenerate-it-from-config-
> libopts..patch | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-devtools/autogen/autogen/0001-config-
> libopts.m4-regenerate-it-from-config-libopts..patch b/meta/recipes-
> devtools/autogen/autogen/0001-config-libopts.m4-regenerate-it-from-
> config-libopts..patch
> index a14018e..e247594 100644
> --- a/meta/recipes-devtools/autogen/autogen/0001-config-libopts.m4-
> regenerate-it-from-config-libopts..patch
> +++ b/meta/recipes-devtools/autogen/autogen/0001-config-libopts.m4-
> regenerate-it-from-config-libopts..patch
> @@ -30,7 +30,7 @@ index c7ba4f3..51e6a39 100644
> AC_PROG_SED
> [while :
> do
> -+ test -x "$POSIX_SHELL" && break
> ++ test -n "$POSIX_SHELL" && break
> POSIX_SHELL=`which bash`
> test -x "$POSIX_SHELL" && break
> POSIX_SHELL=`which dash`
The patch title makes this sound it it was some kind of regenerated
file. You're then patching this for a rather subtle bug. I worry that
this change is going to get lost in the future when someone regenerates
this.
I'm wondering if we can find a better, more future proof solution?
Cheers,
Richard
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 3/4] autogen: update libopts.m4's patch
2017-04-14 9:46 ` Richard Purdie
@ 2017-04-14 9:49 ` Robert Yang
0 siblings, 0 replies; 8+ messages in thread
From: Robert Yang @ 2017-04-14 9:49 UTC (permalink / raw)
To: Richard Purdie, openembedded-core
On 04/14/2017 05:46 PM, Richard Purdie wrote:
> On Thu, 2017-04-13 at 02:57 -0700, Robert Yang wrote:
>> Use 'test -n "$POSIX_SHELL"' rather than 'test -x "$POSIX_SHELL"' so
>> that 'POSIX_SHELL = "/usr/bin/env sh"' can work.
>
>> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
>> ---
>> .../0001-config-libopts.m4-regenerate-it-from-config-
>> libopts..patch | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/meta/recipes-devtools/autogen/autogen/0001-config-
>> libopts.m4-regenerate-it-from-config-libopts..patch b/meta/recipes-
>> devtools/autogen/autogen/0001-config-libopts.m4-regenerate-it-from-
>> config-libopts..patch
>> index a14018e..e247594 100644
>> --- a/meta/recipes-devtools/autogen/autogen/0001-config-libopts.m4-
>> regenerate-it-from-config-libopts..patch
>> +++ b/meta/recipes-devtools/autogen/autogen/0001-config-libopts.m4-
>> regenerate-it-from-config-libopts..patch
>> @@ -30,7 +30,7 @@ index c7ba4f3..51e6a39 100644
>> AC_PROG_SED
>> [while :
>> do
>> -+ test -x "$POSIX_SHELL" && break
>> ++ test -n "$POSIX_SHELL" && break
>> POSIX_SHELL=`which bash`
>> test -x "$POSIX_SHELL" && break
>> POSIX_SHELL=`which dash`
>
>
> The patch title makes this sound it it was some kind of regenerated
> file. You're then patching this for a rather subtle bug. I worry that
> this change is going to get lost in the future when someone regenerates
> this.
Cool, you are right.
>
> I'm wondering if we can find a better, more future proof solution?
I will think more about it.
// Robert
>
> Cheers,
>
> Richard
>
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2017-04-14 9:49 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-13 9:57 [PATCH 0/4] meta: 4 fixes Robert Yang
2017-04-13 9:57 ` [PATCH 1/4] binconfig.bbclass: fix typo in get_binconfig_mangle() Robert Yang
2017-04-13 9:57 ` [PATCH 2/4] apt: fix libdir path for apt.systemd.daily Robert Yang
2017-04-13 9:57 ` [PATCH 3/4] autogen: update libopts.m4's patch Robert Yang
2017-04-14 9:36 ` Robert Yang
2017-04-14 9:46 ` Richard Purdie
2017-04-14 9:49 ` Robert Yang
2017-04-13 9:57 ` [PATCH 4/4] grep: do_configure: fix "Argument list too long" Robert Yang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox