hal truncating block.device on freebsd-8.0rc1

J.R. Oldroyd fbsd at opal.com
Sat Oct 24 20:03:11 UTC 2009


On Sat, 24 Oct 2009 02:35:42 -0400, Joe Marcus Clarke <marcus at marcuscom.com> wrote:
> > 
> > I have a simple patch to the conftxt parser that looks for LABEL
> > lines and appends fields until the "i" field is in the right
> > place.  This fixes things for this camera.
> > 

> Thanks.  I believe this will work given that the format of conftxt looks
> to be consistent across 6.X, 7.X, 8.X, and 9.X.  I've modified the patch
> some for safety and style, and added it to hal-0.5.13 which will be
> committed with GNOME 2.28 when 8.0 is released.
> 
> Joe
> 

You're welcome.

Your earlier note about parsing confxml would probably be the
correct, long-term solution.  This solution will not properly
handle names with multiple spaces or with tabs - the parser will
eliminate those and leave just single spaces.

But I don't have time to write an xml parser!  And I think this
solution is an improvement over not having it at all.  I suspect
devices that use multiple spaces or tabs are rare.

Don't forget to update the documentation at that URL you sent me
too.

	-jr


More information about the freebsd-gnome mailing list