Author Topic: svn version fails during compile  (Read 7548 times)

Andy

  • Guest
svn version fails during compile
« on: April 30, 2006, 08:21:46 am »
i get the following error message when trying to compile the svn version on linux:

./auto_revision +int +wx +t ../../.. ./../../sdk/autorevision.h
svn: Path '../../..' ends in '..', which is unsupported for this operation
Error: could not open input file.
This does not seem to be a revision controlled project.
Error: failed retrieving version information.

i can post more info if necessary.

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: svn version fails during compile
« Reply #1 on: April 30, 2006, 12:35:21 pm »
The path passed to autorevision is screwed up for some reason:
./auto_revision +int +wx +t ../../.. ./../../sdk/autorevision.h

The correct entry in SDK prebuild steps should read:
tools/autorevision/autorevision +wx +int +t . sdk/autorevision.h, so autorevision is called with . as the source directory and sdk/autorevision.h as the output file.

I don't know how this can happen, I checked my working copy of the sources, it is just fine here.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

moloh

  • Guest
Re: svn version fails during compile
« Reply #2 on: May 05, 2006, 09:49:38 pm »
I have same problem.
Maybe src/tools/autorevision/Makefile.am is a problem?

Code
noinst_PROGRAMS = auto_revision
auto_revision_SOURCES = autorevision.cpp

all-local: auto_revision
./auto_revision +int +wx +t $(top_srcdir) $(srcdir)/../../sdk/autorevision.h

Offline TheTuxKeeper

  • Regular
  • ***
  • Posts: 293
  • daniel2000
Re: svn version fails during compile
« Reply #3 on: May 05, 2006, 10:15:08 pm »
I have same problem.
Maybe src/tools/autorevision/Makefile.am is a problem?

Code
noinst_PROGRAMS = auto_revision
auto_revision_SOURCES = autorevision.cpp

all-local: auto_revision
./auto_revision +int +wx +t $(top_srcdir) $(srcdir)/../../sdk/autorevision.h

For me it works as it should, so the Makefile.am shouldn't be the problem.

My log looks like this:
Code
Making all in autorevision
make[3]: Entering directory `/usr/src/redhat/BUILD/codeblocks/src/tools/autorevision'
./auto_revision +int +wx +t ../../.. ./../../sdk/autorevision.h
make[3]: Leaving directory `/usr/src/redhat/BUILD/codeblocks/src/tools/autorevision'

Perhaps you use a too old version of subversion ? Can you post the first line (version) of
Code
svn --version
Nightly builds for openSUSE

moloh

  • Guest
Re: svn version fails during compile
« Reply #4 on: May 06, 2006, 12:03:22 am »
Sorry then for bad thought...

Code
# svn --version
svn, version 1.2.3 (r15833)

Offline TheTuxKeeper

  • Regular
  • ***
  • Posts: 293
  • daniel2000
Re: svn version fails during compile
« Reply #5 on: May 06, 2006, 10:58:37 am »
No, it's not subversion. I've installed the same version on fedora and don't have any problem :?

I've no idea, what's going wrong  :(
Nightly builds for openSUSE

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: svn version fails during compile
« Reply #6 on: May 06, 2006, 08:41:32 pm »
No, it's not subversion. I've installed the same version on fedora and don't have any problem :?

And I use on Ubuntu 5.10 without problems:

Quote
svn, version 1.2.0 (r14790)

Best wishes,
Michael

moloh

  • Guest
Re: svn version fails during compile
« Reply #7 on: May 08, 2006, 07:12:06 am »
Ok, i located the problem.
I should write it before, but i didn't do this. The problem is gentoo ebuild.
In build process You use subversion information, by default ".svn/" directories aren't copied into build environment so that is why there is an error. To overcome this limitation i changed a little an ebuild for codeblocks. Now whole structure (with ".svn/" files) is synced into build environment.
Updated ebuild can be found on Gentoo Bugzilla: http://bugs.gentoo.org/show_bug.cgi?id=89533