Subject: Re: add ${X11BASE}/bin into PREPEND_PATH when USE_X11 (was Re:
To: Georg Schwarz <>
From: Jeremy C. Reed <>
List: tech-pkg
Date: 04/07/2005 13:19:18
On Thu, 7 Apr 2005, Georg Schwarz wrote:

> could you maybe leak some more information about this wrapper/symlink
> directories work? It sounds a bit like this could solve many of the tools
> problems on IRIX 5.

I removed my comment above because I realized I was wrong about the
ordering (as mentioned in my followup email).

Anyways, this is really brief:

The PREPEND_PATH may include the WRAPPER_BINDIR (work/.wrapper/bin) for
tools like: as, cc, cpp, cxx, fc, imake and ld. (See

The PREPEND_PATH may include the BUILDLINK_BINDIR (work/.buildlink/bin)
for any executables to be buildlinked using BUILDLINK_FILES. For example,
see textproc/aspell/ and textproc/libxml2/ (for
BUILDLINK_FILES). (See mk/buildlink3/

The PREPEND_PATH may include the ${TOOLS_DIR}/bin (work/.tools/bin) for
executables like aclocal, autoconf, autoheader, autom4te, perl, patch,
makeinfo, make and more. Some are defined using the USE_GNU_TOOLS. (See

The PREPEND_PATH may include the ${PKG_JAVA_HOME}/bin. (See mk/

The PREPEND_PATH may include the bin/ directory for your compiler (like
${_GCC_DIR}/bin. (See mk/compiler/*.mk.)

Then mk/ reverses the PREPEND_PATH to set PATH.

For example, the final PATH may look like:
work/.wrapper/bin work/.buildlink/bin work/.tools/bin work/.gcc/bin
${X11BASE}/bin ${LOCALBASE}/bin followed by your original PATH.

PATH is included in ALL_ENV and CONFIGURE_ENV and MAKE_ENV. So this new
PATH is used for the configure and build.

(It seems to me we have some duplicated functionality and this could be
simplified. Also for me the current mk/ is broken because it
assumes that some tools are installed and also defines some variables

 Jeremy C. Reed

 	  	 	 open source, Unix, *BSD, Linux training