[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#31620: dpkg: don't use hard coded ENOENT



Package: dpkg
Version: 1.4.1

Hello,

from update-alternatives & dpkg-divert:

#use POSIX; &ENOENT;
sub ENOENT { 2; }
# Sorry about this, but POSIX.pm isn't necessarily available

I am sorry about this, too, but the Hurd has a different ENOENT (somewhat
like 1673646). Do not hard code error values, please. Either include POSIX
in perl-base (it's about 100kB uncompressed), or rewrite the script avoiding
such klugdes (for example testing the existence with "-e" if an error
occurs. Just a remark, but the program flow of this script is obscure, so a
rewrite would not harm.

I would like to set the severity level to important, but this affects only
one port, which is not to be released. But still this prevents these scripts
from working at all on non-Linux systems, and it should be fixed.

Marcus

-- System Information
Debian Release: 2.1
Kernel Version: Linux flora 2.0.32 #1 Mit Jul 22 22:52:29 CEST 1998 i586 unknown

Versions of the packages dpkg depends on:
ii  libc6           2.0.7v-1       The GNU C library version 2 (run-time files)
ii  libstdc++2.8    2.90.29-2      The GNU stdc++ library (old egcs version)
hi  ncurses3.4      1.9.9g-8.10    Video terminal manipulation - shared librari


Reply to: