Bug#1042541: ITP: libmozilla-publicsuffix-perl -- Perl interface to the Mozilla Public Suffix List

2023-07-31 Thread Scott Kitterman



On July 31, 2023 2:30:33 PM UTC, gregor herrmann  wrote:
>On Sun, 30 Jul 2023 14:47:28 +0200, gregor herrmann wrote:
>
>> So in the end I guess we need to patch lib/Mozilla/PublicSuffix.pm to
>> read /usr/share/publicsuffix/effective_tld_names.dat dynamically …
>
>Done (in git) now.
>
>Thanks again for pointing me in the right direction :)
>
Sounds great.  Approximately all language environments have or will soon have 
an interface to the PSL.  Many of the issues are common across the different 
language implementations.  Glad I could help.

Scott K



Bug#1042541: ITP: libmozilla-publicsuffix-perl -- Perl interface to the Mozilla Public Suffix List

2023-07-31 Thread gregor herrmann
On Sun, 30 Jul 2023 14:47:28 +0200, gregor herrmann wrote:

> So in the end I guess we need to patch lib/Mozilla/PublicSuffix.pm to
> read /usr/share/publicsuffix/effective_tld_names.dat dynamically …

Done (in git) now.

Thanks again for pointing me in the right direction :)


Cheers,
gregor

-- 
 .''`.  https://info.comodo.priv.at -- Debian Developer https://www.debian.org
 : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D  85FA BB3A 6801 8649 AA06
 `. `'  Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe
   `-   


signature.asc
Description: Digital Signature


Bug#1042541: ITP: libmozilla-publicsuffix-perl -- Perl interface to the Mozilla Public Suffix List

2023-07-30 Thread gregor herrmann
On Sun, 30 Jul 2023 04:25:59 +, Scott Kitterman wrote:

> >I'm now build-depending on publicsuffix and copying effective_tld_names.dat
> >from the publicsuffix package over the shipped version in
> >override_dh_auto_configure.
> >(The perl bindings in /usr/share/perl5/Mozilla/PublicSuffix.pm are
> >generated from effective_tld_names.dat at configure time.)
> 
> The publicsuffix package is often updated. If you do it that way,
> you won't get the new version without rebuilding the package. I'd
> suggest using Depends and installing a symlink to the file it
> provides, so you always get the current version's data.

Right, it would make sense to get the newest data.

Unfortunately the symlink approach won't work, as the data from
effective_tld_names.dat is added to the perl module _at build time_.
effective_tld_names.dat is neither included in the binary package nor
used _at run time_.

So in the end I guess we need to patch lib/Mozilla/PublicSuffix.pm to
read /usr/share/publicsuffix/effective_tld_names.dat dynamically …


Cheers,
gregor

-- 
 .''`.  https://info.comodo.priv.at -- Debian Developer https://www.debian.org
 : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D  85FA BB3A 6801 8649 AA06
 `. `'  Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe
   `-   


signature.asc
Description: Digital Signature


Bug#1042541: ITP: libmozilla-publicsuffix-perl -- Perl interface to the Mozilla Public Suffix List

2023-07-29 Thread Scott Kitterman



On July 30, 2023 2:30:29 AM UTC, gregor herrmann  wrote:
>On Sun, 30 Jul 2023 02:06:03 +, Scott Kitterman wrote:
>
>> Debian provides a system PSL in the publicsuffix package. Please
>> depend on and use that rather than the bundled copy or the facility
>> the package provides for downloading a newer version.
>
>Thanks for the pointer.
>
>I'm now build-depending on publicsuffix and copying effective_tld_names.dat
>from the publicsuffix package over the shipped version in
>override_dh_auto_configure.
>(The perl bindings in /usr/share/perl5/Mozilla/PublicSuffix.pm are
>generated from effective_tld_names.dat at configure time.)

The publicsuffix package is often updated.  If you do it that way, you won't 
get the new version without rebuilding the package.  I'd suggest using Depends 
and installing a symlink to the file it provides, so you always get the current 
version's data.

Scott K



Bug#1042541: ITP: libmozilla-publicsuffix-perl -- Perl interface to the Mozilla Public Suffix List

2023-07-29 Thread gregor herrmann
On Sun, 30 Jul 2023 02:06:03 +, Scott Kitterman wrote:

> Debian provides a system PSL in the publicsuffix package. Please
> depend on and use that rather than the bundled copy or the facility
> the package provides for downloading a newer version.

Thanks for the pointer.

I'm now build-depending on publicsuffix and copying effective_tld_names.dat
from the publicsuffix package over the shipped version in
override_dh_auto_configure.
(The perl bindings in /usr/share/perl5/Mozilla/PublicSuffix.pm are
generated from effective_tld_names.dat at configure time.)

Cheers,
gregor

-- 
 .''`.  https://info.comodo.priv.at -- Debian Developer https://www.debian.org
 : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D  85FA BB3A 6801 8649 AA06
 `. `'  Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe
   `-   


signature.asc
Description: Digital Signature


Bug#1042541: ITP: libmozilla-publicsuffix-perl -- Perl interface to the Mozilla Public Suffix List

2023-07-29 Thread Scott Kitterman
Debian provides a system PSL in the publicsuffix package.  Please depend on and 
use that rather than the bundled copy or the facility the package provides for 
downloading a newer version.

Scott K



Bug#1042541: ITP: libmozilla-publicsuffix-perl -- Perl interface to the Mozilla Public Suffix List

2023-07-29 Thread gregor herrmann
Package: wnpp
Owner: gregor herrmann 
Severity: wishlist
X-Debbugs-CC: debian-de...@lists.debian.org, debian-p...@lists.debian.org

* Package name: libmozilla-publicsuffix-perl
  Version : 1.0.6
  Upstream Author : Tom Hukins 
* URL : https://metacpan.org/release/Mozilla-PublicSuffix
* License : MIT/X11
  Programming Lang: Perl
  Description : Perl interface to the Mozilla Public Suffix List

Mozilla::PublicSuffix provides a single function that returns the public
suffix of a domain name by referencing a parsed copy of Mozilla's Public
Suffix List. From the official website at https://publicsuffix.org/:

A "public suffix" is one under which Internet users can directly register names.
Some examples of public suffixes are com, co.uk and pvt.k12.wy.us. The Public
Suffix List is a list of all known public suffixes.

The package will be maintained under the umbrella of the Debian Perl Group.

--
Generated with the help of dpt-gen-itp(1) from pkg-perl-tools.


signature.asc
Description: Digital Signature