Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 602892

Summary: net-print/hplip: multiple problems
Product: Gentoo Linux Reporter: Michele Alzetta <michele>
Component: Current packagesAssignee: Daniel Pielmeier <billie>
Status: RESOLVED DUPLICATE    
Severity: normal CC: printing
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Emerge --info

Description Michele Alzetta 2016-12-17 08:55:53 UTC
Created attachment 456432 [details]
Emerge --info

The ebuild needs python target and python single target to be set.

If python target and python single target are both set as Python 2.7, hplip won't build because for some reason it requires both reportlab-3.3.0 and reportlab-2.6, and masking one of the two reportlabs does not fix this.

If python target and python single target are both set as Python 3.5, hplip won't build with fax use flag: fax use flag requires python single target 2.7

If we try to build hplip without fax use flag (but we don't want to, because we need the fax function) then it will happily upgrade reportlab to 3.3.0 and build hplip.

At the moment the workaround (if one needs fax) is to keep python targets as 2.7, install reportlab 2.6, then install hplip with --nodeps option.
Comment 1 Michele Alzetta 2016-12-17 08:57:54 UTC
emerge -pv hplip 

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U  ] dev-python/reportlab-3.3.0::gentoo [2.6::gentoo] USE="-doc -examples" PYTHON_TARGETS="python2_7 python3_5%* -python3_4%" 0 KiB
[ebuild   R    ] net-print/hplip-3.16.11-r1::gentoo  USE="X fax hpcups hpijs kde (policykit) qt5 scanner snmp -doc -libusb0 -minimal -parport -static-ppds" PYTHON_SINGLE_TARGET="python2_7 -python3_4 -python3_5" PYTHON_TARGETS="python2_7 -python3_4 -python3_5" 0 KiB

Total: 2 packages (1 upgrade, 1 reinstall), Size of downloads: 0 KiB

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

dev-python/reportlab:0

  (dev-python/reportlab-3.3.0:0/0::gentoo, ebuild scheduled for merge) pulled in by
    >=dev-python/reportlab-3.1.44-r2[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_python2_7(+)?,python_single_target_python3_4(+)?,python_single_target_python3_5(+)?] required by (net-print/hplip-3.16.11-r1:0/0::gentoo, ebuild scheduled for merge)
    ^^                     ^^^^^^^^^                                                                                                                                                                                                                                                                                                                                                                                                                                         

  (dev-python/reportlab-2.6:0/0::gentoo, installed) pulled in by
    =dev-python/reportlab-2*[python_targets_python2_7(-)?,python_single_target_python2_7(+)?] required by (net-print/hplip-3.16.11-r1:0/0::gentoo, ebuild scheduled for merge)
    ^                     ^^                                                                                                                                                                                                         


It may be possible to solve this problem by using package.mask to
prevent one of those packages from being selected. However, it is also
possible that conflicting dependencies exist such that they are
impossible to satisfy simultaneously.  If such a conflict exists in
the dependencies of two different packages, then those packages can
not be installed simultaneously. You may want to try a larger value of
the --backtrack option, such as --backtrack=30, in order to see if
that will solve this conflict automatically.

For more information, see MASKED PACKAGES section in the emerge man
page or refer to the Gentoo Handbook.
Comment 2 Michele Alzetta 2016-12-17 09:01:12 UTC
After masking reportlab

 >=dev-python/reportlab-3.1.44-r2

emerge -pv hplip 

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U #] dev-python/reportlab-3.3.0::gentoo [2.6::gentoo] USE="-doc -examples" PYTHON_TARGETS="python2_7 python3_5%* -python3_4%" 0 KiB
[ebuild   R    ] net-print/hplip-3.16.11-r1::gentoo  USE="X fax hpcups hpijs kde (policykit) qt5 scanner snmp -doc -libusb0 -minimal -parport -static-ppds" PYTHON_SINGLE_TARGET="python2_7 -python3_4 -python3_5" PYTHON_TARGETS="python2_7 -python3_4 -python3_5" 0 KiB

Total: 2 packages (1 upgrade, 1 reinstall), Size of downloads: 0 KiB

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

dev-python/reportlab:0

  (dev-python/reportlab-3.3.0:0/0::gentoo, ebuild scheduled for merge) pulled in by
    >=dev-python/reportlab-3.1.44-r2[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_python2_7(+)?,python_single_target_python3_4(+)?,python_single_target_python3_5(+)?] required by (net-print/hplip-3.16.11-r1:0/0::gentoo, ebuild scheduled for merge)
    ^^                     ^^^^^^^^^                                                                                                                                                                                                                                                                                                                                                                                                                                         

  (dev-python/reportlab-2.6:0/0::gentoo, installed) pulled in by
    =dev-python/reportlab-2*[python_targets_python2_7(-)?,python_single_target_python2_7(+)?] required by (net-print/hplip-3.16.11-r1:0/0::gentoo, ebuild scheduled for merge)
    ^                     ^^                                                                                                                                                                                                         


It may be possible to solve this problem by using package.mask to
prevent one of those packages from being selected. However, it is also
possible that conflicting dependencies exist such that they are
impossible to satisfy simultaneously.  If such a conflict exists in
the dependencies of two different packages, then those packages can
not be installed simultaneously. You may want to try a larger value of
the --backtrack option, such as --backtrack=30, in order to see if
that will solve this conflict automatically.

For more information, see MASKED PACKAGES section in the emerge man
page or refer to the Gentoo Handbook.
Comment 3 Daniel Pielmeier gentoo-dev 2016-12-17 10:06:53 UTC
This should be fixed with net-print/hplip-3.16.11-r2. Please sync and try again!

*** This bug has been marked as a duplicate of bug 602478 ***
Comment 4 Michele Alzetta 2016-12-17 11:14:57 UTC
I installed teh -r2 ebuild manually and it works, but are you sure you actually pushed the ebuild into the portage tree? Syncing didn't give it to me, so I tried wiping out and redownloading my whole portage tree and -r2 still doesn't show up.