Pierre BECHETOILLE wrote:
> Hello,
>
> I ran into trouble trying to compile libgusb-0.1.6 (or colord-1.0.3) in
> the BLFS svn book : I got the following error message :
> GISCAN   GUsb-1.0.gir
> g-ir-scanner: GUsb: warning: 1 warnings suppressed (use --warn-all to
> see them)
>    GICOMP   GUsb-1.0.gir
>   VAPIGEN gusb.vapi
> error: Package `GLib-2.0' not found in specified Vala API directories or
> GObject-Introspection GIR directories
> error: Package `GObject-2.0' not found in specified Vala API directories
> or GObject-Introspection GIR directories
> error: Package `Gio-2.0' not found in specified Vala API directories or
> GObject-Introspection GIR directories
>
> I finally succeeded finding the reason of the error :
> I wanted to install KDE in /opt so I followed the instructions of the
> KDE Pre-installation Configuration and added the /etc/profile.d/kde.sh
> script. The drawback of this method is that now my XDG_DATA_DIRS
> environment variable is set to /opt/kde/share. And that is the reason
> why the compilation of libgusb fails : indeed, unsetting XDG_DATA_DIRS
> variable definition, the compilation succeeds. I think it's because when
> XDG_DATA_DIRS is not set, ||a value equal to
> /usr/local/share/:/usr/share/ is used (according to XDG Base Directory
> Specification).
>
> The problem is that in blfs book, XDG_DATA_DIRS is never explicitly set
> to its default value  (/usr/local/share/:/usr/share/), so when in the
> /etc/profile.d/kde.sh script we perform
>
> |pathappend $KDE_PREFIX/share           XDG_DATA_DIRS|
>
> then XDG_DATA_DIRS does not contain /usr/local/share/:/usr/share/.
>
> I think there is the same problem with XDG_CONFIG_DIRS in
> /etc/profile.d/kde.sh.
>
> Is it worth adding something about that in the book ?

Yes, I think you're right.  We should set the default locations in 
kde4.sh.  I'll do that.

   -- bruce

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to