ports/149250: /etc/rc: WARNING: $wnn_enable is not set properly - see rc.conf(5).

Noritoshi Demizu demizu at dd.iij4u.or.jp
Tue Aug 3 20:50:07 UTC 2010


>Number:         149250
>Category:       ports
>Synopsis:       /etc/rc: WARNING: $wnn_enable is not set properly - see rc.conf(5).
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 03 20:50:06 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Noritoshi Demizu
>Release:        FreeBSD 8.1R
>Organization:
>Environment:
FreeBSD lotus 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010     root at almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
I installed ja-FreeWnn-server-1.1.1.a021_8 with some other ports software using sysinstall.
After they are installed successfuly, I rebooted the machine without modifying /etc/rc.conf.
(I don't remember the reason why I rebooted the machine.)

Then, I saw the following message.

  /etc/rc: WARNING: $wnn_enable is not set properly - see rc.conf(5).

After I added wnn_enable="YES" into /etc/rc.conf, the message disappeared.

But I think the message should not be shown when wnn_enable is not set in /etc/rc.conf
because I think the message makes people confused.
>How-To-Repeat:
Install ja-FreeWnn-server-1.1.1.a021_8 from ports.
Then just reboot the machine.
>Fix:
The attached patch fixes this problem.

Patch attached with submission follows:

--- ../wnn-ORG	2010-06-08 01:30:54.000000000 +0900
+++ wnn	2010-08-04 04:31:51.000000000 +0900
@@ -31,4 +31,7 @@
 }
 
 load_rc_config ${name}
+
+: ${wnn_enable:=NO}
+
 run_rc_command $1


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list