Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 382579 - pycups-1.9.58 fails to compile with 'doc' useflag
Summary: pycups-1.9.58 fails to compile with 'doc' useflag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Maciej Mrozowski
URL:
Whiteboard:
Keywords:
: 382577 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-09-11 08:57 UTC by Geoff Madden
Modified: 2011-09-13 20:00 UTC (History)
3 users (show)

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


Attachments
emerge info + -pqv result for pycups-1.9.8 (emerge.inf,5.23 KB, text/plain)
2011-09-11 09:00 UTC, Geoff Madden
Details
build log for x86 (build.log,55.98 KB, text/plain)
2011-09-11 09:11 UTC, Geoff Madden
Details
bzipped environment file for x86 (environment.tar.bz2,34.69 KB, application/octet-stream)
2011-09-11 09:43 UTC, Geoff Madden
Details
patch to ebuild (pycups-1.9.58-py2.patch,527 bytes, patch)
2011-09-11 10:48 UTC, Chris Mayo
Details | Diff
build.log for dev-python/pycups-1.9.57 (build.log,57.50 KB, text/plain)
2011-09-11 18:41 UTC, Chris Mayo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Geoff Madden 2011-09-11 08:57:57 UTC
The build log will explain it all . Have reinstalled cups,to no availe
Comment 1 Geoff Madden 2011-09-11 09:00:16 UTC
Created attachment 286097 [details]
emerge info + -pqv result for pycups-1.9.8
Comment 2 Geoff Madden 2011-09-11 09:11:06 UTC
Created attachment 286101 [details]
build log for x86
Comment 3 Geoff Madden 2011-09-11 09:43:30 UTC
Created attachment 286103 [details]
bzipped environment file for x86
Comment 4 Chris Mayo 2011-09-11 10:48:03 UTC
Created attachment 286111 [details, diff]
patch to ebuild

Attached patch gets pycups-1.9.58 emerged when Python3 is the default interpreter for me.
Comment 5 Markos Chandras (RETIRED) gentoo-dev 2011-09-11 13:08:00 UTC
*** Bug 382577 has been marked as a duplicate of this bug. ***
Comment 6 Rafał Mużyło 2011-09-11 13:40:02 UTC
The patch from comment 4 is wrong,...
but so is the ebuild.

There has been a slight change in the Makefile between .57 and .58 that breaks the way docs are handled.
Now, upon 'make doc' rebuild of the module is in effect forced.

As in that Makefile it's hardcoded to 'python setup.py build', it obviously fails for this ebuild.
Comment 7 Chris Mayo 2011-09-11 18:41:23 UTC
Created attachment 286145 [details]
build.log for dev-python/pycups-1.9.57

pycups-1.9.57 also fails for me with USE="doc" and Python3
Comment 8 Geoff Madden 2011-09-12 06:04:20 UTC
I can confirm the use of -doc allows the compile to complete. Also system-config-printer has installed . So completes another update.   Geoff
Comment 9 Rafał Mużyło 2011-09-12 13:47:27 UTC
@comment 8: could you learn to not close bugs that aren't fixed ?
Neither "workaround available" nor "works for you" equals "fixed".
Comment 10 Geoff Madden 2011-09-12 15:39:47 UTC
sorry about that ,thought about it after hitting the save changes
Geoff
Comment 11 Maciej Mrozowski gentoo-dev 2011-09-12 22:28:49 UTC
PyCups does not compile against python3 and the thing is it shouldn't even attempt to.
Thanks for reporting.
Comment 12 Rafał Mużyło 2011-09-13 03:01:39 UTC
@comment 11: while python.eclass is a bit crazy in a few places, the solution used is pretty much a regression, as now pycups will only be installed for one python slot.

Not that *I* see a need for older than 2.7 slots, but other people might.
Comment 13 Maciej Mrozowski gentoo-dev 2011-09-13 18:19:30 UTC
pycups is in dependency chain of system-config-printer (scp ebuild does not support python ABIs) - and probably scp is its only reverse runtime dependency so nobody should really care.
Also, I object to adding 'python API support' to ebuilds when proper implementation (ABI deps) in eclass is not yet available.
Comment 14 Arfrever Frehtes Taifersar Arahesis 2011-09-13 20:00:44 UTC
A solution, which does not require e.g. patching Makefile, is to call python_pkg_setup() in pkg_setup(). This solution is available in dev-python/pycups in Progress Overlay.