I have the same problem in ubuntu 6.10 with svn revision 3151, and did some debugging. The problem is because the program "autorevision.cpp" only understands English and our locale is other, so the svn messages are in other language.
A quick fix, to compile use this command:
Or you can edit trunk/src/build_tools/autorevision/Makefile.am and add the LANG=C before the ./auto_revision, and then rerun bootstrap.
Or you can edit the file trunk/src/build_tools/autorevision/autorevision.cpp and find the line that says
string svncmd("svn info ");
And change to look like this
string svncmd("LANG=C svn info ");
Or you can wait for one patch I'm doing to use the xml output of svn.
killerbot, i forgot to mention another problem of the output of `svn info`. The dates are localized, I will put one example, in english and spanish, to see the differences:
xxxx@xxxx:~/program/codeblocks/trunk$ svn info
Ruta: .
URL: svn://svn.berlios.de/codeblocks/trunk
Raíz del repositorio: svn://svn.berlios.de/codeblocks
UUID del repositorio: 98b59c6a-2706-0410-b7d6-d2fa1a1880c9
Revisión: 3151
Tipo de nodo: directorio
Agendado: normal
Autor del último cambio: pecan
Revisión del último cambio: 3151
Fecha de último cambio: 2006-10-28 06:02:25 +0800 (sáb, 28 oct 2006)
xxxx@xxxx:~/program/codeblocks/trunk$ LANG=C svn info
Path: .
URL: svn://svn.berlios.de/codeblocks/trunk
Repository Root: svn://svn.berlios.de/codeblocks
Repository UUID: 98b59c6a-2706-0410-b7d6-d2fa1a1880c9
Revision: 3151
Node Kind: directory
Schedule: normal
Last Changed Author: pecan
Last Changed Rev: 3151
Last Changed Date: 2006-10-28 06:02:25 +0800 (Sat, 28 Oct 2006)
The date is "2006-10-28 06:02:25", now lets see the xml output:
xxxx@xxxx:~/program/codeblocks/trunk$ svn --xml info
<?xml version="1.0" encoding="utf-8"?>
<info>
<entry
kind="dir"
path="."
revision="3151">
<url>svn://svn.berlios.de/codeblocks/trunk</url>
<repository>
<root>svn://svn.berlios.de/codeblocks</root>
<uuid>98b59c6a-2706-0410-b7d6-d2fa1a1880c9</uuid>
</repository>
<wc-info>
<schedule>normal</schedule>
</wc-info>
<commit
revision="3151">
<author>pecan</author>
<date>2006-10-27T22:02:25.150469Z</date>
</commit>
</entry>
</info>
The date is "2006-10-27 22:02:25". I think this is the 'real' date, if you dont use the xml version the dates wont be the same between build of people with diffent timezone (unless you save also the time difference).
Tell me if is ok to make a patch to use the xml version and I'll finish it.
I forgot to say LANG=C is only for linux, is other reason to use the xml output, it can be done system independent.
Did you update to Subversion 1.4.0 and set your locale to english ?
I get the same warning on Mac OS X, but it still succeeds to make it.
svn: warning: cannot set LC_CTYPE locale
svn: warning: environment variable LANG is EN
svn: warning: please check that your locale name is correct
src/sdk/autorevision.h:
/*3157*/
#ifndef AUTOREVISION_H
#define AUTOREVISION_H
#include <wx/string.h>
#define SVN_REVISION "3157"
#define SVN_DATE "2006-10-29 15:43:54"
namespace autorevision
{
const unsigned int svn_revision = 3157;
const wxString svnRevision(_T("3157"));
}
#endif
I don't think requiring Subversion for compiling the nightly build
is any harder of a requirement than requiring wxWidgets installed...
The language/locale issue was a curveball, but seems sorted out.
Maybe you could also take a look at the proposed autorevision changes ?
I would like to have access to the raw rev. number, without the trunk-
m4_define([SVN_REVISION], trunk-r3163)
m4_define([SVN_REV], 3163)
--- configure.in (revision 3163)
+++ configure.in (arbetskopia)
@@ -49,6 +49,8 @@
AC_CHECK_FUNC(snprintf, AC_DEFINE(HAVE_SNPRINTF,,snprintf))
AC_CHECK_FUNC(vsnprintf, AC_DEFINE(HAVE_VSNPRINTF,,vsnprintf))
+AC_SUBST(REVISION, SVN_REV)
+
dnl versioning info for libtool
dnl Note this is the ABI version which is not the same as our actual library version
CODEBLOCKS_CURRENT=0
The RPM spec is using a sed hack, but that doesn't work too good for XML...
(I want it to be able to autogenerate a codeblocks.plist, for Mac OS X)
--- codeblocks.spec.in (revision 3163)
+++ codeblocks.spec.in (arbetskopia)
@@ -1,4 +1,4 @@
-%define _svnrev %(echo @VERSION@ | cut -c 8-)
+%define _svnrev @REVISION@
%define req_wxgtk 2.6.0
%define _fedora %(if [ -f /etc/fedora-release ]; then echo 1; else echo 0; fi)
%define _suse %(if [ -f /etc/SuSE-release ]; then echo 1; else echo 0; fi)
edit: on second thought, changing SVN_REVISION is probably a little confusing.
Not to mention that the variable and define having the same name doesn't work.
but i did get the following error:
error: Package already exists: %package debug (but no package is present, the folder is empty)
(this probably since i tried before to force to install a rpm nighty build)
This sounds like an RPM error, with the specfile on your platform.
AFAIK that debug package is a thing that SUSE/Mandriva does... ?
%{?debugrpm:%debug_package}
If you list your RPM settings, it should give you some clues to how it
is trying to define the debug package in the spec ? (rpmbuild --showrc)
i do use mandriva linux 2007 with kernel 2.6.17-5; the rpmbuild version is 4.4.6.
sorry for not being much "skilled" but i switched to linux very recently & i am not a good programmer since i only write small programs for myself when i do need (in my free time), thanks anyway for the help.
i check out the output of the rpmbuild configuration; those are the lines of codes that i belive that they define the debug package, they don't tell me much so i hope that someone may be able to understand them and tell me what's wrong (if needed, the output.txt attached file is the complete settings dump):
%{nil}
-14: debug_package
%ifnarch noarch
%global __debug_package 1
%package debug
Summary: Debug information for package %{name}
Group: Development/Debug
AutoReqProv: 0
%description debug
This package provides debug information for package %{name}.
Debug information is useful when developing applications that use this
package or when debugging this package.
%files debug -f debugfiles.list
%defattr(-,root,root)
%endif
%{nil}
-14: debugcflags %{?_enable_debug_packages:-g}
-14: defined %{expand:%%{?%{1}:1}%%{!?%{1}:0}}
-14: distribution Mandriva Linux
-14: distsuffix mdv
-14: find_lang /usr/lib/rpm/mandriva/find-lang.sh %{buildroot}
-14: install %{?_enable_debug_packages:%{?buildsubdir:%{debug_package}}}
%%install
[ %{_with install} -eq 1 ] || exit 0
%{nil}
-14: ix86 i386 i486 i586 i686 pentium3 pentium4 athlon k6
-14: make %{_make_bin} %_smp_mflags
-14: make_session if [ -x %{_fndsession_bin} ]; then %{_fndsession_bin} || true ; fi
%{nil}
[attachment deleted by admin]