Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 144580 - dev-libs/clearsilver-0.10.1 and 0.10.2 automagically detect python version
Summary: dev-libs/clearsilver-0.10.1 and 0.10.2 automagically detect python version
Status: VERIFIED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Julien Allanos (RETIRED)
URL:
Whiteboard:
Keywords: Bug
Depends on:
Blocks:
 
Reported: 2006-08-20 20:00 UTC by Andrew Ross (RETIRED)
Modified: 2008-01-06 00:50 UTC (History)
1 user (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 Andrew Ross (RETIRED) gentoo-dev 2006-08-20 20:00:06 UTC
Unless --with-python=/usr/bin/python is passed to configure (via econf), clearsilver will detect the presence of python2.4 and build against it, even when the python symlink and python-config ouput indicate that python2.3 should be used.

The offending text in configure is:

if test $cs_cv_python = yes; then
  echo "$as_me:$LINENO: checking for python includes" >&5
echo $ECHO_N "checking for python includes... $ECHO_C" >&6
  python_inc=no
  python_search_path="/neo/opt /usr/local /usr /c"
  python_versions="2.4 2.3 2.2 2.1 2.0 1.5 22 21 20 15"
  if test $cs_cv_python_path != "no" -a -x $cs_cv_python_path; then
    python_bin=$cs_cv_python_path
    vers=`$python_bin -c "import sys; print sys.version[:3]"`
    py_inst_dir=`$python_bin -c "import sys; print sys.exec_prefix"`
    python_inc=$py_inst_dir/include/python$vers
    python_lib="-L$py_inst_dir/lib/python$vers/config -lpython$vers"
  else
    for vers in $python_versions; do
      for path in $python_search_path; do
        if test -x $path/bin/python$vers; then
          python_bin=$path/bin/python$vers
        fi
        if test -f $path/include/python$vers/Python.h; then
          python_inc=$path/include/python$vers
          python_lib="-L$path/lib/python$vers/config -lpython$vers"
          break 2
        fi
                        if test -f $path/python$vers/include/Python.h; then
          python_inc=$path/python$vers/include
          python_lib="-L$path/python$vers/libs -lpython$vers"
          break 2
        fi
      done
    done
  fi
  if test "x$python_inc" = "xno"; then
    echo "$as_me:$LINENO: result: not found" >&5
echo "${ECHO_T}not found" >&6
    PYTHON=
    PYTHON_INC=
    PYTHON_LIB=
    PYTHON_SITE=
  else
    echo "$as_me:$LINENO: result: found $python_inc" >&5
echo "${ECHO_T}found $python_inc" >&6
    PYTHON=$python_bin
    PYTHON_INC="-I$python_inc"
    PYTHON_LIB=$python_lib
    PYTHON_SITE=`$python_bin -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0)"`
    BUILD_WRAPPERS="$BUILD_WRAPPERS python"
  fi
fi



Portage 2.1-r2 (hardened/x86/2.6, gcc-3.3.6, glibc-2.3.6-r3, 2.6.14-hardened-r5 i686)
=================================================================
System uname: 2.6.14-hardened-r5 i686 Intel(R) Celeron(R) CPU 2.40GHz
Gentoo Base System version 1.6.14
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.3.5-r2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
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
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-mcpu=pentium4 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf"
CXXFLAGS="-mcpu=pentium4 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig collision-protect distlocks metadata-transfer sandbox sfperms strict test userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://mirror.aarnet.edu.au/pub/gentoo ftp://mirror.pacific.net.au/pub/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
PKGDIR="/usr/portage//packages/x86/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://gentoo/gentoo-portage"
USE="apache2 bash-completion berkdb crypt dlloader hardened kerberos mailwrapper nls pam pic python readline sasl ssl symlink tcpd truetype unicode userlocales vhosts x86 xml xorg zlib elibc_glibc input_devices_mouse input_devices_keyboard kernel_linux userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Julien Allanos (RETIRED) gentoo-dev 2006-09-27 15:18:19 UTC
Please test clearsilver-0.10.3.
Comment 2 Julien Allanos (RETIRED) gentoo-dev 2008-01-06 00:50:16 UTC
No answer, closing.