* [PATCH 0/1] nativesdk-coreutils: a lot of warnings fixed
@ 2016-03-16 2:49 Dengke Du
2016-03-16 2:49 ` [PATCH 1/1] " Dengke Du
0 siblings, 1 reply; 5+ messages in thread
From: Dengke Du @ 2016-03-16 2:49 UTC (permalink / raw)
Cc: openembedded-core
The following changes since commit 0f62b3e5344f63deca43091fa7909448d4f87279:
quilt: fix ptest faildiff.test failed (2016-03-14 21:24:00 -0400)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib dengke/nativesdk-coreutils_many_warnings_fixed
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=dengke/nativesdk-coreutils_many_warnings_fixed
Dengke Du (1):
nativesdk-coreutils: a lot of warnings fixed
meta/recipes-core/coreutils/coreutils_8.25.bb | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--
1.9.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/1] nativesdk-coreutils: a lot of warnings fixed
2016-03-16 2:49 [PATCH 0/1] nativesdk-coreutils: a lot of warnings fixed Dengke Du
@ 2016-03-16 2:49 ` Dengke Du
2016-03-16 21:30 ` Burton, Ross
0 siblings, 1 reply; 5+ messages in thread
From: Dengke Du @ 2016-03-16 2:49 UTC (permalink / raw)
Cc: openembedded-core
When we create nativesdk-coreutils, a lot of warnings appear,it
show many files can't find. Because in the coreutils recipe, it
didn't contain the do_install for the nativesdk, so when the
alternative system check the files in the following process, it
can't find the files. So we should add the do_install for the
nativesdk, change the function do_install_append_class-target() to
do_install_append() in the file:
meta/recipes-core/coreutils/coreutils_8.25.bb
in this way, the alternative system can find the files, the warnings
disappear.
Signed-off-by: Dengke Du <dengke.du@windriver.com>
---
meta/recipes-core/coreutils/coreutils_8.25.bb | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-core/coreutils/coreutils_8.25.bb b/meta/recipes-core/coreutils/coreutils_8.25.bb
index 650008e..ffedecb 100644
--- a/meta/recipes-core/coreutils/coreutils_8.25.bb
+++ b/meta/recipes-core/coreutils/coreutils_8.25.bb
@@ -27,6 +27,7 @@ SRC_URI[manpages.sha256sum] = "2ee31c3a6d2276f49c5515375d4a0c1047580da6ac1053689
EXTRA_OECONF_class-native = "--without-gmp"
EXTRA_OECONF_class-target = "--enable-install-program=arch --libexecdir=${libdir}"
+EXTRA_OECONF_class-nativesdk = "--enable-install-program=arch"
# acl and xattr are not default features
#
@@ -67,7 +68,7 @@ do_compile_prepend () {
mkdir -p ${B}/src
}
-do_install_append_class-target() {
+do_install_append() {
for i in df mktemp base64; do mv ${D}${bindir}/$i ${D}${bindir}/$i.${BPN}; done
install -d ${D}${base_bindir}
--
1.9.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/1] nativesdk-coreutils: a lot of warnings fixed
2016-03-16 2:49 ` [PATCH 1/1] " Dengke Du
@ 2016-03-16 21:30 ` Burton, Ross
2016-03-16 21:52 ` Paul Eggleton
0 siblings, 1 reply; 5+ messages in thread
From: Burton, Ross @ 2016-03-16 21:30 UTC (permalink / raw)
To: Dengke Du; +Cc: OE-core
[-- Attachment #1: Type: text/plain, Size: 436 bytes --]
On 16 March 2016 at 02:49, Dengke Du <dengke.du@windriver.com> wrote:
> When we create nativesdk-coreutils, a lot of warnings appear,it
> show many files can't find.
>
I don't think anywhere where nativesdk packages are used actually runs the
postinst scripts to create the alternative links, so maybe we should be
stopping update-alternatives do anything in nativesdk (just like it doesn't
do anything for native)?
Ross
[-- Attachment #2: Type: text/html, Size: 853 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/1] nativesdk-coreutils: a lot of warnings fixed
2016-03-16 21:30 ` Burton, Ross
@ 2016-03-16 21:52 ` Paul Eggleton
2016-03-17 9:35 ` dengke.du
0 siblings, 1 reply; 5+ messages in thread
From: Paul Eggleton @ 2016-03-16 21:52 UTC (permalink / raw)
To: openembedded-core, Burton, Ross
On Wed, 16 Mar 2016 21:30:35 Burton, Ross wrote:
> On 16 March 2016 at 02:49, Dengke Du <dengke.du@windriver.com> wrote:
> > When we create nativesdk-coreutils, a lot of warnings appear,it
> > show many files can't find.
>
> I don't think anywhere where nativesdk packages are used actually runs the
> postinst scripts to create the alternative links, so maybe we should be
> stopping update-alternatives do anything in nativesdk (just like it doesn't
> do anything for native)?
Actually I checked this by adding a dummy line which creates a file in $D to
the dbus postinst and then adding nativesdk-dbus to buildtools-tarball - it
seems that the postinst does actually get run. As long as the postinst can
successfully run at SDK construction time then apparently it should work.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/1] nativesdk-coreutils: a lot of warnings fixed
2016-03-16 21:52 ` Paul Eggleton
@ 2016-03-17 9:35 ` dengke.du
0 siblings, 0 replies; 5+ messages in thread
From: dengke.du @ 2016-03-17 9:35 UTC (permalink / raw)
To: Paul Eggleton, openembedded-core, Burton, Ross
[-- Attachment #1: Type: text/plain, Size: 1234 bytes --]
After a talk with Hongxu jia, we decided to change the
do_install_append_class-target()
to do_install_append(), in this function, added the following:
if [ "${CLASSOVERRIDE}" = "class-native" ]; then
return
fi
in this way, avoid the conflict with the following
do_install_append_class-native function.
//dengke
On 2016年03月17日 05:52, Paul Eggleton wrote:
> On Wed, 16 Mar 2016 21:30:35 Burton, Ross wrote:
>> On 16 March 2016 at 02:49, Dengke Du <dengke.du@windriver.com> wrote:
>>> When we create nativesdk-coreutils, a lot of warnings appear,it
>>> show many files can't find.
>> I don't think anywhere where nativesdk packages are used actually runs the
>> postinst scripts to create the alternative links, so maybe we should be
>> stopping update-alternatives do anything in nativesdk (just like it doesn't
>> do anything for native)?
> Actually I checked this by adding a dummy line which creates a file in $D to
> the dbus postinst and then adding nativesdk-dbus to buildtools-tarball - it
> seems that the postinst does actually get run. As long as the postinst can
> successfully run at SDK construction time then apparently it should work.
>
> Cheers,
> Paul
>
[-- Attachment #2: Type: text/html, Size: 2077 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-03-17 9:35 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-16 2:49 [PATCH 0/1] nativesdk-coreutils: a lot of warnings fixed Dengke Du
2016-03-16 2:49 ` [PATCH 1/1] " Dengke Du
2016-03-16 21:30 ` Burton, Ross
2016-03-16 21:52 ` Paul Eggleton
2016-03-17 9:35 ` dengke.du
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox