[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-i18n-doc
Subject:    Re: Problem when building po files
From:       Albert Astals Cid <aacid () kde ! org>
Date:       2010-05-19 20:02:34
Message-ID: 201005192102.34463.aacid () kde ! org
[Download RAW message or body]

A Dimecres, 19 de maig de 2010, Alvaro Soliverez va escriure:
> On Wed, May 19, 2010 at 4:10 PM, Alvaro Soliverez <asoliverez@gmail.com> 
wrote:
> > On Wed, May 19, 2010 at 3:49 PM, Albert Astals Cid <aacid@kde.org> wrote:
> >> A Dimecres, 19 de maig de 2010, Alvaro Soliverez va escriure:
> >>> Hello all,
> >>> We are having problems to build KMyMoney when using the createtarball
> >>> script. It has worked flawlessly until now, so it is either something
> >>> on the script that changed, or something on the po directories. Or in
> >>> our own CMakeLists.txt.
> >>> 
> >>> The error we are getting is this one:
> >>> 
> >>> CMake Error at /usr/share/apps/cmake/modules/FindGettext.cmake:229
> >>> (ADD_CUSTOM_TARGET):
> >>>   add_custom_target cannot create target "pofiles" because another
> >>> target with the same name already exists.  The existing target is a
> >>> custom target created in source directory
> >>> 
> >>> "/home/asoliverez/makepkg/kmymoney-svn-full/src/createtarball/kmymoney-
> >>> 3.9 8.0/po/bg". See documentation for policy CMP0002 for more details.
> >>> Call Stack (most recent call first):
> >>>   po/ca/CMakeLists.txt:2 (GETTEXT_PROCESS_PO_FILES)
> >>> 
> >>> 
> >>> the bg directory mentioned is just the first one on the list. the
> >>> message repeats for each of the remaining language directories.
> >>> 
> >>> If anyone can help or point us in the right direction, I would really
> >>> appreciate it.
> >> 
> >> Can you explain the exact steps you do so i can try to reproduce the
> >> problem?
> > 
> > Hello Albert,
> > We run the createtarball script, from kdesdk.
> > 
> > $./createtarball.rb -a kmymoney -n
> > 
> > That creates a compilation of the kmymoney code plus all documents and
> > translations in a directory called kmymoney-3.98.0. Trying to run
> > cmake in that directory throws the error messages above.
> > 
> > Upon further investigation, we found that a recent change in our
> > CMakeLists.txt upped the cmake version to 2.6.4, which is the cause
> > for this.
> > If we also add the global property ALLOW_DUPLICATE_CUSTOM_TAGS, the
> > problem is solved. That's because the CMakeLists.txt scripts in the po
> > directories all try to create a pofiles custom tag.
> > 
> > From what I have read, the trunk is moving to cmake 2.6.4 too, so
> > other projects might run into this problem, IF they are using
> > createtarball.
> > 
> > For now, we can just change our cmake scripts to allow duplicate tags,
> > but I'm not sure this is the best solution, nor do I have the skills
> > to make that decision. Since the issue is in the po directories, I
> > decided to call it to your attention, but perhaps this should be fixed
> > somewhere else.
> > 
> > Let me know if you need any more info or clarification.
> 
> Albert,
> my bad. The cmake scripts are created on-the-fly by the createtarball
> script, so it's not a problem in the po directories.
> I'll contact the maintainer.

No problem, tell me if you need me to push some people.

Albert

> 
> Sorry for the noise.
> 
> Regards,
> Alvaro
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic