2024. 06. 14. 9:37 keltezéssel, [email protected] írta:
From: Benjamin Szőke <[email protected]>
Source dir can be a symbolic link in some BSP's linux kernel recipe
which points to work-shared path (like linux-fslc in meta-freescale).
Change to use os.path.realpath() in order to get real path of
source dir.
Signed-off-by: Benjamin Szőke <[email protected]>
---
meta/classes/archiver.bbclass | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass
index 2d0bbfbd42..9d286224d6 100644
--- a/meta/classes/archiver.bbclass
+++ b/meta/classes/archiver.bbclass
@@ -473,7 +473,8 @@ def create_diff_gz(d, src_orig, src, ar_outdir):
def is_work_shared(d):
sharedworkdir = os.path.join(d.getVar('TMPDIR'), 'work-shared')
- return d.getVar('S').startswith(sharedworkdir)
+ sourcedir = os.path.realpath(d.getVar('S'))
+ return sourcedir.startswith(sharedworkdir)
# Run do_unpack and do_patch
python do_unpack_and_patch() {
Hi,
As i see my first patch is already applied to master-next branch of
openembedded-core.
https://github.com/openembedded/openembedded-core/commit/6d86b3436cb83574e49441d32af35aa69b56d918
Can you replace it with my [PATCH v2]? V2 is much better in solution with usage
of os.path.realpath() to check what is the real path of the symbolic link git
folder. When it points to work-shared it is os.path.realpath() solve it to check
properly. This is a much more elegant solution than having to check inherited
kernel class usage all the time.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#200776):
https://lists.openembedded.org/g/openembedded-core/message/200776
Mute This Topic: https://lists.openembedded.org/mt/106666515/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-