Subject: Re: pkg/13957: 'make install' fails in www/arena
To: Ryo HAYASAKA <ryoh@jaist.ac.jp>
From: Frederick Bruckman <fredb@immanent.net>
List: tech-pkg
Date: 09/20/2001 15:18:48
On Fri, 21 Sep 2001, Ryo HAYASAKA wrote:

> From: Frederick Bruckman <fredb@immanent.net>
> Subject: Re: pkg/13957: 'make install' fails in www/arena
> Date: Thu, 20 Sep 2001 13:54:42 -0500 (CDT)
>
> > >  $ make -V CONFIGURE_ARGS -V MACHINE_GNU_PLATFORM -V LOWER_OPSYS
> > >  --without-debug --with-arenarc-dir=${LOCALBASE}/etc --with-libwww-config-h-dir=${WRKDIR} --with-libwww-include=${LOCALBASE}/include/w3c-libwww --with-libwww-libdir=${LOCALBASE}/lib --host=${MACHINE_GNU_PLATFORM} --prefix=${PREFIX}
> > >  ${MACHINE_GNU_ARCH}--netbsdelf
> > >  netbsd
> > Thank you. This is truly bizarre, as a review of the cvs record shows
> > that MACHINE_GNU_ARCH has been set to
>        ^^^^^^^^^^^^^^^^
> Typo?  Is it MACHINE_GNU_PLATFORM?

Yes.

> > ${LOWER_ARCH}-${LOWER_VENDOR}-${LOWER_OPSYS} in bsd.prefs.mk, almost
> > since the day it was created in May, 1999. Are you setting
> > MACHINE_GNU_ARCH in your environment for some reason?
>
> No, I am setting no sepecial value for MACHINE_GNU_PLATFORM in my
> environment.
>
> So, bsd.own.mk contains the following code:
>
> # In order to identify NetBSD to GNU packages, we sometimes need
> # an "elf" tag for historically a.out platforms.
> .if ${OBJECT_FMT} == "ELF" && \
>     (${MACHINE_ARCH} == "arm" || \
>      ${MACHINE_ARCH} == "i386" || \
>      ${MACHINE_ARCH} == "m68k" || \
>      ${MACHINE_ARCH} == "sparc" || \
>      ${MACHINE_ARCH} == "vax")
> MACHINE_GNU_PLATFORM=${MACHINE_GNU_ARCH}--netbsdelf
> .else
> MACHINE_GNU_PLATFORM=${MACHINE_GNU_ARCH}--netbsd
> .endif
>
> I suspect this overwrites MACHINE_GNU_PLATFORM setting in
> bsd.prefs.mk, don't you?

Yes.

Frederick