[PATCH] scripts: get_feat.pl: use /usr/bin/env to find perl

David Reaver posted 1 patch 3 years, 9 months ago
scripts/get_feat.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] scripts: get_feat.pl: use /usr/bin/env to find perl
Posted by David Reaver 3 years, 9 months ago
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;
Re: [PATCH] scripts: get_feat.pl: use /usr/bin/env to find perl
Posted by Jonathan Corbet 3 years, 9 months ago
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