Summary: | dev-util/radare: Verify and potentially improve Python-related code | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Arfrever Frehtes Taifersar Arahesis (RETIRED) <arfrever> |
Component: | Current packages | Assignee: | No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed> |
Status: | RESOLVED WONTFIX | ||
Severity: | enhancement | CC: | deathwing00, idella4 |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 297040 | ||
Bug Blocks: | 308257 | ||
Attachments: |
the build log
revised ebuild patch revised ebuild patch revised ebuild patch |
Description
Arfrever Frehtes Taifersar Arahesis (RETIRED)
![]() *** This bug has been marked as a duplicate of bug 297040 *** It's a different bug. Created attachment 292441 [details, diff]
the build log
Tested, works with python 2 && 3
(In reply to comment #3) PYTHON_DEPEND="2" python.eclass should be inherited. Such pkg_setup() is not needed. This package doesn't install Python scripts, so python_convert_shebangs() is not needed. python_mod_optimize() and python_mod_cleanup() should be used. Build system of this package hardcodes installation for Python 2.5 and 2.6. It should be fixed to respect active version of Python. you got me on this one. You will have to explain this further; irc. Arfrever prompts PYTHON_DEPEND="2" then package hardcodes installation for Python 2.5 and 2.6; It should be fixed to respect active version of Python; beckons PYTHON_DEPEND="2:2.5:2.6" Respect I see to mean leave it as it is and adjust. But it it's 2.4 or a 3.x, it needs python_set_active_version 2 which goes in pkg_setup, "Such pkg_setup() is not needed" This is like an emerge package conflict, something has to give. (In reply to comment #5) "Such pkg_setup()" means 'pkg_setup() { python_pkg_setup; }'. If you need to call also something else in pkg_setup(), then pkg_setup() is needed. Example: pkg_setup() { python_set_active_version 2 python_pkg_setup } Created attachment 293335 [details, diff]
revised ebuild patch
(In reply to comment #7) PYTHON_DEPEND="2" python.eclass should be inherited. This package doesn't install Python scripts, so python_convert_shebangs() is not needed. python_mod_optimize() and python_mod_cleanup() should be used. Build system of this package hardcodes installation for Python 2.5 and 2.6. It should be fixed to respect active version of Python. Created attachment 293839 [details, diff]
revised ebuild patch
this works for me, not sure ,for you.
(In reply to comment #9) "configure" contains: check_library HAVE_LIB_PYTHON2_5 python2.5 0 check_library HAVE_LIB_PYTHON2_6 python2.6 0 Replace them: sed \ -e "s/check_library HAVE_LIB_PYTHON2_5 python2.5 0/check_library HAVE_LIB_PYTHON python 0/" \ -e "/check_library HAVE_LIB_PYTHON2_6 python2.6 0/d" \ -i configure Fix src/plug/hack/Makefile to use HAVE_LIB_PYTHON and python.so. When calling emake, properly override variables from this Makefile (PY_CFLAGS, PY_LIBS). Created attachment 294013 [details, diff]
revised ebuild patch
this is as far as I can get with this.
Fix src/plug/hack/Makefile to use HAVE_LIB_PYTHON and python.so. When calling
emake, properly override variables from this Makefile (PY_CFLAGS, PY_LIBS).
override to me means trump, displace them all together. In its current state it doesn't make a python.so, which I interpret it ought. I think you mean change the values of PY_CFLAGS && PY_LIBS, really don't know
dropped |