Re: [GNC-dev] Finance::Quote on Mac M1 OSX Ventura

2023-05-18 Thread Bruce Schuck

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 5/18/23 8:12 AM, John Ralls wrote:

>> On the virgin OS out of the box, Test2 module is in the included Perl
>> but its version is 1.302162 (at least on 13.3.1). But if you look at
>> the file /System/Library/Perl/Extras/5.30/Test2/Plugin/NoWarnings.pm,
>> line 9 is

> Indeed, /System/Library/Perl/5.30/Test2.pm version is 1.302167. 1.302193
> is the version in /Library/Perl/5.30/Test2.pm meaning that I installed
> it via cpan. I added it to gnc-fq-update a couple of years ago to deal
> with https://bugs.gnucash.org/show_bug.cgi?id=798180
> .

I was going to look if gnc-fq-update installed other modules before 
F::Q. Adding Test2 to the requisites of F::Q may not work. If the CPAN 
process attempts to install DateTime::Locale before Test2, it would 
fail. The dependency isn't directly in F::Q, it's a few layers deep. 
Finance::Quote -> DateTime::Locale -> Test2::Plugin::NoWarnings -> Test2.


I'll add it to the F::Q prereqs in the next release.

Thanks.

Bruce S.
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org

iHkEARECADkWIQRzL0H5rBaeDPnpeL1IjAeprJFQBwUCZGZGkxscYnNjaHVja0Bh
c2dhcmQtc3lzdGVtcy5jb20ACgkQSIwHqayRUAfQ/QCeJLQ2oJoZOSf4iWmb4BoP
IuaqMKQAoJ4WvZfKaI33xw0gQz5QPeARNZ85
=D6J8
-END PGP SIGNATURE-
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Finance::Quote on Mac M1 OSX Ventura

2023-05-18 Thread John Ralls



> On May 17, 2023, at 22:34, Bruce Schuck  wrote:
> 
> On 5/17/23 7:02 PM, John Ralls wrote:
> 
>> That's interesting, but running your test from the end of that GitHub issue 
>> I get:
>> ```
>> $ Hector:/Users/john> perl -MTest2::Plugin::NoWarnings -e 'print 
>> "$Test2::Plugin::NoWarnings::VERSION\n"'
>> 0.09
>> $ Hector:/Users/john> perl -MTest2 -e 'print "$Test2::VERSION\n"'
>> 1.302193
>> ```
>> DateTime::Locale also installs without error including passing all of its 
>> tests. Mind, I've had F::Q installed on it for a while.
>> I'm running the current 13.4 developer beta.
> 
> On the virgin OS out of the box, Test2 module is in the included Perl but its 
> version is 1.302162 (at least on 13.3.1). But if you look at the file 
> /System/Library/Perl/Extras/5.30/Test2/Plugin/NoWarnings.pm, line 9 is
> 
> use Test2 1.302167;
> 
> One would think that if the OS supplied bundle has a Perl module that 
> requires at minimum version of another module, the required module would be 
> that version or later. Not the case. The key here is until doing this testing 
> ** no other additional perl modules were installed **.
> 
> Either 13.4 has more recent modules in the OS supplied Perl, or you updated 
> Test2 at some point in the past.
> 
> I probably should have add the output of
> 
> perl -MTest2 -e 'print "$Test2::VERSION\n"'
> 
> in my comment, but before I installed *any* additional modules, it was 
> 1.302162 as noted above.
> 
> I didn't want remove the OS supplied Test2::Plugin::NoWarnings, but I would 
> bet reinstalling it would trigger the correct dependency of Test2 also 
> getting installed. The 0.09 version already installed/included is the most 
> current release.

Bruce,

Indeed, /System/Library/Perl/5.30/Test2.pm version is 1.302167. 1.302193 is the 
version in /Library/Perl/5.30/Test2.pm meaning that I installed it via cpan. I 
added it to gnc-fq-update a couple of years ago to deal with 
https://bugs.gnucash.org/show_bug.cgi?id=798180.

Regards,
John Ralls

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Finance::Quote on Mac M1 OSX Ventura

2023-05-17 Thread Bruce Schuck

On 5/17/23 7:02 PM, John Ralls wrote:


That's interesting, but running your test from the end of that GitHub issue I 
get:
```
$ Hector:/Users/john> perl -MTest2::Plugin::NoWarnings -e 'print 
"$Test2::Plugin::NoWarnings::VERSION\n"'
0.09
$ Hector:/Users/john> perl -MTest2 -e 'print "$Test2::VERSION\n"'
1.302193
```
DateTime::Locale also installs without error including passing all of its 
tests. Mind, I've had F::Q installed on it for a while.

I'm running the current 13.4 developer beta.


On the virgin OS out of the box, Test2 module is in the included Perl 
but its version is 1.302162 (at least on 13.3.1). But if you look at the 
file /System/Library/Perl/Extras/5.30/Test2/Plugin/NoWarnings.pm, line 9 is


use Test2 1.302167;

One would think that if the OS supplied bundle has a Perl module that 
requires at minimum version of another module, the required module would 
be that version or later. Not the case. The key here is until doing this 
testing ** no other additional perl modules were installed **.


Either 13.4 has more recent modules in the OS supplied Perl, or you 
updated Test2 at some point in the past.


I probably should have add the output of

perl -MTest2 -e 'print "$Test2::VERSION\n"'

in my comment, but before I installed *any* additional modules, it was 
1.302162 as noted above.


I didn't want remove the OS supplied Test2::Plugin::NoWarnings, but I 
would bet reinstalling it would trigger the correct dependency of Test2 
also getting installed. The 0.09 version already installed/included is 
the most current release.


Bruce S.
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Finance::Quote on Mac M1 OSX Ventura

2023-05-17 Thread John Ralls



> On May 17, 2023, at 15:31, Bruce Schuck  wrote:
> 
> While testing an install of Finance::Quote on a somewhat fresh out of the box 
> MacBook Pro running Ventura 13.3.1, some issues with the bundled Perl were 
> discovered.
> 
> At first I thought it may have been prerequisites not properly defined for 
> DateTime::Locale, but a deeper analysis showed that the bundled Perl has 
> modules such as Test2::Plugin::Warnings with dependencies on modules that are 
> *not* part of the OS packaged Perl bundle.
> 
> See https://github.com/houseabsolute/DateTime-Locale/issues/36 for the thread 
> between myself and the module's maintainer.

Bruce,

That's interesting, but running your test from the end of that GitHub issue I 
get:
```
$ Hector:/Users/john> perl -MTest2::Plugin::NoWarnings -e 'print 
"$Test2::Plugin::NoWarnings::VERSION\n"'
0.09
$ Hector:/Users/john> perl -MTest2 -e 'print "$Test2::VERSION\n"'
1.302193
```
DateTime::Locale also installs without error including passing all of its 
tests. Mind, I've had F::Q installed on it for a while.

I'm running the current 13.4 developer beta.

Regards,
John Ralls

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel