Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 640524 - app-office/libreoffice and net-vpn/tor require conflicting PYTHON_SINGLE_TARGET
Summary: app-office/libreoffice and net-vpn/tor require conflicting PYTHON_SINGLE_TARGET
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-10 14:50 UTC by Gustav Schaffter
Modified: 2018-04-25 21:42 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gustav Schaffter 2017-12-10 14:50:05 UTC
I may be wrong here...

In case I've misunderstood something in my following reasoning, I'd be more than happy to receive an indication about it, possibly accompanied by an explanation.



It is my understanding that through an indirect dependency problem, it's not possible to have both 'tor' and 'libreoffice' installed in the same computer (unless going through hoops of work-arounds). The problem seems to stem from the usage of the PYTHON_SINGLE_TARGET USE-expand variable.


-  net-vpn/tor depends on app-text/asciidoc
-  app-text/asciidoc  depends on python-exec compiled with PYTHON_SINGLE_TARGET python2_7 and nothing else.

-  app-office/libreoffice depends on =dev-libs/liborcus-0.12* plus dev-lang/python-exec-2 being installed with PYTHON_SINGLE_TARGET python3_4 but NOT python2_7
-  dev-libs/liborcus-0.12.1  depends on >=dev-lang/python-exec-2 being installed with PYTHON_SINGLE_TARGET python3_4 but NOT python2_7

Have I understood this correctly? Do I interpret the output from qdepends correctly?
If so, I'm not sure how to have both net-vpn/tor and app-office/libreoffice installed in the same computer.




Some 'qdepends -r' runs. (Line feeds inserted for readability. :-)


#qdepends -r net-vpn/tor
net-vpn/tor-0.3.1.9:
 app-text/asciidoc                  <==== tor depends on asciidoc. Same is true for tor versions 0.3.1.7 and ~0.3.1.8
 dev-libs/libevent[ssl]
 sys-libs/zlib
 dev-libs/openssl:0/0=[-bindist]
 sys-libs/libseccomp

#qdepends -r app-text/asciidoc
app-text/asciidoc-8.6.9-r2:
 >=app-text/docbook-xsl-stylesheets-1.75
 dev-libs/libxslt
 app-text/docbook-xml-dtd:4.5
 >=dev-lang/python-2.7.5-r2:2.7
 >=dev-lang/python-exec-2:2/2=[python_targets_python2_7(-),
                               -python_single_target_jython2_7(-),
                               -python_single_target_pypy3(-),
                               -python_single_target_python3_4(-),
                               -python_single_target_python3_5(-),
                               -python_single_target_python3_6(-),
                               python_single_target_python2_7(+)]      <==== asciidoc depends on python-exec compiled with PYTHON_SINGLE_TARGET python2_7 and nothing else.


Over to LibreOffice...


