2018-07-26 18:09 GMT+03:00 Mike Gilbert <[email protected]>: > On Thu, Jul 26, 2018 at 10:57 AM Grand Duet <[email protected]> wrote: >> >> Just now I have tried to manually set >> >> PYTHON_TARGETS="python2_7 python3_6" >> PYTHON_SINGLE_TARGET="python3_6" >> >> in /etc/portage/make.conf and got the following error: >> >> # emerge --update --deep --with-bdeps=y --newuse --backtrack=120 --ask world >> >> These are the packages that would be merged, in order: >> >> Calculating dependencies... done! >> >> !!! The ebuild selected to satisfy "app-text/asciidoc" has unmet >> requirements. >> - app-text/asciidoc-8.6.10::gentoo USE="-examples -graphviz -highlight >> -test" ABI_X86="(64)" PYTHON_SINGLE_TARGET="(-pypy) -python2_7" >> PYTHON_TARGETS="python2_7 (-pypy)" >> >> The following REQUIRED_USE flag constraints are unsatisfied: >> exactly-one-of ( python_single_target_pypy >> python_single_target_python2_7 ) >> >> The above constraints are a subset of the following complete expression: >> exactly-one-of ( python_single_target_pypy >> python_single_target_python2_7 ) python_single_target_pypy? ( >> python_targets_pypy ) python_single_target_python2_7? ( >> python_targets_python2_7 ) >> >> (dependency required by "app-text/dvisvgm-2.1.3::gentoo" [installed]) >> (dependency required by "app-text/texlive-2017::gentoo[extra]" [installed]) >> (dependency required by "@selected" [set]) >> (dependency required by "@world" [argument]) >> >> which is similar to those errors I got while trying to set >> >> PYTHON_TARGETS="python2_7 python3_5" >> PYTHON_SINGLE_TARGET="python3_5" >> >> before switching yesterday from python-3.5 to python-3.6 target. >> >> Does it mean that setting python targets in /etc/portage/make.conf is >> not supported any more? > > No, setting PYTHON_TARGETS in make.conf should still work. > > It looks like asciidoc only supports python2, and for some reason > portage is trying to disable python2_7. I'm not sure why that might > be; we enable python2_7 for asciidoc via profiles/base/package.use. > > Have you made some odd change to your profile, or overridden something > in /etc/portage/package.use?
No, I have not make any changes in my profile or packege.use. I have only added PYTHON_TARGETS="python2_7 python3_6" PYTHON_SINGLE_TARGET="python3_6" lines to /etc/portage/make.conf And when I comment these two lines in /etc/portage/make.conf, the error mentioned above disappears. Without those two lines in make.conf, I have the following: $ equery uses asciidoc * Found these USE flags for app-text/asciidoc-8.6.10: U I - - examples : Install examples, usually source code - - graphviz : Add support for the Graphviz library - - highlight : Enable source code highlighting + + python_single_target_python2_7 : Build for Python 2.7 only + + python_targets_python2_7 : Build with Python 2.7 With those two lines in make.conf, I have the following: $ equery uses asciidoc * Found these USE flags for app-text/asciidoc-8.6.10: U I - - examples : Install examples, usually source code - - graphviz : Add support for the Graphviz library - - highlight : Enable source code highlighting - + python_single_target_python2_7 : Build for Python 2.7 only + + python_targets_python2_7 : Build with Python 2.7 Ok, got it: the mentioned above settings in /etc/portage/make.conf overrides those of asciidoc. So, the recomendations made in the news "Python 3.6 to become the default target" (mentioned in the thread "Any real need to switch python targets back and forth every month?") on how to set python targets in /etc/portage/make.conf was actually useless. Thank you for all who replied to this thread.

