Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Nov 2004 01:58:04 +0100
From:      Dejan Lesjak <dejan.lesjak@ijs.si>
To:        freebsd-gnome@FreeBSD.org
Subject:   libxklavier and upcoming xorg 6.8.1 upgrade
Message-ID:  <200411290158.05194.dejan.lesjak@ijs.si>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411290158.05194.dejan.lesjak>