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!
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!
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
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
|
DetailsDescription:
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. |
This task depends upon
PKGBUILD
python command should be PYTHON=/usr/bin/python2 instead of PYTHON2=/usr/bin/python2