Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 287492 - Failed to emerge app-text/calibre-0.6.16 - PoDoFo not found on your system
Summary: Failed to emerge app-text/calibre-0.6.16 - PoDoFo not found on your system
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Zac Medico
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2009-10-03 12:50 UTC by saft
Modified: 2009-10-15 21:32 UTC (History)
0 users

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


Attachments
emerge --info (emergeinfo,19.33 KB, text/plain)
2009-10-03 12:52 UTC, saft
Details
emerge faillog (build.log,9.54 KB, text/plain)
2009-10-03 12:55 UTC, saft
Details
calibre 0.6.16 patch for optional podofo build (podofo_optional.patch,817 bytes, patch)
2009-10-08 16:54 UTC, thejudge
Details | Diff
Ebuild patch with new use flag podofo (calibre-0.6.17.ebuild.patch,573 bytes, patch)
2009-10-15 17:29 UTC, thejudge
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description saft 2009-10-03 12:50:52 UTC
Updating calibre from 0.6.11 to 0.6.11 fails with multiple errormsgs.:

Traceback (most recent call last):
  File "setup.py", line 99, in <module>
    sys.exit(main())                   
  File "setup.py", line 85, in main    
    command.run_all(opts)              
  File "/var/tmp/portage/app-text/calibre-0.6.16/work/calibre/setup/__init__.py", line 158, in run_all                                                                                              
    self.run_cmd(self, opts)                                                                      
  File "/var/tmp/portage/app-text/calibre-0.6.16/work/calibre/setup/__init__.py", line 154, in run_cmd                                                                                              
    cmd.run(opts)                                                                                 
  File "/var/tmp/portage/app-text/calibre-0.6.16/work/calibre/setup/extensions.py", line 226, in run                                                                                                
    raise Exception(ext.error)                                                                    
Exception: ('PoDoFo not found on your system. Various PDF related', ' functionality will not work. Use the PODOFO_INC_DIR and', ' PODOFO_LIB_DIR environment variables.')                           
 *                                                                                                
 * ERROR: app-text/calibre-0.6.16 failed.                                                         
 * Call stack:                                                                                    
 *               ebuild.sh, line   49:  Called src_compile                                        
 *             environment, line 3029:  Called distutils_src_compile                              
 *             environment, line  743:  Called die                                                
 * The specific snippet of code:                                                                  
 *           ${python} setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" build "$@" || die "Building failed";                                                                                               
 *  The die message:                                                                              
 *   Building failed



Reproducible: Always

Steps to Reproduce:
emerge calibre
Actual Results:  
fails to emerge

Expected Results:  
emerge ;)
Comment 1 saft 2009-10-03 12:52:52 UTC
Created attachment 205913 [details]
emerge --info
Comment 2 saft 2009-10-03 12:55:41 UTC
Created attachment 205914 [details]
emerge faillog
Comment 3 Zac Medico gentoo-dev 2009-10-03 21:11:19 UTC
This missing dependency is added in calibre-0.6.16-r1. Thanks for reporting.
Comment 4 thejudge 2009-10-08 16:53:04 UTC
(In reply to comment #3)
> This missing dependency is added in calibre-0.6.16-r1. Thanks for reporting.
> 
Actually that podofo error raised on an optional extension is an upstream bug which was fixed in the trunk and will be in the next version. I fixed my 0.6.16 ebuild with the attached patch on the source. Would be nice to remove that dependency, thanks.
Comment 5 thejudge 2009-10-08 16:54:43 UTC
Created attachment 206463 [details, diff]
calibre 0.6.16 patch for optional podofo build
Comment 6 Zac Medico gentoo-dev 2009-10-08 19:39:47 UTC
(In reply to comment #5)
> Created an attachment (id=206463) [details]
> calibre 0.6.16 patch for optional podofo build

It would be better if we added IUSE="podofo" forcefully disabled it if that USE flag isn't enabled. For example, this is how app-office/scribus in the kde-testing overlay is supposed to work.
Comment 7 thejudge 2009-10-15 17:29:34 UTC
Created attachment 207226 [details, diff]
Ebuild patch with new use flag podofo

Haven't found that ebuild you mentioned, would this be something like the changes in the attached patch? I like the idea of a use flag, gives more control.
Comment 8 Zac Medico gentoo-dev 2009-10-15 21:32:31 UTC
(In reply to comment #7)
> Created an attachment (id=207226) [details]
> Ebuild patch with new use flag podofo
> 
> Haven't found that ebuild you mentioned, would this be something like the
> changes in the attached patch? I like the idea of a use flag, gives more
> control.

That's good, but we also should modify the build system, to ensure that the podofo binding isn't built when podofo happens to be installed but USE=podofo is disabled.