Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34940 - dev-perl/Tk-TableMatrix-1.01 emerge failed - Can't locate object method "dir_target"
Summary: dev-perl/Tk-TableMatrix-1.01 emerge failed - Can't locate object method "dir_...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
: 33546 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-12-02 16:22 UTC by Greisberger Christophe
Modified: 2004-01-20 06:03 UTC (History)
1 user (show)

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


Attachments
Updated ebuild using patch (Tk-TableMatrix-1.01.ebuild,664 bytes, text/plain)
2003-12-09 09:09 UTC, Matt Chorman
Details
Patch for Tk-TableMatrix-1.01 (patch.diff,686 bytes, patch)
2003-12-09 09:09 UTC, Matt Chorman
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Greisberger Christophe 2003-12-02 16:22:56 UTC
I would like to give some more info, but... I'm not an expert of ebuilds... 

Reproducible: Always
Steps to Reproduce:
1. emerge dev-perl/Tk-TableMatrix 
2. 
3. 
Actual Results:  
root # emerge dev-perl/Tk-TableMatrix 
Calculating dependencies ...done! 
>>> emerge (1 of 1) dev-perl/Tk-TableMatrix-1.01 to / 
>>> md5 src_uri ;-) Tk-TableMatrix-1.01.tar.gz 
>>> Unpacking source... 
>>> Unpacking Tk-TableMatrix-1.01.tar.gz 
to /var/tmp/portage/Tk-TableMatrix-1.01/work 
>>> Source unpacked. 
### Note: 'Building Outside of Tk itself' Messages are Expected Here #### 
/usr/bin/perl is installed in /usr/lib/perl5/5.8.2/i686-linux okay 
PPM for perl5.008002 
Test Compiling config/signedchar.c 
Test Compiling config/unsigned.c 
Test Compiling config/Ksprintf.c 
Test Compiling -DSPRINTF_RETURN_CHAR config/Ksprintf.c 
Test Compiling config/tod.c 
Test Compiling -DTIMEOFDAY_TZ config/tod.c 
Test Compiling -DTIMEOFDAY_NO_TZ config/tod.c 
Test Compiling -DTIMEOFDAY_DOTS config/tod.c 
Problem gettimeofday() 
Using -L/usr/X11R6/lib to find /usr/X11R6/lib/libX11.so.6.2 
Using -I/usr/X11R6/include to find /usr/X11R6/include/X11/Xlib.h 
/var/tmp/portage/Tk-TableMatrix-1.01/work/Tk-TableMatrix-1.01 does not start 
with /usr/lib/perl5/vendor_perl/5.8.2/i686-linux 
i.e. building outside Tk itself 
Note (probably harmless): No library found for -lpt 
/var/tmp/portage/Tk-TableMatrix-1.01/work/Tk-TableMatrix-1.01/pTk does not start 
with /usr/lib/perl5/vendor_perl/5.8.2/i686-linux 
i.e. building outside Tk itself 
Generating Dependencies for linux, win_arch=x 
Test Compiling config/Hstrtoul.c 
Test Compiling config/Hstrdup.c 
Test Compiling config/Hstrcasecmp.c 
Extracting mm.h 
Extracting tkTable.c 
Extracting tkTable.h 
Extracting tkTableCell.c 
Extracting tkTableCellSort.c 
Extracting tkTableCmds.c 
Extracting tkTableEdit.c 
Extracting tkTableTag.c 
Extracting tkTableUtil.c 
Extracting tkTableWin.c 
Extracting tkTableversion.h 
Extracting version.h 
Finding dependancies for tkTable.c 
ignore 'elif !defined(WIN32)' 
ignore 'elif defined(WIN32)' 
Finding dependancies for tkTableCell.c 
Finding dependancies for tkTableCellSort.c 
Finding dependancies for tkTableCmds.c 
Finding dependancies for tkTableEdit.c 
Finding dependancies for tkTableTag.c 
Finding dependancies for tkTableUtil.c 
Finding dependancies for tkTableWin.c 
ERROR from evaluation 
of /var/tmp/portage/Tk-TableMatrix-1.01/work/Tk-TableMatrix-1.01/pTk/Makefile.PL: 
Can't locate object method "dir_target" via package "PACK002" at ./Makefile.PL line 
231. 
make: *** No targets specified and no makefile found.  Stop. 
 


