bitbake-devel.lists.openembedded.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] fetch2: npm: Support npm archives with missing search directory mode
@ 2021-10-06 14:35 Stefan Herbrechtsmeier
  2021-10-06 14:35 ` [PATCH 2/3] fetch2: npm: Create config npmrc in environment instantiation Stefan Herbrechtsmeier
  2021-10-06 14:35 ` [PATCH 3/3] fetch2: npmsw: Add support for local tarball and link sources Stefan Herbrechtsmeier
  0 siblings, 2 replies; 3+ messages in thread
From: Stefan Herbrechtsmeier @ 2021-10-06 14:35 UTC (permalink / raw)
  To: bitbake-devel; +Cc: Stefan Herbrechtsmeier

From: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>

Delay directory restore and set execute/search directory mode bits in
unpack to support npm archives with a missing search directory mode.

Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
---

 lib/bb/fetch2/npm.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/bb/fetch2/npm.py b/lib/bb/fetch2/npm.py
index 47898509..a39f1c19 100644
--- a/lib/bb/fetch2/npm.py
+++ b/lib/bb/fetch2/npm.py
@@ -69,8 +69,10 @@ def npm_unpack(tarball, destdir, d):
     bb.utils.mkdirhier(destdir)
     cmd = "tar --extract --gzip --file=%s" % shlex.quote(tarball)
     cmd += " --no-same-owner"
+    cmd += " --delay-directory-restore"
     cmd += " --strip-components=1"
     runfetchcmd(cmd, d, workdir=destdir)
+    runfetchcmd("chmod -R +X %s" % (destdir), d, quiet=True, workdir=destdir)
 
 class NpmEnvironment(object):
     """
-- 
2.20.1



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

end of thread, other threads:[~2021-10-06 14:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-06 14:35 [PATCH 1/3] fetch2: npm: Support npm archives with missing search directory mode Stefan Herbrechtsmeier
2021-10-06 14:35 ` [PATCH 2/3] fetch2: npm: Create config npmrc in environment instantiation Stefan Herbrechtsmeier
2021-10-06 14:35 ` [PATCH 3/3] fetch2: npmsw: Add support for local tarball and link sources Stefan Herbrechtsmeier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).