2011/1/24 Thomas Trepl <[email protected]>

> Hi,
>
> after a quick and dirty run thru Xorg-7.6 (some errors and restarts of
> building) I restarted from scratch and encountered the following:
>
> To me it seems that util-macros (part of "util") needs to be installed
> before
> the "proto" part can be done. To be more exact, the "proto" needs to be
> installed before makedepend (which is the second and last pkg in "util")
> can
> be successfully built.
>

I can confirm that dri2proto-2.3 looks for xorg-macros.pc. This is from my
logs:
...
checking host system type... i686-pc-linux-gnu
Package xorg-macros was not found in the pkg-config search path.
Perhaps you should add the directory containing `xorg-macros.pc'
to the PKG_CONFIG_PATH environment variable
No package 'xorg-macros' found
...
but seems like install is OK even whitout xorg-macros.pc.
anyway i installed util-macros-1.11.0 and that message disappeared

The other thing is that util-macro installs the xorg-macros.pc in
> $XORG_PREFIX/shared/pkgconfig. A sed like
>
>  sed -i "s/^pkgconfigdir = \$(datadir)/pkgconfigdir = \$(libdir)/" \
>    Makefile.in
>
> makes storing it in $XORG_PREFIX/lib/pkgconfig.  I know, in the
> introduction
> is a command to add $XORG_PREFIX/shared/pkgconfig to the PKGCONFIG_PATH.
> But as it is the only package beside xkeyboardconfig (to which applies the
> same sed) which stores its .pc in the shared dir, the sed might be an
> option.
>
> Yes, but the first package that install .pc files in /usr/share/pkgconfig
is udev from lfs. Other packages also do it.

root [ ~ ]# ls -l /usr/share/pkgconfig/
total 24
-rw-r--r-- 1 shared-mime-info shared-mime-info 120 ene 15 01:33
shared-mime-info.pc
-rw-r--r-- 1 udev             udev              61 ene  2 20:51 udev.pc
-rw-r--r-- 1 usbutils         usbutils          89 ene 15 23:42 usbutils.pc
-rw-r--r-- 1 xbitmaps         xbitmaps         211 ene 20 20:29 xbitmaps.pc
-rw-r--r-- 1 xkeyboard-config xkeyboard-config 174 ene 21 23:56
xkeyboard-config.pc
-rw-r--r-- 1 util-macros      util-macros      398 ene 19 09:38
xorg-macros.pc
-rw-r--r-- 1 xtrans           xtrans           231 ene 20 10:08 xtrans.pc

from man pkg-config:
PKG_CONFIG_PATH
              A  colon-separated  (on Windows, semicolon-separated) list of
directories
              to search for .pc files.  The default directory will always
be  searched
              after       searching       the       path;      the
default      is
              libdir/pkgconfig:datadir/pkgconfig where libdir is the
libdir  for  pkg-
              config and datadir is the datadir for pkg-config when it was
installed.

I think /usr/share/pkgconfig is also a valid destination for .pc files
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to