[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#602121: sgml-data: please drop perl dependency



Package: sgml-data
Version: 2.0.4
Severity: wishlist
Tags: patch
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu ubuntu-patch natty

Hello,

in Ubuntu we are trying to get rid of Perl in the default installation
(that is, the full Perl, not perl-base of course); for this I'm
currently eliminating the remaining reverse dependencies.

With this patch, this package will work with just perl-base.

Thanks for considering,

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
diff -Nru sgml-data-2.0.4/debian/changelog sgml-data-2.0.4ubuntu1/debian/changelog
--- sgml-data-2.0.4/debian/changelog	2009-12-20 22:55:14.000000000 -0500
+++ sgml-data-2.0.4ubuntu1/debian/changelog	2010-11-01 14:49:41.000000000 -0400
@@ -1,3 +1,11 @@
+sgml-data (2.0.4ubuntu1) natty; urgency=low
+
+  * sgml-catalog-check.pl: Use Getopt::Long instead of Getopt::Std, since the
+    former is in perl-base.
+  * debian/rules: Run dh_perl with -d, to get rid of "perl" dependency.
+
+ -- Martin Pitt <martin.pitt@ubuntu.com>  Mon, 01 Nov 2010 14:48:14 -0400
+
 sgml-data (2.0.4) unstable; urgency=low
 
   * QA upload.
diff -Nru sgml-data-2.0.4/debian/rules sgml-data-2.0.4ubuntu1/debian/rules
--- sgml-data-2.0.4/debian/rules	2005-04-21 11:50:14.000000000 -0400
+++ sgml-data-2.0.4ubuntu1/debian/rules	2010-11-01 14:49:18.000000000 -0400
@@ -97,7 +97,7 @@
 	dh_compress -i
 
 	dh_installdeb -i
-	dh_perl -i
+	dh_perl -d -i
 	dh_gencontrol -i
 	dh_md5sums -i
 	dh_builddeb -i
diff -Nru sgml-data-2.0.4/sgml-catalog-check.pl sgml-data-2.0.4ubuntu1/sgml-catalog-check.pl
--- sgml-data-2.0.4/sgml-catalog-check.pl	2004-01-11 00:53:25.000000000 -0500
+++ sgml-data-2.0.4ubuntu1/sgml-catalog-check.pl	2010-11-01 14:47:09.000000000 -0400
@@ -12,7 +12,7 @@
 #	make a nice lintian script from this
 #	deal with declation and notation files
 
-use Getopt::Std;
+use Getopt::Long;
 
 $Verbose = 1;			# verboseness, 1 == chatty, 2 == loud
 $SGMLdir = "debian/tmp/usr/share/sgml"; # default dir for link making etc
@@ -32,7 +32,7 @@
 
 $warnings = $errors = 0;	# error and warning count
 
-&getopts('ehlv:d:') || die $Usage;
+&GetOptions('e', 'h', 'l', 'v=i', 'd=s');
 
 if ( $opt_h ) 
 {

Attachment: signature.asc
Description: Digital signature


Reply to: