Subject: imake-check problem (pkg/34139)
To: None <tech-pkg@NetBSD.org>
From: Kouichirou Hiratsuka <hira@po6.nsk.ne.jp>
List: tech-pkg
Date: 09/01/2006 08:57:43
Hello,

I'm trying to fix pkg/34139.

If imake-check is called after creating wrappers, imake invokes
wrapper's cc because wrapper's path has been added to the front of
PATH.  Therefore -I${X11BASE}/lib/X11/config (argument of imake)
is transformed to -I${WRKDIR}/.buildlink/lib/X11/config.  The path
doesn't exist.

The following patch can fix this problem.
Is this correct way?

best regards.
--
 Kouichirou Hiratsuka
   hira@po6.nsk.ne.jp

Index: imake-check
===================================================================
RCS file: /cvsroot/pkgsrc/mk/buildlink3/imake-check,v
retrieving revision 1.3
diff -u -r1.3 imake-check
--- imake-check	28 Aug 2006 13:27:41 -0000	1.3
+++ imake-check	30 Aug 2006 17:31:41 -0000
@@ -80,7 +80,8 @@
 EOF
 
 # Run imake to process the Imakefile.
-${IMAKE} -DUseInstalled -I${X11BASE}/lib/X11/config -s - |
+WRAPPER_SKIP_TRANSFORM=yes \
+	${IMAKE} -DUseInstalled -I${X11BASE}/lib/X11/config -s - |
 	${IMAKE_MAKE} -f - builtin-test |
 	${GREP} -q yes
 exitcode="$?"