[kde-freebsd] [PATCH/RFC] Fixing kinfocenter's usb support upstream

Raphael Kubo da Costa kubito at gmail.com
Mon Oct 5 00:02:10 CEST 2009


On Sun, 4 Oct 2009 22:44:35 +1100
Dima Panov <Fluffy at fluffy.khv.ru> wrote:

> On Sunday 04 October 2009 17:19:11 Raphael Kubo da Costa wrote:
> > 2009/10/4 Raphael Kubo da Costa <kubito at gmail.com>:
> > > Hey there,
> > >
> > > While I was building KDE trunk here today on 8.0-RC1, compilation
> > > would fail on kdebase/apps/kinfocenter/usbview because 8.0 has
> > > got a completely reworked USB stack from what I saw.
> > >
> > > I then found two patches in area51 (extra-patch-libusb20 and
> > > patch-apps_kinfocenter_usbview_usbdevices.h from
> > > KDE/x11/kdebase4) that fixed the issue in the port. After that I
> > > thought "why not push these upstream?".
> > >
> > > The attached patch (which must be applied using
> > > kdebase/apps/kinfocenter/usbview as the base directory) is what I
> > > intend to commit to KDE's trunk (I don't know if it should be
> > > backported): it basically integrates Fluffy's patches with the
> > > rest of the code, allowing things to compile on previous FreeBSD
> > > releases as well (pre-8.0).
> > >
> > > So I'd like to ask for some things here:
> > >
> > >  * Check if the patch looks OK for you;
> 
> Code seems to be fine.
> 
> > >  * If possible, test it on a pre-8.0 system (this is important);
> 
> Will do this as soon as possible.
> 
> > >  * Should it be backported to 4.3?
> 
> Yep. And, may be, request reroll for 4.3.2 (if it possible now) with
> patch included?
> 
> > >  * Fluffy: I've created GPLv2+ code based on your patch and Hans
> > > Petter Semalsky's; is it OK?
> 	  ^^^^^^^^
> Hans Petter Selasky :) 
Hehe, I always confuse his name.

> While all KDE is GPL'ed, it's ok. 
> BSD license allows such use.
Actually, KDE isn't all GPL'ed (GPL code isn't even allowed in
kdelibs), but this particular program seems to be GPL-licensed.

> And while I'm a committer, using fluffy at freebsd.org more resposible :)
Done.

> > I've just noticed the CMake check isn't working properly, which
> > always leads to crashes. Until I fix it, I'd recommend waiting ;(
> 
> Ok, wait now :)
OK, the attached patch seems to compile, link and work. However, no
devices were listed -- libusb20_be_device_foreach always returns NULL,
and at least THeLooX on IRC experienced the same issue with his KDE
from ports.

Thanks,
Raphael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-build-on-FreeBSD-8.0.patch
Type: text/x-patch
Size: 0 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-freebsd/attachments/20091004/157d373d/attachment-0001.patch 


More information about the kde-freebsd mailing list