Subject: install/30939: "bmake readme" in pkgsrc root fails on IRIX
To: None <install-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <stuart@zeus.com>
List: netbsd-bugs
Date: 08/08/2005 09:27:01
>Number:         30939
>Category:       install
>Synopsis:       "bmake readme" in pkgsrc root fails on IRIX
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    install-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 08 09:27:00 +0000 2005
>Originator:     Stuart Shelton
>Release:        n/a
>Organization:
>Environment:
>Description:
Doing a "bmake readme" in the pkgsrc root outputs:

> printf string <LI><STRONG> apache\\&lt;1.3.14 has a re ... too long
> Input record number 82410, file /tmp/mkreadme/database
> Source line number 369
> Error:  genreadme.awk failed to create README.html files
> *** Error code 1
> 
> Stop.

Hmm - now I'm wondering if this is an OS issue.  IRIX seems to
want to only accept a very small number of command-line arguments, and
I'm not sure how (or if) I can alter this.  For example, doing a "grep
foo *" in a directory with even only a few hundred items will result in
"Arg list too long".  Is this limit perhaps being reached here?

> bmake: "/usr/bsd/src/x11/fox/Makefile" line 22: warning: String comparison
operator should be either == or !=
> bmake: "/usr/bsd/src/x11/fox/Makefile" line 22: Malformed conditional
((${OPSYS} == "NetBSD") && (${OS_VERSION:R} < 3))
> bmake: "/usr/bsd/src/x11/fox/Makefile" line 22: Missing dependency
operator
> bmake: "/usr/bsd/src/x11/fox/Makefile" line 24: if-less endif
> bmake: "/usr/bsd/src/x11/fox/Makefile" line 24: Need an operator
> bmake: Fatal errors encountered -- cannot continue

Oops...

> cc-1035 cc: WARNING File = /usr/include/sys/endian.h, Line = 32
>   #error directive:  "<standards.h> must be included before <sys/endian.h>."
> 
>   #error "<standards.h> must be included before <sys/endian.h>."
>    ^

... repeatably.  An OS-headers problem rather than a package problem I
guess, but is there a standard (e.g. won't be removed on a "bmake
clean") way to alter the package to add the additional include?
>How-To-Repeat:
"bmake readme" on IRIX
>Fix:
Could parameters to genreadme.awk be passed in chunks, rather than all-at-once?