diff options
author | G. Branden Robinson <g.branden.robinson@gmail.com> | 2022-10-23 20:07:20 -0500 |
---|---|---|
committer | G. Branden Robinson <g.branden.robinson@gmail.com> | 2022-10-23 20:48:26 -0500 |
commit | 263d995a7d4e859a331e1a6441f3105ee743b824 (patch) | |
tree | acd3a533b3535de4cdd6ad4d7e3b210abc277589 /font | |
parent | 708831b7c0f73d11c69214591064d8f685cdd12e (diff) | |
download | groff-git-263d995a7d4e859a331e1a6441f3105ee743b824.tar.gz |
[devpdf,gropdf]: "use warnings" instead of '-w'.
* font/devpdf/util/BuildFoundries.pl:
* src/devices/gropdf/gropdf.pl:
* src/devices/gropdf/pdfmom.pl: Replace use of '-w' in shebang line with
"use warnings;".
The shebang's max length is usually 128 as defined in
/usr/include/linux/binfmts.h:
#define BINPRM_BUF_SIZE 128
There would be errors when @PERL@ is longer than 128, use
'/usr/bin/env perl' can fix the problem, but '/usr/bin/env perl -w'
doesn't work:
/usr/bin/env: perl -w: No such file or directory
So replace "perl -w" with "use warnings" to make it work.
Reported-by: Alexander Kanavin <alex@linutronix.de>
Note from Alex: the Yocto project has been carrying this patch for
a few years, hope it's useful and acceptable. This submission is
a part of 'patch cleanup' where we try to reduce the amount of custom
patches by sending upstream what is appropriate.
Diffstat (limited to 'font')
-rw-r--r-- | font/devpdf/util/BuildFoundries.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/font/devpdf/util/BuildFoundries.pl b/font/devpdf/util/BuildFoundries.pl index b1af6b0f7..03f5eeebf 100644 --- a/font/devpdf/util/BuildFoundries.pl +++ b/font/devpdf/util/BuildFoundries.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/usr/bin/perl # # BuildFoundries: Given a Foundry file, generate groff font description # files and a "download" file so gropdf can embed fonts in PDF output. @@ -23,6 +23,7 @@ use strict; use Getopt::Long; +use warnings; my $pathsep='@PATH_SEPARATOR@'; |