From 8b1b10f9680007c6661c34bcc6d670be0285dcbb Mon Sep 17 00:00:00 2001
From: Michael Cobb <michael.cobb(a)iceotope.com>
Date: Thu, 26 Sep 2024 16:03:04 +0100
Subject: [meta-morello-distro][PATCH 0/1] libevent-morello: fix conflict with libevent in do_packagedata
Building an image which includes recipes which depend on both libevent and libevent-morello fails during the do_packagedata task due to a naming conflict:
ERROR: libevent-2.1.12-r0 do_packagedata: The recipe libevent is trying to install files into a shared area when those files already exist. Those files and their manifest location are:
/home/michael/morello/meta-iceotope-morello/build/tmp-soc/pkgdata/morello-soc/extended/libevent-pthreads.json.zstd
(matched in manifest-morello_soc-libevent-morello.packagedata)
/home/michael/morello/meta-iceotope-morello/build/tmp-soc/pkgdata/morello-soc/extended/libevent-core.json.zstd
(matched in manifest-morello_soc-libevent-morello.packagedata)
/home/michael/morello/meta-iceotope-morello/build/tmp-soc/pkgdata/morello-soc/extended/libevent-extra.json.zstd
(matched in manifest-morello_soc-libevent-morello.packagedata)
/home/michael/morello/meta-iceotope-morello/build/tmp-soc/pkgdata/morello-soc/runtime/libevent-pthreads.packaged
(matched in manifest-morello_soc-libevent-morello.packagedata)
/home/michael/morello/meta-iceotope-morello/build/tmp-soc/pkgdata/morello-soc/runtime/libevent-pthreads
(matched in manifest-morello_soc-libevent-morello.packagedata)
/home/michael/morello/meta-iceotope-morello/build/tmp-soc/pkgdata/morello-soc/runtime/libevent-core
(matched in manifest-morello_soc-libevent-morello.packagedata)
/home/michael/morello/meta-iceotope-morello/build/tmp-soc/pkgdata/morello-soc/runtime/libevent-extra
(matched in manifest-morello_soc-libevent-morello.packagedata)
/home/michael/morello/meta-iceotope-morello/build/tmp-soc/pkgdata/morello-soc/runtime/libevent-core.packaged
(matched in manifest-morello_soc-libevent-morello.packagedata)
/home/michael/morello/meta-iceotope-morello/build/tmp-soc/pkgdata/morello-soc/runtime/libevent-extra.packaged
(matched in manifest-morello_soc-libevent-morello.packagedata)
Please verify which recipe should provide the above files.
The build has stopped, as continuing in this scenario WILL break things - if not now, possibly in the future (we've seen builds fail several months later). If the system knew how to recover from this automatically it would, however there
are several different scenarios which can result in this and we don't know which one this is. It may be you have switched providers of something like virtual/kernel (e.g. from linux-yocto to linux-yocto-dev), in that case you need to ex
ecute the clean task for both recipes and it will resolve this error. It may be you changed DISTRO_FEATURES from systemd to udev or vice versa. Cleaning those recipes should again resolve this error, however switching DISTRO_FEATURES on
an existing build directory is not supported - you should really clean out tmp and rebuild (reusing sstate should be safe). It could be the overlapping files detected are harmless in which case adding them to SSTATE_ALLOW_OVERLAP_FILES m
ay be the correct solution. It could also be your build is including two different conflicting versions of things (e.g. bluez 4 and bluez 5 and the correct solution for that would be to resolve the conflict. If in doubt, please ask on th
e mailing list, sharing the error and filelist above.
ERROR: libevent-2.1.12-r0 do_packagedata: If the above message is too much, the simpler version is you're advised to wipe out tmp and rebuild (reusing sstate is fine). That will likely fix things in most (but not all) cases.
ERROR: Logfile of failure stored in: /home/michael/morello/meta-iceotope-morello/build/tmp-soc/work/neoversen1-it-linux/libevent/2.1.12-r0/temp/log.do_packagedata.1365476
ERROR: Task (/home/michael/morello/meta-iceotope-morello/build/../poky/meta/recipes-support/libevent/libevent_2.1.12.bb:do_packagedata) failed with exit code '1'
Changing the package name in split_libevent_libs() from "libevent" to "libevent-morello" fixes this issue and both versions can be built together.
Michael Cobb (1):
libevent-morello: fix package naming conflict between `libevent` and
`libevent-morello`
recipes-support/libevent/libevent-morello_2.1.12.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--
2.43.0
The 1.8.1 version of Morello Musl is available with
New features and documentation updates:
- Restricted bounds for TLS symbols looked up via the dlsym function
- Updated build instruction for building LLVM C++ libraries in the documentation
Bug fixes:
- Fix dlopen bus error for new TLS
- Fix VMEM permission of internal mapping pointers
- Some fixes for unit tests
The source and development is at: https://git.morello-project.org/morello/musl-libc