Documentation installation for Debian 2.2 (Potato) binary package.

W. Tasin tasin at e-technik.fh-muenchen.de
Wed Mar 15 12:51:57 UTC 2000


chcouder wrote:
> 
> Bernd Gehrmann wrote:
> 
> > > There is a "kde_htmldir" variable everywhere in the package but I don't
> > > know where or how it should be changed.
> >
> > You can set all variables as environment variables and then use
> > --disable-path-check. At least that was possible when I last
> > checked...
> 
> Thanks for your answer, but I don't think I should change the /debian/rules
> script to use --disable-path-check, should I?
> 
> What I don't understand is why configure finds that kde_htmldir should be
> "/usr/share/doc/HTML" instead of "/usr/share/doc/kde/HTML".
> I deleted my HTML directory in "/usr/share/doc/" but this changes nothing.
> Do you how the path checking works?
> 

Hi Christian,

I don't know how debian packaging works, but if you want to know how the
determination of pathes _for KDE 1.x_ will be done, here is the answer:

acinclude.m4(.in) runs the following application (if the pathes aren't
already written in the config.cache):
----
#include <stdio.h>
#include "confdefs.h"
#include <kapp.h>

int main() {
    printf("kde_htmldir=\\"%s\\"\n",
KApplication::kde_htmldir().data());
    printf("kde_appsdir=\\"%s\\"\n",
KApplication::kde_appsdir().data());
    printf("kde_icondir=\\"%s\\"\n",
KApplication::kde_icondir().data());
    printf("kde_sounddir=\\"%s\\"\n",
KApplication::kde_sounddir().data());
    printf("kde_datadir=\\"%s\\"\n",
KApplication::kde_datadir().data());
    printf("kde_locale=\\"%s\\"\n",
KApplication::kde_localedir().data());
    printf("kde_cgidir=\\"%s\\"\n", KApplication::kde_cgidir().data());
    printf("kde_confdir=\\"%s\\"\n",
KApplication::kde_configdir().data());
    printf("kde_mimedir=\\"%s\\"\n",
KApplication::kde_mimedir().data());
    printf("kde_toolbardir=\\"%s\\"\n",
KApplication::kde_toolbardir().data());
    printf("kde_wallpaperdir=\\"%s\\"\n",
	KApplication::kde_wallpaperdir().data());
    printf("kde_bindir=\\"%s\\"\n", KApplication::kde_bindir().data());
    printf("kde_partsdir=\\"%s\\"\n",
KApplication::kde_partsdir().data());
    printf("kde_servicesdir=\\"/tmp/dummy\\"\n");
    printf("kde_servicetypesdir=\\"/tmp/dummy\\"\n");
    return 0;
    }
---

You can see if it is done in this way if configure reports:

checking for KDE paths... compiling 

So it is guaranteed that a package uses the same pathes as a kdelib-call
would determine (and that makes it also clear why a simple deletion of
the files in the HTML dir wouldn't work here... your KDE is configure
with this HTML-path)

So take care if you would override this value by either
--disable-path-check
or/and by doing
make kde_htmldir="/usr/share/doc/kde/HTML"

Some other things may not work correctly.

Bye

Walter

 
> Christian

--
oohhh sveglia.... il mondo e' ammalato, ma x colpa di chi.........
(Zucchero)
:-------W. Tasin, FB 04,
FHM-------------------PGP-KeyID:0x7961A645----------:
<Key-Fingerprint: 1610 835F 0080 32F4 6140  6CF7 A7D0 44CD 7961A645>
<http://wwwkeys.pgp.net:11371/pks/lookup?op=index&search=0x7961A645&fingerprint=on>




More information about the KDevelop-devel mailing list