From: John Snow <jsnow@redhat.com>
To: Arthur Sengileyev <arthur.sengileyev@gmail.com>
Cc: sw@weilnetz.de, crosa@redhat.com, qemu-devel@nongnu.org,
qemu-trivial@nongnu.org
Subject: Re: [PATCH] Windows installer: keep dependency cache
Date: Fri, 6 Jan 2023 16:53:20 -0500 [thread overview]
Message-ID: <CAFn=p-bBtypjDK75sGDyji45rsykvFXbwsQAg1_CWGi9XrGzuQ@mail.gmail.com> (raw)
In-Reply-To: <20230103221349.74160-1-arthur.sengileyev@gmail.com>
On Tue, Jan 3, 2023 at 5:13 PM Arthur Sengileyev
<arthur.sengileyev@gmail.com> wrote:
>
> It should be possible to reuse cache built by previous iteration
> processing next executables. Already processed dependencies are
> already skipped later based on dll name.
>
> Signed-off-by: Arthur Sengileyev <arthur.sengileyev@gmail.com>
> ---
> scripts/nsis.py | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/scripts/nsis.py b/scripts/nsis.py
> index 03ed7608a2..a2e52df556 100644
> --- a/scripts/nsis.py
> +++ b/scripts/nsis.py
> @@ -91,12 +91,13 @@ def main():
> print("Searching '%s' for the dependent dlls ..." % search_path)
> dlldir = os.path.join(destdir + prefix, "dll")
> os.mkdir(dlldir)
> + depscache = set()
>
> for exe in glob.glob(os.path.join(destdir + prefix, "*.exe")):
> signcode(exe)
>
> # find all dll dependencies
> - deps = set(find_deps(exe, search_path, set()))
> + deps = set(find_deps(exe, search_path, depscache))
> deps.remove(exe)
>
> # copy all dlls to the DLLDIR
> --
> 2.39.0
>
ACK for python changes, which seem sane. I've not used the NSIS script
before, though, so I won't grant RB/TB here.
--js
next prev parent reply other threads:[~2023-01-06 21:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-03 22:13 [PATCH] Windows installer: keep dependency cache Arthur Sengileyev
2023-01-06 21:53 ` John Snow [this message]
2023-01-07 15:56 ` Bin Meng
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAFn=p-bBtypjDK75sGDyji45rsykvFXbwsQAg1_CWGi9XrGzuQ@mail.gmail.com' \
--to=jsnow@redhat.com \
--cc=arthur.sengileyev@gmail.com \
--cc=crosa@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
--cc=sw@weilnetz.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).