>Number: 181436
>Category: bin
>Synopsis: /usr/bin/file cannot detect BSD makefiles
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Aug 20 18:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Slaven Rezic
>Release: FreeBSD 9.0-RELEASE amd64
>Organization:
www.rezic.de
>Environment:
System: FreeBSD cvrsnica.herceg.de 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan
3 07:46:30 UTC 2012 [email protected]:/usr/obj/usr/src/sys/GENERIC
amd64
The behavior is visible with FreeBSD 9.0 (file-5.03) and
FreeBSD 10.0 (file-5.11).
>Description:
Most BSD makefiles are not recognized by /usr/bin/file as
such. Worse, if less is configured to use lesspipe from the
ports (misc/lesspipe), then many BSD makefiles are recognized
as troff files, causing unreadable input.
>How-To-Repeat:
For example:
cd /usr/share/mk
/usr/bin/file * | grep -i troff | wc -l
Or configure less to use lesspipe as per lesspipe's manpage
(see FILTER ACTIVATION section) and try to use less on any of
misrecognized BSD makefiles.
>Fix:
Maybe adding keywords as ".if", ".include", ".else" etc. as
BSD makefile keywords before the troff section could help.
>Release-Note:
>Audit-Trail:
>Unformatted:
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"