Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 128326 - perl-tk fails if no /usr/X11*
Summary: perl-tk fails if no /usr/X11*
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-31 21:21 UTC by Jory A. Pratt
Modified: 2006-06-21 16:14 UTC (History)
2 users (show)

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


Attachments
modified ebuild (perl-tk-804.027.ebuild,707 bytes, text/plain)
2006-06-07 14:52 UTC, Michael Cummings (RETIRED)
Details
patch ref'd in ebuild (xorg.patch,364 bytes, patch)
2006-06-07 14:53 UTC, Michael Cummings (RETIRED)
Details | Diff
Working patch - tested :) (myconfig.patch,385 bytes, patch)
2006-06-13 13:37 UTC, Michael Cummings (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jory A. Pratt 2006-03-31 21:21:40 UTC
Cannot find X include files via /include
Cannot find X include files anywhere at ./myConfig line 332.
Compilation failed in require at Makefile.PL line 36.
BEGIN failed--compilation aborted at Makefile.PL line 38.
make: *** No targets specified and no makefile found.  Stop.

The symlink is created with the meta ebuild but nothing else. Either xorg-server should provide the symlink or myConfig is gonna need to be reworked to solve.

Portage 2.1_pre7-r3 (default-linux/amd64/2006.0, gcc-4.1.0, glibc-2.4-r1, 2.6.16-ck2 x86_64)
=================================================================
System uname: 2.6.16-ck2 x86_64 AMD Sempron(tm) Processor 3200+
Gentoo Base System version 1.12.0_pre16
ccache version 2.4 [enabled]
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -ffast-math -ftracer -fprefetch-loop-arrays -pipe -fforce-addr -ftree-vectorize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon64 -ffast-math -ftracer -fprefetch-loop-arrays -pipe -fforce-addr -ftree-vectorize"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig candy ccache cvs distlocks metadata-transfer multilib-strict sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--sort-common"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/gentoo"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aac acpi alsa avi berkdb bitmap-fonts bzip2 cli crypt ctype dba dbus dri dvd dvdr dvdread expat fastbuild force-cgi-redirect ftp gd gif gnome gtk gtk2 imlib ipv6 isdnlog jpeg memlimit mp3 mpeg ncurses nls nptl nptlonly nsplugin objc ogg opengl pam pcre pdflib perl pic png posix pppd python quicktime readline sasl sdl session simplexml soap sockets socks5 spell spl ssl tcpd tiff tokenizer truetype truetype-fonts type1-fonts usb userlocales xine xml xsl xv zlib elibc_glibc kernel_linux userland_GNU video_cards_ati"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LINGUAS, MAKEOPTS
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2006-04-02 16:16:10 UTC
perl-tk needs fixing, nothing at all should ever assume /usr/X11R6 exists anymore. The xorg-x11 metabuild creates it as a courtesy.
Comment 2 Joseph Carnes 2006-06-06 22:41:06 UTC
(In reply to comment #1)
> perl-tk needs fixing, nothing at all should ever assume /usr/X11R6 exists
> anymore. The xorg-x11 metabuild creates it as a courtesy.
> 

Is there any news on this?  I'm running into the same issue...
Comment 3 Michael Cummings (RETIRED) gentoo-dev 2006-06-07 03:34:26 UTC
sorry, i got backlogged. i'll try and address this later today
Comment 4 Michael Cummings (RETIRED) gentoo-dev 2006-06-07 14:52:44 UTC
Created attachment 88627 [details]
modified ebuild

ebuild calling patch
Comment 5 Michael Cummings (RETIRED) gentoo-dev 2006-06-07 14:53:33 UTC
Created attachment 88628 [details, diff]
patch ref'd in ebuild
Comment 6 Michael Cummings (RETIRED) gentoo-dev 2006-06-07 14:55:03 UTC
ok, place the ebuild in your overlay, put the patch in the filesdir, and ebuild <ebuildname> digest then try emerging it. It isn't a robust patch, just added a silly line to the check for place to include x headers from (since i can't dup this anywhere, i'm shooting blind). let me know if it works and i'll prettify the patch name and post it to portage. thanks!
Comment 7 Joseph Carnes 2006-06-07 16:09:46 UTC
Will emerge bitch about the ebuild not matching up with the md5sum it checks against?
Comment 8 Joseph Carnes 2006-06-07 19:11:27 UTC
New error:
make [1]: *** No rule to make target 'X11/Xproto.h', needed by 'imgWindow.o'.  Stop.
Leaving directory '/var/tmp/portage/perl-tk-804.027/work/Tk-804.027/pTk'

I noticed earlier in the build, two things went by:

Cannot find 'X11/Xutil.h' assume made
Cannot find 'X11/Xproto.h' assume made

Yet I found them in /usr/include/X11/

At the beginning of the compile job, I found:
Cannot find X include files via /include
Using -=I/usr/include to find /usr/includ/X11/Xlib.h

Closer though...
Comment 9 Joseph Carnes 2006-06-09 11:37:02 UTC
I need assistance on this...I have a production server stopped because of it (We need modular X for other reasons).

My boss is threatening to transition us over to Windows if I can't get it up by Wednesday.

Help!

(In reply to comment #6)
> ok, place the ebuild in your overlay, put the patch in the filesdir, and ebuild
> <ebuildname> digest then try emerging it. It isn't a robust patch, just added a
> silly line to the check for place to include x headers from (since i can't dup
> this anywhere, i'm shooting blind). let me know if it works and i'll prettify
> the patch name and post it to portage. thanks!
> 
Comment 10 Joshua Baergen (RETIRED) gentoo-dev 2006-06-11 08:43:26 UTC
Can't you just create the /usr/X11R6 symlink for now until this is fixed, then?
Comment 11 Michael Cummings (RETIRED) gentoo-dev 2006-06-12 12:54:52 UTC
(In reply to comment #10)
> Can't you just create the /usr/X11R6 symlink for now until this is fixed, then?
> 

I still haven't been able to dup this bug - and the configure script actually looks for /usr/X11R6(5)/include, as well as /usr/X11/include and /usr/include/X11 (in theory - doesn't appear). Unfortunately, I can dup this bug, so I'm relying on as much feedback as possible :) (sorry for my absence this weekend, I was building my desktop at home and was therefore sans email and everything else)
Comment 12 Michael Cummings (RETIRED) gentoo-dev 2006-06-12 12:55:33 UTC
random quick thought - in the patch i posted, can you try changing my add line to be /usr/include/X11 (instead of /usr/include)?
Comment 13 Joseph Carnes 2006-06-12 17:48:38 UTC
No worky...

Using -L/usr/lib64 to find /usr/lib64/libX11.so.6.2.0
Cannot find X include files via /include
Cannot find X include files anywhere at ./myConfig line 333.
Compilation failed in require at Makefile.PL line 36.
BEGIN failed--compilation aborted at Makefile.PL line 38.

!!! ERROR: dev-perl/perl-tk-804.027 failed.
Call stack:
ebuild.sh, line 1539:   Called dyn_compile
ebuild.sh, line 939:   Called src_compile
ebuild.sh, line 1248:   Called perl-module_src_compile
perl-module.eclass, line 119:   Called perl-module_src_prep
perl-module.eclass, line 104:   Called die

!!! Unable to build! (are you using USE="build"?)
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 14 Csaba Tóth 2006-06-13 02:45:23 UTC
the same problem here, what input u wish? (i do a fresh new ~amd64 install)
Comment 15 Michael Cummings (RETIRED) gentoo-dev 2006-06-13 12:48:04 UTC
(In reply to comment #14)
> the same problem here, what input u wish? (i do a fresh new ~amd64 install)
> 

not sure. I did a fresh ~amd64 build this weekend (hence my absence), tried installing perl-tk, couldn't - finished configuring X (a couple of runs of opengl-config later mostly) and it installed fine....which probably means opengl-config added a symlink at some point...gar.....
Comment 16 Csaba Tóth 2006-06-13 13:21:03 UTC
(In reply to comment #15)
> (In reply to comment #14)
> > the same problem here, what input u wish? (i do a fresh new ~amd64 install)
> > 
> 
> not sure. I did a fresh ~amd64 build this weekend (hence my absence), tried
> installing perl-tk, couldn't - finished configuring X (a couple of runs of
> opengl-config later mostly) and it installed fine....which probably means
> opengl-config added a symlink at some point...gar.....
> 

hmm, i havent got opengl-config, but have eselect-opengl, i tryed to run it several times, but haven't got any good effect.
Comment 17 Michael Cummings (RETIRED) gentoo-dev 2006-06-13 13:29:19 UTC
got it, hold on, new patch coming in a few minutes
Comment 18 Michael Cummings (RETIRED) gentoo-dev 2006-06-13 13:37:08 UTC
Created attachment 89086 [details, diff]
Working patch - tested :)

May need to update the mod'd ebuild for the new patch name, then follow ebuild <ebuild> digest steps again. tested on amd64 and x86, worked fine on both
Comment 19 Csaba Tóth 2006-06-13 14:03:45 UTC
hmm, another problem appears:

x86_64-pc-linux-gnu-gcc -c  -I..  -I. -Ibitmaps  -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -march=k8 -mtune=k8 -pipe -msse -msse2 -mmmx -finline-functions   -DVERSION=\"804.027\" -DXS_VERSION=\"804.027\" -fPIC "-I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE"   -Wall -Wno-implicit-int -Wno-comment -Wno-unused -D__USE_FIXED_PROTOTYPES__ imgUtil.c
make[1]: *** No rule to make target `X11/Xproto.h', needed by `imgWindow.o'.  Stop.
make[1]: Leaving directory `/var/tmp/portage/perl-tk-804.027/work/Tk-804.027/pTk'
make: *** [pTk/libpTk.a] Error 2
Comment 20 Michael Cummings (RETIRED) gentoo-dev 2006-06-13 14:45:46 UTC
(In reply to comment #19)
> hmm, another problem appears:
>

was this with the ammended patch? (gah, i'd really hoped to have gotten this licked, sorry for this). (note: new patch replaces old one, not both together, not that should matter)
Comment 21 Csaba Tóth 2006-06-13 14:52:29 UTC
(In reply to comment #20)
> (In reply to comment #19)
> > hmm, another problem appears:
> >
> 
> was this with the ammended patch? (gah, i'd really hoped to have gotten this
> licked, sorry for this). (note: new patch replaces old one, not both together,
> not that should matter)
> 

yes, i used just the new patch. (i dont use patch, i unpack with ebuild command by hand, than apply patch manually, than continue compilation with ebuild)
Comment 22 Jory A. Pratt 2006-06-13 16:17:27 UTC
(In reply to comment #18)
> Created an attachment (id=89086) [edit]
> Working patch - tested :)
> 
> May need to update the mod'd ebuild for the new patch name, then follow ebuild
> <ebuild> digest steps again. tested on amd64 and x86, worked fine on both
> 

Patch is no good still :(
Comment 23 Michael Cummings (RETIRED) gentoo-dev 2006-06-13 20:08:15 UTC
Please emerge --sync in a few hours. Modified ebuild with patch should be on its way to a mirror near you. tested on amd64 (with and w/o the symlink), as well as on x86 (for cross compat), and by anarchy - everything should be fixed now.
Comment 24 Csaba Tóth 2006-06-14 00:45:42 UTC
Yes, i can confirm this new patch is working for me.
Thank You!
Comment 25 Jory A. Pratt 2006-06-21 16:14:38 UTC
Thanks for fixing.