Package: cupt
Version: 2.1.3

Hi,

During a huge "cupt full-upgrade", apt-listchanges seems to be
mysteriously prone to failure:

        E: 'dpkg 'pre' action '/usr/bin/apt-listchanges --apt || test $? -ne 
10'' failed: exit code 127

"How is that even possible?" one might ask.  "Is the shell working?"
But exit code 127 is just a catch-all error in system(3) (and
alas there's no reliable and portable way for applications to get
errno afterwards and be sure it is reasonable).

Using "strace -f -e execve" we can find the failing syscall:

        [pid  7256] execve("/bin/sh", ["sh", "-c", "echo 'VERSION 
2\nacquire::cdrom::"...], [/* 17 vars */]) = -1 E2BIG (Argument list too long)

Presumably this was already known. :)  A natural fix would be to tweak
PackagesWorker::__do_dpkg_pre_packages_actions to set up a pipe and
write to it instead of composing a huge echo statement.  Filing so it
doesn't get forgotten; nothing urgent about this.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to