Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#29641 - [libtorrent-rasterbar]Compile from source says not able to find python

Attached to Project: Arch Linux
Opened by Piyush Bhatt (piyhatt) - Friday, 27 April 2012, 13:32 GMT
Last edited by Ionut Biru (wonder) - Sunday, 04 November 2012, 18:01 GMT
Task Type General Gripe
Category Packages: Extra
Status Closed
Assigned To Ionut Biru (wonder)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Code looks for python2 while we by default python3 as default.

Need to include
export PYTHON="/usr/bin/python2"

in build function of PKGBUILD to enable compilation

like is done in libtorrent-rasterbar-svn in aur

https://aur.archlinux.org/packages/li/libtorrent-rasterbar-svn/PKGBUILD

Additional info:
* package version 1:0.15.10-1



Steps to reproduce:
Download PKGBUILD from extra repository .makepkg to build will result in following failure message.

checking for python version... 3.2
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python3.2/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python3.2/site-packages
checking for python3.2... (cached) /usr/bin/python
checking for a version of Python >= '2.1.0'... yes
checking for a version of Python >= '2.4'... yes
checking for the distutils Python package... yes
checking for Python include path... -I/usr/include/python3.2mu
checking for Python library path... -L/usr/lib/python3.2/config -lpython3.2
checking for Python site-packages path... /usr/lib/python3.2/site-packages
checking python extra libraries... -lpthread -ldl -lutil
checking python extra linking flags... -Xlinker -export-dynamic
checking consistency of all components of python development environment... no
configure: error: in `/tmp/abs-libtorrent-rasterbar/src/libtorrent-rasterbar-0.15.10':
configure: error:
Could not link test program to Python. Maybe the main Python library has been
installed in some non-standard library path. If so, pass it to configure,
via the LDFLAGS environment variable.
   PKGBUILD (0.9 KiB)
This task depends upon

Closed by  Ionut Biru (wonder)
Sunday, 04 November 2012, 18:01 GMT
Reason for closing:  Fixed
Comment by Piyush Bhatt (piyhatt) - Sunday, 04 November 2012, 17:34 GMT
  • Field changed: Percent Complete (100% → 0%)
I get same error now.
python command should be PYTHON=/usr/bin/python2 instead of PYTHON2=/usr/bin/python2
Comment by Ionut Biru (wonder) - Sunday, 04 November 2012, 18:01 GMT
i think i was drunk at that time. No idea why i set up PYTHON2.

Loading...