Subject: Re: self bootstrap on Interix 3.5
To: None <sjg@juniper.net>
From: OBATA Akio <obata@lins.jp>
List: pkgsrc-users
Date: 04/13/2006 17:18:34
On Thu, 13 Apr 2006 17:02:44, Simon Gerraty wrote:
> >If using NFS on Interix, sometime change ${MAKEFILE} from "Makefile"
> >to "makefile" even if using "Makefile".
> 
> Oh I see... this is due to the fact that when no makefile is specified,
> make looks for 'makefile' before 'Makefile', which btw isn't something I'd
> support changing - since I for one rely on it.  Anyway, you end up with
> MAKEFILE=makefile even though the file was actually Makefile.
> 
> This is presumably only "interesting" when mixing a case insensitive fs
> with a case sensitive one.  Did you say that the NFS client can be
> configured to do case sensitivity correctly?  If so, perhaps adding that
> info to the PR you mentioned would be very helpful.

Very, Very strange, I can't understand this behaviour.
By my modifyed bmake (remove hack, set ${MAKEFILE}),

obata@POM[/usr/pkgsrc/pkgtools/digest] bmake build
===> Checking for vulnerabilities in digest-20060302
===> Extracting for digest-20060302
===> Patching for digest-20060302
===> Overriding tools for digest-20060302
===> Creating toolchain wrappers for digest-20060302
===> Configuring for digest-20060302
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking build system type... i586-pc-interix3
checking host system type... i386-pc-interix3
checking whether make sets $(MAKE)... yes
>>>>>>>>>>> (snip) <<<<<<<<<<
checking for setlocale... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
===> Building for digest-20060302
gcc -D_ALL_SOURCE -DHAVE_CONFIG_H -I. -I. -DHOST=\"i386-pc-interix3\" -DVERSION=
\"20060302\"  -O -c bits.c -o bits.o
gcc -D_ALL_SOURCE -O -Wl,-R/usr/pkg/lib -o bits bits.o
./bits digest-types.h
gcc -D_ALL_SOURCE -DHAVE_CONFIG_H -I. -I. -DHOST=\"i386-pc-interix3\" -DVERSION=
\"20060302\"  -O -c digest.c -o digest.o
>>>>>>>>>>> (snip) <<<<<<<<<<
gcc -D_ALL_SOURCE -DHAVE_CONFIG_H -I. -I. -DHOST=\"i386-pc-interix3\" -DVERSION=
\"20060302\"  -O -c whirlpool.c -o whirlpool.o
gcc -D_ALL_SOURCE -O -Wl,-R/usr/pkg/lib -o digest digest.o md5c.o rmd160.o rmd16
0hl.o sha2.o sha2hl.o  md5hl.o sha1.o sha1hl.o tiger.o whirlpool.o
=> Unwrapping files-to-be-installed.
obata@POM[/usr/pkgsrc/pkgtools/digest] bmake install
===> Checking for vulnerabilities in digest-20060302
===> Installing for digest-20060302
bmake: cannot open makefile.

bmake: stopped in /var/tmp/obj/pkgsrc/pkgtools/digest/default/digest-20060302
*** Error code 2

Stop.
bmake: stopped in /net/MIKI/usr/pkgsrc/pkgtools/digest
*** Error code 1

Stop.
bmake: stopped in /net/MIKI/usr/pkgsrc/pkgtools/digest
*** Error code 1

Stop.
bmake: stopped in /net/MIKI/usr/pkgsrc/pkgtools/digest
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/pkgtools/digest
obata@POM[/usr/pkgsrc/pkgtools/digest] bmake -f makefile
bmake: cannot open makefile.

bmake: stopped in /usr/pkgsrc/pkgtools/digest
obata@POM[/usr/pkgsrc/pkgtools/digest] bmake -f Makefile install
===> Checking for vulnerabilities in digest-20060302
===> Installing for digest-20060302
bmake: cannot open makefile.

bmake: stopped in /var/tmp/obj/pkgsrc/pkgtools/digest/default/digest-20060302
*** Error code 2

Stop.
bmake: stopped in /net/MIKI/usr/pkgsrc/pkgtools/digest
*** Error code 1

Stop.
bmake: stopped in /net/MIKI/usr/pkgsrc/pkgtools/digest
*** Error code 1

Stop.
bmake: stopped in /net/MIKI/usr/pkgsrc/pkgtools/digest
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/pkgtools/digest
obata@POM[/usr/pkgsrc/pkgtools/digest]



In prior build stage, works fine ( ${MAKEFILE} == Makefile).
But install stage, wrong ( ${MKAEFILE} == makefile)

File system is case-sensitive, because "bmake -f makefile" is failed.
Even though specify Makefile as "bmake -f Makefile", ${MAKEFILE} == makefile ???

--
"Of course I love NetBSD":-)
OBATA Akio / obata@lins.jp