mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] scripts: get_feat.pl: use /usr/bin/env to find perl
@ 2022-06-25 21:15 David Reaver
  2022-06-30 18:22 ` Jonathan Corbet
  0 siblings, 1 reply; 2+ messages in thread
From: David Reaver @ 2022-06-25 21:15 UTC (permalink / raw)
  Cc: Mauro Carvalho Chehab, Jonathan Corbet, David Reaver, linux-kernel

I tried running `make pdfdocs` on NixOS, but it failed because
get_feat.pl uses a shebang line with /usr/bin/perl, and that file path
doesn't exist on NixOS. Using the more portable /usr/bin/env perl fixes
the problem.

Signed-off-by: David Reaver <me@davidreaver.com>
---
 scripts/get_feat.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/get_feat.pl b/scripts/get_feat.pl
index 76cfb96b59b6..5c5397eeb237 100755
--- a/scripts/get_feat.pl
+++ b/scripts/get_feat.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 # SPDX-License-Identifier: GPL-2.0
 
 use strict;

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

* Re: [PATCH] scripts: get_feat.pl: use /usr/bin/env to find perl
  2022-06-25 21:15 [PATCH] scripts: get_feat.pl: use /usr/bin/env to find perl David Reaver
@ 2022-06-30 18:22 ` Jonathan Corbet
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Corbet @ 2022-06-30 18:22 UTC (permalink / raw)
  To: David Reaver; +Cc: Mauro Carvalho Chehab, David Reaver, linux-kernel

David Reaver <me@davidreaver.com> writes:

> I tried running `make pdfdocs` on NixOS, but it failed because
> get_feat.pl uses a shebang line with /usr/bin/perl, and that file path
> doesn't exist on NixOS. Using the more portable /usr/bin/env perl fixes
> the problem.
>
> Signed-off-by: David Reaver <me@davidreaver.com>
> ---
>  scripts/get_feat.pl | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/get_feat.pl b/scripts/get_feat.pl
> index 76cfb96b59b6..5c5397eeb237 100755
> --- a/scripts/get_feat.pl
> +++ b/scripts/get_feat.pl
> @@ -1,4 +1,4 @@
> -#!/usr/bin/perl
> +#!/usr/bin/env perl
>  # SPDX-License-Identifier: GPL-2.0

Applied, thanks.

jon

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

end of thread, other threads:[~2022-06-30 18:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-25 21:15 [PATCH] scripts: get_feat.pl: use /usr/bin/env to find perl David Reaver
2022-06-30 18:22 ` Jonathan Corbet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®