Skip to contentSkip to conversation

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

PATCH Applied David Reaver 2 participants 2 messages Jun 25, 2022 – Jun 30, 2022

lore
Share & tools
lore
#0 lore raw

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

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.

---
 scripts/get_feat.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/get_feat.pl +1 -1
index 76cfb96b59b6..5c5397eeb237 100755
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 # SPDX-License-Identifier: GPL-2.0
 
 use strict;
#1 lore raw
Quoted 15 lines · David Reaver

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.

---
 scripts/get_feat.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/get_feat.pl +0 -0
index 76cfb96b59b6..5c5397eeb237 100755

scripts/get_feat.pl line 2

Quoted 3 lines
scripts/get_feat.pl +1 -1
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 # SPDX-License-Identifier: GPL-2.0

Applied, thanks.

jon