Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 434448 - app-text/calibre-0.8.68 should depend on virtual/libusb:1 instead of virtual/libusb:0
Summary: app-text/calibre-0.8.68 should depend on virtual/libusb:1 instead of virtual/...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Zac Medico
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2012-09-09 13:21 UTC by Hans
Modified: 2012-09-09 17:30 UTC (History)
0 users

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


Attachments
emerge --info calibre (emerge.info,3.56 KB, text/plain)
2012-09-09 13:21 UTC, Hans
Details
build.log (build.log,32.47 KB, text/plain)
2012-09-09 13:21 UTC, Hans
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hans 2012-09-09 13:21:35 UTC
Created attachment 323294 [details]
emerge --info calibre

app-text/calibre-0.8.68 should depend on virtual/libusb:1 instead of libusb:0.

Reasons:

a) $ readelf -d  /usr/lib64/calibre/calibre/plugins/libusb.so

Dynamic section at offset 0x1d38 contains 24 entries:
  Tag        Type                         Name/Value
 0x0000000000000001 (NEEDED)             Shared library: [libpython2.7.so.1.0]
 ->0x0000000000000001 (NEEDED)             Shared library: [libusb-1.0.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
[...]

b) Changelog.old.yaml says:

- version: 0.6.27
  date: 2009-12-11
[...]
  - title: "Linux device detection: Switch to using libusb1 to enumerate devices on system."
      description: >
        "If you are building for source, the libusb1 headers and library are now required at
        compile time."
[...]

c) most importantly, the build fails without it (but with libusb:0 present):
[...]
####### Building extension libusb #######
gcc -O2 -pipe -march=native -fomit-frame-pointer -fPIC -O2 -pipe -march=native -fomit-frame-pointer -pthread -I/usr/include/python2.7 -c /var/tmp/portage/app-text/calibre-0.8.68/work/calibre/src/calibre/devices/libusb/libusb.c -o /var/tmp/portage/app-text/calibre-0.8.68/work/calibre/build/objects/libusb/libusb.o
/var/tmp/portage/app-text/calibre-0.8.68/work/calibre/src/calibre/devices/libusb/libusb.c:11:31: fatal error: libusb-1.0/libusb.h: No such file or directory
compilation terminated.
[...]

Thanks for your work!
Comment 1 Hans 2012-09-09 13:21:57 UTC
Created attachment 323296 [details]
build.log
Comment 2 Zac Medico gentoo-dev 2012-09-09 17:30:54 UTC
Thanks, the ebuilds are fixed in cvs now.