pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/50418: www/netsurf build fails early



The following reply was made to PR pkg/50418; it has been noted by GNATS.

From: Leonardo Taccari <leot%NetBSD.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/50418: www/netsurf build fails early
Date: Wed, 11 Nov 2015 16:38:43 +0100

 Hello Hauke!
 
 Hauke Fath writes:
 >  On 11/10/15 21:45, Leonardo Taccari wrote:
 >  >   I could not reproduce that.
 >  >   However, I guess that is because in your environment HOST is set to
 >  >   your hostname.
 >  =
 
 >  Sure, what else?  ;)
 >  =
 
 >  >   Can you try to add in pkgsrc/www/netsurf/Makefile the following,
 >  >   please?:
 >  >
 >  >    MAKE_ENV+=3D      HOST=3D"${MACHINE_GNU_ARCH}--${LOWER_OPSYS}"
 >  =
 
 >  Fails dirfferently, but fails:
 >  =
 
 >  [...]
 >  gmake[1]: Leaving directory =
 
 >  '/var/obj/pkgsrc/www/netsurf/work/netsurf-all-3.3/buildsystem'
 >  /usr/pkg/bin/gmake install --directory=3Dlibwapcaplet HOST=3Di486--netb=
 sd =
 
 >  PREFIX=3D/var/obj/pkgsrc/www/netsurf/work/netsurf-all-3.3/inst-gtk DEST=
 DIR=3D
 >  gmake[1]: Entering directory =
 
 >  '/var/obj/pkgsrc/www/netsurf/work/netsurf-all-3.3/libwapcaplet'
 >  gmake[1]: /bin/which: Command not found
 >    COMPILE: src/libwapcaplet.c
 >         AR: =
 
 >  build-i486--netbsdelf-i486--netbsd-release-lib-static/libwapcaplet.a
 >  gmake[1]: /opt/netsurf/i486--netbsd/cross/bin/i486--netbsd-ar: Command =
 
 >  not found
 >  /var/obj/pkgsrc/www/netsurf/work/netsurf-all-3.3/inst-gtk/share/netsurf=
 -buildsystem/makefiles/Makefile.top:400: =
 
 >  recipe for target =
 
 >  'build-i486--netbsdelf-i486--netbsd-release-lib-static/libwapcaplet.a' =
 
 >  failed
 >  gmake[1]: *** =
 
 >  [build-i486--netbsdelf-i486--netbsd-release-lib-static/libwapcaplet.a] =
 
 >  Error 127
 >  gmake[1]: Leaving directory =
 
 >  '/var/obj/pkgsrc/www/netsurf/work/netsurf-all-3.3/libwapcaplet'
 >  [...]
 Thank you for the quick response.
 
 I've tryed to analyze it a bit better and it seems that what happens
 here (but also previously without setting HOST) is that BUILD is
 different to HOST and instead of the branch triggered in
 ${WRKSRC}/buildsystem/makefiles/Makefile.tools:79 the
 ${WRKSRC}/buildsystem/makefiles/Makefile.tools:112 is executed (where
 /bin/which is hardcoded and it seems that there are also other possible
 GCC-isms).
 The simple and less intrusive way to - finally and hopefully - fix it is
 to also add the BUILD variable in the same way we defined the HOST
 variable:
 
  MAKE_ENV+=3D	BUILD=3D"${MACHINE_GNU_ARCH}--${LOWER_OPSYS}"
  MAKE_ENV+=3D	HOST=3D"${MACHINE_GNU_ARCH}--${LOWER_OPSYS}"
 
 
 Please let us know if it will fixes it!
 Ciao,
 L.
 


Home | Main Index | Thread Index | Old Index