Compiling subversion 1.5.0
Benno Korn
bennokorn at compuserve.de
Sat Jun 28 17:44:44 UTC 2008
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.
As you said correctly, 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.
I am very thankful for your help!
Jason Crain schrieb:
> It first compiles the .java files using javac, then creates header
> files using javah. It skips several header files, including
> org_tigris_subversion_javahl_ConflictDescriptor_Action.h, probably
> because it is an inner class of ConflictDescriptor. The $ used to
> mark inner classes may be confusing it?
>
> You can create the files manually using javah:
> javah -d subversion/bindings/javahl/include -classpath \
> subversion/bindings/javahl/classes \
> 'org.tigris.subversion.javahl.ConflictDescriptor$Action'
>
> And then rename it to what it expects:
> mv
> subversion/bindings/javahl/include/org_tigris_subversion_javahl_ConflictDescriptor\$Action.h
> subversion/bindings/javahl/include/org_tigris_subversion_javahl_ConflictDescriptor_Action.h
>
>
> But there are about 20 files that it will complain about, so you may
> want to script it.
>
> I'm not sure how to modify the makefile to work properly.
>
>
> Benno Korn wrote:
>> Ok. Thank you.
>>
>> I asked in subversion IRC channels and mailing lists, but no one had
>> a clue where the problem is.
>>
>> Then I decided that when someone knows how to compile it then these
>> people who compiled the package
>> in the repositories.
>> And now I am asking here ;-)
>>
>> Jason Crain schrieb:
>>> Sorry, missed the problem with all of the extra long lines :)
>>>
>>> It looks like the problem is it is missing the file
>>> org_tigris_subversion_javahl_ConflictDescriptor_Action.h, probably
>>> because
>>> something went wrong building javahl. I'm compiling it now to see if I
>>> can figure out why...
>>>
>>> On Fri, June 27, 2008 2:15 pm, Benno Korn wrote:
>>>
>>>> I tried with the -W option.
>>>>
>>>> But the same error occured again.
>>>>
>>>> Jason Crain schrieb:
>>>>
>>>>> Those look like fairly benign warnings that could be ignored. I'm
>>>>> not
>>>>> too
>>>>> familiar with debuild, but you could try running it with the -W
>>>>> option.
>>>>> That might set it to ignore warnings.
>>>>>
>>>>>
>>>>> On Fri, June 27, 2008 1:33 pm, Benno Korn wrote:
>>>>>
>>>>>
>>>>>> Hello,
>>>>>> I am using Ubuntu 8.04 32 bit.
>>>>>> I try to package subversion 1.5.0 with JavaHL support.
>>>>>>
>>>>>> Therefore I use these debian experimental sources:
>>>>>> http://packages.debian.org/experimental/subversion
>>>>>>
>>>>>> When I build the package using:
>>>>>> tar xzf subversion_1.5.0dfsg1.orig.tar.gz
>>>>>> cd subversion-1.5.0dfsg1
>>>>>> zcat ../subversion_1.5.0dfsg1-1.diff.gz | patch -p1
>>>>>> debuild -us -uc
>>>>>> ... the packages are successfully created but the libsvn-java
>>>>>> package
>>>>>> is
>>>>>> missing.
>>>>>>
>>>>>> So I have to compile using:
>>>>>> DEB_BUILD_OPTIONS="with-javahl" debuild -us -uc
>>>>>>
>>>>>> But then I run into this error:
>>>>>> http://ubuntuusers.de/paste/373157/
>>>>>>
>>>>>> How is the Ubuntu package in the repositories (version 1.4.6) being
>>>>>> built?
>>>>>> Or how else do I fix this problem?
>>>>>>
>>>>>> --
>>>>>> Ubuntu-devel-discuss mailing list
>>>>>> Ubuntu-devel-discuss at lists.ubuntu.com
>>>>>> Modify settings or unsubscribe at:
>>>>>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>
>>>
>>>
>
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 01_javahl_headers_for_nested_classes
URL: <https://lists.ubuntu.com/archives/ubuntu-devel-discuss/attachments/20080628/9bbe97de/attachment.ksh>
More information about the Ubuntu-devel-discuss
mailing list