Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 523982 - dev-perl/perl-tk with dev-lang/perl-5.20.1 - ?
Summary: dev-perl/perl-tk with dev-lang/perl-5.20.1 - ?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Perl team
URL: https://bugs.archlinux.org/task/40692
Whiteboard:
Keywords: EBUILD, PATCH
Depends on:
Blocks: perl-5.20
  Show dependency tree
 
Reported: 2014-09-29 01:33 UTC by Norman Yarvin
Modified: 2014-10-21 11:15 UTC (History)
1 user (show)

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


Attachments
freetype location patch (freetype_location.patch,1.05 KB, patch)
2014-09-29 01:34 UTC, Norman Yarvin
Details | Diff
MainWindow patch (mainwindow_segfaults.patch,773 bytes, patch)
2014-09-29 01:35 UTC, Norman Yarvin
Details | Diff
perl-tk-804.32.0-r1.ebuild (perl-tk-804.32.0-r1.ebuild,1.70 KB, text/plain)
2014-09-30 17:39 UTC, Norman Yarvin
Details
new ebuild (perl-tk-804.32.0-r1.ebuild,1.65 KB, text/plain)
2014-10-06 14:51 UTC, Norman Yarvin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Norman Yarvin 2014-09-29 01:33:01 UTC
Getting a new MainWindow is commonly the first step in using perl-tk, and it yields a segmentation fault, when using perl 5.20.  This one has already been solved upstream, but perhaps not released yet.  The Arch people have pulled out from git a couple of patches which solve the problem; I'll be attaching those.

Reproducible: Always

Steps to Reproduce:
Run

perl -MTk -e '$mw = new MainWindow'

Actual Results:  
A core dump

Expected Results:  
Nothing
Comment 1 Norman Yarvin 2014-09-29 01:34:24 UTC
Created attachment 385698 [details, diff]
freetype location patch
Comment 2 Norman Yarvin 2014-09-29 01:35:07 UTC
Created attachment 385700 [details, diff]
MainWindow patch
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2014-09-29 08:21:01 UTC
Where did these patches come from? Which specific problems do they fix?
Comment 4 Norman Yarvin 2014-09-29 17:21:53 UTC
They come originally from upstream (git), and were picked up by Arch.  Sorry, I meant to include the URL for that discussion, but forgot:

https://bugs.archlinux.org/task/40692
Comment 5 Norman Yarvin 2014-09-30 17:39:51 UTC
Created attachment 385836 [details]
perl-tk-804.32.0-r1.ebuild

I hadn't uploaded the ebuild I'm running, since the modifications seemed so trivial (just added those two patches to the PATCHES list), but what the hell...
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-06 07:40:55 UTC
Comment on attachment 385836 [details]
perl-tk-804.32.0-r1.ebuild

--- perl-tk-804.32.0.ebuild
+++ perl-tk-804.32.0.ebuild
@@ -28,6 +28,8 @@
 SRC_TEST="skip"
 PATCHES=(
        "${FILESDIR}"/${PN}-804.31.0-xorg.patch
+       "${FILESDIR}"/1ca4589ef5a87999ec564081900bc8fdaed83c74.patch
+       "${FILESDIR}"/ba3a92a779f7adcf655b7e45b40ee5b0cb79bc8b.patch
        )

 src_prepare() {


You really ought to rename those patches to specify their meaning or the issue they resolve.
Comment 7 Norman Yarvin 2014-10-06 14:51:54 UTC
Created attachment 386136 [details]
new ebuild

Ebuild modified as requested
Comment 8 Justin Lecher (RETIRED) gentoo-dev 2014-10-21 11:15:01 UTC
+*perl-tk-804.32.0-r1 (21 Oct 2014)
+
+  21 Oct 2014; Justin Lecher <jlec@gentoo.org> +perl-tk-804.32.0-r1.ebuild,
+  +files/freetype_location.patch, +files/mainwindow_segfaults.patch:
+  Add fix for build against perl-5.20, thanks Norman Yarvin for the patch,
+  #523982
+