root # emerge info 
Portage 2.0.49-r18 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.22) 
================================================================= 
System uname: 2.4.22 i686 AMD Athlon(tm) 
Gentoo Base System version 1.4.3.12 
distcc 2.11.2 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-march=athlon-xp -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops 
-frerun-cse-after-loop -frerun-loop-opt -falign-functions=4" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
CXXFLAGS="-march=athlon-xp -O3 -pipe -fforce-addr -fomit-frame-pointer 
-funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache sandbox" 
GENTOO_MIRRORS="http://gentoo.oregonstate.edu 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="X aalib acl alsa apm arts avi berkdb bonobo canna cdr cjk crypt cups curl dga 
directfb doc dvb dvd encode fbcon foomaticdb freewnn gdbm ggi gif gphoto2 
gstreamer gtk guile imap imlib jack java joystick jpeg kde libg++ lirc mad maildir mbox 
mmx motif mozilla mpeg mysql nas ncurses nls oggvorbis opengl oss pdflib perl png 
postgres prelude python qt quicktime readline samba scanner sdl slang slp spell sse 
ssl svga tcltk tcpd tetex tiff truetype unicode usb vim-with-x wmf x86 xinerama xml xml2 
xmms xv zlib"
Comment 1 Matt Chorman 2003-12-09 08:46:09 UTC
I am experiencing the same issue - I found this patch floating around on the flotsam of the internet, it fixed this issue for me.

--- pTk/Makefile.PL.ship        2003-11-16 10:43:39.000000000 +0000
+++ pTk/Makefile.PL     2003-11-16 10:44:09.000000000 +0000
@@ -228,11 +228,6 @@
 my $self = shift;
 my $dep = $self->Tk::MMutil::mTk_postamble;

-$dep .= $self->dir_target(@{$self->{'dir_targets'}});
-
-$dep .= "config :: " . join(" \\\n\t",map($self->catfile($_,".exists"),@{$self->{'dir_targets'}})) .
-        "\n\t".$self->{NOECHO}."\$(NOOP)\n";
-
 if ($Tk::MMutil::IsWin32 or ($win_arch eq 'MSWin32' and $^O eq 'cygwin'))
  {
   my $cc = $Config{'cc'};
   }
Comment 2 Matt Chorman 2003-12-09 09:09:25 UTC
Created attachment 21933 [details]
Updated ebuild using patch
Comment 3 Matt Chorman 2003-12-09 09:09:58 UTC
Created attachment 21934 [details, diff]
Patch for Tk-TableMatrix-1.01
Comment 4 Matt Chorman 2003-12-09 09:11:11 UTC
Just added two patchs - an updated patch that works with epatch and an updated ebuild that 
applies the patch during the emerge process.
Comment 5 Michael Cummings (RETIRED) gentoo-dev 2004-01-20 05:55:05 UTC
*** Bug 33546 has been marked as a duplicate of this bug. ***
Comment 6 Michael Cummings (RETIRED) gentoo-dev 2004-01-20 05:57:36 UTC
OK, I've tested the provided patch against both a makemaker 6.20 (the "bad" one in this case) and a 6.03 EU::MM and both installed smoothly and appear to work fine. I'll post the patch and new ebuild shortly and close this out.

Matt - if you see this - have thought about posting this patch to cpan bugtracking as well? I can't believe that we are the only ones hit by this bug.
Comment 7 Michael Cummings (RETIRED) gentoo-dev 2004-01-20 06:03:23 UTC
Fixed thanks to matt; in portage now