Bug 71625 - Error in cvs.sh: incorrect location of kde.dot
Summary: Error in cvs.sh: incorrect location of kde.dot
Status: RESOLVED WORKSFORME
Alias: None
Product: kdevelop
Classification: Applications
Component: Build tools: Automake (show other bugs)
Version: unspecified
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-01 22:48 UTC by Frans Pop
Modified: 2004-03-01 17:44 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frans Pop 2004-01-01 22:48:13 UTC
Version:           3.0.0b2 (kdevelop-031231) (using KDE KDE 3.1.4)
Installed from:    Debian stable Packages
OS:          Linux

When kdelibs4-devis installed from current Debian stable backport, the file kde.dot is in /usr/include/kde/.
This is not correctly supported by the admin/cvs.sh script. Running 'make package-messages' results in:

$ make package-messages
make -f admin/Makefile.common package-messages
make[1]: Entering directory `/home/fjp/kdevelop/sigcreate'
./src
make[2]: Entering directory `/home/fjp/kdevelop/sigcreate/src'
error while opening "/usr/include/kde.pot" for reading: No such file or directory
make[2]: *** [messages] Error 1
...

I have traced this error to the following lines in cvs.sh (note: I added an extra line continuation):
$MAKE -s -f _transMakefile podir=$podir EXTRACTRC="$EXTRACTRC" PREPARETIPS="$PREPARETIPS" \
XGETTEXT="${XGETTEXT:-xgettext} -C -ki18n -ktr2i18n -kI18N_NOOP -ktranslate -kaliasLocale \
-x ${includedir:-${KDEDIR:-/usr/local/kde}/include}/kde.pot" \
messages

To make the script work on my box I changed 3rd line to:
-x ${includedir:-${KDEDIR:-/usr/local/kde}/include/kde}/kde.pot" \

This solved the problem. However, this fix may break the script when kde is installed in /usr/local, so possibly another solution is necessary.
Comment 1 Amilcar do Carmo Lucas 2004-01-09 22:09:26 UTC
I looked into it and asked coolo about it, this was the answer I got:

coolo

Well, it's no bug per se as the kde.pot can't be found through configure
so you need to provide some way and passing includedir= to the call
would be prefered. Nothing I can fix in cvs.sh

/coolo

So please try it out. I'm marking it an Autotools problem, but it migth be a app_template problem or no problem at all.

I do not have a patched gettext so I can not test it.
Comment 2 Frans Pop 2004-01-25 14:35:43 UTC
I have resubmitted this bug as a Debian packaging problem.
See: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=229583
Comment 3 Pupeno 2004-02-27 17:38:12 UTC
This problem also happens in Ark Linux, and maybe lots of other distros, evidently, there's something wrong, I don't know where...
Is it wrong to put kde.pot inside /usr/include/kde/ ? That's where it is here, should it go to /usr/include/ ?
Thanks.
Comment 4 Stephan Kulow 2004-02-27 18:42:38 UTC
the location of the file is fine, just that kdevelop needs to pass the location to cvs.sh when it knows where it is (I wonder why the bug was closed)
Comment 5 Frans Pop 2004-03-01 17:44:42 UTC
I closed it because from the first reactions I thought you did not consider it a KDevelop problem.
So I decided to submit the bug as a Debian packaging problem.  As far as I can tell however the problem _is_ in cvs.sh.

I you would rather solve this problem within KDevelop (and not as something Debian-specific), then I'll be happy to reopen the bug. Please let me know.