Bug#471211: [PATCH] support nil type extension

Joey Hess joeyh at debian.org
Sun Mar 16 17:51:07 UTC 2008


Package: librpc-xml-perl
Version: 0.59-2
Severity: normal
Tags: patch

RPC-XML has the limitation that there is no support for the nil type,
which corresponds to perl's undef, python's None, and C's NULL. There is
an extension that defines this simple type, at
<http://ontosys.com/xml-rpc/extensions.php>

Many other RPC-XML libraries support this at least optionally. For
example, in python, there is an allow_none flag. The RPC-Xmlrpc_c perl
module (not packaged) supports nil. 

I needed it in RPC::XML, so I developed the attached patch. I took care
to not have it emit or parse "<nil/>" unless $RPC::XML::ALLOW_NIL is set
to 1.

Please consider applying this patch, and encoruaging upstream to do so
as well.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages librpc-xml-perl depends on:
ii  libwww-perl                   5.808-1    WWW client/server library for Perl
ii  libxml-parser-perl            2.36-1     Perl module for parsing XML files
ii  perl                          5.8.8-12   Larry Wall's Practical Extraction 

librpc-xml-perl recommends no packages.

-- no debconf information

-- 
see shy jo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nil.patch
Type: text/x-diff
Size: 3782 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20080316/1a32f95c/attachment.patch 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20080316/1a32f95c/attachment.pgp 


More information about the pkg-perl-maintainers mailing list