[packages/openjade] - replace legacy getopt.pl with Getopt::Std

baggins baggins at pld-linux.org
Thu Jan 1 19:16:41 CET 2015


commit 451fecadd987916db3a9cfd603a111ccc47cfcb7
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Thu Jan 1 18:16:26 2015 +0000

    - replace legacy getopt.pl with Getopt::Std

 openjade.spec      |  2 ++
 perl-getopts.patch | 22 ++++++++++++++++++++++
 2 files changed, 24 insertions(+)
---
diff --git a/openjade.spec b/openjade.spec
index c4bf9d9..2dab44b 100644
--- a/openjade.spec
+++ b/openjade.spec
@@ -13,6 +13,7 @@ Source0:	http://dl.sourceforge.net/openjade/%{name}-%{version}-%{_pre}.tar.gz
 Patch0:		%{name}-nls-from-1.4.patch
 Patch1:		%{name}-as-needed.patch
 Patch2:		%{name}-gcc4.patch
+Patch3:		perl-getopts.patch
 URL:		http://openjade.sourceforge.net/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -71,6 +72,7 @@ Biblioteki statyczne OpenJade.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 LDFLAGS=""; export LDFLAGS
diff --git a/perl-getopts.patch b/perl-getopts.patch
new file mode 100644
index 0000000..66a4027
--- /dev/null
+++ b/perl-getopts.patch
@@ -0,0 +1,22 @@
+--- openjade-1.3.3-pre1/msggen.pl.orig	2015-01-01 18:14:45.187510209 +0000
++++ openjade-1.3.3-pre1/msggen.pl	2015-01-01 18:15:15.480842474 +0000
+@@ -4,6 +4,7 @@
+ # See the file COPYING for copying permission.
+ 
+ use POSIX;
++use Getopt::Std;
+ 
+ # Package and version.
+ $package = 'openjade';
+@@ -18,8 +19,9 @@
+ undef $opt_l;
+ undef $opt_p;
+ undef $opt_t;
+-do 'getopts.pl';
+-&Getopts('l:p:t:');
++#do 'getopts.pl';
++#&Getopts('l:p:t:');
++getopts('l:p:t:');
+ $module = $opt_l;
+ $pot_file = $opt_p;
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/openjade.git/commitdiff/451fecadd987916db3a9cfd603a111ccc47cfcb7



More information about the pld-cvs-commit mailing list