[mythtv-users] strange order of expiry

Michael T. Dean mtdean at thirdcontact.com
Tue Oct 24 11:07:04 UTC 2017

On 10/21/2017 08:41 PM, Brian J. Murrell wrote:
> It sounds like the bug

feature that has not been implemented

>   is that libmyth-perl is not aware
> of the special need to bracket IPv6 addresses with [].



If you're don't want to use IPv4 until someone decides to add support 
for IPv6, feel free to write a patch.  The backup/restore scripts were 
modified with a quick-and-dirty patch to detect what looks like an IPv6 
address and to bracket it.  This approach is appropriate for the 
backup/restore scripts because they do one thing and one thing only and 
are being developed to just work on as many systems as 
possible--regardless of what Perl modules are installed. However, for 
the general-use Perl bindings a more elegant approach is required.  
Basically someone just needs to modify MythTV.pm pull in Net::IP to use 
ip_is_ipv6 ( https://metacpan.org/pod/Net::IP#ip_is_ipv6 ) and, if so, 
to properly bracket the addresses for use in Perl.  See, also #13077 as 
there's an issue in mysql.pm (from upstream) that means you have to 
specify the DBI->connect() string with host before DB name or it won't 
properly parse the IPv6 address.


More information about the mythtv-users mailing list