[xml/sgml-pkgs] Bug#248910: xml-core: bugfix for #248910

Ardo van Rangelrooij Ardo van Rangelrooij <ardo@debian.org>, 248910@bugs.debian.org
Thu, 1 Jul 2004 14:17:34 -0500


Hi,

That may be true but it will result in very long and unreadable lines in the
resulting scripts.

>From my perspective the only viable solution is a versioned dependency on the
correct working version of sed.  I understand people want to use xml-core on
woody, but then they might as well update sed.  And if you're in a production
environment where you cannot upgrade sed then you shouldn't also be installing
software like xml-core.

Thanks,
Ardo

guillaume pernot (gpernot@praksys.org) wrote:
> Package: xml-core
> Version: 0.09
> Severity: normal
> Followup-For: Bug #248910
> 
> 
> this patch does the trick on woody, sarge and sid
> 
> 
> -- System Information:
> Debian Release: 3.0
> Architecture: i386 (i686)
> Kernel: Linux 2.4.23-praksys
> Locale: LANG=C, LC_CTYPE=C
> 
> *** 15praksys-fix-debhelper.diff
> diff -ruN xml-core-0.09-old/debhelper/dh_installxmlcatalogs xml-core-0.09/debhelper/dh_installxmlcatalogs
> --- xml-core-0.09-old/debhelper/dh_installxmlcatalogs	Sun Feb 29 04:14:37 2004
> +++ xml-core-0.09/debhelper/dh_installxmlcatalogs	Thu Jul  1 11:35:11 2004
> @@ -227,8 +227,8 @@
>  						die("error: package command with ID '$id' uses non-existent catalog '$local'\n");
>  					}
>  					
> -					$ADD_PACKAGE .= "\t" . add_xmlcat_cmd($package, $type, $id, $local) . "\\n";
> -					$DEL_PACKAGE .= "\t" . del_xmlcat_cmd($package, $type, $id) . "\\n";
> +					$ADD_PACKAGE .= "\t" . add_xmlcat_cmd($package, $type, $id, $local) . ";";
> +					$DEL_PACKAGE .= "\t" . del_xmlcat_cmd($package, $type, $id) . ";";
>  
>  				}
>  			} elsif ( $line->[0] eq 'root' ) {
> @@ -236,8 +236,8 @@
>  
>  					my $type = $line->[1];
>  					my $id	 = $line->[2];
> -					$ADD_ROOT .= "\t" . add_xmlcat_cmd($package, $type, $id) . "\\n";
> -					$DEL_ROOT .= "\t" . del_xmlcat_cmd($package, $type, $id, 1) . "\\n";
> +					$ADD_ROOT .= "\t" . add_xmlcat_cmd($package, $type, $id) . ";";
> +					$DEL_ROOT .= "\t" . del_xmlcat_cmd($package, $type, $id, 1) . ";";
>  
>  				}
>  			} elsif ( $line->[0] eq 'root-and-package' ) {
> @@ -253,10 +253,10 @@
>  						die("error: root-and-package command with ID '$id' uses non-existent catalog '$local'\n");
>  					}
>  
> -					$ADD_PACKAGE .= "\t" . add_xmlcat_cmd($package, $type, $id, $local) . "\\n";
> -					$DEL_PACKAGE .= "\t" . del_xmlcat_cmd($package, $type, $id) . "\\n";
> -					$ADD_ROOT    .= "\t" . add_xmlcat_cmd($package, $type, $id) . "\\n";
> -					$DEL_ROOT    .= "\t" . del_xmlcat_cmd($package, $type, $id, 1) . "\\n";
> +					$ADD_PACKAGE .= "\t" . add_xmlcat_cmd($package, $type, $id, $local) . ";";
> +					$DEL_PACKAGE .= "\t" . del_xmlcat_cmd($package, $type, $id) . ";";
> +					$ADD_ROOT    .= "\t" . add_xmlcat_cmd($package, $type, $id) . ";";
> +					$DEL_ROOT    .= "\t" . del_xmlcat_cmd($package, $type, $id, 1) . ";";
>  
>  				}
>  			} else {

> diff -ruN xml-core-0.09-old/debhelper/dh_installxmlcatalogs xml-core-0.09/debhelper/dh_installxmlcatalogs
> --- xml-core-0.09-old/debhelper/dh_installxmlcatalogs	Sun Feb 29 04:14:37 2004
> +++ xml-core-0.09/debhelper/dh_installxmlcatalogs	Thu Jul  1 11:35:11 2004
> @@ -227,8 +227,8 @@
>  						die("error: package command with ID '$id' uses non-existent catalog '$local'\n");
>  					}
>  					
> -					$ADD_PACKAGE .= "\t" . add_xmlcat_cmd($package, $type, $id, $local) . "\\n";
> -					$DEL_PACKAGE .= "\t" . del_xmlcat_cmd($package, $type, $id) . "\\n";
> +					$ADD_PACKAGE .= "\t" . add_xmlcat_cmd($package, $type, $id, $local) . ";";
> +					$DEL_PACKAGE .= "\t" . del_xmlcat_cmd($package, $type, $id) . ";";
>  
>  				}
>  			} elsif ( $line->[0] eq 'root' ) {
> @@ -236,8 +236,8 @@
>  
>  					my $type = $line->[1];
>  					my $id	 = $line->[2];
> -					$ADD_ROOT .= "\t" . add_xmlcat_cmd($package, $type, $id) . "\\n";
> -					$DEL_ROOT .= "\t" . del_xmlcat_cmd($package, $type, $id, 1) . "\\n";
> +					$ADD_ROOT .= "\t" . add_xmlcat_cmd($package, $type, $id) . ";";
> +					$DEL_ROOT .= "\t" . del_xmlcat_cmd($package, $type, $id, 1) . ";";
>  
>  				}
>  			} elsif ( $line->[0] eq 'root-and-package' ) {
> @@ -253,10 +253,10 @@
>  						die("error: root-and-package command with ID '$id' uses non-existent catalog '$local'\n");
>  					}
>  
> -					$ADD_PACKAGE .= "\t" . add_xmlcat_cmd($package, $type, $id, $local) . "\\n";
> -					$DEL_PACKAGE .= "\t" . del_xmlcat_cmd($package, $type, $id) . "\\n";
> -					$ADD_ROOT    .= "\t" . add_xmlcat_cmd($package, $type, $id) . "\\n";
> -					$DEL_ROOT    .= "\t" . del_xmlcat_cmd($package, $type, $id, 1) . "\\n";
> +					$ADD_PACKAGE .= "\t" . add_xmlcat_cmd($package, $type, $id, $local) . ";";
> +					$DEL_PACKAGE .= "\t" . del_xmlcat_cmd($package, $type, $id) . ";";
> +					$ADD_ROOT    .= "\t" . add_xmlcat_cmd($package, $type, $id) . ";";
> +					$DEL_ROOT    .= "\t" . del_xmlcat_cmd($package, $type, $id, 1) . ";";
>  
>  				}
>  			} else {


-- 
Ardo van Rangelrooij                                     Debian XML/SGML Group
<ardo@debian.org>              <debian-xml-sgml-devel@lists.alioth.debian.org>
http://people.debian.org/~ardo/      http://debian-xml-sgml.alioth.debian.org/