<div dir="ltr">Hi Laura,<div><br></div>2018-04-17 16:39 GMT-07:00 Laura Arjona Reina <span dir="ltr"><<a href="mailto:larjona@debian.org" target="_blank">larjona@debian.org</a>></span>:<div>> Unable to open /srv/mirrors/debian//pool/<wbr>main/g/gcc-5/gcc-5_5.5.0.orig.<wbr>tar.gz at /srv/<a href="http://i18n.debian.org//dl10n/git/dl10n-check" rel="noreferrer" target="_blank">i18n.debian.org//dl10n/<wbr>git/dl10n-check</a> line 463.<br>> read() on closed filehandle GEN3287 at /srv/<a href="http://i18n.debian.org//dl10n/git/lib/Debian/Pkg/Tar.pm" rel="noreferrer" target="_blank">i18n.debian.org//dl10n/<wbr>git/lib/Debian/Pkg/Tar.pm</a> line 176.<br>> Failed to read `/srv/mirrors/debian//pool/<wbr>main/g/gcc-5/gcc-5_5.5.0.orig.<wbr>tar.gz': Bad file descriptor at /srv/<a href="http://i18n.debian.org//dl10n/git/dl10n-check" rel="noreferrer" target="_blank">i18n.debian.org//dl10n/<wbr>git/dl10n-check</a> line 463.<br>> 'x' outside of string in unpack at /srv/<a href="http://i18n.debian.org//dl10n/git/lib/Debian/Pkg/Tar.pm" rel="noreferrer" target="_blank">i18n.debian.org//dl10n/<wbr>git/lib/Debian/Pkg/Tar.pm</a> line 368.<br><br>> I am sorry but I'm giving up adding packages as exception, we have a<br>> long list already and we're only in letter "g".<br>> <br>> I've had a look at the code but frankly I have no idea about how to</div><div>> solve this problem :(<div><br></div><div>Can you try adding</div><div>    $text = undef;</div><div>after the line 178 in <a href="https://salsa.debian.org/l10n-team/dl10n/blob/master/lib/Debian/Pkg/Tar.pm">https://salsa.debian.org/l10n-team/dl10n/blob/master/lib/Debian/Pkg/Tar.pm</a></div><div><br></div><div>You will still have the error messages (Unable to open..., read() on closed filehandle..., Failed to read...) but I hope this will avoid the crash ('x' outside of string in unpack...)</div><div>(sorry, I could not test).</div><div><br></div><div>Note: The tools were designed at a time when CPU and disk were limited (there might have been more diversity in the packaging formats). This may not be the case now, and if somebody is interested in a (major) rewrite, it might be easier to just extract each source packages using dpkg-source (+ heuristic to apply patches) than to do this in-memory extract and patch mechanism.</div><div><br></div><div>Regards,</div><div>-- </div><div>Nekral</div></div></div>