🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
8 messages
8 total messages Started by D. Stussy Wed, 16 Jun 2010 20:15
Innreport perl warnings
#83119
Author: D. Stussy
Date: Wed, 16 Jun 2010 20:15
11 lines
1503 bytes
INN package 2.5.2 + Perl 5.12.1:

Use of assignment to $[ is deprecated at /var/lib/news/bin/innreport line
677.
Use of assignment to $[ is deprecated at /var/lib/news/bin/innreport line
794.

These warnings did not appear with Perl 5.12.0 or earlier, so I know that
it is Perl that has changed.

Re: Innreport perl warnings
#83162
Author: John F. Morse
Date: Fri, 25 Jun 2010 21:38
65 lines
3501 bytes
Hi Dieter,
> INN package 2.5.2 + Perl 5.12.1:
>
> Use of assignment to $[ is deprecated at /var/lib/news/bin/innreport line
> 677.
> Use of assignment to $[ is deprecated at /var/lib/news/bin/innreport line
> 794.
>
> These warnings did not appear with Perl 5.12.0 or earlier, so I know that
> it is Perl that has changed.
>   


What is the disposition on this?

Was there a bug report made?

Did you fix it (Perl or INN)?

Did it "go away"? ;-)

Today I see libperl5.10 (libperl5.10.1-13) is proposed for upgrading 
Debian Squeeze:

john@squeeze:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following packages have been kept back:
  iptables libdevmapper1.02.1 linux-image-2.6-686 mutt
The following packages will be upgraded:
  base-files binutils bsdutils busybox cpp cpp-4.4 cron e2fslibs 
e2fsprogs ethtool exim4 exim4-base exim4-config exim4-daemon-light ftp
  gcc gcc-4.4 gcc-4.4-base geoip-database heirloom-mailx initscripts 
iso-codes libacl1 libattr1 libblkid1 libc-bin libc-dev-bin libc6
  libc6-dev libc6-i686 libcomerr2 libgcc1 libgeoip1 libgomp1 
libgssapi-krb5-2 libgssrpc4 libk5crypto3 libkadm5clnt-mit7 libkadm5srv-mit7
  libkdb5-4 libkrb5-3 libkrb5support0 liblzma2 libmime-tools-perl 
libmime-types-perl libperl-dev libperl5.10 libreadline6 libsqlite3-0
  libss2 libssl-dev libssl0.9.8 libstdc++6 libtasn1-3 libudev0 libuuid1 
linux-libc-dev locales mount ntp openssl perl perl-base
  perl-modules python-reportbug python2.6 python2.6-minimal 
readline-common reportbug sudo sysv-rc sysvinit sysvinit-utils tar udev
  util-linux xz-utils
77 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Need to get 64.3MB of archives.
After this operation, 77.8kB disk space will be freed.

john@squeeze:~$ apt-cache policy libperl5.10
libperl5.10:
  Installed: 5.10.1-12
  Candidate: 5.10.1-13
  Version table:
     5.10.1-13 0
        500 http://debian.mirrors.tds.net squeeze/main Packages
 *** 5.10.1-12 0
        100 /var/lib/dpkg/status

Perhaps you built Perl from source?


-- 
John

When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: Innreport perl warnings
#83163
Author: Julien ÉLIE
Date: Sat, 26 Jun 2010 21:20
49 lines
3131 bytes
Hi John,

> Was there a bug report made?
> Did you fix it (Perl or INN)?
> Did it "go away"? ;-)

It is something Perl 5.12 has deprecated.
See <http://search.cpan.org/~rjbs/perl-5.13.1/pod/perl5120delta.pod>:

%%
Deprecations

>From time to time, Perl's developers find it necessary to deprecate
features or modules we've previously shipped as part of the core
distribution.  We are well aware of the pain and frustration that
a backwards-incompatible change to Perl can cause for developers
building or maintaining software in Perl.  You can be sure that when
we deprecate a functionality or syntax, it isn't a choice we make
lightly.  Sometimes, we choose to deprecate functionality or syntax
because it was found to be poorly designed or implemented.
Sometimes, this is because they're holding back other features
or causing performance problems.  Sometimes, the reasons are more
complex.  Wherever possible, we try to keep deprecated functionality
available to developers in its previous form for at least one
major release.  So long as a deprecated feature isn't actively
disrupting our ability to maintain and extend Perl, we'll
try to leave it in place as long as possible.

The following items are now deprecated:

Assignment to $[
%%


> Today I see libperl5.10 (libperl5.10.1-13) is proposed for upgrading
> Debian Squeeze

I am waiting for 5.12.1-1 (currently in experimental) to come into
unstable.  That's why I still haven't answered to Dieter about that
problem.

I see that Debian would like to ship Perl 5.12 with the Squeeze release.
So there will be some tests to do with all our Perl scripts...

-- 
Julien ÉLIE

« Aut bibas aut abeas. » 
Re: Innreport perl warnings
#83164
Author: John F. Morse
Date: Sat, 26 Jun 2010 23:36
54 lines
3237 bytes
Hi Julien,
>> Was there a bug report made?
>> Did you fix it (Perl or INN)?
>> Did it "go away"? ;-)
>
> It is something Perl 5.12 has deprecated.
> See <http://search.cpan.org/~rjbs/perl-5.13.1/pod/perl5120delta.pod>:
>
> %%
> Deprecations
>
> From time to time, Perl's developers find it necessary to deprecate
> features or modules we've previously shipped as part of the core
> distribution.  We are well aware of the pain and frustration that
> a backwards-incompatible change to Perl can cause for developers
> building or maintaining software in Perl.  You can be sure that when
> we deprecate a functionality or syntax, it isn't a choice we make
> lightly.  Sometimes, we choose to deprecate functionality or syntax
> because it was found to be poorly designed or implemented.
> Sometimes, this is because they're holding back other features
> or causing performance problems.  Sometimes, the reasons are more
> complex.  Wherever possible, we try to keep deprecated functionality
> available to developers in its previous form for at least one
> major release.  So long as a deprecated feature isn't actively
> disrupting our ability to maintain and extend Perl, we'll
> try to leave it in place as long as possible.
>
> The following items are now deprecated:
>
> Assignment to $[
> %%
>
>
>> Today I see libperl5.10 (libperl5.10.1-13) is proposed for upgrading
>> Debian Squeeze
>
> I am waiting for 5.12.1-1 (currently in experimental) to come into
> unstable.  That's why I still haven't answered to Dieter about that
> problem.
>
> I see that Debian would like to ship Perl 5.12 with the Squeeze release.
> So there will be some tests to do with all our Perl scripts...


Thanks for the information.

I have a few spare computers sitting around, so when the time arrives, 
let me know what you would like me to do for testing.


-- 
John

When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: Innreport perl warnings
#83170
Author: D. Stussy
Date: Sun, 27 Jun 2010 06:56
12 lines
1694 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:i05qur$4h5$1@news.trigofacile.com...
> ...
> I am waiting for 5.12.1-1 (currently in experimental) to come into
> unstable.  That's why I still haven't answered to Dieter about that
> problem.

Technically, I don't need an answer, because there was no question.
However, to see the warning in every daily report does get annoying.  I
simply noted the change.

Re: Innreport perl warnings
#83176
Author: Julien ÉLIE
Date: Sun, 27 Jun 2010 09:39
18 lines
2104 bytes
Hi John,

>> I see that Debian would like to ship Perl 5.12 with the Squeeze release.
>> So there will be some tests to do with all our Perl scripts...
>
> I have a few spare computers sitting around, so when the time arrives, let me know 
> what you would like me to do for testing.

Thanks for the offer.
However, I do not need any other computer to run our scripts.  I'll manage
to do it with the one I have.

-- 
Julien ÉLIE

« Le tennis c'est comme le ping-pong, sauf qu'au tennis,
  les joueurs sont debout sur la table. » 
Re: Innreport perl warnings
#83314
Author: Julien ÉLIE
Date: Mon, 19 Jul 2010 17:35
28 lines
2157 bytes
Hi Dieter,

> Technically, I don't need an answer, because there was no question.
> However, to see the warning in every daily report does get annoying.  I
> simply noted the change.

Reading the two lines where the error occurs:

Line 675-677:

  # $[ ... The index of the first element in an array, and of the first
  #        character in a substring. Default is 0.
  local $[ = 0;

Line 794:

  local $[ = 0;



Well, just remove these lines and your reports will be OK again.

-- 
Julien ÉLIE

« -- Nous voyageons plus vite que la lumière !
  -- Alors comment y voir clair dans tout ça ? » (Astérix) 
Re: Innreport perl warnings
#83332
Author: Julien ÉLIE
Date: Sun, 01 Aug 2010 10:10
34 lines
2561 bytes
Hi Dieter,

> INN package 2.5.2 + Perl 5.12.1:
>
> Use of assignment to $[ is deprecated at /var/lib/news/bin/innreport line
> 677.
> Use of assignment to $[ is deprecated at /var/lib/news/bin/innreport line
> 794.
>
> These warnings did not appear with Perl 5.12.0 or earlier, so I know that
> it is Perl that has changed.


Fix committed (basically, assignments removed).
You also have another call in innreport_inn.pm:

===================================================================
--- innreport_inn.pm 2010-07-30 15:02:07 UTC (rev 9089)
+++ innreport_inn.pm 2010-08-01 10:07:52 UTC (rev 9090)
@@ -2430,7 +2430,6 @@
 # Compare 2 dates (+hour), used with sort (arguments $a and $b)
 sub datecmp() {
   # ex: "May 12 06"   for May 12, 6:00am
-  local($[) = 0;
   # The 2 dates are near. The range is less than a few days that's why we
   # can cheat to determine the order. It is only important if one date
   # is in January and the other in December.

-- 
Julien ÉLIE

« -- Dis, je crois avoir entendu parler gothique par là !
  -- Tu as des visions, Pamplemus ! » (Astérix) 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads