Subject: imake files on Linux assume GNU make and break build of audio/nas
To: None <tech-pkg@NetBSD.org>
From: Klaus Heinz <k.heinz.jul.sechs@kh-22.de>
List: tech-pkg
Date: 07/22/2006 19:59:42
Hi,

at the moment I cannot build audio/nas on Mandrake 2006.0, the configure
stage stops (after _many_ warnings about "InstallAppDefFiles" and
"SharedLibX") here:

  make includes
  including in ./include...
  usage: bmake [-BeikNnqrstWX] [-D variable] [-d flags] [-f makefile]
              [-I directory] [-J private] [-j max_jobs] [-m directory] [-T file]
              [-V variable] [variable=value] [target ...]
  including in ./server...
  usage: bmake [-BeikNnqrstWX] [-D variable] [-d flags] [-f makefile]
              [-I directory] [-J private] [-j max_jobs] [-m directory] [-T file]
              [-V variable] [variable=value] [target ...]
  ...

The problem is caused by MAKE=bmake and the line

  $(MAKE) -C $$i $(MFLAGS) $(PARALLELMFLAGS)  includes;

Imake generates this line according to the macro MakeNamedTargetSubdir,
defined in /usr/X11R6/lib/X11/config/linux.cf and thus preventing the more
general definition in /usr/X11R6/lib/X11/config/Imake.rules.

Should we change pkgxmkmf on Linux to always use GNU make,  assuming,
like linux.cf, that it will always be available as "make" or
"/usr/bin/make"?

At the moment I work around the problem by copying
/usr/X11R6/lib/X11/config/linux.cf to /opt/pkg/lib/X11/config and deleting
the definition of MakeNamedTargetSubdir.

ciao
     Klaus