Re: Bug#955210: kernel-wedge: regression causes kfreebsd-10 FTBFS

Steven Chamberlain <[email protected]>
Newsgroups gmane.linux.debian.ports.bsd
Message-ID <[email protected]>
tags -1 + patch
thanks
0001-preprocess-If-source-directory-is-a-symlink-follow-it.patch (text/x-diff, 1.4 KB)
From 03477bf089926f7a599bbe89f67df53080b69bfa Mon Sep 17 00:00:00 2001
From: Steven Chamberlain <[email protected]>
Date: Sat, 28 Mar 2020 18:12:35 +0000
Subject: [PATCH] preprocess: If source directory is a symlink, follow it

Closes: #955210
---
 commands/preprocess | 9 +++++----
 debian/changelog    | 7 +++++++
 2 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/commands/preprocess b/commands/preprocess
index b60c0d7..0c77e52 100755
--- a/commands/preprocess
+++ b/commands/preprocess
@@ -25,15 +25,16 @@ my %loaded;
 sub find_all_modules {
 	my ($moddir) = @_;
 
-	File::Find::find(
-		sub {
+	File::Find::find({
+		follow => 1, # If $moddir is a symlink, follow it.
+		wanted => sub {
 			if (/\.ko$/) {
 				push @module_files,
 				    File::Spec->abs2rel($File::Find::name,
 							$moddir);
 			}
-		},
-		$moddir);
+		}
+	}, $moddir);
 
 	if ($os eq 'linux') {
 		if (open(my $builtin, "$moddir/modules.builtin")) {
diff --git a/debian/changelog b/debian/changelog
index cf26ea1..46ffe4c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+kernel-wedge (2.103) UNRELEASED; urgency=medium
+
+  * preprocess: If source directory is a symlink, follow it
+    (Closes: #955210)
+
+ -- Steven Chamberlain <[email protected]>  Sat, 28 Mar 2020 18:08:28 +0000
+
 kernel-wedge (2.102) unstable; urgency=medium
 
   * debian/tests: Correct expected exit code for preprocess missingdir case
-- 
2.1.4
signature.asc (application/pgp-signature, 648 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQGcBAEBCAAGBQJef5d0AAoJENdSKM+uN5VAAPAL/2vU9Mw7vt4Rvq3Su6TKTJ+u
N5rIjT4XEvum/NBbYh6HGfU4krq5ZZLzFb8Th2rnsT9fJqyLRWSVdVrsZht3DXQl
zEkjFyMY4MEgeu6avaNYTw734j7/nTLzY0fIBrXvGfpfUSnN9NyGWQLxyEYnMOVP
AexCyBUl4YyDGSj6BNkWCIiJ4BuWRPf7qvByg7w6GcqAcVlLAm6qifYIFrpAlBat
PO9dfqtgxhkN2XQjaoOKUNH7iy2S99FbTOb6KFc2uAJ95DpBrf1S4hhG1kJ5Ecrv
8LYies8GWnmfOoZz11zbrvU+/+BBvWCYUBNfIOhZOXUJlZXwwgZW1bM+xX7SfDJd
1Wna6p9rIwFGX/wqk39dd8osedIGZhIy1UR1OVQz2eBjlLr7w4CyRpMQ+IDoq5j0
iaVNsbUqqoP602dS0FO7UNTJgnZDfATJTOX4ajbS58ba7W4zUlSXc8cm4Qv4M8JT
gX5EaeyJOlrsSJ41dGkXQZ8DH1dQgjHkDfcwOId4Tg==
=1NJ3
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.