tech-pkg archive

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

Re: building devel/bmake on case-insensitive filesystems



> On Aug 12, 2017, at 5:28 PM, Simon J. Gerraty <sjg%juniper.net@localhost> wrote:
> 
>> I have long had trouble with devel/bmake not defining MAKE_VERSION on
>> MacOS, and have finally figured out why.  Among the files in
>> devel/bmake/files are the following:
> 
> A simple change to make-bootstrap.sh.in should do:
> 
> diff -r 7633d7592317 bmake/make-bootstrap.sh.in
> --- a/bmake/make-bootstrap.sh.in	Sat Aug 12 14:46:24 2017 -0700
> +++ b/bmake/make-bootstrap.sh.in	Sat Aug 12 16:27:56 2017 -0700
> @@ -13,7 +13,7 @@
> CC="@CC@"
> CFLAGS="@CFLAGS@ -I. -I${srcdir} @DEFS@ @CPPFLAGS@ -DMAKE_NATIVE ${XDEFS} -DBMAKE_PATH_MAX=@bmake_path_max@"
> 
> -MAKE_VERSION=`sed -n '/^_MAKE_VERSION=/s,.*=[^0-9]*,,p' $srcdir/Makefile`
> +MAKE_VERSION=`sed -n '/^_MAKE_VERSION=/s,.*=[^0-9]*,,p' $srcdir/[Mm]akefile`
> 
> MDEFS="-DMAKE_VERSION=\"$MAKE_VERSION\" \
> -D@force_machine@MACHINE=\"@machine@\" -DMACHINE_ARCH=\"@machine_arch@\” \

This will not work.  At least the way pkgsrc is set up, both Makefile and makefile.in are copied into ${WRKSRC}.  Running configure converts makefile.in into makefile, which of course overwrites Makefile on a case-insensitive filesystem.  Because makefile.in has no definition for MAKE_VERSION, neither does the resulting makefile, which is what just overwrote Makefile and is what make-bootstrap.sh sees.

Cheers,
Brook



Home | Main Index | Thread Index | Old Index