diff options
author | Romain Naour <romain.naour@openwide.fr> | 2014-12-21 00:50:59 +0100 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2014-12-21 13:09:19 +0100 |
commit | c7007963882baa61361a9905771a68077ae2d695 (patch) | |
tree | 26cc1b6112d370ec305b2234f24b1def74e3f1a4 /package/perl-gd/0001-getoptions.patch | |
parent | 857cba81104693f6d0114107d22eaf8b88d236e4 (diff) | |
download | buildroot-c7007963882baa61361a9905771a68077ae2d695.tar.gz buildroot-c7007963882baa61361a9905771a68077ae2d695.zip |
package/perl-gd: rename patches to follow the new name convention
Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/perl-gd/0001-getoptions.patch')
-rw-r--r-- | package/perl-gd/0001-getoptions.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/package/perl-gd/0001-getoptions.patch b/package/perl-gd/0001-getoptions.patch new file mode 100644 index 0000000000..74f055bead --- /dev/null +++ b/package/perl-gd/0001-getoptions.patch @@ -0,0 +1,43 @@ +fix option handling in Makefile.PL + +the call to GetOptions() must be unique. + +Signed-off-by: Francois Perrad <francois.perrad@gadz.org> +see https://github.com/lstein/Perl-GD/pull/6 + +Index: b/Makefile.PL +=================================================================== +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -24,7 +24,15 @@ + my ($options,$lib_gd_path,$lib_ft_path,$lib_png_path,$lib_jpeg_path,$lib_xpm_path,$lib_zlib_path,$force); + + use Getopt::Long; +-GetOptions("ignore_missing_gd" => \$force); ++my $result = GetOptions("options=s" => \$options, ++ "lib_gd_path=s" => \$lib_gd_path, ++ "lib_ft_path=s" => \$lib_ft_path, ++ "lib_png_path=s" => \$lib_png_path, ++ "lib_jpeg_path=s" => \$lib_jpeg_path, ++ "lib_xpm_path=s" => \$lib_xpm_path, ++ "lib_zlib_path=s" => \$lib_zlib_path, ++ "ignore_missing_gd" => \$force, ++ ); + + unless (try_to_autoconfigure(\$options,\$lib_gd_path,\@INC,\@LIBPATH,\@LIBS) || $force) { + die <<END; +@@ -47,14 +55,6 @@ + ############################################################################################# + # Build options passed in to script to support reproducible builds via Makefiles + ############################################################################################# +-my $result = GetOptions("options=s" => \$options, +- "lib_gd_path=s" => \$lib_gd_path, +- "lib_ft_path=s" => \$lib_ft_path, +- "lib_png_path=s" => \$lib_png_path, +- "lib_jpeg_path=s" => \$lib_jpeg_path, +- "lib_xpm_path=s" => \$lib_xpm_path, +- "lib_zlib_path=s" => \$lib_zlib_path, +- ); + unless ($result) { + print STDERR <<END; + Usage: perl Makefile.PL [options] |