Package: xml-core
Version: 0.15
Severity: wishlist
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu ubuntu-patch yakkety

Hello,

xml-core currently depends on perl, but there is no reason for this:
update-xmlcatalog only uses File::Spec and Getopt::Long, both of which
are in perl-base. dh_installxmlcatalogs is a debhelper plugin and
thus depends on debhelper; it also does not import anything directly
from perl/libperl.

This helps to remove perl from smaller installations where xml-core
itself is hard to avoid (as it's a recommends of libxml2).

Patch against Debian packaging git attached.

Thanks for considering,

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
>From 49e558acace9015f041b3c0ec3c941a5c50ce39d Mon Sep 17 00:00:00 2001
From: Martin Pitt <martin.p...@ubuntu.com>
Date: Tue, 11 Oct 2016 12:43:52 +0200
Subject: [PATCH] Call dh_perl with -d to avoid depending on perl

update-xmlcatalog only needs modules from perl-base, and dh_installxmlcatalogs
only depends on debhelper.
---
 debian/changelog | 8 ++++++++
 debian/rules     | 3 +++
 2 files changed, 11 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index a7de9c2..3afe3af 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+xml-core (0.16) UNRELEASED; urgency=medium
+
+  * Call dh_perl with -d to avoid depending on perl. update-xmlcatalog only
+    needs modules from perl-base, and dh_installxmlcatalogs only depends on
+    debhelper.
+
+ -- Martin Pitt <mp...@debian.org>  Tue, 11 Oct 2016 12:42:13 +0200
+
 xml-core (0.15) unstable; urgency=medium
 
   * Team upload.
diff --git a/debian/rules b/debian/rules
index f01e904..36f2772 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,3 +7,6 @@
 override_dh_install:
 		dh_install
 		DH_AUTOSCRIPTDIR=debhelper debhelper/dh_installxmlcatalogs
+
+override_dh_perl:
+	dh_perl -d
-- 
2.9.3

Reply via email to