libxklavier and upcoming xorg 6.8.1 upgrade

Dejan Lesjak dejan.lesjak at ijs.si
Sun Nov 28 16:58:09 PST 2004


Hello,

Soon xorg ports should get upgraded to xorg 6.8.1. Unfortunately ports test 
build reports problem with libxklavier port:
http://dosirak.kr.freebsd.org/errorlogs/i386-5-latest-logs/libxklavier-1.04_1,1.log
The problem is that imake is no longer run dependancy for xorg ports (which is 
actually a god thing, but in this case it causes trouble) and thus it doesn't 
get installed when libxklavier is built. This port however gets location of X 
headers and libraries through this Imakefile snippet of configure:

  cat >Imakefile <<'_ACEOF'
acfindx:
        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; 
ac_im
_libdir="${LIBDIR}"'
_ACEOF

Having no imake, this part fails and configure then checks if it needs 
additional flags for X. It already has -I${X11BASE}/include in CPPFLAGS and 
-L${X11BASE}/lib in LDFLAGS in environment, so it concludes that it doesn't 
need any and sets both $x_includes and $x_libraries to empty strings. That 
would be otherwise fine and the thing would bild. Unfortunately, it uses the 
value of $x_libraries to construct location of xkb specifications without 
further checks, and there it fails.
So for the solution: adding either "--with-xkb-base=${X11BASE}/lib/X11/xkb" or 
"--x-includes=${X11BASE}/include --x-libraries=${X11BASE}/lib" to 
CONFIGURE_ARGS in ports Makefile should solve the problem.

Dejan


More information about the freebsd-gnome mailing list