From jbeich@tormail.org  Mon Oct 22 15:29:19 2012
Return-Path: <jbeich@tormail.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 5116DEC8
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 22 Oct 2012 15:29:19 +0000 (UTC)
	(envelope-from jbeich@tormail.org)
Received: from outgoing.tormail.org (outgoing.tormail.org [82.221.96.22])
	by mx1.freebsd.org (Postfix) with ESMTP id E5F448FC08
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 22 Oct 2012 15:29:18 +0000 (UTC)
Received: from localhost ([127.0.0.1] helo=internal.tormail.org)
	by outgoing.tormail.org with esmtp (Exim 4.72)
	(envelope-from <jbeich@tormail.org>)
	id 1TQJwL-0001Yg-FU
	for FreeBSD-gnats-submit@freebsd.org; Mon, 22 Oct 2012 19:29:17 +0400
Received: from jbeich by internal.tormail.org with local (Exim 4.63)
	(envelope-from <jbeich@tormail.org>)
	id 1TQJuA-000CBc-4c
	for FreeBSD-gnats-submit@freebsd.org; Mon, 22 Oct 2012 15:27:03 +0000
Message-Id: <1TQJuA-000CBc-4c@internal.tormail.org>
Date: Mon, 22 Oct 2012 14:26:59 -0100
From: Jan Beich <jbeich@tormail.org>
To: FreeBSD-gnats-submit@freebsd.org
Subject: devd(8) skips some regexps with libc++
X-GNATS-Notify: dim@freebsd.org

>Number:         172958
>Category:       bin
>Synopsis:       devd(8) skips some regexps with libc++
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dim
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 22 15:30:02 UTC 2012
>Closed-Date:    Wed Dec 19 12:20:58 UTC 2012
>Last-Modified:  Wed Dec 19 12:20:58 UTC 2012
>Originator:     Jan Beich
>Release:        FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
modular kernel with usb stuff loaded on-demand
>Description:
When compiled with libc++ devd(8) fails to match rules (at least) in
/etc/devd/usb.conf and kldload respective modules.

  --- devd -dD (libstdc++)
  +++ devd -dD (libc++)
  @@ -55,557 +55,7 @@
   Processing nomatch event
   Testing bus=uhub3 against ^uhub[0-9]+, invert=0
   Testing mode=host against ^host, invert=0
  -Testing vendor=0x045e against ^0x11f7, invert=0
  -Testing bus=uhub3 against ^uhub[0-9]+, invert=0
  -Testing mode=host against ^host, invert=0
  [...]
  -Testing intclass=0x03 against ^0x02, invert=0
  -Testing bus=uhub3 against ^uhub[0-9]+, invert=0
  -Testing mode=host against ^host, invert=0
  -Testing intclass=0x03 against ^0x02, invert=0
  +Testing vendor=0x045e against ^0x0cad, invert=0
   Testing bus=uhub3 against ^uhub[0-9]+, invert=0
   Testing mode=host against ^host, invert=0
   Testing intclass=0x03 against ^0x03, invert=0
  -Testing intsubclass=0x01 against ^0x01, invert=0
  -Testing intprotocol=0x01 against ^0x01, invert=0
  -Executing 'kldload -n ukbd'
  -Popping table
>How-To-Repeat:
1. build sbin/devd with CXXFLAGS+=-stdlib=libc++
2. compile out USB support in kernel
3. add USB *hci drivers to kld_list in rc.conf
4. install new kernel/devd and reboot
5. check if ukbd/ums/etc are loaded when reaching multi-user mode
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->dim 
Responsible-Changed-By: dim 
Responsible-Changed-When: Wed Dec 5 20:24:42 UTC 2012 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=172958 
State-Changed-From-To: open->patched 
State-Changed-By: dim 
State-Changed-When: Mon Dec 10 11:23:02 UTC 2012 
State-Changed-Why:  
Fixed in head, in r243907.  The fix will be MFC'd after two weeks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=172958 
State-Changed-From-To: patched->closed 
State-Changed-By: dim 
State-Changed-When: Wed Dec 19 12:20:29 UTC 2012 
State-Changed-Why:  
Fix has been merged to stable/9, stable/8 and stable/7. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=172958 
>Unformatted:
