Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 677306 - dev-lang/perl-5.28.0: in-place editing code leaks directory handles
Summary: dev-lang/perl-5.28.0: in-place editing code leaks directory handles
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: 677334
  Show dependency tree
 
Reported: 2019-02-05 14:58 UTC by Tomáš Mózes
Modified: 2019-04-07 14:10 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomáš Mózes 2019-02-05 14:58:28 UTC
While working on app-emulation/xen-pvgrub bump I noticed it was failing on:
Can't rename newlib-1.16.0/newlib/libm/math/e_hypot.c to newlib-1.16.0/newlib/libm/math/e_hypot.c.bak: Bad file descriptor, skipping file, <> line 1110194.

It was already reported in NetBSD: http://gnats.netbsd.org/53578
Upstream issue: https://rt.perl.org/Public/Bug/Display.html?id=133314
Fix: https://github.com/Perl/perl5/commit/3d5e9c119db6b727684fe75dfcfe5831c4351bec

Please consider adding this patch to perl 5.28.0 or bumping to 5.28.1 (it already contains the fix). I tried both approaches and work equally well.
Comment 1 Tomáš Mózes 2019-04-03 19:36:41 UTC
Ping
Comment 2 Larry the Git Cow gentoo-dev 2019-04-07 14:10:56 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52243e596e533c9a9aaac42213bc08a3d734a7e1

commit 52243e596e533c9a9aaac42213bc08a3d734a7e1
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2019-04-07 14:10:32 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2019-04-07 14:10:49 +0000

    dev-lang/perl: Backport dirhandle exhaustion fix, bug 677306
    
    Closes: https://bugs.gentoo.org/677306
    Package-Manager: Portage-2.3.62, Repoman-2.3.12
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 dev-lang/perl/files/perl-5.28.0-dirhandle.patch |  99 ++++
 dev-lang/perl/perl-5.28.0-r1.ebuild             | 654 ++++++++++++++++++++++++
 2 files changed, 753 insertions(+)