You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Benno Korn <be...@compuserve.de> on 2008/06/26 11:47:53 UTC
Compiling Subversion 1.5.0 under Ubuntu 8.04 32bit
Hello,
I try to compile subversion 1.5.0 and build a debian package for Ubuntu 8.04 32bit.
Especially because I need the libsvn-java package for JavaHL support that Subclipse 1.4.0 needs.
So this is what I have tried so far.
I have downloaded and unpacked the source of subversion 1.5.0 and the sources the Ubuntu package (version 1.4.6) has been built with.
(apt-get source subversion)
Then I applied the changes onto the new sources:
Within subversion-1.5.0 source root directory: zcat ../subversion_1.4.6dfsg1-2ubuntu1.diff.gz | patch -p1
Then I installed the packages subversion depends on: sudo apt-get build-dep subversion
(I also installed other packages like fakeroot or devscripts for making the debian-package)
Because some java VMs seem to be installed I changed the standard Java VM back to sun-1.6.0:
sudo update-alternatives --config java -> Choose: /usr/lib/jvm/java-6-sun/jre/bin/java
Now I changed the debian/changelog
In debian/patches/00list I commented out all patches but "fix-bdb-version-detection" and "no-extra-libs".
Now I start to compile with:
debuild -us -uc
The process ends with this error:
http://ubuntuusers.de/paste/373110/
Re: Compiling Subversion 1.5.0 under Ubuntu 8.04 32bit
Posted by Benno Korn <be...@compuserve.de>.
The Ubuntu repositories only hold version 1.4.6 if you mean that.
But I finally made the sources built correctly.
First I used the Intrepid sources instead of the debian sources.
https://launchpad.net/ubuntu/intrepid/+source/subversion/1.5.0dfsg1-1ubuntu2
But this was not the problem.
The problem was that the headers of the nested classes were not created.
So I created the headers myself using javah. But javah inserted a
constant 0024 into the names that were defined inside the header file
which I had to remove manually.
There is a patch attached which creates these headers.
So with this patch the libsvn-java packages is built successfully.
thufir schrieb:
> On Sat, 28 Jun 2008 01:07:17 +0200, Benno Korn wrote:
>
>
>>> Occasionally I get the same error, but it goes away when I run the make
>>> command again. I think something somewhere in the dependency
>>> generation is borked, but I haven't had the time, nor the inclination
>>> to look at it thoroughly.
>>>
>
>
> Why are you running make for something which apt-get has? Kinda defeats
> the purpose of a package manager. You just like to go your own way? ;)
>
>
>
> -Thufir
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
>
Re: Compiling Subversion 1.5.0 under Ubuntu 8.04 32bit
Posted by thufir <ha...@gmail.com>.
On Sat, 28 Jun 2008 01:07:17 +0200, Benno Korn wrote:
>> Occasionally I get the same error, but it goes away when I run the make
>> command again. I think something somewhere in the dependency
>> generation is borked, but I haven't had the time, nor the inclination
>> to look at it thoroughly.
Why are you running make for something which apt-get has? Kinda defeats
the purpose of a package manager. You just like to go your own way? ;)
-Thufir
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Compiling Subversion 1.5.0 under Ubuntu 8.04 32bit
Posted by Benno Korn <be...@compuserve.de>.
I have found a bug report in a gentoo forum:
http://bugs.gentoo.org/show_bug.cgi?id=219959
So this bug should be fixed in release version of subversion 1.5.0.
I am not sure when to apply this patch that has been posted because the
file that should be patched is created during the build process.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Compiling Subversion 1.5.0 under Ubuntu 8.04 32bit
Posted by "Hyrum K. Wright" <hy...@mail.utexas.edu>.
Benno Korn wrote:
>> > Occasionally I get the same error, but it goes away when I run the make
>> > command again. I think something somewhere in the dependency
>> generation
>> > is borked, but I haven't had the time, nor the inclination to look
>> at it
>> > thoroughly.
>> >
>> > -Hyrum
>> Which make command do you have to run again?
>> This is the debian/rules file:
>> http://ubuntuusers.de/paste/376083/
>>
>> Do you only have to run the make command that fails (line 205) again?
>>
>> Or should I run the whole make process again? (line 199, I presume)
When I get the error, I just run
$ make javahl
again. That works for me, but I don't know if it will work for you.
> The problem seems to be that the header files of the nested classes are
> not created.
> A developer in the ubuntu-devel mailing list has the right hint, I think.
> https://lists.ubuntu.com/archives/ubuntu-devel-discuss/2008-June/004627.html
>
>
> But where is the right place to insert these lines?
>
> And how to make header files for _all_ nested classes.
I don't know. I'm running OS X primarily, but I don't have the problems
you are describing on Ubuntu, either.
-Hyrum
Re: Compiling Subversion 1.5.0 under Ubuntu 8.04 32bit
Posted by Benno Korn <be...@compuserve.de>.
> > Occasionally I get the same error, but it goes away when I run the make
> > command again. I think something somewhere in the dependency generation
> > is borked, but I haven't had the time, nor the inclination to look at it
> > thoroughly.
> >
> > -Hyrum
> Which make command do you have to run again?
> This is the debian/rules file:
> http://ubuntuusers.de/paste/376083/
>
> Do you only have to run the make command that fails (line 205) again?
>
> Or should I run the whole make process again? (line 199, I presume)
The problem seems to be that the header files of the nested classes are
not created.
A developer in the ubuntu-devel mailing list has the right hint, I think.
https://lists.ubuntu.com/archives/ubuntu-devel-discuss/2008-June/004627.html
But where is the right place to insert these lines?
And how to make header files for _all_ nested classes.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Compiling Subversion 1.5.0 under Ubuntu 8.04 32bit
Posted by Benno Korn <be...@compuserve.de>.
> Occasionally I get the same error, but it goes away when I run the make
> command again. I think something somewhere in the dependency generation
> is borked, but I haven't had the time, nor the inclination to look at it
> thoroughly.
>
> -Hyrum
Which make command do you have to run again?
This is the debian/rules file:
http://ubuntuusers.de/paste/376083/
Do you only have to run the make command that fails (line 205) again?
Or should I run the whole make process again? (line 199, I presume)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Compiling Subversion 1.5.0 under Ubuntu 8.04 32bit
Posted by "Hyrum K. Wright" <hy...@mail.utexas.edu>.
Benno Korn wrote:
> In Debian there is an experimental package:
> http://packages.debian.org/experimental/subversion
>
> Code:
> tar xzf subversion_1.5.0dfsg1.orig.tar.gz
> cd subversion-1.5.0dfsg1
> zcat ../subversion_1.5.0dfsg1-1.diff.gz | patch -p1
>
> The building with "debuild -us -uc" (depending packages install with
> "sudo apt-get build-dep subversion". Simply install missing packages)
> works well, but it does not build the libsvn-java package.
>
> With " DEB_BUILD_OPTIONS="with-javahl" debuild -us -uc " I again get
> this error.
> http://ubuntuusers.de/paste/373157/
Occasionally I get the same error, but it goes away when I run the make
command again. I think something somewhere in the dependency generation
is borked, but I haven't had the time, nor the inclination to look at it
thoroughly.
-Hyrum
Re: Compiling Subversion 1.5.0 under Ubuntu 8.04 32bit
Posted by Benno Korn <be...@compuserve.de>.
In Debian there is an experimental package:
http://packages.debian.org/experimental/subversion
Code:
tar xzf subversion_1.5.0dfsg1.orig.tar.gz
cd subversion-1.5.0dfsg1
zcat ../subversion_1.5.0dfsg1-1.diff.gz | patch -p1
The building with "debuild -us -uc" (depending packages install with
"sudo apt-get build-dep subversion". Simply install missing packages)
works well, but it does not build the libsvn-java package.
With " DEB_BUILD_OPTIONS="with-javahl" debuild -us -uc " I again get
this error.
http://ubuntuusers.de/paste/373157/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org