Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 551088 - sys-libs/libcap-ng-0.7.7 fails to configure requiring python 3
Summary: sys-libs/libcap-ng-0.7.7 fails to configure requiring python 3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-03 13:35 UTC by Thomas Capricelli
Modified: 2015-06-04 12:33 UTC (History)
2 users (show)

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


Attachments
libcap-ng-0.7.7-r1.ebuild (libcap-ng-0.7.7-r1.ebuild,2.23 KB, text/plain)
2015-06-04 09:23 UTC, Andrew Miller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Capricelli 2015-06-03 13:35:57 UTC
I dont have python3 on my system. There doesn't seem to be any python3 depandency in the ebuild, but when in the configure step, libcap-ng fails with 


------------------------------------------------------------------
checking whether to create python bindings... testing
checking for python version... 2.7
checking for python platform... linux2
checking for python script directory... ${prefix}/lib64/python2.7/site-packages
checking for python extension module directory... ${exec_prefix}/lib64/python2.7/site-packages
configure: Python bindings will be built
checking whether to create python3 bindings... yes
checking for python3... no
The python3 program was not found in the search path. Please ensure
that it is installed and its directory is included in the search path or
pass --without-python3 to ./configure.
------------------------------------------------------------------

The emerge looks like this :

orzel@berlioz /home/orzel% emerge -1 sys-libs/libcap-ng
[ebuild     U ] sys-libs/libcap-ng-0.7.7 [0.7.5] USE="python static-libs" PYTHON_TARGETS="python2_7 -python3_3 -python3_4" 

Reproducible: Always
Comment 1 Thomas Capricelli 2015-06-03 13:37:18 UTC
it's weird that i have 0.7.5  installed, but 0.7.7 doesn't configure : my system hasn't changed (i never had python3), and there's no difference in the ebuilds. I guess the difference comes from eclass.. ?
Comment 2 Andrew Miller 2015-06-04 02:03:06 UTC
(In reply to Thomas Capricelli from comment #1)
> I guess the difference comes from eclass.. ?

Not due to any recent change in eclasses. I can reproduce this bug with a copy of the gentoo repository from ~1 month ago.

>cat /usr/portage/metadata/timestamp
Wed May  6 18:37:24 UTC 2015
>USE="python" PYTHON_TARGETS="python2_7" ebuild libcap-ng-0.7.5.ebuild configure
>>> Source configured.
>USE="python" PYTHON_TARGETS="python2_7" ebuild libcap-ng-0.7.7.ebuild configure
checking whether to create python3 bindings... yes
checking for python3... no
[snip]
ERROR: sys-libs/libcap-ng-0.7.7::testing failed (configure phase):
Comment 3 Andrew Miller 2015-06-04 09:23:08 UTC
Created attachment 404570 [details]
libcap-ng-0.7.7-r1.ebuild

The bug was in the ebuild.

I've rewritten the src_configure() section, now it seems to work properly.

>USE="python" PYTHON_TARGETS="python2_7 python3_3" emerge =sys-libs/libcap-ng-0.7.7-r1
Installing (1 of 1) sys-libs/libcap-ng-0.7.7-r1::testing
>equery files --filter=dir =sys-libs/libcap-ng-0.7.7-r1 | grep python
/usr/lib64/python2.7
/usr/lib64/python2.7/site-packages
/usr/lib64/python3.3
/usr/lib64/python3.3/site-packages
/usr/lib64/python3.3/site-packages/__pycache__

>USE="python" PYTHON_TARGETS="python2_7" emerge =sys-libs/libcap-ng-0.7.7-r1
Installing (1 of 1) sys-libs/libcap-ng-0.7.7-r1::testing
>equery files --filter=dir =sys-libs/libcap-ng-0.7.7-r1 | grep python
/usr/lib64/python2.7
/usr/lib64/python2.7/site-packages

>USE="python" PYTHON_TARGETS="python3_3" emerge =sys-libs/libcap-ng-0.7.7-r1
Installing (1 of 1) sys-libs/libcap-ng-0.7.7-r1::testing
>equery files --filter=dir =sys-libs/libcap-ng-0.7.7-r1 | grep python
/usr/lib64/python3.3
/usr/lib64/python3.3/site-packages
/usr/lib64/python3.3/site-packages/__pycache__

Note I had to add RESTRICT="test", since something is still borked in the src_test() section.
Comment 4 Anthony Basile gentoo-dev 2015-06-04 11:08:39 UTC
(In reply to Thomas Capricelli from comment #1)

(In reply to Andrew Miller from comment #3)

Upstream tells me that they recognize a problem with their new python code which will be fixed with 0.7.8 hopefully.  I'll put this ebuild on the tree without a revbump, but I don't recommend that it every go stable.  Let's wait until 0.7.8 comes out and see what further changes they've made.
Comment 5 Thomas Capricelli 2015-06-04 12:33:36 UTC
Fine with me, thanks for your work.