Request for clarification on menu/file spec

Thiago Macieira thiago at kde.org
Fri Feb 3 10:47:05 EET 2006


Waldo Bastian wrote:
>datadir is an autoconf-ism, the implicit assumption here is that a
> binary is installed to {prefix}/bin and it's data files to locations
> under {prefix}/share. E.g. an application would install manpages to
> {datadir}/man
>
>Note that this doesn't really consider the case of installing software
> in a user's home directory.

That's a good example, actually. By default, autoconf sets mandir = 
${prefix}/man. But FHS and other standards require manpages to be 
installed in ${datadir}/man instead. This means all package building 
systems must already tweak the configure scripts to install manpages 
properly.

So, if someone wants to install stuff in the home directory, they can just 
use:
configure --prefix=$HOME/myapp --bindir=$HOME/bin --datadir=$HOME/.local 
--sysconfdir=$HOME/.config
-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

3. Ac seo woruld wearð geborod, swá se Scieppend cwæð "Gewurde Unix" and 
wundor fremede and him "Unix" genemned, þæt is se rihtendgesamnung.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/xdg/attachments/20060203/3594364b/attachment.pgp 


More information about the xdg mailing list