Subject: xsrc/10226: we inconsistently set the MAKEDEPEND program
To: None <>
From: None <>
List: netbsd-bugs
Date: 05/29/2000 08:44:12
>Number:         10226
>Category:       xsrc
>Synopsis:       we inconsistently set the DEPEND program
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    xsrc-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 29 08:45:00 PDT 2000
>Release:        1.4.2<NetBSD-current source date>
System: NetBSD cowboy-burt 1.4.1 NetBSD 1.4.1 (COWBOY-BURT) #1: Sat Oct 2 21:08:08 EDT 1999 dan@cowboy-burt:/amd/dinah-moe/export/src/sys/arch/sparc/compile/COWBOY-BURT sparc


on some machines, imake wants to use "gccmakedep" and other machines, it wants
"makedepend" but the 2 different programs behave differently.

this is because in  /usr/X11R6/lib/X11/config/, there is the line:

#if defined(i386Architecture) || defined(arm32Architecture) || \
# include <>

and has
#ifndef UseGccMakeDepend
#define UseGccMakeDepend YES

so i386,arm32, and atari pick up gccmakedep and the other arch's don't.

thanks to Hubert Feyrer who noted where the difference occured.


on i386 (or arm32/atari):
run 'imake' and note what DEPEND gets set to.  For example:

cd /usr/pkgsrc/x11/wmtime
make extract
cd work/
grep "DEPEND " Makefile

note that it says:
           DEPEND = gccmakedep

now do it on sparc (or any thing thats not i386/arm32/atari) and get
           DEPEND = makedepend

maybe this:  

RCS file: /cvsroot/xsrc/xc/config/cf/,v
retrieving revision 1.72
diff -U2 -r1.72
---   2000/05/26 19:32:41     1.72
+++   2000/05/29 15:20:53
@@ -129,4 +129,8 @@
 #define MkdirHierCmd           mkdir -p
+#ifndef UseGccMakeDepend
+#define UseGccMakeDepend       YES
 #define CppCmd                 /usr/libexec/cpp
 #define StandardCppDefines     -traditional

as a work around:
imake -DUseInstalled -DUseGccMakeDepend -I/usr/X11R6/lib/X11/config
instead of
imake -DUseInstalled  -I/usr/X11R6/lib/X11/config