All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] archiver.bbclass: Fix work-shared checking for kernel recipes
@ 2024-06-14  7:37 egyszeregy
  2024-06-14  7:48 ` Patchtest results for " patchtest
  2024-06-16 11:51 ` Szőke Benjamin
  0 siblings, 2 replies; 5+ messages in thread
From: egyszeregy @ 2024-06-14  7:37 UTC (permalink / raw)
  To: openembedded-core; +Cc: Benjamin Szőke

	s=20181004; d=freemail.hu;

	h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding;

	l=1000; bh=cZq/iyRsiO/suMp6+XPpnAyruM/oarbAD89+GDtEKSs=;

	b=qHQFSJzTCJuTyMftQGChJHx+XjvMgsHgNdcuvW4MWBejSldfD0oINWiobepigfst

	gUNPW+azdUtD1FX+kZGNH/8xdvU/XWcQH2igIxG8Ynrunx/HSkZIebeUWU1QFBQsXsA

	SnbPg2p4q+kGkUriO5tR3UwX5Y2Zr+nBYt333OMwZ41yML5pomBBIsGylp7+d6elOBt

	GblQB2J7dnqeAaeXYDE2v25L7R8G/F8AcSkTCn+sf8ZQxsv8V0/hDqc7naHtq00kFMi

	Bi4BiusSrpORCHxLFRGmmWi8qMS9IuFE0hMJ4BzGlxb68dh8qOzPkZaH1IxrEPAwG8u

	nAFsgVWHCw==
Content-Transfer-Encoding: quoted-printable

From: Benjamin Sz=C5=91ke <egyszeregy@freemail.hu>

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=C5=91ke <egyszeregy@freemail.hu>
---
 meta/classes/archiver.bbclass | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclas=
s
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):
=20
 def is_work_shared(d):
     sharedworkdir =3D os.path.join(d.getVar('TMPDIR'), 'work-shared')
-    return d.getVar('S').startswith(sharedworkdir)
+    sourcedir =3D os.path.realpath(d.getVar('S'))
+    return sourcedir.startswith(sharedworkdir)
=20
 # Run do_unpack and do_patch
 python do_unpack_and_patch() {
--=20
2.45.2.windows.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-07-28 16:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-14  7:37 [PATCH v2] archiver.bbclass: Fix work-shared checking for kernel recipes egyszeregy
2024-06-14  7:48 ` Patchtest results for " patchtest
2024-06-16 11:51 ` Szőke Benjamin
2024-06-25 10:25   ` Livius
2024-07-28 16:25     ` Livius

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.