Bug 200302 - Relocation error message using kdesvn-build
Summary: Relocation error message using kdesvn-build
Status: RESOLVED FIXED
Alias: None
Product: kdesrc-build
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Michael Pyne
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-15 14:16 UTC by Karl Ove Hufthammer
Modified: 2009-10-25 04:47 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karl Ove Hufthammer 2009-07-15 14:16:23 UTC
Version:            (using Devel)
OS:                Linux
Installed from:    Compiled sources

When I try to compile KDE using kdesvn-build, I get error messages of failed relocations for all the modules. Example:

-----
Script started processing at Wed Jul 15 14:10:55 2009
<<<  Build Process  >>>                              
Building qt-copy (1/16)                              
        Waiting for source code update.              
Use of uninitialized value $module_actual_url in string ne at ./kdesvn-build line 6150.
Use of uninitialized value $module_actual_url in concatenation (.) or string at ./kdesvn-build line 6163.
 !!                                                                                                      
 !! qt-copy seems to be checked out from somewhere other than expected.                                  
 !!                                                                                                      

kdesvn-build expects:        svn+ssh://huftis@svn.kde.org/home/kde/trunk/qt-copy
The module is actually from:                                                    

If the module location is incorrect, you can fix it by either deleting the
source directory, or by changing to the source directory and running      
  svn switch svn+ssh://huftis@svn.kde.org/home/kde/trunk/qt-copy          

If the module is fine, please update your configuration file.

If you use kdesvn-build with --svn-only it will try switching for you (might not work
correctly).                                                                          
-----

The actual updating and compiling seems to work fine, though.

I believe the error messages are caused by a faulty locale handling in kdesvn-build. If I run

LC_ALL=C kdesvn-build

they disappear. I normally use the locale ‘nn_NO.UTF-8’.
Comment 1 Michael Pyne 2009-07-16 00:25:00 UTC
Hmm, I was using LANG to set the C locale and not LC_ALL.  The appropriate environment variable setting occurs in "sub get_svn_info".  Can you try changing that LANG to a LC_ALL and seeing if that fixes it?  If so I'll fix the issue in trunk and the upcoming 1.10 branch.
Comment 2 Karl Ove Hufthammer 2009-07-16 08:56:33 UTC
Yes, changing LANG to LC_ALL (or LANGUAGE) fixes it.
Comment 3 Michael Pyne 2009-07-21 04:31:41 UTC
SVN commit 1000211 by mpyne:

Use correct locale variable to run svn. (for kdesvn-build 1.10)

CCBUG:200302


 M  +1 -1      kdesvn-build  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1000211
Comment 4 Michael Pyne 2009-10-25 04:47:46 UTC
Fixed eons ago, will be in kdesvn-build 1.10.