Hi Alex,
Here is my analysis,
$bitbake -e glibc-testsuite
==============================
2 # line: 222, file:
/ala-lpggp31/vinay/tcwrlgcc-399/poky/meta/recipes-core/glibc/glibc-package.inc
3 stash_locale_cleanup() {
4 cleanupdir=$1
5 # Remove all files which do_stash_locale() copies
6 for i in mtrace sotruss xtrace; do
7 rm -f $cleanupdir/usr/bin/$i
8 done
9 rm -f $cleanupdir/usr/bin/localedef
10 rm -rf $cleanupdir/usr/share/i18n
11 rm -rf $cleanupdir/usr/lib/gconv
12 rm -rf $cleanupdir/usr/lib/locale
13 rm -rf $cleanupdir/usr/share/locale
14 rmdir --ignore-fail-on-non-empty $cleanupdir/usr/share
15
16 if [ "/usr/lib" != "/usr/lib" ] && [ "/lib" != "/usr/lib" ]; then
17 if [ -d "$cleanupdir/usr/lib" ]; then
18 if [ -z "" -o \
19 ! -e "$cleanupdir/usr/lib/" ]; then
20 # error out if directory isn't empty
21 # this dir should only contain locale dir
22 # which has been deleted in the previous step
23 rmdir $cleanupdir/usr/lib
24 fi
25 fi
26 fi
27 }
28
29 # line: 251, file:
/ala-lpggp31/vinay/tcwrlgcc-399/poky/meta/recipes-core/glibc/glibc-package.inc
30 stash_locale_package_cleanup() {
31 stash_locale_cleanup
/ala-lpggp31/vinay/tcwrlgcc-399/bld-arm/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/glibc-testsuite/2.33-r0/package
32 }
33
34 # line: 248, file:
/ala-lpggp31/vinay/tcwrlgcc-399/poky/meta/recipes-core/glibc/glibc-package.inc
35 stash_locale_sysroot_cleanup() {
36 stash_locale_cleanup
/ala-lpggp31/vinay/tcwrlgcc-399/bld-arm/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/glibc-testsuite/2.33-r0/sysroot-destdir
37 }
==============================
Its trying to remove "usr/share" at
"bld-arm/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/glibc-testsuite/2.33-r0/sysroot-destdir"
which does not exists in glibc-testsuite case.
Contents of
"bld-arm/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/glibc-testsuite/2.33-r0/sysroot-destdir"
are
"sysroot-providers/glibc-testsuite"
$bitbake -e glibc
==============================
19167 # line: 222, file:
/ala-lpggp31/vinay/tcwrlgcc-399/poky/meta/recipes-core/glibc/glibc-package.inc
1 stash_locale_cleanup() {
2 cleanupdir=$1
3 # Remove all files which do_stash_locale() copies
4 for i in mtrace sotruss xtrace; do
5 rm -f $cleanupdir/usr/bin/$i
6 done
7 rm -f $cleanupdir/usr/bin/localedef
8 rm -rf $cleanupdir/usr/share/i18n
9 rm -rf $cleanupdir/usr/lib/gconv
10 rm -rf $cleanupdir/usr/lib/locale
11 rm -rf $cleanupdir/usr/share/locale
12 rmdir --ignore-fail-on-non-empty $cleanupdir/usr/share
13
14 if [ "/usr/lib" != "/usr/lib" ] && [ "/lib" != "/usr/lib" ]; then
15 if [ -d "$cleanupdir/usr/lib" ]; then
16 if [ -z "" -o \
17 ! -e "$cleanupdir/usr/lib/" ]; then
18 # error out if directory isn't empty
19 # this dir should only contain locale dir
20 # which has been deleted in the previous step
21 rmdir $cleanupdir/usr/lib
22 fi
23 fi
24 fi
25 }
26
27 # line: 251, file:
/ala-lpggp31/vinay/tcwrlgcc-399/poky/meta/recipes-core/glibc/glibc-package.inc
28 stash_locale_package_cleanup() {
29 stash_locale_cleanup
/ala-lpggp31/vinay/tcwrlgcc-399/bld-arm/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/glibc/2.33-r0/package
30 }
31
32 # line: 248, file:
/ala-lpggp31/vinay/tcwrlgcc-399/poky/meta/recipes-core/glibc/glibc-package.inc
33 stash_locale_sysroot_cleanup() {
34 stash_locale_cleanup
/ala-lpggp31/vinay/tcwrlgcc-399/bld-arm/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/glibc/2.33-r0/sysroot-destdir
35 }
==============================
In case of "bitbake glibc" the same "usr/share" directory exists at
"bld-arm/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/glibc/2.33-r0/sysroot-destdir/"
so
no error occurs.
Regards,
Vinay
On Sun, Jul 4, 2021 at 10:33 PM Alexander Kanavin
<[email protected]> wrote:
>
> This looks like a workaround that does not fix the actual issue. Can you
> please look into what is causing the failure, if it is reproducible reliably,
> and at which point it regressed?
>
> Alex
>
> Alex
>
> On Sun, 4 Jul 2021 at 13:22, Vinay Kumar <[email protected]> wrote:
>>
>> Added condition to check "$cleanupdir${datadir}" exists.
>>
>> Signed-off-by: Vinay Kumar <[email protected]>
>> ---
>> meta/recipes-core/glibc/glibc-package.inc | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> diff --git a/meta/recipes-core/glibc/glibc-package.inc
>> b/meta/recipes-core/glibc/glibc-package.inc
>> index 92e5dbac61..df3f612192 100644
>> --- a/meta/recipes-core/glibc/glibc-package.inc
>> +++ b/meta/recipes-core/glibc/glibc-package.inc
>> @@ -230,7 +230,9 @@ stash_locale_cleanup () {
>> rm -rf $cleanupdir${libdir}/gconv
>> rm -rf $cleanupdir${localedir}
>> rm -rf $cleanupdir${datadir}/locale
>> + if [ -d $cleanupdir${datadir} ]; then
>> rmdir --ignore-fail-on-non-empty $cleanupdir${datadir}
>> + fi;
>>
>> if [ "${libdir}" != "${exec_prefix}/lib" ] && [ "${root_prefix}/lib"
>> != "${exec_prefix}/lib" ]; then
>> if [ -d "$cleanupdir${exec_prefix}/lib" ]; then
>> --
>> 2.31.1
>>
>>
>>
>>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#153552):
https://lists.openembedded.org/g/openembedded-core/message/153552
Mute This Topic: https://lists.openembedded.org/mt/83976017/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-