public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Mike Pagano" <mpagano@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-kernel/linux-firmware/files/
Date: Fri, 18 Oct 2024 17:43:00 +0000 (UTC)	[thread overview]
Message-ID: <1729273374.03ef3af0c134f71c2521860e759af8185880315b.mpagano@gentoo> (raw)

commit:     03ef3af0c134f71c2521860e759af8185880315b
Author:     Mike Pagano <mpagano <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 18 17:42:32 2024 +0000
Commit:     Mike Pagano <mpagano <AT> gentoo <DOT> org>
CommitDate: Fri Oct 18 17:42:54 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03ef3af0

sys-kernel/linux-firmware: Add missing check whence patch

Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org>

 .../files/linux-firmware-check-whence.patch        | 42 ++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/sys-kernel/linux-firmware/files/linux-firmware-check-whence.patch b/sys-kernel/linux-firmware/files/linux-firmware-check-whence.patch
new file mode 100644
index 000000000000..99b0ddf25a85
--- /dev/null
+++ b/sys-kernel/linux-firmware/files/linux-firmware-check-whence.patch
@@ -0,0 +1,42 @@
+diff --git a/check_whence.py b/check_whence.py
+index c3d4a2e38f095ec806a150bf25c5065445ff393f..1fece4f4920a1fdcce7589e54cdc37e1b4c2100c 100755
+--- a/check_whence.py
++++ b/check_whence.py
+@@ -60,9 +60,12 @@ def list_links_list():
+ 
+ 
+ def list_git():
+-    with os.popen("git ls-files") as git_files:
+-        for line in git_files:
+-            yield line.rstrip("\n")
++    git_files = os.popen("git ls-files")
++    for line in git_files:
++        yield line.rstrip("\n")
++
++    if git_files.close():
++        sys.stderr.write("W: git file listing failed, skipping some validation\n")
+ 
+ 
+ def main():
+@@ -135,7 +138,7 @@ def main():
+             )
+             ret = 1
+ 
+-    for name in sorted(list(known_files - git_files)):
++    for name in sorted(list(known_files - git_files) if len(git_files) else list()):
+         sys.stderr.write("E: %s listed in WHENCE does not exist\n" % name)
+         ret = 1
+ 
+@@ -151,10 +154,10 @@ def main():
+                 break
+             valid_targets.add(dirname)
+ 
+-    for link, target in sorted(links_list):
++    for link, target in sorted(links_list if len(git_files) else list()):
+         if target not in valid_targets:
+             sys.stderr.write(
+-                "E: target %s of link %s in WHENCE" " does not exist\n" % (target, link)
++                "E: target %s of link %s in WHENCE does not exist\n" % (target, link)
+             )
+             ret = 1
+ 


             reply	other threads:[~2024-10-18 17:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-18 17:43 Mike Pagano [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-01 23:28 [gentoo-commits] repo/gentoo:master commit in: sys-kernel/linux-firmware/files/ Conrad Kostecki
2025-01-18 23:49 Conrad Kostecki
2025-01-04 22:47 Conrad Kostecki
2024-04-24 12:51 Conrad Kostecki
2023-12-20 14:16 Mike Pagano

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=1729273374.03ef3af0c134f71c2521860e759af8185880315b.mpagano@gentoo \
    --to=mpagano@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /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