Bug 24868

Summary: PATCH to fix kernel build if path to sources contain a dash
Product: Base System Reporter: Andre Albsmeier <Andre.Albsmeier>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.2-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Andre Albsmeier 2001-02-05 14:10:00 UTC
When building a kernel the /sys/kern/makeops.pl script is called to
build .c and .h files from .m files. This fails if the path to
the source tree contains a dash (-).
The makeops.pl fails since it thinks that all input files are options
because the regex matches the dash:

andre@bali:/tmp/bla>perl5 /src/src-4/sys/kern/makeops.pl -h /src/src-4/sys/kern/device_if.m
andre@bali:/tmp/bla>ls -l
andre@bali:/tmp/bla>

Fix: IMHO it is sufficient to change the regex to match only dashes
that are at the beginning of the argument:
How-To-Repeat: 
Put your sources into /src/src-4 and make /usr/src a symlink to it.
Build a kernel.
Comment 1 dirk freebsd_committer freebsd_triage 2001-02-05 23:06:28 UTC
State Changed
From-To: open->closed

Patch committed. Thanks! 

(Dankeschoen 8-)