#qdepends -r app-office/libreoffice
app-office/libreoffice-5.4.2.2:
 dev-lang/python:3.4[threads,xml]
 >=dev-lang/python-exec-2:2/2=[python_targets_python2_7(-),
                               python_targets_python3_4(-),
                               python_targets_python3_5(-),
                               -python_single_target_jython2_7(-),
                               -python_single_target_pypy(-),
                               -python_single_target_pypy3(-),
                               python_single_target_python3_4(+)] <==== libreoffice depends on python-exec compiled with PYTHON_SINGLE_TARGET python3_4 and nothing else.
 app-arch/unzip
 app-arch/zip
 app-crypt/gpgme[cxx]
 app-text/hunspell:0/1.6=
 >=app-text/libabw-0.1.0
 >=app-text/libebook-0.1
 >=app-text/libetonyek-0.1
 app-text/libexttextcat
 app-text/liblangtag
 >=app-text/libmspub-0.1.0
 >=app-text/libmwaw-0.3.1
 >=app-text/libodfgen-0.1.0
 app-text/libstaroffice
 app-text/libwpd:0.10[tools]
 app-text/libwpg:0.3
 >=app-text/libwps-0.4
 app-text/mythes
 >=dev-cpp/clucene-2.3.3.4-r2
 =dev-cpp/libcmis-0.5*
 dev-db/unixODBC
 dev-lang/perl
 dev-libs/boost:0/1.63.0=
 dev-libs/expat
 dev-libs/hyphen
 dev-libs/icu:0/58.2=
 dev-libs/libassuan
 dev-libs/libgpg-error
 =dev-libs/liborcus-0.12*       <==== libreoffice hard-depends on liborcus V0.12*
 dev-libs/librevenge
 dev-libs/nspr
 dev-libs/nss
 >=dev-libs/openssl-1.0.0d:0
 >=dev-libs/redland-1.0.16
 >=dev-libs/xmlsec-1.2.24[nss]
 media-gfx/graphite2
 media-libs/fontconfig
 media-libs/freetype:2
 >=media-libs/harfbuzz-0.9.42:0/0.9.18=[graphite,icu]
 media-libs/lcms:2
 >=media-libs/libcdr-0.1.0
 >=media-libs/libepoxy-1.3.1[X]
 >=media-libs/libfreehand-0.1.0
 media-libs/libpagemaker
 >=media-libs/libpng-1.4:0/16=
 >=media-libs/libvisio-0.1.0
 media-libs/libzmf
 net-libs/neon
 net-misc/curl
 net-nds/openldap
 sci-mathematics/lpsolve
 x11-libs/cairo[X]
 x11-libs/libXinerama
 x11-libs/libXrandr
 x11-libs/libXrender
 virtual/glu
 virtual/jpeg:0
 virtual/opengl
 net-wireless/bluez
 net-print/cups
 dev-libs/dbus-glib
 media-libs/gstreamer:1.0
 media-libs/gst-plugins-base:1.0
 x11-libs/gdk-pixbuf
 >=x11-libs/gtk+-2.24:2
 app-text/poppler:0/68=[cxx]
 !app-office/libreoffice-bin
 !app-office/libreoffice-bin-debug
 !app-office/openoffice
 media-fonts/dejavu
 media-fonts/liberation-fonts
 media-fonts/libertine
 x11-misc/xdg-utils
 kde-plasma/kde-cli-tools
 media-video/vlc


qdepends -r dev-libs/liborcus
dev-libs/liborcus-0.12.1:
 dev-libs/boost:0/1.63.0=
 sys-libs/zlib:0/1=
 dev-lang/python:3.4
 >=dev-lang/python-exec-2:2/2=[python_targets_python3_4(-),
                               python_targets_python3_5(-),
                               -python_single_target_jython2_7(-),
                               -python_single_target_pypy(-),
                               -python_single_target_pypy3(-),
                               -python_single_target_python2_7(-),      <==== Can't install if python-exec compiled with PYTHON_SINGLE_TARGET python2_7
                               python_single_target_python3_4(+)]       <==== Depends on python-exec compiled with PYTHON_SINGLE_TARGET python3_4
 =dev-libs/libixion-0.12*:0/0.12=



As said above, this is my interpretation, which may not necessarily be the right way to read the output.

Anyway, I'm not able to install both 'tor' and 'libreoffice' unless I first set PYTHON_SINGLE_TARGET="python2_7", install 'tor' with it's dependencies and thereafter set PYTHON_SINGLE_TARGET="python3_4" and install 'libreoffice'.

From there, I can do a 'emerge -uD @world' without any blockers, but I can't do for instance 'emerge -uD --newuse @world' or 'emerge -uD --changed-use @world', since they will both block between 'tor' and 'libreoffice'.


Anything more I can provide?
Comment 1 Andreas Sturmlechner gentoo-dev 2018-04-25 21:42:47 UTC
I can't see a problem here.

1) liborcus works just fine with python2_7.
2) you can define individual python_single_targets using package.use but that is not even necessary here.