Summary: | dev-libs/gobject-introspection: Verify and potentially improve Python-related code | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Arfrever Frehtes Taifersar Arahesis (RETIRED) <arfrever> |
Component: | Current packages | Assignee: | Gentoo Linux Gnome Desktop Team <gnome> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | xmw |
Priority: | High | Keywords: | InVCS |
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 308257, 313471 | ||
Attachments: | restrict python 3 abi |
Description
Arfrever Frehtes Taifersar Arahesis (RETIRED)
2010-03-30 19:37:39 UTC
Created attachment 233959 [details, diff] restrict python 3 abi Patch works agains 0.6.9 (latest in tree). I've updated my bump at http://svn.xmw.de/websvn/gentoo-overlay/dev-libs/gobject-introspection/ too. Please consider adding it for gnome-shell-2.31.1 The Error was: checking for headers required to compile python extensions... File "<string>", line 1 import sys; print sys.prefix ^ SyntaxError: invalid syntax File "<string>", line 1 import sys; print sys.exec_prefix ^ SyntaxError: invalid syntax not found configure: error: Python headers not found Comment on attachment 233959 [details, diff]
restrict python 3 abi
RESTRICT_PYTHON_ABIS variable has any meaning only in ebuilds supporting installation for multiple Python ABIs (e.g. 2.6 and 2.7) simultaneously.
Ok, thenn it's just --- gobject-introspection-0.6.9.ebuild 2010-03-19 15:15:08.000000000 +0100 +++ gobject-introspection-0.6.9.ebuild.new 2010-06-03 22:14:18.000000000 +0200 @@ -4,6 +4,8 @@ EAPI="2" +PYTHON_DEPEND="2:2.5" + inherit python gnome2 DESCRIPTION="Introspection infrastructure for gobject library bindings" @@ -15,7 +17,6 @@ IUSE="doc" RDEPEND=">=dev-libs/glib-2.19.0 - >=dev-lang/python-2.5 virtual/libffi" DEPEND="${RDEPEND} doc? ( >=dev-util/gtk-doc-1.12 ) @@ -30,6 +31,8 @@ # Don't pre-compile .py ln -sf $(type -P true) py-compile + + python_set_active_version 2 } pkg_postinst() { plus a shebang switch on the g-ir-scanner @ -35,6 +35,11 @@ python_set_active_version 2 } +src_install() { + gnome2_src_install + python_convert_shebangs -r 2 "${D}" +} + pkg_postinst() { python_mod_optimize /usr/$(get_libdir)/${PN}/giscanner python_need_rebuild *gobject-introspection-0.9.12 (13 Oct 2010) 13 Oct 2010; Gilles Dartiguelongue <eva@gentoo.org> +gobject-introspection-0.9.12.ebuild: Version bump. More multi ABI python changes. *gobject-introspection-0.9.10 (02 Oct 2010) *gobject-introspection-0.9.0-r1 (02 Oct 2010) 02 Oct 2010; Gilles Dartiguelongue <eva@gentoo.org> -gobject-introspection-0.6.9.ebuild, +gobject-introspection-0.9.0-r1.ebuild, +files/gobject-introspection-0.9.0-python27.patch, +gobject-introspection-0.9.10.ebuild: Version bump. Fix build with python 2.7, bug #327759. Install documentation with USE=doc, bug #335110. should be fine now. |