View previous topic :: View next topic |
Author |
Message |
qbic2005 Tux's lil' helper
Joined: 11 Nov 2005 Posts: 81 Location: Belgium
|
Posted: Fri Feb 05, 2010 3:05 pm Post subject: create new ebuild or use link to get to lib |
|
|
Hi
Got a little question here for the ones with some programming experience...
I run mostly gnome stable and that pulls in bluez.
But I also want to get cwiid working and that package pulls in bluez-lib. Which can not exist on the same system with bluez.
If I understand the other posts well, bluez is actually just the new bluez-lib. So there is a big chance that the necessary funtions still exist.
But if I uninstall bluez-lib and pull in bluez, cwiid complains about "libbluetooth.so.2".
Bluez comes with libbluetooth.so.3 ...
So what I did previously if I had such a case, was making a static link toward the new lib, which worked ... almost always. Dirty? probably.
But I was wondering, this is not very nice, wouldn't it be better to recompile the package against the new lib?
If I create a new ebuild, which refers to bluez instead of bluez-lib, could that do it or am I missing a part
I browsed a bit through the obvious parts of the cwiid source and it only refers to bluetooth.h, hci.h and hci-lib.h, which are all part of bluez also.
thanks |
|
Back to top |
|
|
pianosaurus l33t
Joined: 19 Apr 2004 Posts: 944 Location: Bash$
|
Posted: Sat Feb 06, 2010 3:49 am Post subject: |
|
|
If cwiid is compatible with bluez, compiling against it instead of bluez-lib should be no problem. I don't know how much has changed, but trying it out is pretty easy.
Create a local overlay directory if you don't have one (see man make.conf, /PORTDIR_OVERLAY), create app-misc/cwiid/ inside it and copy the ebuild in there. Modify it, run ebuild cwiid-*.ebuild manifest and re-emerge.
If it works, you should let the overlay-maintainers know, so they can add bluez as an alternative dependency. _________________ PKA Cuber
Please add [SOLVED] to the subject of your original post when you feel that your problem is resolved.
Adopt an unanswered post |
|
Back to top |
|
|
chias Tux's lil' helper
Joined: 06 Nov 2009 Posts: 77 Location: everywhere
|
Posted: Sat Feb 13, 2010 12:26 am Post subject: |
|
|
I get compile errors... it complains about an undefined reference to hci_remote_name when compiling wmgui
edit: This is after attempting to compile both from tarball and portage overlay |
|
Back to top |
|
|
chias Tux's lil' helper
Joined: 06 Nov 2009 Posts: 77 Location: everywhere
|
Posted: Sat Feb 13, 2010 12:37 am Post subject: |
|
|
Got it working!
The easiest way is to just download the source tarball, edit libcwiid/bluetooth.c and change line 125 from "hci_remote_name" to "hci_read_remote_name". Then do a ./configure, make, make install.
Important: If you're 64-bit you'll have to "./configure --libdir=/usr/lib64" or it will install fine but fail on run with the error "ImportError: No module named cwiid"
Alternatively, get the portage overlay, edit the ebuilds to use bluez instead of bluez-utils, rebuild the manifests, and include this patch:
http://abstrakraft.org/cwiid/raw-attachment/ticket/74/hci_read.patch
Not exactly sure how you'd go about doing the libdir thing with this method though...
Also, remember to enable UINPUT in your kernel: Device Drivers -> Input Device Support -> Miscellaneous Devices -> User level driver support
Hope that helps |
|
Back to top |
|
|
yngwin Retired Dev
Joined: 19 Dec 2002 Posts: 4572 Location: Suzhou, China
|
Posted: Sat Feb 13, 2010 12:28 pm Post subject: |
|
|
chias wrote: | Not exactly sure how you'd go about doing the libdir thing with this method though... |
Code: | inherit multilib
...
econf --libdir=/usr/$(get_libdir)
|
_________________ "Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|