[comp.windows.x] broken xmkmf'ed Imakefiles containing MakeDirectories

merlyn@iwarp.intel.com (Randal L. Schwartz) (02/19/91)

OK, so I downloaded the X11R4 distribution just last Thursday.  Never
touched X before (yes, there are still a few of us :-).  Sucked
everything into place, created my shadow directories, and began to
build it for the Sun4 (about 4 hours on a 4/490).  When it worked
(amazingly enough), I built the Sun3 (more like 10 hours) version, and
now I'm working on the Sun386 version (hmm... xload doesn't compile
under Sunos 4.0.3.  Sad...).

I'm amazed at how slick everything went together.  Imakefiles are a
dream!

However, when I went to attack the stuff in contrib, not-so-good.  A
few broken things here and there, but mainly the biggest gripe I have
is that an Imakefile using MakeDirectories() could have *never* worked
with 'xmkmf'.  (Didn't anyone try this out?)

Anyway, enough griping.  Here's the patch, to be applied to
mit/config/Project.tmpl:

################################################## snip
*** Project.tmpl	Mon Dec 18 13:46:46 1989
--- Project.tmpl	Mon Feb 18 22:41:29 1991
***************
*** 384,390 ****
                RGB = rgb			/* assume BINDIR in path */
              FONTC = bdftosnf		/* assume BINDIR in path */
          MKFONTDIR = mkfontdir		/* assume BINDIR in path */
!         MKDIRHIER = BourneShell $(BINDIR)/mkdirhier.sh
  #else
              IMAKE = $(IMAKESRC)/imake
             DEPEND = DependCmd
--- 384,390 ----
                RGB = rgb			/* assume BINDIR in path */
              FONTC = bdftosnf		/* assume BINDIR in path */
          MKFONTDIR = mkfontdir		/* assume BINDIR in path */
!         MKDIRHIER = mkdirhier		/* assume BINDIR in path */
  #else
              IMAKE = $(IMAKESRC)/imake
             DEPEND = DependCmd
################################################## snip

As you can see, if -DUseInstalled, then it was trying to invoke

	/bin/sh /usr/bin/X11/mkdirhier.sh arg arg arg

when in fact, there is no such beast.  It's called:

	/usr/bin/X11/mkdirhier

according to mit/util/scripts/Imakefile.

There.  On to more X-ing. :-)

Just another X hacker to-be,
-- 
/=Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095 ==========\
| on contract to Intel's iWarp project, Beaverton, Oregon, USA, Sol III      |
| merlyn@iwarp.intel.com ...!any-MX-mailer-like-uunet!iwarp.intel.com!merlyn |
\=Cute Quote: "Intel: putting the 'backward' in 'backward compatible'..."====/