Skip Menu |

This queue is for tickets about the AnyEvent-XMPP CPAN distribution.

Report information
The Basics
Id: 43055
Status: rejected
Priority: 0/
Queue: AnyEvent-XMPP

People
Owner: Nobody in particular
Requestors: dusty [...] hey.nu
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: Make Net::LibIDN Optional
It seems that installing Net::LibIDN is pretty much impossible for Windows. If I'm not wrong in this, could you make the dependency on Net::LibIDN optional (a flag somewhere or the like)? In my situation, I don't need LibIDN and would like to not be required to make it available.
Subject: Re: [rt.cpan.org #43055] Make Net::LibIDN Optional
Date: Thu, 5 Feb 2009 16:11:08 +0100
To: Dusty Wilson via RT <bug-AnyEvent-XMPP [...] rt.cpan.org>
From: Robin Redeker <elmex [...] ta-sa.org>
On Thu, Feb 05, 2009 at 08:49:20AM -0500, Dusty Wilson via RT wrote: Show quoted text
> It seems that installing Net::LibIDN is pretty much impossible for > Windows. If I'm not wrong in this, could you make the dependency on > Net::LibIDN optional (a flag somewhere or the like)? > > In my situation, I don't need LibIDN and would like to not be required > to make it available.
XMPP requires functionality provided by LibIDN, such as stringprep profiles and handling idn2ascii conversion of domain names. Removing LibIDN would cause bugs in comparsion of JIDs, which is for instance used by AnyEvent::XMPP::IM::Connection to keep track of roster items and presences. Also nearly any XMPP application must normalize the JIDs prior to comparsion. Deployments or usages where all JIDs are strict ASCII and always in the same case, are quite rare. If you _really_ need this, I suggest to patch AnyEvent::Util and remove Net::LibIDN from there and probably replace the usages of idn_prep_node by an 'lc' (or a nop) and remove idn_prep_resource. Patches to make that a compile-time flag are welcome of course. Greetings, Robin -- Robin Redeker | Deliantra, the free code+content MORPG elmex@ta-sa.org / r.redeker@gmail.com | http://www.deliantra.net http://www.ta-sa.org/ |
Hi! I just wanted to post an update on the new development of the rewrite of AnyEvent::XMPP (which is currently only in a branch in my public git repository): I could replace Net::LibIDN successfully with Unicode::Stringprep for applying the stringprep profiles for JIDs. This made Net::LibIDN not only optional but completely redundant for now. Unicode::Stringprep is even faster than Net::LibIDN (around 2.x times faster). The next version of AnyEvent::XMPP will come with a reduced Dependency set (XML::Parser::Expat, XML::Writer and Net::LibIDN are gone). I will set this ticket to resolved when the new version is released. Greetings, Robin
On Mon Jul 06 12:13:21 2009, ELMEX wrote: Show quoted text
> Hi! > > I just wanted to post an update on the new development > of the rewrite of AnyEvent::XMPP (which is currently only > in a branch in my public git repository): > > I could replace Net::LibIDN successfully with Unicode::Stringprep > for applying the stringprep profiles for JIDs. This made Net::LibIDN > not only optional but completely redundant for now. > Unicode::Stringprep is even faster than Net::LibIDN (around 2.x times > faster). > > The next version of AnyEvent::XMPP will come with a reduced Dependency > set (XML::Parser::Expat, XML::Writer and Net::LibIDN are gone). > > I will set this ticket to resolved when the new version is released. > > Greetings, > Robin
Awesometastic. This makes me happy. Thanks for your effort on this! I could possibly drop my Net::SloppyXMPP module now (maybe?).
Subject: Re: [rt.cpan.org #43055] Make Net::LibIDN Optional
Date: Tue, 7 Jul 2009 09:58:12 +0200
To: Dusty Wilson via RT <bug-AnyEvent-XMPP [...] rt.cpan.org>
From: Robin Redeker <elmex [...] ta-sa.org>
On Tue, Jul 07, 2009 at 12:32:40AM -0400, Dusty Wilson via RT wrote: Show quoted text
> Queue: AnyEvent-XMPP > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=43055 > > > On Mon Jul 06 12:13:21 2009, ELMEX wrote:
> > Hi! > > > > I just wanted to post an update on the new development > > of the rewrite of AnyEvent::XMPP (which is currently only > > in a branch in my public git repository): > > > > I could replace Net::LibIDN successfully with Unicode::Stringprep > > for applying the stringprep profiles for JIDs. This made Net::LibIDN > > not only optional but completely redundant for now. > > Unicode::Stringprep is even faster than Net::LibIDN (around 2.x times > > faster). > > > > The next version of AnyEvent::XMPP will come with a reduced Dependency > > set (XML::Parser::Expat, XML::Writer and Net::LibIDN are gone). > > > > I will set this ticket to resolved when the new version is released. > > > > Greetings, > > Robin
> > Awesometastic. This makes me happy. Thanks for your effort on this! I > could possibly drop my Net::SloppyXMPP module now (maybe?).
Yes, probably. But Net::SSLeay isn't optional yet, but making it optional wouldn't be too hard, as i'm using AnyEvent::Handle anyways which uses TLS only on demand. Also, as said, the interface isn't completely documented yet. But it's atleast mostly stable already, just haven't found the time to document it and release it :) Greetings, Robin -- Robin Redeker | Deliantra, the free code+content MORPG elmex@ta-sa.org / r.redeker@gmail.com | http://www.deliantra.net http://www.ta-sa.org/ |
On Tue Jul 07 03:58:31 2009, ELMEX wrote: Show quoted text
> On Tue, Jul 07, 2009 at 12:32:40AM -0400, Dusty Wilson via RT wrote:
> > Queue: AnyEvent-XMPP > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=43055 > > > > > On Mon Jul 06 12:13:21 2009, ELMEX wrote:
> > > Hi! > > > > > > I just wanted to post an update on the new development > > > of the rewrite of AnyEvent::XMPP (which is currently only > > > in a branch in my public git repository): > > > > > > I could replace Net::LibIDN successfully with Unicode::Stringprep > > > for applying the stringprep profiles for JIDs. This made Net::LibIDN > > > not only optional but completely redundant for now. > > > Unicode::Stringprep is even faster than Net::LibIDN (around 2.x times > > > faster). > > > > > > The next version of AnyEvent::XMPP will come with a reduced Dependency > > > set (XML::Parser::Expat, XML::Writer and Net::LibIDN are gone). > > > > > > I will set this ticket to resolved when the new version is released. > > > > > > Greetings, > > > Robin
> > > > Awesometastic. This makes me happy. Thanks for your effort on this! I > > could possibly drop my Net::SloppyXMPP module now (maybe?).
> > Yes, probably. But Net::SSLeay isn't optional yet, > but making it optional wouldn't be too hard, as i'm using AnyEvent::Handle > anyways which uses TLS only on demand. > > Also, as said, the interface isn't completely documented yet. But it's > atleast mostly stable already, just haven't found the time to document it > and release it :)
If I understand correctly (I believe I do), Net::LibIDN isn't going to be needed at all. That is the one blocker for my application. If all works without that, I should be able to use this. Net::SSLeay is no problem for me at all. In fact, I need that part and wouldn't request that it is optional for my purposes.
On Tue Jul 07 03:58:31 2009, ELMEX wrote:
Show quoted text
> On Tue, Jul 07, 2009 at 12:32:40AM -0400, Dusty Wilson via RT wrote:
> > Queue: AnyEvent-XMPP
> > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=43055 >
> >
> > On Mon Jul 06 12:13:21 2009, ELMEX wrote:
> > > Hi!
> > >
> > > I just wanted to post an update on the new development
> > > of the rewrite of AnyEvent::XMPP (which is currently only
> > > in a branch in my public git repository):
> > >
> > > I could replace Net::LibIDN successfully with Unicode::Stringprep
> > > for applying the stringprep profiles for JIDs. This made Net::LibIDN
> > > not only optional but completely redundant for now.
> > > Unicode::Stringprep is even faster than Net::LibIDN (around 2.x times
> > > faster).
> > >
> > > The next version of AnyEvent::XMPP will come with a reduced Dependency
> > > set (XML::Parser::Expat, XML::Writer and Net::LibIDN are gone).
> > >
> > > I will set this ticket to resolved when the new version is released.
> > >
> > > Greetings,
> > > Robin
> >
> > Awesometastic. This makes me happy. Thanks for your effort on this! I
> > could possibly drop my Net::SloppyXMPP module now (maybe?).
>
> Yes, probably. But Net::SSLeay isn't optional yet,
> but making it optional wouldn't be too hard, as i'm using AnyEvent::Handle
> anyways which uses TLS only on demand.
>
> Also, as said, the interface isn't completely documented yet. But it's
> atleast mostly stable already, just haven't found the time to document it
> and release it :)
>
>
> Greetings,
> Robin
>
Any updates on this?


Show quoted text
> Any updates on this?
ELMEX has no time to take care of AnyEvent::XMPP right now, so I’m the new maintainer. It’s unclear when he will release the new version, but it’ll be called AnyEvent::XMPP2 or something like that (at least not AnyEvent::XMPP). Therefore I’m closing this ticket. If removal of Net::LibIDN is still a concern, maybe you can backport the new code (which you can find in the "connection_ref" branch at http://git.ta-sa.org/git/AnyEvent-XMPP).