Improved perl-AppConfig package

Applying patches to the CPAN version

The opensuse package contains V 1.66 which has serious bugs, especially one that makes it impossible to submit hash values from the commandline. We add a patch which hopefully fixes that.

1 Situation

1.1 ARGCOUNT_HASH patch

The patch works fine, it seems. It fixes a critical bug, and we have not observed any undesirable effects.

We have not changed the version number but increased the release number from 16 to 99, hoping that we will stay ahead of opensuse long enough until the patch is accepted at CPAN. Moreover, to specifically require our version, we have provide-d the tag perl-AppConfig-HashArg in addition to the perl-AppConfig tag.

The patch is basically from rt.cpan.org. We have just enhanced it a little bit so as to avoid the following complaint:

Use of uninitialized value in string eq at 
/usr/lib/perl5/vendor_perl/5.8.8/AppConfig/Getopt.pm 
line 152.
Use of uninitialized value in string eq at 
/usr/lib/perl5/vendor_perl/5.8.8/AppConfig/Getopt.pm 
line 154.
Use of uninitialized value in string eq at 
/usr/lib/perl5/vendor_perl/5.8.8/AppConfig/Getopt.pm 
line 155.
Use of uninitialized value in string eq at 
/usr/lib/perl5/vendor_perl/5.8.8/AppConfig/Getopt.pm 
line 152.
Use of uninitialized value in string eq at 
/usr/lib/perl5/vendor_perl/5.8.8/AppConfig/Getopt.pm 
line 154.
Use of uninitialized value in string eq at 
/usr/lib/perl5/vendor_perl/5.8.8/AppConfig/Getopt.pm 
line 155.

To avoid this, we added a variable initialisation to an empty string:

+        $argcount = $self->{ ARGCOUNT }->{ $var } || ''

We didn’t bother to create a second patch just for this.

The correctest way for all this could in any case have been to leave the AppConfig package as it is and fix the bugs in an A2E::AppConfig subclass which we use. But hopefully such a subclass would be obsolete very soon because the package maintainer at CPAN will accept the patch in the next version.

1.2 EXPAND_UID root bug

A value like ~/.dbpass_a2e seems to expand to %s/root/.dbpass_a2e when the user is root. Encountered when working with A2E::Daba(3), to be researched.

2 Tasks

  • contact the package maintainers
  • contact the patch author

3 Timeline

4 Resources

5 Chronology

  • dat: 2008-04-13; prs: phm: apache created this directory
[ ADP | Packages | perl | perl-HTML-Summary | perl-WWW-Robot | perl-WWW-Sitemap | perl-Search-Sitemap | perl-Unicode-EastAsianWidth | perl-Term-ReadLine-Gnu | perl-BSD-Resource | perl-Net-Ping | perl-IO | perl-Data-Dumper | perl-Template-Multilingual | perl-Unix-ConfigFile | perl-DateTime-Format-W3CDTF | perl-DateTime-TimeZone | perl-List-MoreUtils | perl-DateTime-Locale | perl-DateTime | perl-Error | perl-Class-Inner | perl-Devel-Symdump | perl-Email-Filter | perl-Class-ErrorHandler | perl-Convert-ASN1 | perl-Convert-PEM | perl-Crypt-DES | perl-Crypt-DES_EDE3 | perl-Crypt-CAST5_PP | perl-Crypt-CAST5 | perl-Convert-ASCII-Armour | perl-Crypt-RIPEMD160 | perl-Tie-EncryptedHash | perl-Crypt-Random | perl-Crypt-Primes | perl-Class-Loader | perl-Crypt-Rijndael | perl-Crypt-CBC | perl-Crypt-Twofish | perl-Crypt-Blowfish | perl-Module-Install | perl-Crypt-IDEA | perl-Crypt-DSA | perl-Crypt-RSA | perl-Data-Buffer | perl-ExtUtils-AutoInstall | perl-Math-Pari | perl-MIME-Types | perl-Return-Value | perl-Test-Class | perl-Test-Unit | perl-DateTime-Format-Mail | perl-Cache-Cache | perl-HTML-Parser | perl-Html-Mason | perl-Test-Simple | perl-Devel-StackTrace | perl-Scalar-Util | perl-Class-Data-Inheritable | perl-Class-Container | perl-Exception-Class | perl-Params-Validate | perl-XML-RSS | perl-OLE-Storage_Lite | perl-OLE-Storage | perl-Spreadsheet-ParseExcel | perl-IO-Stty | perl-Crypt-OpenPGP | perl-IO-Tty | perl-Psh | perl-Template-DBI | Sendmail | perl-Mail-Box | Sendmail | perl-Email-Simple | perl-Email-Abstract | AppConfig| Expect ]
Valid XHTML 1.0! Valid CSS! deplate
http://a2e.de/adv/pak/AppConfig
© 2008-04-13 Hartmut PILCH