Re: USE_IMAKE on X11_TYPE=native

Takahiro Kambe <[email protected]>
Newsgroups gmane.os.netbsd.devel.packages
Message-ID <[email protected]>
Hi,

In message <[email protected]>
	on Wed, 11 Feb 2026 18:56:53 +0100,
	Thomas Klausner <[email protected]> wrote:
> I think you'll need to change mk/tools/replace.mk.
> 
> Compare these two sections from the current version:
Thank you for your advice.

Index: mk/tools/replace.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/tools/replace.mk,v
retrieving revision 1.305
diff -u -u -r1.305 replace.mk
--- mk/tools/replace.mk	18 Feb 2025 13:01:28 -0000	1.305
+++ mk/tools/replace.mk	12 Feb 2026 03:07:56 -0000
@@ -1308,8 +1308,12 @@
 .  if !defined(TOOLS_IGNORE.${_t_}) && !empty(_USE_TOOLS:M${_t_}) && \
       !empty(_TOOLS_USE_PKGSRC.${_t_}:M[yY][eE][sS])
 TOOLS_CREATE+=		${_t_}
+.  if ${X11_TYPE:U} == modular
 TOOLS_DEPENDS.${_t_}?=	imake-[0-9]*:../../devel/imake
 TOOLS_PATH.${_t_}=	${TOOLBASE}/bin/${_t_}
+.  else
+TOOLS_PATH.${_t_}=	${X11BASE}/bin/${_t_}
+.endif
 .  endif
 .endfor
 
With this change, make configure still failed.

===> Configuring for jmk-fonts-3.0nb4
=> Checking for portability problems in extracted files
imake -DUseInstalled -I/usr/X11R7/lib/X11/config
Imakefile.c:15:2: fatal error: Imake.tmpl: No such file or directory
compilation terminated.
/usr/X11R7/bin/imake: Exit code 1.
  Stop.
*** Error code 1


But, disabling use of cwappers makes it success.

% USE_CWRAPPERS=no make configure
=> Bootstrap dependency digest>=20211023: found digest-20220214
WARNING: [license.mk] Every package should define a LICENSE.
=> Checksum BLAKE2s OK for jmk-x11-fonts-3.0.tar.gz
=> Checksum SHA512 OK for jmk-x11-fonts-3.0.tar.gz
...
===> Configuring for jmk-fonts-3.0nb4
=> Checking for portability problems in extracted files
imake -DUseInstalled -I/usr/X11R7/lib/X11/config
make Makefiles
make includes
make depend


-- 
Takahiro Kambe <[email protected]> / <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.