redchillipadi / ebuild-overlay

Ebuild for various packages not currently in the Gentoo tree
6 stars 2 forks source link

=media-libs/opencolorio-1.1.1: remove py2.7 support #13

Closed waebbl closed 4 years ago

waebbl commented 4 years ago

Portage is having issues solving the depgraph of your opencolorio-1.1.1.ebuild.

Calculating dependencies           ... done!

emerge: there are no ebuilds built with USE flags to satisfy "dev-python/sphinx[python_single_target_python2_7(-)?,python_single_target_python3_6(-)?,python_single_target_python3_7(-)?]".
!!! One of the following packages is required to complete your request:
- media-libs/opencolorio-1.1.1::ebuild-overlay (Change USE: -python_single_target_python3_7, this change violates use flag constraints defined by media-libs/opencolorio-1.1.1: 'doc? ( python ) python? ( exactly-one-of ( python_single_target_python2_7 python_single_target_python3_6 python_single_target_python3_7 ) )')
(dependency required by "media-libs/opencolorio-1.1.1::ebuild-overlay" [ebuild])
(dependency required by "opencolorio::ebuild-overlay" [argument])

Looks like you need to remove support for python-2.7 in the ebuild.

The patch below is the difference of what I changed so it works again. Apart from removing py2.7, I added py3.8 support, which builds fine, AFAIR including tests, but I didn't do any runtime testing. Feel free to pick it up and try it for yourself. You also need to change the sphinx dependency, as sphinx is inheriting python-r1.eclass, while opencolorio is inheriting python-single-r1.eclass.

--- waebbl/media-libs/opencolorio/opencolorio-1.1.1.ebuild  2020-05-24 17:18:43.918444238 +0200
+++ redchillipadi-ebuild-overlay/media-libs/opencolorio/opencolorio-1.1.1.ebuild    2020-02-14 13:38:08.874038157 +0100
@@ -3,12 +3,13 @@

 EAPI=7

-PYTHON_COMPAT=( python3_{6,7,8} )
+PYTHON_COMPAT=( python{2_7,3_{6,7}} )

 inherit cmake flag-o-matic python-single-r1

 DESCRIPTION="A color management framework for visual effects and animation"
 HOMEPAGE="http://opencolorio.org/"
+
 SRC_URI="https://github.com/imageworks/OpenColorIO/archive/v${PV}.tar.gz -> ${P}.tar.gz"

 LICENSE="BSD"
@@ -31,12 +32,11 @@
    >=dev-cpp/yaml-cpp-0.5
    dev-libs/tinyxml
 "
+
 DEPEND="${RDEPEND}"
 BDEPEND="
    virtual/pkgconfig
-   $(python_gen_cond_dep '
-       doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
-   ')
+   doc? ( dev-python/sphinx[${PYTHON_SINGLE_USEDEP}] )
 "

 # Restricting tests, bugs #439790 and #447908
redchillipadi commented 4 years ago

Thanks, this fixes the issue for me too