On Mon, May 05, 2008 at 08:21:40PM +0200, Agustin Martin wrote:
> On Mon, May 05, 2008 at 09:50:22AM -0700, Kevin B. McCarty wrote:
> > Package: dictionaries-common
> > Version: 0.98.5
> > Severity: normal
> >
> > Hi,
> >
> > During an upgrade of my sid chroot, dictionaries-common 0.98.5 was
> > pulled in by myspell-en-us (which was pulled in by libhunspell-1.2,
> > which was pulled in by iceweasel). The dictionaries-common package was
> > not previously installed.
> >
> > The following messages were printed from the postinst script:
> >
> > > Setting up dictionaries-common (0.98.5) ...
> > > readdir() attempted on invalid dirhandle DIR at
> > > /usr/share/perl5/Debian/DictionariesCommon.pm line 143, <STDIN> line 2.
> > > closedir() attempted on invalid dirhandle DIR at
> > > /usr/share/perl5/Debian/DictionariesCommon.pm line 144, <STDIN> line 2.
> > > readdir() attempted on invalid dirhandle DIR at
> > > /usr/share/perl5/Debian/DictionariesCommon.pm line 143, <STDIN> line 2.
> > > closedir() attempted on invalid dirhandle DIR at
> > > /usr/share/perl5/Debian/DictionariesCommon.pm line 144, <STDIN> line 2.
> > > readdir() attempted on invalid dirhandle DIR at
> > > /usr/share/perl5/Debian/DictionariesCommon.pm line 143.
> > > closedir() attempted on invalid dirhandle DIR at
> > > /usr/share/perl5/Debian/DictionariesCommon.pm line 144.
> > > Updating OpenOffice.org's dictionary list... done.
> >
> > It's possible that the warnings have something to do with the upgrade to
> > perl 5.10, as the dictionaries-common postinst was run after perl
> > 5.10.0-9 preinst and unpacking, but before perl postinst.
>
> Thanks for reporting,
>
> I could not reproduce this with perl 5.8.8, so I guess this is indeed
> related to perl 5.10.
I could reproduce the problem when upgrading dictionaries-common and perl
(to 5.10) in a chroot. However, things worked well if after the upgrade I
reconfigure dictionaries-common with the new perl fully configured. Looking
at the upgrade log, when dictionaries-common is configured, perl-base is
already configured (as expected), but neither perl nor perl-modules are.
Seems that something has been moved from perl-base to perl{,-modules} in a
strange way, affecting opendir. dictionaries-common itself depends
only on perl-base, so this is somewhat strange.
Anyway, I modified DictionariesCommon.pm to use filename globbing, and that
seems to work around whatever is the problem.
If I can isolate a good simple example for this, I will let perl maintainers
know about this.
--
Agustin
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]