Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!samsung!munnari.oz.au!sirius.ucs.adelaide.edu.au!UCS.Adelaide.EDU.AU!mrp From: mrp@UCS.Adelaide.EDU.AU (Mark Prior) Newsgroups: comp.windows.x Subject: Bug with imake (I think) Message-ID: <1244@sirius.ucs.adelaide.edu.au> Date: 31 Jul 90 07:17:17 GMT Sender: news@ucs.adelaide.edu.au Reply-To: mrp@UCS.Adelaide.EDU.AU (Mark Prior) Organization: University Computing Services, University of Adelaide Lines: 63 Followup-To: Keywords: In my continuous quest to make X happily live in /usr/local/... (and to install the various fixes) I have run into what looks like a bug. In mit/clients/xdm/Imakefile there is a section of "code" /**/# /**/# Special definitions for compiling default resources; these parameters /**/# should be set in util/imake.includes/site.def or the appropriate .macros /**/# file in that directory. The lack of initial spaces is to prevent imake /**/# from accidently turning the lines into rules by putting a leading tab. /**/# /**/# Do NOT change these lines! /**/# DEF_SERVER = $(BINDIR)/X DEF_USER_PATH = DefaultUserPath /* no leading spaces or imake will */ DEF_SYSTEM_PATH = DefaultSystemPath /* indent as rule */ BOURNE_SHELL = DefaultSystemShell CPP_PROGRAM = CppCmd When you try adding #define's to site.def to set these values, such as #ifndef DEF_USER_PATH #define DEF_USER_PATH ":/usr/bin:/usr/local/bin/X11:/usr/ucb:/usr/local/bin" #endif #ifndef DEF_SYSTEM_PATH #define DEF_SYSTEM_PATH "/etc:/usr/bin:/usr/local/bin/X11:/usr/ucb:/usr/local/bin" #endif The resulting Makefile (after make World) gives # # Special definitions for compiling default resources; these parameters # should be set in util/imake.includes/site.def or the appropriate .macros # file in that directory. The lack of initial spaces is to prevent imake # from accidently turning the lines into rules by putting a leading tab. # # Do NOT change these lines! # DEF_SERVER = $(BINDIR)/X ":/usr/bin:/usr/local/bin/X11:/usr/ucb:/usr/local/bin" = :/bin:/usr/bin:$(BINDIR):/usr/ucb "/etc:/usr/bin:/usr/local/bin/X11:/usr/ucb:/usr/local/bin" = /etc:/bin:/usr/bin:$(BINDIR):/usr/ucb BOURNE_SHELL = /bin/sh CPP_PROGRAM = /lib/cpp Which doesn't work (strangely enough). Since DEF_*_PATH are only used in resource.c (in that directory) I removed the definitions from site.def, but it means that I can't modify the default paths this way which is a pain. Any suggestions? Also if anyone has a list of places I should have modified to make X work in another tree could you let me know (the sym links work but it's ugly). Thanks, Mark. -- Mark Prior Phone : +61 8 228 5680 University Computing Services Telex : UNIVAD AA89141 University of Adelaide Fax : +61 8 223 6245 GPO Box 498 Adelaide S.AUSTRALIA 5001 E-mail: mrp@ucs.adelaide.edu.au