Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 325499 - '>=dev-python/pycups-1.9.50' requires '>=net-print/cups-1.4'
Summary: '>=dev-python/pycups-1.9.50' requires '>=net-print/cups-1.4'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Maciej Mrozowski
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-25 12:48 UTC by Howard B. Golden
Modified: 2010-06-28 16:35 UTC (History)
1 user (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 Howard B. Golden 2010-06-25 12:48:54 UTC
In dev-python/pycups-1.9.50 a new method, getPPD3, is introduced. This method only exists in >=net-print/cups-1.4. If an earlier version of net-print/cups is installed, pycups will build successfully, but fail when executed with the following messages:

Python 2.6.5 (release26-maint, May  2 2010, 15:34:30) [GCC 4.3.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import cups
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: /usr/lib64/python2.6/site-packages/cups.so: undefined symbol: cupsGetPPD3

The solution is to RDEPEND on >=net-print/cups-1.4.
Comment 1 Howard B. Golden 2010-06-25 13:03:16 UTC
This bug will also lead to the following messages when kde-base/system-config-printer-kde is built:

-----------------------------------------------------------------------------
-- The following OPTIONAL packages could NOT be located on your system.
-- Consider installing them to enable more features from this software.
-----------------------------------------------------------------------------
   * PyCups  <http://cyberelk.net/tim/software/pycups/>
     PyCups was not found.  It is needed by system-config-printer-kde to run.  (Use -DINSTALL_SYSTEM_CONFIG_PRINTER=TRUE to install anyway)

Note: There is no problem with kde-base/system-config-printer-kde, but the error message above is caused by the ImportError being reported as PyCups missing (even though it IS installed).

Perhaps this should be considered a bug in its own right, since the error message is misleading. A better error message would specifically diagnose that <net-print/cups-1.4 is installed and the installed >=dev-python/pycups-1.9.50 requires >=net-print/cups-1.4. This probably should be sent upstream for correction.
Comment 2 Wormo (RETIRED) gentoo-dev 2010-06-28 05:55:42 UTC
Thanks for reporting this dependency problem -- assigning to pycups maintainers
Comment 3 Maciej Mrozowski gentoo-dev 2010-06-28 16:35:15 UTC
Indeed, this function was added before tagging 1.9.50. I didn't know it's introduced with cups 1.4 (it's nowhere mentioned in pycups commit log).

Fixed with 1.9.51, thanks for reporting!