[xen-tools-dev] Potential new dependency for xen-tools: Data::Validate::URI and friends (was: Run::Parts)
Axel Beckert
abe at deuxchevaux.org
Wed Jul 10 22:37:43 CEST 2013
Hi Dario and all others who care,
same issue, different Perl module now:
On Wed, Jul 10, 2013 at 06:18:11PM +0200, Dario Faggioli wrote:
> I'm happy if you take how that will affect my work, and you're actually
> very kind in doing that, but please, go ahead and do what you think it's
> best for the project, I will follow! :-D
To work around http://bugs.debian.org/623443 (was also on the
xen-tools-discuss ML), I had to add a check which verifies that a
value is an valid URI. Instead of writing such a (potentially quite
complex and hence error-prone) check myself I used Data::Validate::URI
for that. (I.e. this time it isn't just replacing xen-tools code with
less error-prone libraries but adding a new feature.)
According to
https://admin.fedoraproject.org/pkgdb/acls/list/?searchwords=*validate*
this module is not yet packaged in Fedora while its two dependencies
Data::Validate::IP and Data::Validate::Domain are packaged. *phew*
So in case you need to package Data::Validate::URI yourself, you
likely have good examples of very similar packages.
I actually also replaced some existing checks with the checks from
Data::Validate::IP and Data::Validate::Domain to reduce the
probability of bugs or incomplete implementations, but these should be
no problem as those are already packaged for Fedora.
(The stuff mentioned in here will be pushed soon to the Git repository.)
Kind regards, Axel
--
/~\ Plain Text Ribbon Campaign | Axel Beckert
\ / Say No to HTML in E-Mail and News | abe at deuxchevaux.org (Mail)
X See http://www.asciiribbon.org/ | abe at noone.org (Mail+Jabber)
/ \ I love long mails: http://email.is-not-s.ms/ | http://noone.org/abe/ (Web)
More information about the xen-tools-dev
mailing list