Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130832 - configure script of the vim/gvim 7.0_beta can't find python on AMD64
Summary: configure script of the vim/gvim 7.0_beta can't find python on AMD64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High minor (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-22 07:29 UTC by Alexander Glyzov
Modified: 2006-08-02 05:51 UTC (History)
2 users (show)

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 Alexander Glyzov 2006-04-22 07:29:11 UTC
configure script of the vim/gvim 7.0_beta can't find python on AMD64.
This happening because of hardcoded subdir names in configure.in - 'share' or 'lib'.
In this subdirs it trying to find python's config dir: 'python2.4/config'.
But on AMD64 python is installed in /usr/lib64/ and not in /usr/lib/.
Thus, vim/gvim 7.0 (maybe 6.x too??) always compiles
without python support, even if USE=python. And, as a consequence,
in vim/gvim doesn't work brand new omni-completion, when editing .py sources.

I've found the way to fix this problem:
we need to patch file 'vim7/src/configure.in' at line 610 like this:
before:
     for subdir in lib share; do
after:
     for subdir in lib64 lib share; do
Comment 1 Patrick McLean gentoo-dev 2006-04-24 07:21:10 UTC
could you please post your emerge --info
Comment 2 Alexander Glyzov 2006-04-24 11:37:38 UTC
(In reply to comment #1)
> could you please post your emerge --info
> 
shure.

Gentoo Base System version 1.6.14
Portage 2.0.54 (default-linux/amd64/2006.0, gcc-3.4.5, glibc-2.3.5-r2, 2.6.16-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.16-gentoo-r2 x86_64 AMD Turion(tm) 64 Mobile Technology ML-30
ccache version 2.3 [enabled]
dev-lang/python:     2.4.2
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-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /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/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="ru_RU.CP1251"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://10.9.8.1/gentoo-portage"
USE="amd64 S3TC X X509 a52 aac acl acpi aio alsa amd amr ao aotuv async audiofile automount avi bash-completion berkdb bitmap-fonts bonobo bzip2 cairo calendar cardbus ccache cdda cddb cdio cdparanoia cdr cdrom crypt ctype curl dba dbus djvu dri dts dv dvd dvdr dvdread dvi elibc_glibc emul-linux-x86 encode exif expat extras fam fastbuild fat ffmpeg fftw firefox flac font-server fontconfig fortran fpx ftp fuse gd gecko-sdk gif glitz glut glx gmp gnome gphoto2 gpm gs gstreamer gtk gtk2 gtkhtml hal hpn iconv idea idn imagemagick imlib isdnlog javascript jbig jpeg jpeg2k kernel_linux lcms libwww lm_sensors lzo lzw lzw-tiff mad matroska memlimit mmap mng mozilla mp3 mpeg musepack nautilus ncurses nls nptl nptlonly numarray numeric ogg opengl pam pango pcmcia pcre pdflib pic pmu png posix pppd python qt qt-static quicktime quotas rar readline reiserfs rtc sdl session shorten simplexml slang sndfile soap sockets spell spl sqlite ssl startup-notification svg symlink sysfs syslog sysvipc t1lib tcpd tga threads tiff tokenizer transcode truetype truetype-fonts type1 type1-fonts udev unicode usb userland_GNU userlocales utf8 vfat video_cards_ati video_cards_dummy video_cards_fbdev video_cards_fglrx video_cards_i810 video_cards_vesa video_cards_vga video_cards_vmware vim vim-with-x vorbis wma wma123 wmf wv x264 xine xml xml2 xmms xosd xpm xsl xv xvid xvmc zlib"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY




Comment 3 Patrik Larsson 2006-07-31 02:01:39 UTC
Hi!

The supplied patch is flawed. Hence not applied.

I just downloaded the source from vim.org and everything works great on my amd64...

Proof:
checking for python... /usr/bin/python
checking Python version... 2.4
checking Python is 1.4 or better... yep
checking Python's install prefix... /usr
checking Python's execution prefix... /usr
checking Python's configuration directory... /usr/lib/python2.4/config

I can't see anything wrong...

Regards,

Patrik
Comment 4 Patrick McLean gentoo-dev 2006-07-31 18:23:09 UTC
Actually that could be a valid problem on no-symlink systems, though Alexander seems to be running a normal system. Though really, the patch should replace "lib" with $(get_libdir) so it will do the right thing with ABI="x86"

VIM team: what do you think?
Comment 5 Alexander Glyzov 2006-08-02 05:51:47 UTC
Oh boy, I've already forget this bug.

It seems, bug was fixed in one of the 7.0 final ebuilds (-r1?)
Since then it perfectly compiles on my amd64 laptop.

Thank you for the attention. :)