r9797 - in /trunk/libxml-sax-perl: debian/changelog debian/control debian/libxml-sax-perl.README.Debian debian/libxml-sax-perl.preinst update-perl-sax-parsers.8

ntyni-guest at users.alioth.debian.org ntyni-guest at users.alioth.debian.org
Tue Nov 27 18:54:16 UTC 2007


Author: ntyni-guest
Date: Tue Nov 27 18:54:16 2007
New Revision: 9797

URL: http://svn.debian.org/wsvn/?sc=1&rev=9797
Log:
import 0.12-3, found at http://ftp.handhelds.org/mirror/Debian-snapshot-2003-09-17/Debian/pool/main/libx/libxml-sax-perl/

Modified:
    trunk/libxml-sax-perl/debian/changelog
    trunk/libxml-sax-perl/debian/control
    trunk/libxml-sax-perl/debian/libxml-sax-perl.README.Debian
    trunk/libxml-sax-perl/debian/libxml-sax-perl.preinst
    trunk/libxml-sax-perl/update-perl-sax-parsers.8

Modified: trunk/libxml-sax-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libxml-sax-perl/debian/changelog?rev=9797&op=diff
==============================================================================
--- trunk/libxml-sax-perl/debian/changelog (original)
+++ trunk/libxml-sax-perl/debian/changelog Tue Nov 27 18:54:16 2007
@@ -1,3 +1,17 @@
+libxml-sax-perl (0.12-3) unstable; urgency=low
+
+  * debian/libxml-sax-perl.preinst: changed to properly clean-up mess
+    created by earlier versions with /etc/XML and /etc/perl/SAX
+    (closes: Bug#187520)
+  * Added note about conflixt with the original CPAN package
+    (closes: Bug#188410)
+  * debian/control: updated sections according to latest archive changes:
+    - 'libxml-sax-perl' from 'interpreters' to 'perl'
+  * debian/control: upgraded build dependency on 'debhelper' to '>= 4.1'
+  * debian/control: upgraded to Debian Policy 3.6.0 (no changes)
+
+ -- Ardo van Rangelrooij <ardo at debian.org>  Wed,  3 Sep 2003 15:17:00 -0500
+
 libxml-sax-perl (0.12-2) unstable; urgency=low
 
   * debian/preinst: fixed to handle not-yet-existing '/etc/perl' directory

Modified: trunk/libxml-sax-perl/debian/control
URL: http://svn.debian.org/wsvn/trunk/libxml-sax-perl/debian/control?rev=9797&op=diff
==============================================================================
--- trunk/libxml-sax-perl/debian/control (original)
+++ trunk/libxml-sax-perl/debian/control Tue Nov 27 18:54:16 2007
@@ -1,12 +1,12 @@
 Source: libxml-sax-perl
-Section: interpreters
+Section: perl
 Priority: optional
 Maintainer: Ardo van Rangelrooij <ardo at debian.org>
-Standards-Version: 3.5.8
-Build-Depends-Indep: debhelper (>= 4.0), perl, libxml-namespacesupport-perl
+Standards-Version: 3.6.0
+Build-Depends-Indep: debhelper (>= 4.1), perl, libxml-namespacesupport-perl
 
 Package: libxml-sax-perl
-Section: interpreters
+Section: perl
 Priority: optional
 Architecture: all
 Depends: ${perl:Depends}, libxml-namespacesupport-perl

Modified: trunk/libxml-sax-perl/debian/libxml-sax-perl.README.Debian
URL: http://svn.debian.org/wsvn/trunk/libxml-sax-perl/debian/libxml-sax-perl.README.Debian?rev=9797&op=diff
==============================================================================
--- trunk/libxml-sax-perl/debian/libxml-sax-perl.README.Debian (original)
+++ trunk/libxml-sax-perl/debian/libxml-sax-perl.README.Debian Tue Nov 27 18:54:16 2007
@@ -3,9 +3,6 @@
 
 This is the Debian package of the Perl XML::SAX module which is the
 base package for the Perl SAX parser modules.
-
-This README 
-
 
 Background
 ----------
@@ -144,5 +141,16 @@
     --directory /usr/local/share/perl5/XML/SAX/ParserDetails.d \
     --directory /etc/perl/XML/SAX/ParserDetails.d
 
+
+Original CPAN Package vs. Debian Package
+----------------------------------------
+
+Installing the original package from CPAN into /usr/local breaks the
+Debian package, since the former is in Perl's @INC before the latter.
+So, please don't do this.
+
+If there's a new version of XML::SAX simply file a wishlist against
+the Debian package and wait for the update.
+
 --
 Ardo van Rangelrooij <ardo at debian.org>

Modified: trunk/libxml-sax-perl/debian/libxml-sax-perl.preinst
URL: http://svn.debian.org/wsvn/trunk/libxml-sax-perl/debian/libxml-sax-perl.preinst?rev=9797&op=diff
==============================================================================
--- trunk/libxml-sax-perl/debian/libxml-sax-perl.preinst (original)
+++ trunk/libxml-sax-perl/debian/libxml-sax-perl.preinst Tue Nov 27 18:54:16 2007
@@ -9,25 +9,61 @@
 ## ----------------------------------------------------------------------
 if [ "$1" = "install" -o "$1" = "upgrade" ]
 then
-    if [ ! -d /etc/perl ]
+
+    ## ------------------------------------------------------------------
+    if [ ! -d /etc/perl/XML/SAX ]
     then
 	cd /etc
-        mkdir --parents perl
+	mkdir --parents perl/XML/SAX/ParserDetails.d
+	touch perl/XML/SAX/ParserDetails.ini
     fi
-    if [ -d /etc/XML ]
+
+    ## ------------------------------------------------------------------
+    if [ -d /etc/XML/SAX/ParserDetails.d ]
     then
+	cd /etc/XML/SAX/ParserDetails.d
+	if [ -n "`\ls`" ]
+	then
+	    for f in `\ls`
+	    do
+	        if [ ! -f /etc/perl/XML/SAX/ParserDetails.d/${f} ]
+		then
+		    mv -f ${f} /etc/perl/XML/SAX/ParserDetails.d/.
+		else
+		    rm -f ${f}
+		fi
+	    done
+	fi
+	cd /etc/XML/SAX
+	rm -f ParserDetails.ini
 	cd /etc
-        mv XML /etc/perl
-    elif [ -d /etc/perl/SAX ]
+	rmdir --parents --ignore-fail-on-non-empty XML/SAX/ParserDetails.d
+
+    fi
+
+    ## ------------------------------------------------------------------
+    if [ -d /etc/perl/SAX/ParserDetails.d ]
     then
+	cd /etc/perl/SAX/ParserDetails.d
+	if [ -n "`\ls`" ]
+	then
+	    for f in `\ls`
+	    do
+	        if [ ! -f /etc/perl/XML/SAX/ParserDetails.d/${f} ]
+		then
+		    mv -f ${f} /etc/perl/XML/SAX/ParserDetails.d/.
+		else
+		    rm -f ${f}
+		fi
+	    done
+	fi
+	cd /etc/perl/SAX
+	rm -f ParserDetails.ini
 	cd /etc/perl
-        mkdir --parents XML
-        mv SAX XML
-    else
-	cd /etc/perl
-	mkdir --parents XML/SAX/ParserDetails.d
-	touch XML/SAX/ParserDetails.ini
+	rmdir --parents --ignore-fail-on-non-empty SAX/ParserDetails.d
+
     fi
+
 fi
 
 ## ---------------------------------------------------------------------- 

Modified: trunk/libxml-sax-perl/update-perl-sax-parsers.8
URL: http://svn.debian.org/wsvn/trunk/libxml-sax-perl/update-perl-sax-parsers.8?rev=9797&op=diff
==============================================================================
--- trunk/libxml-sax-perl/update-perl-sax-parsers.8 (original)
+++ trunk/libxml-sax-perl/update-perl-sax-parsers.8 Tue Nov 27 18:54:16 2007
@@ -7,7 +7,7 @@
 .\" ----------------------------------------------------------------------
 .\"
 .\" ----------------------------------------------------------------------
-.TH UPDATE-PERL-SAX-PARSERS 8 "Feb 2003" "0.2" "Debian"
+.TH UPDATE-PERL-SAX-PARSERS 8 "Sep 2003" "0.2" "Debian"
 .\"
 .\" ----------------------------------------------------------------------
 .SH NAME
@@ -85,6 +85,16 @@
 Display the usage information and exits.
 .\"
 .\" ----------------------------------------------------------------------
+.SH NOTE
+.TP
+Installing the original package from CPAN into /usr/local breaks the
+Debian package, since the former is in Perl's @INC before the latter.
+So, please don't do this.
+
+If there's a new version of XML::SAX simply file a wishlist against
+the Debian package and wait for the update.
+.\"
+.\" ----------------------------------------------------------------------
 .SH "SEE ALSO"
 .TP
 /usr/share/doc/libxml-sax-perl/README.Debian




More information about the Pkg-perl-cvs-commits mailing list