With version 3.04.01 Tesseract pulls in a huge amount of dependencies (mainly related to X11) that make it unsuitable for headless servers. Previous versions of Tesseract did not have this problem. It would be nice if GUI dependencies would be removed via the -X use flag. [ebuild N ] sys-apps/baselayout-java-0.1.0 [ebuild N ] dev-java/javatoolkit-0.3.0-r9 PYTHON_TARGETS="python2_7" [ebuild N ] dev-java/java-config-2.2.0-r3 USE="{-test}" PYTHON_TARGETS="python2_7 python3_4 (-python3_5)" [ebuild N ] app-vim/gtk-syntax-20130716 [ebuild N ] app-eselect/eselect-java-0.2.0 [ebuild N ] dev-libs/nspr-4.12 USE="-debug" ABI_X86="(64) -32 (-x32)" [ebuild N ] media-libs/leptonica-1.71-r1 USE="jpeg png tiff zlib -gif -jpeg2k -static-libs {-test} -utils -webp" [ebuild N ] dev-util/patchelf-0.8 [ebuild N ] x11-proto/xproto-7.0.29 USE="-doc" ABI_X86="(64) -32 (-x32)" [ebuild N ] x11-proto/xextproto-7.3.0 USE="-doc" ABI_X86="(64) -32 (-x32)" [ebuild N ] x11-proto/inputproto-2.3.2 ABI_X86="(64) -32 (-x32)" [ebuild N ] x11-proto/renderproto-0.11.1-r1 ABI_X86="(64) -32 (-x32)" [ebuild N ] x11-libs/xtrans-1.3.5 USE="-doc" [ebuild N ] x11-proto/damageproto-1.2.1-r1 ABI_X86="(64) -32 (-x32)" [ebuild N ] x11-proto/kbproto-1.0.7 ABI_X86="(64) -32 (-x32)" [ebuild N ] media-fonts/font-util-1.3.1 [ebuild N ] x11-misc/util-macros-1.19.0 [ebuild N ] x11-proto/recordproto-1.14.2-r1 USE="-doc" ABI_X86="(64) -32 (-x32)" [ebuild N ] x11-proto/randrproto-1.5.0 ABI_X86="(64) -32 (-x32)" [ebuild N ] x11-proto/compositeproto-0.4.2-r1 ABI_X86="(64) -32 (-x32)" [ebuild N ] x11-proto/xf86bigfontproto-1.2.0-r1 ABI_X86="(64) -32 (-x32)" [ebuild N ] dev-libs/libpthread-stubs-0.3-r1 USE="-static-libs" ABI_X86="(64) -32 (-x32)" [ebuild N ] x11-proto/xcb-proto-1.12-r2 ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7 python3_4 (-python3_5)" [ebuild N ] dev-libs/nss-3.23 USE="cacert nss-pem -utils" ABI_X86="(64) -32 (-x32)" [ebuild N ] x11-libs/libICE-1.0.9 USE="ipv6 -doc -static-libs" ABI_X86="(64) -32 (-x32)" [ebuild N ] x11-proto/fixesproto-5.0-r1 ABI_X86="(64) -32 (-x32)" [ebuild N ] x11-libs/libXau-1.0.8 USE="-static-libs" ABI_X86="(64) -32 (-x32)" [ebuild N ] x11-libs/libXdmcp-1.1.2-r1 USE="-doc -static-libs" ABI_X86="(64) -32 (-x32)" [ebuild N ] x11-libs/libSM-1.2.2-r1 USE="ipv6 uuid -doc -static-libs" ABI_X86="(64) -32 (-x32)" [ebuild N ] x11-libs/libxcb-1.12 USE="-doc (-selinux) -static-libs {-test} -xkb" ABI_X86="(64) -32 (-x32)" [ebuild N ] x11-libs/libX11-1.6.4 USE="ipv6 -doc -static-libs {-test}" ABI_X86="(64) -32 (-x32)" [ebuild N ] x11-libs/libXrender-0.9.10 USE="-static-libs" ABI_X86="(64) -32 (-x32)" [ebuild N ] x11-libs/libXext-1.3.3 USE="-doc -static-libs" ABI_X86="(64) -32 (-x32)" [ebuild N ] x11-libs/libXfixes-5.0.3 USE="-static-libs" ABI_X86="(64) -32 (-x32)" [ebuild N ] x11-libs/libXt-1.1.5 USE="-static-libs" ABI_X86="(64) -32 (-x32)" [ebuild N ] x11-libs/libXi-1.7.8 USE="-doc -static-libs" ABI_X86="(64) -32 (-x32)" [ebuild N ] x11-libs/libXcomposite-0.4.4-r1 USE="-doc -static-libs" ABI_X86="(64) -32 (-x32)" [ebuild N ] x11-libs/libXcursor-1.1.14 USE="-static-libs" ABI_X86="(64) -32 (-x32)" [ebuild N ] x11-libs/libXdamage-1.1.4-r1 USE="-static-libs" ABI_X86="(64) -32 (-x32)" [ebuild N ] x11-libs/libXrandr-1.5.1 USE="-static-libs" ABI_X86="(64) -32 (-x32)" [ebuild N ] x11-libs/libXtst-1.2.3 USE="-doc -static-libs" ABI_X86="(64) -32 (-x32)" [ebuild R ] x11-libs/cairo-1.14.6 USE="X*" [ebuild R ] x11-libs/gdk-pixbuf-2.34.0 USE="X*" [ebuild N ] dev-libs/atk-2.20.0 USE="introspection nls {-test}" ABI_X86="(64) -32 (-x32)" [ebuild N ] dev-util/gtk-update-icon-cache-3.20.9 [ebuild N ] gnome-base/gsettings-desktop-schemas-3.20.0 USE="introspection" [ebuild N ] x11-libs/gtk+-2.24.31 USE="introspection vim-syntax (-aqua) -cups -debug -examples {-test} -xinerama" ABI_X86="(64) -32 (-x32)" [ebuild N ] dev-java/icedtea-bin-7.2.6.8 USE="cups webstart -alsa -cjk -doc -examples -gtk -headless-awt -multilib -nsplugin -nss -pulseaudio (-selinux) -source" ABI_X86="(64) -32" [ebuild N ] virtual/jdk-1.7.0-r2 [ebuild N ] virtual/jre-1.7.0-r2 [ebuild N ] dev-java/icedtea-web-1.6.1-r1 USE="-doc -javascript -nsplugin -tagsoup {-test}" [ebuild N ] dev-java/ant-core-1.9.2 USE="-doc -source" [ebuild N ] dev-java/swt-3.8.2-r1 USE="cairo -gnome -opengl -webkit" [ebuild N ] dev-java/piccolo2d-3.0-r1 USE="-doc -examples -source" [ebuild N ] app-text/tesseract-3.04.01 USE="jpeg png scrollview tiff -doc -examples -math -opencl -osd -static-libs -training -webp" L10N="-ar -bg -ca -chr -cs -da -de -el -es -fi -fr -he -hi -hu -id -it -ja -ko -lt -lv -nl -no -pl -pt -ro -ru -sk -sl -sr -sv -th -tl -tr -uk -vi -zh-CN -zh-TW" The following USE changes are necessary to proceed: (see "package.use" in the portage(5) man page for more details) # required by x11-libs/gtk+-2.24.31::gentoo # required by dev-java/swt-3.8.2-r1::gentoo # required by dev-java/piccolo2d-3.0-r1::gentoo # required by app-text/tesseract-3.04.01::gentoo[scrollview] # required by app-text/tesseract (argument) >=x11-libs/cairo-1.14.6 X # required by x11-libs/gtk+-2.24.31::gentoo # required by dev-java/swt-3.8.2-r1::gentoo # required by dev-java/piccolo2d-3.0-r1::gentoo # required by app-text/tesseract-3.04.01::gentoo[scrollview] # required by app-text/tesseract (argument) >=x11-libs/gdk-pixbuf-2.34.0 X emerge: there are no ebuilds built with USE flags to satisfy ">=x11-libs/gdk-pixbuf-2.30.7:2[X]". !!! One of the following packages is required to complete your request: - x11-libs/gdk-pixbuf-2.32.3::gentoo (Change USE: +X) (dependency required by "x11-libs/gtk+-2.24.31::gentoo" [ebuild]) (dependency required by "dev-java/swt-3.8.2-r1::gentoo" [ebuild]) (dependency required by "dev-java/piccolo2d-3.0-r1::gentoo" [ebuild]) (dependency required by "app-text/tesseract-3.04.01::gentoo[scrollview]" [ebuild]) (dependency required by "app-text/tesseract" [argument])
Is the list more reasonable when the scrollview use flag is disabled?
-scrollview works. Probably -X should imply -scrollview.
Thanks for the report! I am not sure about adding a separate USE-flag that would essentially duplicate the existing scrollview flag, which description does say "Enable graphics support (ScrollView)." And renaming the USE-flag would loose information (we do not enable X11 support per se, we build the ScrollView tool)
As a middle-ground solution, the scrollview feature is in fact mostly a debugger: https://github.com/tesseract-ocr/tesseract/wiki/ViewerDebugging Next revision will not enable scrollview USE-flag by default (for "simple" OCR users, it is not needed), and will also enhance the description a bit
Applied to 3.04.01-r1, scrollview is not enabled by default anymore